{"type": "func", "start": 6974728, "end": 6974796, "name": "CustomSFXWidget::FLAlert_Clicked", "pseudocode": "// \n// CustomSFXWidget::FLAlert_Clicked from 0x6a6d08 to 0x6a6d4c (68 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CustomSFXWidget::FLAlert_Clicked @ 0x6a6d54\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:31 +0000\n// \n\nGameManager *__fastcall CustomSFXWidget::FLAlert_Clicked(CustomSFXWidget *this, FLAlertLayer *a2, int a3)\n{\n  GameManager *result; // r0\n  GameManager *v6; // r0\n\n  result = (GameManager *)(*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2);\n  if ( result == (GameManager *)((char *)&dword_0 + 1) )\n  {\n    if ( a3 )\n    {\n      v6 = (GameManager *)GameManager::sharedState((GameManager *)((char *)&dword_0 + 1));\n      GameManager::setGameVariable(v6, \"0016\", (_BYTE *)&dword_0 + 1);\n      return CustomSFXWidget::onDownload(this, nullptr);\n    }\n  }\n  else if ( result == (GameManager *)((char *)&dword_0 + 3) )\n  {\n    if ( a3 )\n      return CustomSFXWidget::deleteSFX(this);\n  }\n  return result;\n}", "assembly": "; \n; CustomSFXWidget::FLAlert_Clicked from 0x6a6d08 to 0x6a6d4c (68 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CustomSFXWidget::FLAlert_Clicked @ 0x6a6d54\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:31 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x6a6d08\nMOV             R5, R0                                                 ; +0x2, 0x6a6d0a\nLDR             R3, [R1]                                               ; +0x4, 0x6a6d0c\nMOV             R0, R1                                                 ; +0x6, 0x6a6d0e\nMOV             R6, R2                                                 ; +0x8, 0x6a6d10\nLDR             R3, [R3,#0x20]                                         ; +0xa, 0x6a6d12\nBLX             R3                                                     ; +0xc, 0x6a6d14\nCMP             R0, #1                                                 ; +0xe, 0x6a6d16\nMOV             R4, R0                                                 ; +0x10, 0x6a6d18\nBEQ             loc_6A6D22                                             ; +0x12, 0x6a6d1a\nCMP             R0, #3                                                 ; +0x14, 0x6a6d1c\nBEQ             loc_6A6D3E                                             ; +0x16, 0x6a6d1e\nPOP             {R4-R6,PC}                                             ; +0x18, 0x6a6d20\nCBZ             R6, locret_6A6D4A                                      ; +0x1a, 0x6a6d22\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1c, 0x6a6d24\nLDR             R1, =(a0016 - 0x6A6D30); \"0016\"                        ; +0x20, 0x6a6d28\nMOV             R2, R4; bool                                           ; +0x22, 0x6a6d2a\nADD             R1, PC; \"0016\"                                         ; +0x24, 0x6a6d2c\nBL              _ZN11GameManager15setGameVariableEPKcb; GameManager::setGameVariable(char const*,bool) ; +0x26, 0x6a6d2e\nMOV             R0, R5; this                                           ; +0x2a, 0x6a6d32\nMOVS            R1, #0; cocos2d::CCObject *                            ; +0x2c, 0x6a6d34\nPOP.W           {R4-R6,LR}                                             ; +0x2e, 0x6a6d36\nB.W             _ZN15CustomSFXWidget10onDownloadEPN7cocos2d8CCObjectE; CustomSFXWidget::onDownload(cocos2d::CCObject *) ; +0x32, 0x6a6d3a\nCBZ             R6, locret_6A6D4A                                      ; +0x36, 0x6a6d3e\nMOV             R0, R5; this                                           ; +0x38, 0x6a6d40\nPOP.W           {R4-R6,LR}                                             ; +0x3a, 0x6a6d42\nB.W             _ZN15CustomSFXWidget9deleteSFXEv; CustomSFXWidget::deleteSFX(void) ; +0x3e, 0x6a6d46\nPOP             {R4-R6,PC}                                             ; +0x42, 0x6a6d4a", "xrefs": ["`non-virtual thunk to'CustomSFXWidget::FLAlert_Clicked @ 0x6a6d54"], "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"}