{"type": "func", "start": 8838064, "end": 8838276, "name": "CustomSongWidget::downloadSongFinished", "pseudocode": "// \n// CustomSongWidget::downloadSongFinished from 0x86dbb0 to 0x86dc84 (212 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'CustomSongWidget::downloadSongFinished @ 0x86dc98\n// > <???> @ 0x6fb98\n// > <???> @ 0x1442e98\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::downloadSongFinished(\n        cocos2d::CCLabelBMFont **this,\n        int a2,\n        __int64 a3,\n        __int64 a4,\n        int a5,\n        int a6,\n        int a7,\n        int a8,\n        char a9)\n{\n  __int64 result; // x0\n\n  if ( *((_BYTE *)this + 529) )\n    return CustomSongWidget::downloadAssetFinished(\n             (CustomSongWidget *)this,\n             a2,\n             1,\n             *((unsigned __int8 *)this + 529),\n             a5,\n             a6,\n             a7,\n             a8,\n             a9);\n  result = (unsigned __int8)CustomSongWidget::verifySongID((CustomSongWidget *)this, a2);\n  if ( (_BYTE)result )\n  {\n    (*(void (__fastcall **)(_QWORD, void *))(*(_QWORD *)*(this + 47) + 1072LL))(*(this + 47), &unk_114B370);\n    (*(void (__fastcall **)(_QWORD, const char *))(*(_QWORD *)*(this + 47) + 928LL))(*(this + 47), \"Download complete.\");\n    if ( *((_BYTE *)this + 501) )\n      cocos2d::CCLabelBMFont::limitLabelWidth(*(this + 47), 140.0, 0.35, 0.0);\n    else\n      cocos2d::CCLabelBMFont::limitLabelWidth(*(this + 47), 230.0, 0.4, 0.0);\n    return CustomSongWidget::showError(this, 1u);\n  }\n  return result;\n}", "assembly": "; \n; CustomSongWidget::downloadSongFinished from 0x86dbb0 to 0x86dc84 (212 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'CustomSongWidget::downloadSongFinished @ 0x86dc98\n; > <???> @ 0x6fb98\n; > <???> @ 0x1442e98\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_20]!                                ; +0x0, 0x86dbb0\nMOV             X29, SP                                                ; +0x4, 0x86dbb4\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x86dbb8\nLDRB            W3, [X0,#0x211]; int                                   ; +0xc, 0x86dbbc\nCBNZ            W3, loc_86DC4C                                         ; +0x10, 0x86dbc0\nMOV             X19, X0                                                ; +0x14, 0x86dbc4\nBL              _ZN16CustomSongWidget12verifySongIDEi; CustomSongWidget::verifySongID(int) ; +0x18, 0x86dbc8\nUXTB            W0, W0                                                 ; +0x1c, 0x86dbcc\nCBNZ            W0, loc_86DBE0                                         ; +0x20, 0x86dbd0\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x24, 0x86dbd4\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x28, 0x86dbd8\nRET                                                                    ; +0x2c, 0x86dbdc\nLDR             X2, [X19,#0x178]                                       ; +0x30, 0x86dbe0\nADRL            X1, unk_114B360                                        ; +0x34, 0x86dbe4\nMOV             X0, X2                                                 ; +0x3c, 0x86dbec\nADD             X1, X1, #(unk_114B370 - 0x114B360)                     ; +0x40, 0x86dbf0\nLDR             X2, [X2]                                               ; +0x44, 0x86dbf4\nLDR             X2, [X2,#0x430]                                        ; +0x48, 0x86dbf8\nBLR             X2                                                     ; +0x4c, 0x86dbfc\nLDR             X2, [X19,#0x178]                                       ; +0x50, 0x86dc00\nADRL            X1, aDownloadComple; \"Download complete.\"              ; +0x54, 0x86dc04\nMOV             X0, X2                                                 ; +0x5c, 0x86dc0c\nLDR             X2, [X2]                                               ; +0x60, 0x86dc10\nLDR             X2, [X2,#0x3A0]                                        ; +0x64, 0x86dc14\nBLR             X2                                                     ; +0x68, 0x86dc18\nLDRB            W0, [X19,#0x1F5]                                       ; +0x6c, 0x86dc1c\nCBNZ            W0, loc_86DC5C                                         ; +0x70, 0x86dc20\nLDR             S0, flt_86DC8C; float                                  ; +0x74, 0x86dc24\nLDR             X0, [X19,#0x178]; this                                 ; +0x78, 0x86dc28\nLDR             S1, flt_86DC90; float                                  ; +0x7c, 0x86dc2c\nFMOV            S2, WZR; float                                         ; +0x80, 0x86dc30\nBL              _ZN7cocos2d13CCLabelBMFont15limitLabelWidthEfff; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x84, 0x86dc34\nMOV             X0, X19; this                                          ; +0x88, 0x86dc38\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x8c, 0x86dc3c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x90, 0x86dc40\nMOV             W1, #1; int                                            ; +0x94, 0x86dc44\nB               _ZN16CustomSongWidget9showErrorEb; CustomSongWidget::showError(bool) ; +0x98, 0x86dc48\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x9c, 0x86dc4c\nMOV             W2, #1; int                                            ; +0xa0, 0x86dc50\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0xa4, 0x86dc54\nB               _ZN16CustomSongWidget21downloadAssetFinishedEi11GJAssetType; CustomSongWidget::downloadAssetFinished(int,GJAssetType) ; +0xa8, 0x86dc58\nLDR             S0, flt_86DC84; float                                  ; +0xac, 0x86dc5c\nLDR             X0, [X19,#0x178]; this                                 ; +0xb0, 0x86dc60\nLDR             S1, flt_86DC88; float                                  ; +0xb4, 0x86dc64\nFMOV            S2, WZR; float                                         ; +0xb8, 0x86dc68\nBL              _ZN7cocos2d13CCLabelBMFont15limitLabelWidthEfff; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0xbc, 0x86dc6c\nMOV             X0, X19; this                                          ; +0xc0, 0x86dc70\nLDR             X19, [SP,#0x20+var_10]                                 ; +0xc4, 0x86dc74\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0xc8, 0x86dc78\nMOV             W1, #1; bool                                           ; +0xcc, 0x86dc7c\nB               _ZN16CustomSongWidget9showErrorEb; CustomSongWidget::showError(bool) ; +0xd0, 0x86dc80", "xrefs": ["`non-virtual thunk to'CustomSongWidget::downloadSongFinished @ 0x86dc98", "<???> @ 0x6fb98", "<???> @ 0x1442e98"], "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"}