{"type": "func", "start": 7790548, "end": 7790852, "name": "DeathMarkerSettingsPopup::FLAlert_Clicked", "pseudocode": "// \n// DeathMarkerSettingsPopup::FLAlert_Clicked from 0x76dfd4 to 0x76e104 (304 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'DeathMarkerSettingsPopup::FLAlert_Clicked @ 0x76e118\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:59:13 +0000\n// \n\nint __fastcall DeathMarkerSettingsPopup::FLAlert_Clicked(GJGameLevel **this, FLAlertLayer *a2, int a3)\n{\n  int result; // r0\n  char **v5; // r0\n  char **v6; // r0\n  GameManager *v7; // r0\n  GameManager *v8; // r0\n  _DWORD *v9; // r4\n  int v10; // r3\n  GameManager *v11; // r0\n  GameManager *v12; // r0\n  int v13; // r0\n  GameManager *v14; // r0\n  int v15; // r0\n  int *v16; // r8\n  int v17; // r3\n  void (__fastcall *v18)(int *, cocos2d::CCNode *, int); // r9\n  cocos2d::CCNode *v19; // r0\n  int v20[3]; // [sp+Ch] [bp-20h] BYREF\n  int v21[3]; // [sp+18h] [bp-14h] BYREF\n\n  result = _stack_chk_guard;\n  if ( a3 )\n  {\n    result = (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2);\n    if ( result == 1 )\n    {\n      v5 = (char **)GameLevelManager::sharedState((GameLevelManager *)((char *)&dword_0 + 1));\n      v6 = GameLevelManager::clearDeathDataInstances(v5, *(this + 183), 1);\n      v7 = (GameManager *)GameManager::sharedState((GameManager *)v6);\n      if ( *((_DWORD *)v7 + 101) )\n      {\n        v8 = (GameManager *)GameManager::sharedState(v7);\n        v9 = (_DWORD *)(*((_DWORD *)v8 + 101) + 11972);\n        v10 = *(_DWORD *)(*((_DWORD *)v8 + 101) + 11968);\n        while ( v10 != *v9 )\n          *v9 -= 4;\n        v11 = (GameManager *)GameManager::sharedState(v8);\n        *(_BYTE *)(*((_DWORD *)v11 + 101) + 11980) = 0;\n        v12 = (GameManager *)GameManager::sharedState(v11);\n        if ( *(_DWORD *)(*((_DWORD *)v12 + 101) + 1412) )\n        {\n          v13 = GameManager::sharedState(v12);\n          v14 = (GameManager *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(*(_DWORD *)(v13 + 404) + 1412) + 260))(*(_DWORD *)(*(_DWORD *)(v13 + 404) + 1412));\n          v12 = (GameManager *)GameManager::sharedState(v14);\n          *(_DWORD *)(*((_DWORD *)v12 + 101) + 1412) = 0;\n        }\n        v15 = GameManager::sharedState(v12);\n        v7 = (GameManager *)PlayLayer::dtLiveMarkersChanged(*(PlayLayer **)(v15 + 404));\n      }\n      v16 = *(int **)(cocos2d::CCDirector::sharedDirector(v7) + 220);\n      v17 = *v16;\n      memset(v20, 0, sizeof(v20));\n      v18 = *(void (__fastcall **)(int *, cocos2d::CCNode *, int))(v17 + 232);\n      std::string::__init(v20, \"Death markers cleared\", 0x15u);\n      memset(v21, 0, sizeof(v21));\n      std::string::__init(v21, &unk_B6B226, 0);\n      v19 = TextAlertPopup::create((int)v20, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v21);\n      v18(v16, v19, 1000);\n      std::string::~string((int)v21);\n      return std::string::~string((int)v20);\n    }\n  }\n  return result;\n}", "assembly": "; \n; DeathMarkerSettingsPopup::FLAlert_Clicked from 0x76dfd4 to 0x76e104 (304 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'DeathMarkerSettingsPopup::FLAlert_Clicked @ 0x76e118\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:59:13 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x76DFDE)                ; +0x0, 0x76dfd4\nPUSH.W          {R4-R9,LR}                                             ; +0x2, 0x76dfd6\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x76dfda\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x76dfdc\nMOV             R5, R0                                                 ; +0xa, 0x76dfde\nSUB             SP, SP, #0x2C                                          ; +0xc, 0x76dfe0\nLDR             R0, [R3]                                               ; +0xe, 0x76dfe2\nMOV             R7, R3                                                 ; +0x10, 0x76dfe4\nSTR             R0, [SP,#0x2C+var_8]                                   ; +0x12, 0x76dfe6\nCMP             R2, #0                                                 ; +0x14, 0x76dfe8\nBEQ.W           loc_76E0F2                                             ; +0x16, 0x76dfea\nLDR             R3, [R1]                                               ; +0x1a, 0x76dfee\nMOV             R0, R1                                                 ; +0x1c, 0x76dff0\nLDR             R3, [R3,#0x20]                                         ; +0x1e, 0x76dff2\nBLX             R3                                                     ; +0x20, 0x76dff4\nCMP             R0, #1                                                 ; +0x22, 0x76dff6\nMOV             R4, R0                                                 ; +0x24, 0x76dff8\nBNE             loc_76E0F2                                             ; +0x26, 0x76dffa\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x28, 0x76dffc\nLDR.W           R1, [R5,#0x2DC]; GJGameLevel *                         ; +0x2c, 0x76e000\nMOV             R2, R4; bool                                           ; +0x30, 0x76e004\nBL              _ZN16GameLevelManager23clearDeathDataInstancesEP11GJGameLevelb; GameLevelManager::clearDeathDataInstances(GJGameLevel *,bool) ; +0x32, 0x76e006\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x36, 0x76e00a\nLDR.W           R3, [R0,#0x194]                                        ; +0x3a, 0x76e00e\nCBZ             R3, loc_76E07E                                         ; +0x3e, 0x76e012\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x40, 0x76e014\nLDR.W           R4, [R0,#0x194]                                        ; +0x44, 0x76e018\nADD.W           R3, R4, #0x2EC0                                        ; +0x48, 0x76e01c\nADD.W           R4, R4, #0x2EC0                                        ; +0x4c, 0x76e020\nADDS            R4, #4                                                 ; +0x50, 0x76e024\nLDR             R3, [R3]                                               ; +0x52, 0x76e026\nLDR             R5, [R4]                                               ; +0x54, 0x76e028\nCMP             R3, R5                                                 ; +0x56, 0x76e02a\nBEQ             loc_76E034                                             ; +0x58, 0x76e02c\nSUBS            R5, #4                                                 ; +0x5a, 0x76e02e\nSTR             R5, [R4]                                               ; +0x5c, 0x76e030\nB               loc_76E028                                             ; +0x5e, 0x76e032\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x60, 0x76e034\nMOVW            R3, #0x2ECC                                            ; +0x64, 0x76e038\nMOVS            R4, #0                                                 ; +0x68, 0x76e03c\nLDR.W           R2, [R0,#0x194]                                        ; +0x6a, 0x76e03e\nSTRB            R4, [R2,R3]                                            ; +0x6e, 0x76e042\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x70, 0x76e044\nLDR.W           R3, [R0,#0x194]                                        ; +0x74, 0x76e048\nLDR.W           R3, [R3,#0x584]                                        ; +0x78, 0x76e04c\nCBZ             R3, loc_76E072                                         ; +0x7c, 0x76e050\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x7e, 0x76e052\nLDR.W           R3, [R0,#0x194]                                        ; +0x82, 0x76e056\nLDR.W           R0, [R3,#0x584]                                        ; +0x86, 0x76e05a\nLDR             R3, [R0]                                               ; +0x8a, 0x76e05e\nLDR.W           R3, [R3,#0x104]                                        ; +0x8c, 0x76e060\nBLX             R3                                                     ; +0x90, 0x76e064\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x92, 0x76e066\nLDR.W           R3, [R0,#0x194]                                        ; +0x96, 0x76e06a\nSTR.W           R4, [R3,#0x584]                                        ; +0x9a, 0x76e06e\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x9e, 0x76e072\nLDR.W           R0, [R0,#0x194]; this                                  ; +0xa2, 0x76e076\nBL              _ZN9PlayLayer20dtLiveMarkersChangedEv; PlayLayer::dtLiveMarkersChanged(void) ; +0xa6, 0x76e07a\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0xaa, 0x76e07e\nADD             R5, SP, #0x2C+var_20                                   ; +0xae, 0x76e082\nLDR             R1, =(aDeathMarkersCl - 0x76E090); \"Death markers cleared\" ; +0xb0, 0x76e084\nMOVS            R2, #0x15                                              ; +0xb2, 0x76e086\nMOVS            R4, #0                                                 ; +0xb4, 0x76e088\nADD             R6, SP, #0x2C+var_14                                   ; +0xb6, 0x76e08a\nADD             R1, PC; \"Death markers cleared\"                        ; +0xb8, 0x76e08c\nLDR.W           R8, [R0,#0xDC]                                         ; +0xba, 0x76e08e\nMOV             R0, R5                                                 ; +0xbe, 0x76e092\nLDR.W           R3, [R8]                                               ; +0xc0, 0x76e094\nSTR             R4, [SP,#0x2C+var_20]                                  ; +0xc4, 0x76e098\nSTR             R4, [SP,#0x2C+var_1C]                                  ; +0xc6, 0x76e09a\nLDR.W           R9, [R3,#0xE8]                                         ; +0xc8, 0x76e09c\nSTR             R4, [SP,#0x2C+var_18]                                  ; +0xcc, 0x76e0a0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xce, 0x76e0a2\nLDR             R1, =(unk_B6B226 - 0x76E0B2)                           ; +0xd2, 0x76e0a6\nMOV             R0, R6                                                 ; +0xd4, 0x76e0a8\nMOV             R2, R4                                                 ; +0xd6, 0x76e0aa\nSTR             R4, [SP,#0x2C+var_14]                                  ; +0xd8, 0x76e0ac\nADD             R1, PC; unk_B6B226                                     ; +0xda, 0x76e0ae\nSTR             R4, [SP,#0x2C+var_10]                                  ; +0xdc, 0x76e0b0\nSTR             R4, [SP,#0x2C+var_C]                                   ; +0xde, 0x76e0b2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xe0, 0x76e0b4\nSTR             R6, [SP,#0x2C+var_2C]                                  ; +0xe4, 0x76e0b8\nMOV             R0, R5                                                 ; +0xe6, 0x76e0ba\nMOV.W           R1, #0x3F000000                                        ; +0xe8, 0x76e0bc\nLDR             R2, =0x3F19999A                                        ; +0xec, 0x76e0c0\nMOVS            R3, #0x96                                              ; +0xee, 0x76e0c2\nBL              _ZN14TextAlertPopup6createENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEffiS6_; TextAlertPopup::create(std::string,float,float,int,std::string) ; +0xf0, 0x76e0c4\nMOV             R1, R0                                                 ; +0xf4, 0x76e0c8\nMOV.W           R2, #0x3E8                                             ; +0xf6, 0x76e0ca\nMOV             R0, R8                                                 ; +0xfa, 0x76e0ce\nBLX             R9                                                     ; +0xfc, 0x76e0d0\nMOV             R0, R6                                                 ; +0xfe, 0x76e0d2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x100, 0x76e0d4\nMOV             R0, R5                                                 ; +0x104, 0x76e0d8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x106, 0x76e0da\nB               loc_76E0F2                                             ; +0x10a, 0x76e0de\nMOV             R0, R6                                                 ; +0x10c, 0x76e0e0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x10e, 0x76e0e2\nB               loc_76E0E8                                             ; +0x112, 0x76e0e6\nMOV             R0, R5                                                 ; +0x114, 0x76e0e8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x116, 0x76e0ea\nBL              __cxa_end_cleanup                                      ; +0x11a, 0x76e0ee\nLDR             R2, [SP,#0x2C+var_8]                                   ; +0x11e, 0x76e0f2\nLDR             R3, [R7]                                               ; +0x120, 0x76e0f4\nCMP             R2, R3                                                 ; +0x122, 0x76e0f6\nBEQ             loc_76E0FE                                             ; +0x124, 0x76e0f8\nBLX             __stack_chk_fail                                       ; +0x126, 0x76e0fa\nADD             SP, SP, #0x2C ; ','                                    ; +0x12a, 0x76e0fe\nPOP.W           {R4-R9,PC}                                             ; +0x12c, 0x76e100", "xrefs": ["`non-virtual thunk to'DeathMarkerSettingsPopup::FLAlert_Clicked @ 0x76e118"], "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"}