{"type": "func", "start": 5135996, "end": 5136168, "name": "CustomSongWidget::loadSongInfoFinished", "pseudocode": "// \n// CustomSongWidget::loadSongInfoFinished from 0x4e5e7c to 0x4e5f28 (172 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CustomSongWidget::loadSongInfoFinished @ 0x4e5f34\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:51:05 +0000\n// \n\nint __fastcall CustomSongWidget::loadSongInfoFinished(CustomSongWidget *this, SongInfoObject *a2)\n{\n  int v3; // r2\n  _DWORD *v5; // r3\n  int v6; // r1\n  int *v7; // r0\n  MusicDownloadManager *v8; // r0\n  int result; // r0\n  float v10; // r1\n  cocos2d::CCSequence *v11; // r7\n  cocos2d::CCFiniteTimeAction *v12; // r0\n  cocos2d::CCAction *v13; // r0\n  int v14; // [sp+4h] [bp-10h] BYREF\n\n  v3 = *((_DWORD *)a2 + 66);\n  v5 = *((_DWORD **)this + 109);\n  while ( v5 )\n  {\n    v6 = v5[4];\n    if ( v3 >= v6 )\n    {\n      if ( v6 >= v3 )\n      {\n        v14 = v3;\n        v7 = std::__tree<int>::__erase_unique<int>((int **)this + 108, &v14);\n        v8 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)v7);\n        return MusicDownloadManager::downloadSong(v8, *((_DWORD *)a2 + 66));\n      }\n      v5 = (_DWORD *)v5[1];\n    }\n    else\n    {\n      v5 = (_DWORD *)*v5;\n    }\n  }\n  result = CustomSongWidget::verifySongID(this, v3);\n  if ( result )\n  {\n    CustomSongWidget::updateSongObject(this, a2);\n    if ( *((_BYTE *)this + 355) )\n      CustomSongWidget::startDownload(this);\n    v11 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(nullptr, v10);\n    v12 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, CustomSongWidget::updateSongInfo, 0);\n    v13 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v11, v12, 0);\n    return cocos2d::CCNode::runAction(this, v13);\n  }\n  return result;\n}", "assembly": "; \n; CustomSongWidget::loadSongInfoFinished from 0x4e5e7c to 0x4e5f28 (172 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CustomSongWidget::loadSongInfoFinished @ 0x4e5f34\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:51:05 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x4e5e7c\nMOV             R6, R1                                                 ; +0x2, 0x4e5e7e\nLDR             R1, =(__stack_chk_guard_ptr - 0x4E5E8E)                ; +0x4, 0x4e5e80\nSUB             SP, SP, #0x14                                          ; +0x6, 0x4e5e82\nLDR.W           R2, [R6,#0x108]                                        ; +0x8, 0x4e5e84\nMOV             R4, R0                                                 ; +0xc, 0x4e5e88\nADD             R1, PC; __stack_chk_guard_ptr                          ; +0xe, 0x4e5e8a\nLDR             R1, [R1]; __stack_chk_guard                            ; +0x10, 0x4e5e8c\nLDR             R3, [R1]                                               ; +0x12, 0x4e5e8e\nMOV             R5, R1                                                 ; +0x14, 0x4e5e90\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x16, 0x4e5e92\nLDR.W           R3, [R0,#0x1B4]                                        ; +0x18, 0x4e5e94\nCBZ             R3, loc_4E5EC8                                         ; +0x1c, 0x4e5e98\nLDR             R1, [R3,#0x10]                                         ; +0x1e, 0x4e5e9a\nCMP             R2, R1                                                 ; +0x20, 0x4e5e9c\nBGE             loc_4E5EA4                                             ; +0x22, 0x4e5e9e\nLDR             R3, [R3]                                               ; +0x24, 0x4e5ea0\nB               loc_4E5E98                                             ; +0x26, 0x4e5ea2\nCMP             R1, R2                                                 ; +0x28, 0x4e5ea4\nBGE             loc_4E5EAC                                             ; +0x2a, 0x4e5ea6\nLDR             R3, [R3,#4]                                            ; +0x2c, 0x4e5ea8\nB               loc_4E5E98                                             ; +0x2e, 0x4e5eaa\nADD             R1, SP, #0x14+var_4                                    ; +0x30, 0x4e5eac\nADD.W           R0, R4, #0x1B0                                         ; +0x32, 0x4e5eae\nSTR.W           R2, [R1,#-0xC]!                                        ; +0x36, 0x4e5eb2\nBL              _ZNSt6__ndk16__treeIiNS_4lessIiEENS_9allocatorIiEEE14__erase_uniqueIiEEjRKT_; std::__tree<int>::__erase_unique<int>(int const&) ; +0x3a, 0x4e5eb6\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x3e, 0x4e5eba\nLDR.W           R1, [R6,#0x108]; int                                   ; +0x42, 0x4e5ebe\nBL              _ZN20MusicDownloadManager12downloadSongEi; MusicDownloadManager::downloadSong(int) ; +0x46, 0x4e5ec2\nB               loc_4E5F18                                             ; +0x4a, 0x4e5ec6\nMOV             R0, R4; this                                           ; +0x4c, 0x4e5ec8\nMOV             R1, R2; int                                            ; +0x4e, 0x4e5eca\nBL              _ZN16CustomSongWidget12verifySongIDEi; CustomSongWidget::verifySongID(int) ; +0x50, 0x4e5ecc\nCBZ             R0, loc_4E5F18                                         ; +0x54, 0x4e5ed0\nMOV             R0, R4; this                                           ; +0x56, 0x4e5ed2\nMOV             R1, R6; SongInfoObject *                               ; +0x58, 0x4e5ed4\nBL              _ZN16CustomSongWidget16updateSongObjectEP14SongInfoObject; CustomSongWidget::updateSongObject(SongInfoObject *) ; +0x5a, 0x4e5ed6\nLDRB.W          R3, [R4,#0x163]                                        ; +0x5e, 0x4e5eda\nCBZ             R3, loc_4E5EE6                                         ; +0x62, 0x4e5ede\nMOV             R0, R4; this                                           ; +0x64, 0x4e5ee0\nBL              _ZN16CustomSongWidget13startDownloadEv; CustomSongWidget::startDownload(void) ; +0x66, 0x4e5ee2\nMOVS            R0, #0; this                                           ; +0x6a, 0x4e5ee6\nMOVS            R6, #0                                                 ; +0x6c, 0x4e5ee8\nBL              _ZN7cocos2d11CCDelayTime6createEf; cocos2d::CCDelayTime::create(float) ; +0x6e, 0x4e5eea\nLDR             R3, =(_ZN16CustomSongWidget14updateSongInfoEv_ptr - 0x4E5EF6) ; +0x72, 0x4e5eee\nSTR             R6, [SP,#0x14+var_C]                                   ; +0x74, 0x4e5ef0\nADD             R3, PC; _ZN16CustomSongWidget14updateSongInfoEv_ptr    ; +0x76, 0x4e5ef2\nLDR             R3, [R3]; CustomSongWidget::updateSongInfo(void)       ; +0x78, 0x4e5ef4\nSTR             R3, [SP,#0x14+var_10]                                  ; +0x7a, 0x4e5ef6\nADD             R3, SP, #0x14+var_10                                   ; +0x7c, 0x4e5ef8\nLDM.W           R3, {R1,R2}                                            ; +0x7e, 0x4e5efa\nMOV             R7, R0                                                 ; +0x82, 0x4e5efe\nMOV             R0, R4                                                 ; +0x84, 0x4e5f00\nBL              _ZN7cocos2d10CCCallFunc6createEPNS_8CCObjectEMS1_FvvE; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x86, 0x4e5f02\nMOV             R2, R6                                                 ; +0x8a, 0x4e5f06\nMOV             R1, R0; cocos2d::CCFiniteTimeAction *                  ; +0x8c, 0x4e5f08\nMOV             R0, R7; this                                           ; +0x8e, 0x4e5f0a\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x90, 0x4e5f0c\nMOV             R1, R0; cocos2d::CCAction *                            ; +0x94, 0x4e5f10\nMOV             R0, R4; this                                           ; +0x96, 0x4e5f12\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x98, 0x4e5f14\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x9c, 0x4e5f18\nLDR             R3, [R5]                                               ; +0x9e, 0x4e5f1a\nCMP             R2, R3                                                 ; +0xa0, 0x4e5f1c\nBEQ             loc_4E5F24                                             ; +0xa2, 0x4e5f1e\nBLX             __stack_chk_fail                                       ; +0xa4, 0x4e5f20\nADD             SP, SP, #0x14                                          ; +0xa8, 0x4e5f24\nPOP             {R4-R7,PC}                                             ; +0xaa, 0x4e5f26", "xrefs": ["`non-virtual thunk to'CustomSongWidget::loadSongInfoFinished @ 0x4e5f34"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}