{"type": "func", "start": 5694552, "end": 5694620, "name": "CustomSFXWidget::FLAlert_Clicked", "pseudocode": "// \n// CustomSFXWidget::FLAlert_Clicked from 0x56e458 to 0x56e49c (68 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CustomSFXWidget::FLAlert_Clicked @ 0x56e4a4\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::FLAlert_Clicked(CustomSFXWidget *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      CustomSFXWidget::onDownload(a1, nullptr);\n    }\n  }\n  else if ( v5 == 3 && v4 )\n  {\n    CustomSFXWidget::deleteSFX(a1);\n  }\n}", "assembly": "; \n; CustomSFXWidget::FLAlert_Clicked from 0x56e458 to 0x56e49c (68 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CustomSFXWidget::FLAlert_Clicked @ 0x56e4a4\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, 0x56e458\nPUSH            {R4-R6,LR}                                             ; +0x2, 0x56e45a\nMOV             R5, R0                                                 ; +0x4, 0x56e45c\nLDR             R3, [R3,#0x20]                                         ; +0x6, 0x56e45e\nMOV             R0, R1                                                 ; +0x8, 0x56e460\nMOV             R6, R2                                                 ; +0xa, 0x56e462\nBLX             R3                                                     ; +0xc, 0x56e464\nCMP             R0, #1                                                 ; +0xe, 0x56e466\nMOV             R4, R0                                                 ; +0x10, 0x56e468\nBEQ             loc_56E472                                             ; +0x12, 0x56e46a\nCMP             R0, #3                                                 ; +0x14, 0x56e46c\nBEQ             loc_56E48E                                             ; +0x16, 0x56e46e\nPOP             {R4-R6,PC}                                             ; +0x18, 0x56e470\nCBZ             R6, locret_56E49A                                      ; +0x1a, 0x56e472\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1c, 0x56e474\nLDR             R1, =(a0016 - 0x56E480); \"0016\"                        ; +0x20, 0x56e478\nMOV             R2, R4; bool                                           ; +0x22, 0x56e47a\nADD             R1, PC; \"0016\"                                         ; +0x24, 0x56e47c\nBL              _ZN11GameManager15setGameVariableEPKcb; GameManager::setGameVariable(char const*,bool) ; +0x26, 0x56e47e\nMOV             R0, R5; this                                           ; +0x2a, 0x56e482\nMOVS            R1, #0; cocos2d::CCObject *                            ; +0x2c, 0x56e484\nPOP.W           {R4-R6,LR}                                             ; +0x2e, 0x56e486\nB.W             _ZN15CustomSFXWidget10onDownloadEPN7cocos2d8CCObjectE; CustomSFXWidget::onDownload(cocos2d::CCObject *) ; +0x32, 0x56e48a\nCBZ             R6, locret_56E49A                                      ; +0x36, 0x56e48e\nMOV             R0, R5; this                                           ; +0x38, 0x56e490\nPOP.W           {R4-R6,LR}                                             ; +0x3a, 0x56e492\nB.W             _ZN15CustomSFXWidget9deleteSFXEv; CustomSFXWidget::deleteSFX(void) ; +0x3e, 0x56e496\nPOP             {R4-R6,PC}                                             ; +0x42, 0x56e49a", "xrefs": ["`non-virtual thunk to'CustomSFXWidget::FLAlert_Clicked @ 0x56e4a4"], "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"}