{"type": "func", "start": 4064932, "end": 4065106, "name": "CustomSongWidget::loadSongInfoFinished", "pseudocode": "// \n// CustomSongWidget::loadSongInfoFinished from 0x3e06a4 to 0x3e0752 (174 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CustomSongWidget::loadSongInfoFinished @ 0x3e0760\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid CustomSongWidget::loadSongInfoFinished(CustomSongWidget *a1, SongInfoObject *a2)\n{\n  std::set<int> *p_m_nextSongIDs; // r8\n  MusicDownloadManager *v5; // r0\n  cocos2d::CCDelayTime *v6; // r0\n  cocos2d::CCSequence *v7; // r8\n  cocos2d::CCFiniteTimeAction *v8; // r0\n  cocos2d::CCAction *v9; // r0\n  int v10[2]; // [sp+4h] [bp-Ch] BYREF\n\n  v10[0] = (int)a2;\n  p_m_nextSongIDs = &a1->m_nextSongIDs;\n  v10[0] = a2->m_songID;\n  if ( &a1->m_nextSongIDs._M_t._M_impl._M_header == (std::_Rb_tree_node_base *)std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::find(\n                                                                                 (int)&a1->m_nextSongIDs,\n                                                                                 v10) )\n  {\n    if ( CustomSongWidget::verifySongID(a1, a2->m_songID) )\n    {\n      CustomSongWidget::updateSongObject(a1, a2);\n      if ( a1->m_isNotDownloading )\n        CustomSongWidget::startDownload(a1);\n      v6 = cocos2d::CCDelayTime::create(0.0);\n      v10[1] = 0;\n      v10[0] = (int)CustomSongWidget::updateSongInfo;\n      v7 = (cocos2d::CCSequence *)v6;\n      v8 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, CustomSongWidget::updateSongInfo, 0);\n      v9 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v7, v8, 0);\n      cocos2d::CCNode::runAction(a1, v9);\n    }\n  }\n  else\n  {\n    v10[0] = a2->m_songID;\n    std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::erase(p_m_nextSongIDs, v10);\n    v5 = MusicDownloadManager::sharedState();\n    MusicDownloadManager::downloadSong(v5, a2->m_songID);\n  }\n}", "assembly": "; \n; CustomSongWidget::loadSongInfoFinished from 0x3e06a4 to 0x3e0752 (174 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CustomSongWidget::loadSongInfoFinished @ 0x3e0760\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH.W          {R0-R8,LR}                                             ; +0x0, 0x3e06a4\nADD.W           R8, R0, #0x1B8                                         ; +0x4, 0x3e06a8\nLDR             R7, =(__stack_chk_guard_ptr - 0x3E06B8)                ; +0x8, 0x3e06ac\nADD             R5, SP, #0x10+var_s0                                   ; +0xa, 0x3e06ae\nMOV             R4, R0                                                 ; +0xc, 0x3e06b0\nMOV             R6, R1                                                 ; +0xe, 0x3e06b2\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0x10, 0x3e06b4\nLDR             R7, [R7]; __stack_chk_guard                            ; +0x12, 0x3e06b6\nMOV             R0, R8                                                 ; +0x14, 0x3e06b8\nLDR             R3, [R7]                                               ; +0x16, 0x3e06ba\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x18, 0x3e06bc\nLDR.W           R3, [R1,#0x108]                                        ; +0x1a, 0x3e06be\nSTR.W           R3, [R5,#-0xC]!                                        ; +0x1e, 0x3e06c2\nMOV             R1, R5                                                 ; +0x22, 0x3e06c6\nBL              _ZNKSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE4findERKi; std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::find(int const&) ; +0x24, 0x3e06c8\nADD.W           R3, R4, #0x1BC                                         ; +0x28, 0x3e06cc\nCMP             R3, R0                                                 ; +0x2c, 0x3e06d0\nBEQ             loc_3E06F0                                             ; +0x2e, 0x3e06d2\nLDR.W           R3, [R6,#0x108]                                        ; +0x30, 0x3e06d4\nMOV             R1, R5                                                 ; +0x34, 0x3e06d8\nMOV             R0, R8                                                 ; +0x36, 0x3e06da\nSTR             R3, [SP,#0x10+var_C]                                   ; +0x38, 0x3e06dc\nBL              _ZNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE5eraseERKi; std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::erase(int const&) ; +0x3a, 0x3e06de\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x3e, 0x3e06e2\nLDR.W           R1, [R6,#0x108]; int                                   ; +0x42, 0x3e06e6\nBL              _ZN20MusicDownloadManager12downloadSongEi; MusicDownloadManager::downloadSong(int) ; +0x46, 0x3e06ea\nB               loc_3E0740                                             ; +0x4a, 0x3e06ee\nMOV             R0, R4; this                                           ; +0x4c, 0x3e06f0\nLDR.W           R1, [R6,#0x108]; int                                   ; +0x4e, 0x3e06f2\nBL              _ZN16CustomSongWidget12verifySongIDEi; CustomSongWidget::verifySongID(int) ; +0x52, 0x3e06f6\nCBZ             R0, loc_3E0740                                         ; +0x56, 0x3e06fa\nMOV             R0, R4; this                                           ; +0x58, 0x3e06fc\nMOV             R1, R6; SongInfoObject *                               ; +0x5a, 0x3e06fe\nBL              _ZN16CustomSongWidget16updateSongObjectEP14SongInfoObject; CustomSongWidget::updateSongObject(SongInfoObject *) ; +0x5c, 0x3e0700\nLDRB.W          R3, [R4,#0x15F]                                        ; +0x60, 0x3e0704\nCBZ             R3, loc_3E0710                                         ; +0x64, 0x3e0708\nMOV             R0, R4; this                                           ; +0x66, 0x3e070a\nBL              _ZN16CustomSongWidget13startDownloadEv; CustomSongWidget::startDownload(void) ; +0x68, 0x3e070c\nMOVS            R0, #0; this                                           ; +0x6c, 0x3e0710\nMOVS            R6, #0                                                 ; +0x6e, 0x3e0712\nBL              _ZN7cocos2d11CCDelayTime6createEf; cocos2d::CCDelayTime::create(float) ; +0x70, 0x3e0714\nLDR             R3, =(_ZN16CustomSongWidget14updateSongInfoEv_ptr - 0x3E0720) ; +0x74, 0x3e0718\nSTR             R6, [SP,#0x10+var_8]                                   ; +0x76, 0x3e071a\nADD             R3, PC; _ZN16CustomSongWidget14updateSongInfoEv_ptr    ; +0x78, 0x3e071c\nLDR             R3, [R3]; CustomSongWidget::updateSongInfo(void)       ; +0x7a, 0x3e071e\nSTR             R3, [SP,#0x10+var_C]                                   ; +0x7c, 0x3e0720\nLDM.W           R5, {R1,R2}                                            ; +0x7e, 0x3e0722\nMOV             R8, R0                                                 ; +0x82, 0x3e0726\nMOV             R0, R4                                                 ; +0x84, 0x3e0728\nBL              _ZN7cocos2d10CCCallFunc6createEPNS_8CCObjectEMS1_FvvE; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x86, 0x3e072a\nMOV             R2, R6                                                 ; +0x8a, 0x3e072e\nMOV             R1, R0; cocos2d::CCFiniteTimeAction *                  ; +0x8c, 0x3e0730\nMOV             R0, R8; this                                           ; +0x8e, 0x3e0732\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x90, 0x3e0734\nMOV             R1, R0; cocos2d::CCAction *                            ; +0x94, 0x3e0738\nMOV             R0, R4; this                                           ; +0x96, 0x3e073a\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x98, 0x3e073c\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x9c, 0x3e0740\nLDR             R3, [R7]                                               ; +0x9e, 0x3e0742\nCMP             R2, R3                                                 ; +0xa0, 0x3e0744\nBEQ             loc_3E074C                                             ; +0xa2, 0x3e0746\nBLX             __stack_chk_fail                                       ; +0xa4, 0x3e0748\nADD             SP, SP, #0x10                                          ; +0xa8, 0x3e074c\nPOP.W           {R4-R8,PC}                                             ; +0xaa, 0x3e074e", "xrefs": ["`non-virtual thunk to'CustomSongWidget::loadSongInfoFinished @ 0x3e0760"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}