{"type": "func", "start": 4063980, "end": 4064048, "name": "CustomSongWidget::FLAlert_Clicked", "pseudocode": "// \n// CustomSongWidget::FLAlert_Clicked from 0x3e02ec to 0x3e0330 (68 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CustomSongWidget::FLAlert_Clicked @ 0x3e0338\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::FLAlert_Clicked(CustomSongWidget *a1, FLAlertLayer *a2, bool a3)\n{\n  _BOOL4 v4; // r6\n  int v5; // r0\n  GameManager *v6; // r0\n\n  v4 = a3;\n  v5 = a2->getTag(a2);\n  if ( v5 == 1 )\n  {\n    if ( v4 )\n    {\n      v6 = GameManager::sharedState();\n      GameManager::setGameVariable(v6, \"0016\", 1);\n      CustomSongWidget::onDownload(a1, nullptr);\n    }\n  }\n  else if ( v5 == 2 && v4 )\n  {\n    CustomSongWidget::deleteSong(a1);\n  }\n}", "assembly": "; \n; CustomSongWidget::FLAlert_Clicked from 0x3e02ec to 0x3e0330 (68 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CustomSongWidget::FLAlert_Clicked @ 0x3e0338\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\nLDR             R3, [R1]                                               ; +0x0, 0x3e02ec\nPUSH            {R4-R6,LR}                                             ; +0x2, 0x3e02ee\nMOV             R5, R0                                                 ; +0x4, 0x3e02f0\nLDR             R3, [R3,#0x20]                                         ; +0x6, 0x3e02f2\nMOV             R0, R1                                                 ; +0x8, 0x3e02f4\nMOV             R6, R2                                                 ; +0xa, 0x3e02f6\nBLX             R3                                                     ; +0xc, 0x3e02f8\nCMP             R0, #1                                                 ; +0xe, 0x3e02fa\nMOV             R4, R0                                                 ; +0x10, 0x3e02fc\nBEQ             loc_3E0306                                             ; +0x12, 0x3e02fe\nCMP             R0, #2                                                 ; +0x14, 0x3e0300\nBEQ             loc_3E0322                                             ; +0x16, 0x3e0302\nPOP             {R4-R6,PC}                                             ; +0x18, 0x3e0304\nCBZ             R6, locret_3E032E                                      ; +0x1a, 0x3e0306\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1c, 0x3e0308\nLDR             R1, =(a0016 - 0x3E0314); \"0016\"                        ; +0x20, 0x3e030c\nMOV             R2, R4; bool                                           ; +0x22, 0x3e030e\nADD             R1, PC; \"0016\"                                         ; +0x24, 0x3e0310\nBL              _ZN11GameManager15setGameVariableEPKcb; GameManager::setGameVariable(char const*,bool) ; +0x26, 0x3e0312\nMOV             R0, R5; this                                           ; +0x2a, 0x3e0316\nMOVS            R1, #0; cocos2d::CCObject *                            ; +0x2c, 0x3e0318\nPOP.W           {R4-R6,LR}                                             ; +0x2e, 0x3e031a\nB.W             _ZN16CustomSongWidget10onDownloadEPN7cocos2d8CCObjectE; CustomSongWidget::onDownload(cocos2d::CCObject *) ; +0x32, 0x3e031e\nCBZ             R6, locret_3E032E                                      ; +0x36, 0x3e0322\nMOV             R0, R5; this                                           ; +0x38, 0x3e0324\nPOP.W           {R4-R6,LR}                                             ; +0x3a, 0x3e0326\nB.W             _ZN16CustomSongWidget10deleteSongEv; CustomSongWidget::deleteSong(void) ; +0x3e, 0x3e032a\nPOP             {R4-R6,PC}                                             ; +0x42, 0x3e032e", "xrefs": ["`non-virtual thunk to'CustomSongWidget::FLAlert_Clicked @ 0x3e0338"], "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"}