{"type": "func", "start": 5693200, "end": 5693314, "name": "CustomSFXWidget::onDownload", "pseudocode": "// \n// CustomSFXWidget::onDownload from 0x56df10 to 0x56df82 (114 bytes)\n// \n// 1 xrefs:\n// > CustomSFXWidget::FLAlert_Clicked @ 0x56e48a\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 CustomSFXWidget::onDownload(CustomSFXWidget *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // r0\n  MusicDownloadManager *v4; // r0\n\n  a1->m_errorLabel->setVisible(a1->m_errorLabel, 0);\n  if ( a1->m_sfxObject )\n  {\n    v3 = GameManager::sharedState();\n    if ( GameManager::getGameVariable(v3, \"0016\") )\n    {\n      CustomSFXWidget::showLoadingArt(a1);\n      a1->m_downloadButton->setVisible(a1->m_downloadButton, 0);\n      a1->m_cancelButton->setVisible(a1->m_cancelButton, 1);\n      a1->m_deleteButton->setVisible(a1->m_deleteButton, 0);\n      CustomSFXWidget::startDownload(a1);\n    }\n    else\n    {\n      v4 = MusicDownloadManager::sharedState();\n      MusicDownloadManager::showTOS(v4, &a1->FLAlertLayerProtocol);\n    }\n  }\n}", "assembly": "; \n; CustomSFXWidget::onDownload from 0x56df10 to 0x56df82 (114 bytes)\n; \n; 1 xrefs:\n; > CustomSFXWidget::FLAlert_Clicked @ 0x56e48a\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            {R4,LR}                                                ; +0x0, 0x56df10\nMOV             R4, R0                                                 ; +0x2, 0x56df12\nLDR.W           R0, [R0,#0x120]                                        ; +0x4, 0x56df14\nMOVS            R1, #0                                                 ; +0x8, 0x56df18\nLDR             R3, [R0]                                               ; +0xa, 0x56df1a\nLDR.W           R3, [R3,#0xA4]                                         ; +0xc, 0x56df1c\nBLX             R3                                                     ; +0x10, 0x56df20\nLDR.W           R3, [R4,#0x110]                                        ; +0x12, 0x56df22\nCBZ             R3, locret_56DF80                                      ; +0x16, 0x56df26\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x18, 0x56df28\nLDR             R1, =(a0016 - 0x56DF32); \"0016\"                        ; +0x1c, 0x56df2c\nADD             R1, PC; \"0016\"                                         ; +0x1e, 0x56df2e\nBL              _ZN11GameManager15getGameVariableEPKc; GameManager::getGameVariable(char const*) ; +0x20, 0x56df30\nCBNZ            R0, loc_56DF46                                         ; +0x24, 0x56df34\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x26, 0x56df36\nADD.W           R1, R4, #0x10C                                         ; +0x2a, 0x56df3a\nPOP.W           {R4,LR}                                                ; +0x2e, 0x56df3e\nB.W             _ZN20MusicDownloadManager7showTOSEP20FLAlertLayerProtocol; MusicDownloadManager::showTOS(FLAlertLayerProtocol *) ; +0x32, 0x56df42\nMOV             R0, R4; this                                           ; +0x36, 0x56df46\nBL              _ZN15CustomSFXWidget14showLoadingArtEv; CustomSFXWidget::showLoadingArt(void) ; +0x38, 0x56df48\nLDR.W           R0, [R4,#0x124]                                        ; +0x3c, 0x56df4c\nMOVS            R1, #0                                                 ; +0x40, 0x56df50\nLDR             R3, [R0]                                               ; +0x42, 0x56df52\nLDR.W           R3, [R3,#0xA4]                                         ; +0x44, 0x56df54\nBLX             R3                                                     ; +0x48, 0x56df58\nLDR.W           R0, [R4,#0x128]                                        ; +0x4a, 0x56df5a\nMOVS            R1, #1                                                 ; +0x4e, 0x56df5e\nLDR             R3, [R0]                                               ; +0x50, 0x56df60\nLDR.W           R3, [R3,#0xA4]                                         ; +0x52, 0x56df62\nBLX             R3                                                     ; +0x56, 0x56df66\nLDR.W           R0, [R4,#0x134]                                        ; +0x58, 0x56df68\nMOVS            R1, #0                                                 ; +0x5c, 0x56df6c\nLDR             R3, [R0]                                               ; +0x5e, 0x56df6e\nLDR.W           R3, [R3,#0xA4]                                         ; +0x60, 0x56df70\nBLX             R3                                                     ; +0x64, 0x56df74\nMOV             R0, R4; this                                           ; +0x66, 0x56df76\nPOP.W           {R4,LR}                                                ; +0x68, 0x56df78\nB.W             _ZN15CustomSFXWidget13startDownloadEv; CustomSFXWidget::startDownload(void) ; +0x6c, 0x56df7c\nPOP             {R4,PC}                                                ; +0x70, 0x56df80", "xrefs": ["CustomSFXWidget::FLAlert_Clicked @ 0x56e48a"], "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"}