{"type": "func", "start": 6972084, "end": 6972198, "name": "CustomSFXWidget::onDownload", "pseudocode": "// \n// CustomSFXWidget::onDownload from 0x6a62b4 to 0x6a6326 (114 bytes)\n// \n// 1 xrefs:\n// > CustomSFXWidget::FLAlert_Clicked @ 0x6a6d3a\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:56:30 +0000\n// \n\nGameManager *__fastcall CustomSFXWidget::onDownload(CustomSFXWidget *this, cocos2d::CCObject *a2)\n{\n  GameManager *result; // r0\n  GameManager *v4; // r0\n  MusicDownloadManager *v5; // r0\n\n  result = (GameManager *)(*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 72) + 172))(\n                            *((_DWORD *)this + 72),\n                            0);\n  if ( *((_DWORD *)this + 68) )\n  {\n    v4 = (GameManager *)GameManager::sharedState(result);\n    if ( GameManager::getGameVariable(v4, \"0016\") )\n    {\n      CustomSFXWidget::showLoadingArt(this);\n      (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 73) + 172))(*((_DWORD *)this + 73), 0);\n      (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 74) + 172))(*((_DWORD *)this + 74), 1);\n      (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 77) + 172))(*((_DWORD *)this + 77), 0);\n      return (GameManager *)CustomSFXWidget::startDownload(this);\n    }\n    else\n    {\n      v5 = (MusicDownloadManager *)MusicDownloadManager::sharedState(nullptr);\n      return (GameManager *)MusicDownloadManager::showTOS(v5, (CustomSFXWidget *)((char *)this + 268));\n    }\n  }\n  return result;\n}", "assembly": "; \n; CustomSFXWidget::onDownload from 0x6a62b4 to 0x6a6326 (114 bytes)\n; \n; 1 xrefs:\n; > CustomSFXWidget::FLAlert_Clicked @ 0x6a6d3a\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:56:30 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x6a62b4\nMOV             R4, R0                                                 ; +0x2, 0x6a62b6\nLDR.W           R0, [R0,#0x120]                                        ; +0x4, 0x6a62b8\nMOVS            R1, #0                                                 ; +0x8, 0x6a62bc\nLDR             R3, [R0]                                               ; +0xa, 0x6a62be\nLDR.W           R3, [R3,#0xAC]                                         ; +0xc, 0x6a62c0\nBLX             R3                                                     ; +0x10, 0x6a62c4\nLDR.W           R3, [R4,#0x110]                                        ; +0x12, 0x6a62c6\nCBZ             R3, locret_6A6324                                      ; +0x16, 0x6a62ca\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x18, 0x6a62cc\nLDR             R1, =(a0016 - 0x6A62D6); \"0016\"                        ; +0x1c, 0x6a62d0\nADD             R1, PC; \"0016\"                                         ; +0x1e, 0x6a62d2\nBL              _ZN11GameManager15getGameVariableEPKc; GameManager::getGameVariable(char const*) ; +0x20, 0x6a62d4\nCBNZ            R0, loc_6A62EA                                         ; +0x24, 0x6a62d8\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x26, 0x6a62da\nADD.W           R1, R4, #0x10C; FLAlertLayerProtocol *                 ; +0x2a, 0x6a62de\nPOP.W           {R4,LR}                                                ; +0x2e, 0x6a62e2\nB.W             _ZN20MusicDownloadManager7showTOSEP20FLAlertLayerProtocol; MusicDownloadManager::showTOS(FLAlertLayerProtocol *) ; +0x32, 0x6a62e6\nMOV             R0, R4; this                                           ; +0x36, 0x6a62ea\nBL              _ZN15CustomSFXWidget14showLoadingArtEv; CustomSFXWidget::showLoadingArt(void) ; +0x38, 0x6a62ec\nLDR.W           R0, [R4,#0x124]                                        ; +0x3c, 0x6a62f0\nMOVS            R1, #0                                                 ; +0x40, 0x6a62f4\nLDR             R3, [R0]                                               ; +0x42, 0x6a62f6\nLDR.W           R3, [R3,#0xAC]                                         ; +0x44, 0x6a62f8\nBLX             R3                                                     ; +0x48, 0x6a62fc\nLDR.W           R0, [R4,#0x128]                                        ; +0x4a, 0x6a62fe\nMOVS            R1, #1                                                 ; +0x4e, 0x6a6302\nLDR             R3, [R0]                                               ; +0x50, 0x6a6304\nLDR.W           R3, [R3,#0xAC]                                         ; +0x52, 0x6a6306\nBLX             R3                                                     ; +0x56, 0x6a630a\nLDR.W           R0, [R4,#0x134]                                        ; +0x58, 0x6a630c\nMOVS            R1, #0                                                 ; +0x5c, 0x6a6310\nLDR             R3, [R0]                                               ; +0x5e, 0x6a6312\nLDR.W           R3, [R3,#0xAC]                                         ; +0x60, 0x6a6314\nBLX             R3                                                     ; +0x64, 0x6a6318\nMOV             R0, R4; this                                           ; +0x66, 0x6a631a\nPOP.W           {R4,LR}                                                ; +0x68, 0x6a631c\nB.W             _ZN15CustomSFXWidget13startDownloadEv; CustomSFXWidget::startDownload(void) ; +0x6c, 0x6a6320\nPOP             {R4,PC}                                                ; +0x70, 0x6a6324", "xrefs": ["CustomSFXWidget::FLAlert_Clicked @ 0x6a6d3a"], "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"}