# SC3's library functions named by reading the code, where bozo_symbolmap.py's automatic tiers stop at a candidate
# (SDK 3.0 rewrote them beyond a word-level match with the 2.8 reference). Each line says why; none comes from any
# other tool's names. Input of `bozo_symbolmap.py match --reviewed`, which refuses a line contradicting its own matches.
# Regenerate recomp/sc3_symbols.txt with BozoEngine's tools/symbolmap/bozo_symbolmap.py:
#   match SLUS_212.16 --ref <CoN>/SLUS_205.65 --ref <CoN>/NTGUI2.ELF --reviewed recomp/sc3_symbols_reviewed.txt --out recomp/sc3_symbols.txt
scePadEnd 0x421c18             # libpad between scePadInit and scePadPortOpen; sceSifCallRpc function 1 with command 0xf, clears libpad's init flag on success; the game's shutdown at 0x14ca10 and 0x14ce00
scePadGetDmaStr 0x422060       # libpad order after scePadPortClose; all 10 libpad readers call it, as they call scePadGetDmaStr; constants 112, 28
scePadRead 0x422210            # libpad order after scePadGetFrameCount; 0x422060 then memcpy to the third argument, the one game call at 0x130a4c
scePadGetState 0x422288        # libpad order before scePadStateIntToStr; same 112, 28, 99, 6, 2, 5 loads as the reference
scePadSetReqState 0x422338     # libpad order after scePadStateIntToStr; all 4 pad requests call it; 112, 28, then stores the state in the DMA block
scePadInfoAct 0x422480         # libpad order after scePadReqIntToStr; same 112, 28, 1, -1, 2, 3, 4 loads, shape 0.87
scePadInfoComb 0x422598        # libpad order after scePadInfoAct; same 112, 28, 1, -1, 2 loads, shape 0.89
scePadInfoMode 0x4226b0        # libpad order before scePadSetMainMode; shape 0.95, called by the game's pad set-up just before scePadSetMainMode
scePadSetActDirect 0x4228a0    # libpad order between scePadSetMainMode and scePadSetActAlign; shape 0.98, calls send_to_iop
sceMpegCreate 0x3e0bc8         # calls memset, _Error, _alalcInit, _alalcAlloc, _alalcSetDynamic as the reference; "The size of work area is too small"
sceMpegDelete 0x3e1820         # the two-word return between sceMpegInit and sceMpegAddBs, as in the reference's order
sceMpegGetPicture 0x3e1868     # libmpeg order after sceMpegAddBs; shape 1.00, called by the movie player
sceMpegGetPictureRAW8 0x3e18b0 # libmpeg order after sceMpegGetPicture; shape 1.00
sceMpegReset 0x3e1908          # sceMpegCreate's call in the reference's sceMpegReset place; same -1, 1 loads
sceCdSeek 0x425008             # libcdvd between sceCdRead and sceCdGetDiskType; sceCdNcmdDiskReady busy check, ncmd prechk 9, stores the sector, sceSifCallRpc ncmd function 5 with 4 bytes; called at 0x400394
sceCdBreak 0x425230            # libcdvd between sceCdGetError and sceCdMmode; scmd prechk 0x1e, sceSifCallRpc scmd function 0x16 with no argument, returns the 4-byte result; called at 0x3ffa08
sceCdReadClock 0x425438        # libcdvd; same a0 15, a1 1, t2 16 and scmd call shape as the reference, without its debug prints; called once by libscf
sceGsSyncVCallback 0x420a00    # libgraph after sceGsExecStoreImage; 0x41fe08 for its params, func 0: DisableIntc(2), RemoveIntcHandler(2, id); else AddIntcHandler(2, func, -1), EnableIntc(2); returns the old func
sceMcChdir 0x426b28            # libmc after mceStorePwd; the -100 and -200 guards of its neighbours, -210 on an empty path, RPC function 12 with port, slot, path up to 1023 bytes and an out buffer, reply handler mceStorePwd
sceMcEnd 0x425e10              # libmc between sceMcInit and sceMcChangeThreadPriority; sceMcSync, then DeleteSema twice, libmc's two semaphores
sceMcChangeThreadPriority 0x425e78 # libmc before sceMcGetSlotMax; PollSema, the -100 and -200 guards, sceSifCallRpc function 0x14, SignalSema
sceMcFormat 0x426c68           # libmc after sceMcChdir; the -100 and -200 guards, sceSifCallRpc function 0x10 with port and slot; the game's card format at 0x2052dc
sceMcDelete 0x426d38           # libmc after sceMcFormat; the -100, -200 and -210 guards, strncpy of the path, sceSifCallRpc function 0xf
sceMcFlush 0x426e58            # libmc after sceMcDelete; the -100 and -200 guards, sceSifCallRpc function 0xa with the fd; the game's save after a write at 0x205428
sceMcSetFileInfo 0x426f18      # libmc after sceMcFlush; the -100, -200 and -210 guards, strncpy of the path, FlushCache of the info, sceSifCallRpc function 0xe
sceMcRename 0x4270e8           # libmc after sceMcSetFileInfo; same guards, strncpy of the old and the new name, sceSifCallRpc function 0xe as sceMcSetFileInfo
sceMcUnformat 0x427240         # libmc after sceMcRename; the -100 and -200 guards, sceSifCallRpc function 0x11 with port and slot
sceMcGetEntSpace 0x427310      # libmc after sceMcUnformat; the -100, -200 and -210 guards, strncpy of the path, sceSifCallRpc function 0x12
# _vfprintf_r: bozo_symbolmap.py's match says 0x430000, a branch inside it; recomp/sc3_symbols.txt carries 0x42fdc0 by hand, the prologue _vfiprintf_r's tail jump at 0x42fdb4 targets.
