; ; CustomSongWidget::processNextMultiAsset from 0x3dfe58 to 0x3e0026 (462 bytes) ; ; 4 xrefs: ; > CustomSongWidget::processNextMultiAsset @ 0x3e0008 ; > CustomSongWidget::startMultiAssetDownload @ 0x3e0196 ; > CustomSongWidget::downloadAssetFinished @ 0x3e0854 ; > CustomSongWidget::downloadAssetFailed @ 0x3e0af0 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; PUSH.W {R0,R1,R4-R10,LR} ; +0x0, 0x3dfe58 MOV R4, R0 ; +0x4, 0x3dfe5c LDR R6, =(__stack_chk_guard_ptr - 0x3DFE68) ; +0x6, 0x3dfe5e LDR.W R2, [R0,#0x1A8] ; +0x8, 0x3dfe60 ADD R6, PC; __stack_chk_guard_ptr ; +0xc, 0x3dfe64 LDR R6, [R6]; __stack_chk_guard ; +0xe, 0x3dfe66 LDR R3, [R6] ; +0x10, 0x3dfe68 STR R3, [SP,#8+var_4] ; +0x12, 0x3dfe6a LDR.W R3, [R0,#0x1AC] ; +0x14, 0x3dfe6c CMP R2, R3 ; +0x18, 0x3dfe70 BNE loc_3DFEC8 ; +0x1a, 0x3dfe72 LDR.W R0, [R0,#0x124] ; +0x1c, 0x3dfe74 LDR R1, =(unk_9AAD30 - 0x3DFE80) ; +0x20, 0x3dfe78 LDR R3, [R0] ; +0x22, 0x3dfe7a ADD R1, PC; unk_9AAD30 ; +0x24, 0x3dfe7c ADDS R1, #(unk_9AAD36 - 0x9AAD30) ; +0x26, 0x3dfe7e LDR.W R3, [R3,#0x210] ; +0x28, 0x3dfe80 BLX R3 ; +0x2c, 0x3dfe84 LDR.W R0, [R4,#0x124] ; +0x2e, 0x3dfe86 LDR R1, =(aDownloadComple - 0x3DFE92); "Download complete." ; +0x32, 0x3dfe8a LDR R3, [R0] ; +0x34, 0x3dfe8c ADD R1, PC; "Download complete." ; +0x36, 0x3dfe8e LDR.W R3, [R3,#0x1C8] ; +0x38, 0x3dfe90 BLX R3 ; +0x3c, 0x3dfe94 LDRB.W R3, [R4,#0x161] ; +0x3e, 0x3dfe96 LDR.W R0, [R4,#0x124]; this ; +0x42, 0x3dfe9a CBZ R3, loc_3DFEA6 ; +0x46, 0x3dfe9e LDR R1, =0x430C0000 ; +0x48, 0x3dfea0 LDR R2, =0x3EB33333 ; +0x4a, 0x3dfea2 B loc_3DFEAA ; +0x4c, 0x3dfea4 LDR R1, flt_3E0030; float ; +0x4e, 0x3dfea6 LDR R2, flt_3E0034; float ; +0x50, 0x3dfea8 MOVS R3, #0; float ; +0x52, 0x3dfeaa BL _ZN7cocos2d13CCLabelBMFont15limitLabelWidthEfff; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x54, 0x3dfeac MOV R0, R4; this ; +0x58, 0x3dfeb0 MOVS R1, #1; bool ; +0x5a, 0x3dfeb2 BL _ZN16CustomSongWidget9showErrorEb; CustomSongWidget::showError(bool) ; +0x5c, 0x3dfeb4 MOVS R3, #0 ; +0x60, 0x3dfeb8 MOV R0, R4; this ; +0x62, 0x3dfeba STRB.W R3, [R4,#0x176] ; +0x64, 0x3dfebc MOVS R1, #1; bool ; +0x68, 0x3dfec0 BL _ZN16CustomSongWidget20updateMultiAssetInfoEb; CustomSongWidget::updateMultiAssetInfo(bool) ; +0x6a, 0x3dfec2 B loc_3E0014 ; +0x6e, 0x3dfec6 BL _ZN7cocos2d9extension12CCHttpClient11getInstanceEv; cocos2d::extension::CCHttpClient::getInstance(void) ; +0x70, 0x3dfec8 BL _ZN7cocos2d9extension12CCHttpClient20availableThreadCountEv; cocos2d::extension::CCHttpClient::availableThreadCount(void) ; +0x74, 0x3dfecc LDR.W R5, [R4,#0x1A8] ; +0x78, 0x3dfed0 LDR.W R3, [R4,#0x1AC] ; +0x7c, 0x3dfed4 MOV R7, R0 ; +0x80, 0x3dfed8 CMP R5, R3 ; +0x82, 0x3dfeda BEQ.W loc_3E0014 ; +0x84, 0x3dfedc LDRB.W R8, [R5,#0xC] ; +0x88, 0x3dfee0 CMP.W R8, #0 ; +0x8c, 0x3dfee4 BNE loc_3DFF40 ; +0x90, 0x3dfee8 LDR R3, [R5,#8] ; +0x92, 0x3dfeea CMP R3, #1 ; +0x94, 0x3dfeec BLE loc_3DFF44 ; +0x96, 0x3dfeee MOV R0, R4; this ; +0x98, 0x3dfef0 MOVS R1, #1; bool ; +0x9a, 0x3dfef2 BL _ZN16CustomSongWidget20updateMultiAssetInfoEb; CustomSongWidget::updateMultiAssetInfo(bool) ; +0x9c, 0x3dfef4 LDR.W R0, [R4,#0x124] ; +0xa0, 0x3dfef8 MOV R1, SP ; +0xa4, 0x3dfefc MOVS R2, #0xFF ; +0xa6, 0x3dfefe LDR R3, [R0] ; +0xa8, 0x3dff00 STRB.W R2, [SP,#8+var_8] ; +0xaa, 0x3dff02 MOVS R2, #0x32 ; '2' ; +0xae, 0x3dff06 STRB.W R2, [SP,#8+var_7] ; +0xb0, 0x3dff08 MOVS R2, #0x19 ; +0xb4, 0x3dff0c LDR.W R3, [R3,#0x210] ; +0xb6, 0x3dff0e STRB.W R2, [SP,#8+var_6] ; +0xba, 0x3dff12 BLX R3 ; +0xbe, 0x3dff16 LDR.W R0, [R4,#0x124] ; +0xc0, 0x3dff18 LDR R1, =(aSomeAssetsFail - 0x3DFF24); "Some assets failed to download." ; +0xc4, 0x3dff1c LDR R3, [R0] ; +0xc6, 0x3dff1e ADD R1, PC; "Some assets failed to download." ; +0xc8, 0x3dff20 LDR.W R3, [R3,#0x1C8] ; +0xca, 0x3dff22 BLX R3 ; +0xce, 0x3dff26 LDR.W R0, [R4,#0x124]; this ; +0xd0, 0x3dff28 LDR R1, flt_3E0030; float ; +0xd4, 0x3dff2c MOVS R3, #0; float ; +0xd6, 0x3dff2e LDR R2, flt_3E0034; float ; +0xd8, 0x3dff30 BL _ZN7cocos2d13CCLabelBMFont15limitLabelWidthEfff; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0xda, 0x3dff32 MOV R0, R4; this ; +0xde, 0x3dff36 MOV R1, R8; bool ; +0xe0, 0x3dff38 BL _ZN16CustomSongWidget9showErrorEb; CustomSongWidget::showError(bool) ; +0xe2, 0x3dff3a B loc_3DFFEC ; +0xe6, 0x3dff3e ADDS R5, #0x10 ; +0xe8, 0x3dff40 B loc_3DFEDA ; +0xea, 0x3dff42 LDR R2, [R5,#4] ; +0xec, 0x3dff44 MOVS R3, #1 ; +0xee, 0x3dff46 STRB R3, [R5,#0xC] ; +0xf0, 0x3dff48 CMP R2, R3 ; +0xf2, 0x3dff4a BNE loc_3DFFDE ; +0xf4, 0x3dff4c LDR R5, [R5] ; +0xf6, 0x3dff4e LDR R3, =(aActivatesOther+0x31); "s of X position. These triggers need to"... ; +0xf8, 0x3dff50 CMP R5, R3 ; +0xfa, 0x3dff52 BGT loc_3DFFD2 ; +0xfc, 0x3dff54 ADD.W R10, R4, #0x1BC ; +0xfe, 0x3dff56 LDR.W R1, [R4,#0x1C0] ; +0x102, 0x3dff5a MOV R9, R10 ; +0x106, 0x3dff5e CBZ R1, loc_3DFF76 ; +0x108, 0x3dff60 LDR R3, [R1,#0x10] ; +0x10a, 0x3dff62 MOV R9, R1 ; +0x10c, 0x3dff64 CMP R5, R3 ; +0x10e, 0x3dff66 ITTEE LT ; +0x110, 0x3dff68 LDRLT R3, [R1,#8] ; +0x112, 0x3dff6a MOVLT R2, #1 ; +0x114, 0x3dff6c LDRGE R3, [R1,#0xC] ; +0x116, 0x3dff6e MOVGE R2, #0 ; +0x118, 0x3dff70 MOV R1, R3 ; +0x11a, 0x3dff72 B loc_3DFF60 ; +0x11c, 0x3dff74 CBZ R2, loc_3DFF88 ; +0x11e, 0x3dff76 LDR.W R8, [R4,#0x1C4] ; +0x120, 0x3dff78 CMP R9, R8 ; +0x124, 0x3dff7c BEQ loc_3DFF92 ; +0x126, 0x3dff7e MOV R0, R9 ; +0x128, 0x3dff80 BL sub_762018 ; +0x12a, 0x3dff82 B loc_3DFF8A ; +0x12e, 0x3dff86 MOV R0, R9 ; +0x130, 0x3dff88 LDR R3, [R0,#0x10] ; +0x132, 0x3dff8a CMP R3, R5 ; +0x134, 0x3dff8c BGE loc_3DFFC4 ; +0x136, 0x3dff8e MOV R8, R9 ; +0x138, 0x3dff90 CMP R8, R10 ; +0x13a, 0x3dff92 BEQ loc_3E000E ; +0x13c, 0x3dff94 LDR.W R3, [R8,#0x10] ; +0x13e, 0x3dff96 CMP R5, R3 ; +0x142, 0x3dff9a ITE GE ; +0x144, 0x3dff9c MOVGE.W R9, #0 ; +0x146, 0x3dff9e MOVLT.W R9, #1 ; +0x14a, 0x3dffa2 MOVS R0, #0x14; unsigned int ; +0x14e, 0x3dffa6 BL _Znwj; operator new(uint) ; +0x150, 0x3dffa8 MOV R3, R10 ; +0x154, 0x3dffac MOV R2, R8 ; +0x156, 0x3dffae MOV R1, R0 ; +0x158, 0x3dffb0 STR R5, [R0,#0x10] ; +0x15a, 0x3dffb2 MOV R0, R9 ; +0x15c, 0x3dffb4 BL sub_7620E8 ; +0x15e, 0x3dffb6 LDR.W R3, [R4,#0x1CC] ; +0x162, 0x3dffba ADDS R3, #1 ; +0x166, 0x3dffbe STR.W R3, [R4,#0x1CC] ; +0x168, 0x3dffc0 BL _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x16c, 0x3dffc4 MOV R1, R5; int ; +0x170, 0x3dffc8 MOVS R2, #0; bool ; +0x172, 0x3dffca BL _ZN20MusicDownloadManager11getSongInfoEib; MusicDownloadManager::getSongInfo(int,bool) ; +0x174, 0x3dffcc B loc_3DFFEC ; +0x178, 0x3dffd0 BL _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x17a, 0x3dffd2 MOV R1, R5; int ; +0x17e, 0x3dffd6 BL _ZN20MusicDownloadManager12downloadSongEi; MusicDownloadManager::downloadSong(int) ; +0x180, 0x3dffd8 B loc_3DFFEC ; +0x184, 0x3dffdc CMP R2, #2 ; +0x186, 0x3dffde BNE loc_3DFFEC ; +0x188, 0x3dffe0 BL _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x18a, 0x3dffe2 LDR R1, [R5]; int ; +0x18e, 0x3dffe6 BL _ZN20MusicDownloadManager11downloadSFXEi; MusicDownloadManager::downloadSFX(int) ; +0x190, 0x3dffe8 BL _ZN7cocos2d9extension12CCHttpClient11getInstanceEv; cocos2d::extension::CCHttpClient::getInstance(void) ; +0x194, 0x3dffec BL _ZN7cocos2d9extension12CCHttpClient20availableThreadCountEv; cocos2d::extension::CCHttpClient::availableThreadCount(void) ; +0x198, 0x3dfff0 LDR.W R2, [R4,#0x1A8] ; +0x19c, 0x3dfff4 LDR.W R3, [R4,#0x1AC] ; +0x1a0, 0x3dfff8 CMP R2, R3 ; +0x1a4, 0x3dfffc BEQ loc_3E0014 ; +0x1a6, 0x3dfffe CBZ R0, loc_3E0014 ; +0x1a8, 0x3e0000 CMP R0, R7 ; +0x1aa, 0x3e0002 BCS loc_3E0014 ; +0x1ac, 0x3e0004 MOV R0, R4; this ; +0x1ae, 0x3e0006 BL _ZN16CustomSongWidget21processNextMultiAssetEv; CustomSongWidget::processNextMultiAsset(void) ; +0x1b0, 0x3e0008 B loc_3E0014 ; +0x1b4, 0x3e000c MOV.W R9, #1 ; +0x1b6, 0x3e000e B loc_3DFFA6 ; +0x1ba, 0x3e0012 LDR R2, [SP,#8+var_4] ; +0x1bc, 0x3e0014 LDR R3, [R6] ; +0x1be, 0x3e0016 CMP R2, R3 ; +0x1c0, 0x3e0018 BEQ loc_3E0020 ; +0x1c2, 0x3e001a BLX __stack_chk_fail ; +0x1c4, 0x3e001c ADD SP, SP, #8 ; +0x1c8, 0x3e0020 POP.W {R4-R10,PC} ; +0x1ca, 0x3e0022