{"type": "func", "start": 8838524, "end": 8838796, "name": "CustomSongWidget::loadSongInfoFinished", "pseudocode": "// \n// CustomSongWidget::loadSongInfoFinished from 0x86dd7c to 0x86de8c (272 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'CustomSongWidget::loadSongInfoFinished @ 0x86de90\n// > <???> @ 0xd3450\n// > <???> @ 0x1442e80\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:55:44 +0000\n// \n\n__int64 __fastcall CustomSongWidget::loadSongInfoFinished(CustomSongWidget *this, SongInfoObject *a2)\n{\n  __int64 *v4; // x0\n  int v5; // w1\n  int v6; // w2\n  cocos2d::CCDelayTime *started; // x0\n  cocos2d::CCSequence *v9; // x21\n  cocos2d::CCFiniteTimeAction *v10; // x0\n  cocos2d::CCAction *v11; // x0\n  MusicDownloadManager *v12; // x0\n  MusicDownloadManager *v13; // x0\n  int v14; // [xsp+34h] [xbp+34h] BYREF\n\n  v4 = *((__int64 **)this + 80);\n  v5 = *((_DWORD *)a2 + 79);\n  while ( v4 )\n  {\n    while ( 1 )\n    {\n      v6 = *((_DWORD *)v4 + 7);\n      if ( v5 >= v6 )\n        break;\n      v4 = (__int64 *)*v4;\n      if ( !v4 )\n        goto LABEL_5;\n    }\n    if ( v5 <= v6 )\n    {\n      v14 = v5;\n      v12 = (MusicDownloadManager *)std::__tree<int>::__erase_unique<int>((_QWORD *)this + 79, &v14);\n      v13 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v12);\n      MusicDownloadManager::downloadSong(v13, *((_DWORD *)a2 + 79));\n      return _stack_chk_guard;\n    }\n    v4 = (__int64 *)v4[1];\n  }\nLABEL_5:\n  if ( (unsigned __int8)CustomSongWidget::verifySongID(this, v5) )\n  {\n    CustomSongWidget::updateSongObject(this, a2);\n    started = (cocos2d::CCDelayTime *)*((unsigned __int8 *)this + 499);\n    if ( *((_BYTE *)this + 499) )\n      started = (cocos2d::CCDelayTime *)CustomSongWidget::startDownload(this);\n    v9 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(started, 0.0);\n    v10 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, CustomSongWidget::updateSongInfo, 0);\n    v11 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v9, v10, 0);\n    cocos2d::CCNode::runAction(this, v11);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; CustomSongWidget::loadSongInfoFinished from 0x86dd7c to 0x86de8c (272 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'CustomSongWidget::loadSongInfoFinished @ 0x86de90\n; > <???> @ 0xd3450\n; > <???> @ 0x1442e80\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:55:44 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x86dd7c\nMOV             X29, SP                                                ; +0x4, 0x86dd80\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x86dd84\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x86dd88\nSTR             X21, [SP,#0x40+var_20]                                 ; +0x10, 0x86dd8c\nMOV             X20, X0                                                ; +0x14, 0x86dd90\nMOV             X21, X1                                                ; +0x18, 0x86dd94\nLDR             X0, [X0,#0x280]                                        ; +0x1c, 0x86dd98\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x86dd9c\nLDR             W1, [X1,#0x13C]; int                                   ; +0x24, 0x86dda0\nLDR             X2, [X2]                                               ; +0x28, 0x86dda4\nSTR             X2, [X29,#0x40+var_8]                                  ; +0x2c, 0x86dda8\nCBZ             X0, loc_86DDC4                                         ; +0x30, 0x86ddac\nLDR             W2, [X0,#0x1C]                                         ; +0x34, 0x86ddb0\nCMP             W1, W2                                                 ; +0x38, 0x86ddb4\nB.GE            loc_86DDF8                                             ; +0x3c, 0x86ddb8\nLDR             X0, [X0]                                               ; +0x40, 0x86ddbc\nCBNZ            X0, loc_86DDB0                                         ; +0x44, 0x86ddc0\nMOV             X0, X20; this                                          ; +0x48, 0x86ddc4\nBL              _ZN16CustomSongWidget12verifySongIDEi; CustomSongWidget::verifySongID(int) ; +0x4c, 0x86ddc8\nUXTB            W0, W0                                                 ; +0x50, 0x86ddcc\nCBNZ            W0, loc_86DE04                                         ; +0x54, 0x86ddd0\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x58, 0x86ddd4\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x5c, 0x86ddd8\nLDR             X0, [X19]                                              ; +0x60, 0x86dddc\nCMP             X1, X0                                                 ; +0x64, 0x86dde0\nB.NE            loc_86DE88                                             ; +0x68, 0x86dde4\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x6c, 0x86dde8\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x70, 0x86ddec\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x74, 0x86ddf0\nRET                                                                    ; +0x78, 0x86ddf4\nB.LE            loc_86DE58                                             ; +0x7c, 0x86ddf8\nLDR             X0, [X0,#8]                                            ; +0x80, 0x86ddfc\nB               loc_86DDAC                                             ; +0x84, 0x86de00\nMOV             X0, X20; this                                          ; +0x88, 0x86de04\nMOV             X1, X21; SongInfoObject *                              ; +0x8c, 0x86de08\nBL              _ZN16CustomSongWidget16updateSongObjectEP14SongInfoObject; CustomSongWidget::updateSongObject(SongInfoObject *) ; +0x90, 0x86de0c\nLDRB            W0, [X20,#0x1F3]; this                                 ; +0x94, 0x86de10\nCBNZ            W0, loc_86DE7C                                         ; +0x98, 0x86de14\nFMOV            S0, WZR; float                                         ; +0x9c, 0x86de18\nBL              _ZN7cocos2d11CCDelayTime6createEf; cocos2d::CCDelayTime::create(float) ; +0xa0, 0x86de1c\nMOV             X21, X0                                                ; +0xa4, 0x86de20\nADRP            X1, #_ZN16CustomSongWidget14updateSongInfoEv_ptr@PAGE  ; +0xa8, 0x86de24\nMOV             X0, X20                                                ; +0xac, 0x86de28\nMOV             X2, #0                                                 ; +0xb0, 0x86de2c\nLDR             X1, [X1,#_ZN16CustomSongWidget14updateSongInfoEv_ptr@PAGEOFF]; CustomSongWidget::updateSongInfo(void) ... ; +0xb4, 0x86de30\nBL              _ZN7cocos2d10CCCallFunc6createEPNS_8CCObjectEMS1_FvvE; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0xb8, 0x86de34\nMOV             X1, X0; cocos2d::CCFiniteTimeAction *                  ; +0xbc, 0x86de38\nMOV             X2, #0                                                 ; +0xc0, 0x86de3c\nMOV             X0, X21; this                                          ; +0xc4, 0x86de40\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0xc8, 0x86de44\nMOV             X1, X0; cocos2d::CCAction *                            ; +0xcc, 0x86de48\nMOV             X0, X20; this                                          ; +0xd0, 0x86de4c\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xd4, 0x86de50\nB               loc_86DDD4                                             ; +0xd8, 0x86de54\nADD             X2, X29, #0x40+arg_0                                   ; +0xdc, 0x86de58\nADD             X0, X20, #0x278                                        ; +0xe0, 0x86de5c\nSTR             W1, [X2,#-0xC]!                                        ; +0xe4, 0x86de60\nMOV             X1, X2                                                 ; +0xe8, 0x86de64\nBL              _ZNSt6__ndk16__treeIiNS_4lessIiEENS_9allocatorIiEEE14__erase_uniqueIiEEmRKT_; std::__tree<int>::__erase_unique<int>(int const&) ; +0xec, 0x86de68\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0xf0, 0x86de6c\nLDR             W1, [X21,#0x13C]; int                                  ; +0xf4, 0x86de70\nBL              _ZN20MusicDownloadManager12downloadSongEi; MusicDownloadManager::downloadSong(int) ; +0xf8, 0x86de74\nB               loc_86DDD4                                             ; +0xfc, 0x86de78\nMOV             X0, X20; this                                          ; +0x100, 0x86de7c\nBL              _ZN16CustomSongWidget13startDownloadEv; CustomSongWidget::startDownload(void) ; +0x104, 0x86de80\nB               loc_86DE18                                             ; +0x108, 0x86de84\nBL              .__stack_chk_fail                                      ; +0x10c, 0x86de88", "xrefs": ["`non-virtual thunk to'CustomSongWidget::loadSongInfoFinished @ 0x86de90", "<???> @ 0xd3450", "<???> @ 0x1442e80"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}