{"type": "func", "start": 8831780, "end": 8832004, "name": "CustomSongWidget::getSongInfoIfUnloaded", "pseudocode": "// \n// CustomSongWidget::getSongInfoIfUnloaded from 0x86c324 to 0x86c404 (224 bytes)\n// \n// 4 xrefs:\n// > CustomSongLayer::onSearch @ 0x97f464\n// > CustomSongLayer::init @ 0x98122c\n// > AudioAssetsPopup::init @ 0xc8e528\n// > <???> @ 0xe2150\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:43 +0000\n// \n\n__int64 __fastcall CustomSongWidget::getSongInfoIfUnloaded(CustomSongWidget *this)\n{\n  __int64 v2; // x0\n  __int64 *v3; // x0\n  char v5; // [xsp+20h] [xbp+20h] BYREF\n  _DWORD v6[2]; // [xsp+21h] [xbp+21h] BYREF\n  char v7; // [xsp+29h] [xbp+29h]\n  __int16 v8; // [xsp+2Ah] [xbp+2Ah]\n  int v9; // [xsp+2Ch] [xbp+2Ch]\n  void *v10; // [xsp+30h] [xbp+30h]\n\n  v2 = *((_QWORD *)this + 42);\n  if ( v2 && *(_BYTE *)(v2 + 432) )\n  {\n    v3 = (__int64 *)(v2 + 320);\n    v7 = 0;\n    v8 = 0;\n    v9 = 0;\n    strcpy((char *)v6, \"Loading\");\n    v10 = nullptr;\n    v5 = 14;\n    if ( v3 != (__int64 *)&v5 )\n    {\n      std::string::assign(v3, v6, 7u);\n      if ( (v5 & 1) != 0 )\n        operator delete(v10);\n    }\n    CustomSongWidget::updateSongInfo(this);\n    CustomSongWidget::onGetSongInfo((__int64)this, nullptr);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; CustomSongWidget::getSongInfoIfUnloaded from 0x86c324 to 0x86c404 (224 bytes)\n; \n; 4 xrefs:\n; > CustomSongLayer::onSearch @ 0x97f464\n; > CustomSongLayer::init @ 0x98122c\n; > AudioAssetsPopup::init @ 0xc8e528\n; > <???> @ 0xe2150\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:43 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x86c324\nMOV             X29, SP                                                ; +0x4, 0x86c328\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x86c32c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x86c330\nMOV             X20, X0                                                ; +0x10, 0x86c334\nLDR             X0, [X0,#0x150]                                        ; +0x14, 0x86c338\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x86c33c\nLDR             X1, [X1]                                               ; +0x1c, 0x86c340\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x20, 0x86c344\nCBZ             X0, loc_86C3C4                                         ; +0x24, 0x86c348\nLDRB            W1, [X0,#0x1B0]                                        ; +0x28, 0x86c34c\nCBZ             W1, loc_86C3C4                                         ; +0x2c, 0x86c350\nADRP            X2, #aLoading_0@PAGE; \"Loading\"                        ; +0x30, 0x86c354\nADD             X1, X29, #0x40+var_1F; int                             ; +0x34, 0x86c358\nADD             X2, X2, #aLoading_0@PAGEOFF; \"Loading\"                 ; +0x38, 0x86c35c\nADD             X3, X29, #0x40+var_20                                  ; +0x3c, 0x86c360\nADD             X0, X0, #0x140; int                                    ; +0x40, 0x86c364\nSTR             XZR, [X29,#0x40+var_18]                                ; +0x44, 0x86c368\nCMP             X0, X3                                                 ; +0x48, 0x86c36c\nMOV             W5, #0xE                                               ; +0x4c, 0x86c370\nLDR             W4, [X2]; \"Loading\"                                    ; +0x50, 0x86c374\nLDRH            W3, [X2,#(aLoading_0+4 - 0x114B668)]; \"ing\"            ; +0x54, 0x86c378\nSTUR            W4, [X29,#0x40+var_1F]                                 ; +0x58, 0x86c37c\nLDRB            W2, [X2,#(aLoading_0+6 - 0x114B668)]; \"g\"              ; +0x5c, 0x86c380\nSTR             XZR, [X29,#0x40+var_10]                                ; +0x60, 0x86c384\nSTRB            W5, [X29,#0x40+var_20]                                 ; +0x64, 0x86c388\nSTRH            W3, [X1,#4]                                            ; +0x68, 0x86c38c\nSTRB            W2, [X1,#6]                                            ; +0x6c, 0x86c390\nB.EQ            loc_86C3B0                                             ; +0x70, 0x86c394\nMOV             X2, #7; size_t                                         ; +0x74, 0x86c398\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKcm; std::string::assign(char const*,ulong) ; +0x78, 0x86c39c\nLDRB            W0, [X29,#0x40+var_20]                                 ; +0x7c, 0x86c3a0\nTBZ             W0, #0, loc_86C3B0                                     ; +0x80, 0x86c3a4\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0x84, 0x86c3a8\nBL              _ZdlPv; operator delete(void *)                        ; +0x88, 0x86c3ac\nMOV             X0, X20; this                                          ; +0x8c, 0x86c3b0\nBL              _ZN16CustomSongWidget14updateSongInfoEv; CustomSongWidget::updateSongInfo(void) ; +0x90, 0x86c3b4\nMOV             X0, X20; this                                          ; +0x94, 0x86c3b8\nMOV             X1, #0; cocos2d::CCObject *                            ; +0x98, 0x86c3bc\nBL              _ZN16CustomSongWidget13onGetSongInfoEPN7cocos2d8CCObjectE; CustomSongWidget::onGetSongInfo(cocos2d::CCObject *) ; +0x9c, 0x86c3c0\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xa0, 0x86c3c4\nLDR             X1, [X29,#0x40+var_8]                                  ; +0xa4, 0x86c3c8\nLDR             X0, [X19]                                              ; +0xa8, 0x86c3cc\nCMP             X1, X0                                                 ; +0xac, 0x86c3d0\nB.NE            loc_86C3E4                                             ; +0xb0, 0x86c3d4\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xb4, 0x86c3d8\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xb8, 0x86c3dc\nRET                                                                    ; +0xbc, 0x86c3e0\nBL              .__stack_chk_fail                                      ; +0xc0, 0x86c3e4\nLDRB            W1, [X29,#0x40+var_20]                                 ; +0xc4, 0x86c3e8\nMOV             X19, X0                                                ; +0xc8, 0x86c3ec\nTBZ             W1, #0, loc_86C3FC                                     ; +0xcc, 0x86c3f0\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0xd0, 0x86c3f4\nBL              _ZdlPv; operator delete(void *)                        ; +0xd4, 0x86c3f8\nMOV             X0, X19                                                ; +0xd8, 0x86c3fc\nBL              _Unwind_Resume                                         ; +0xdc, 0x86c400", "xrefs": ["CustomSongLayer::onSearch @ 0x97f464", "CustomSongLayer::init @ 0x98122c", "AudioAssetsPopup::init @ 0xc8e528", "<???> @ 0xe2150"], "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"}