{"type": "func", "start": 7800400, "end": 7800618, "name": "DeathTrackerOptionsPopup::FLAlert_Clicked", "pseudocode": "// \n// DeathTrackerOptionsPopup::FLAlert_Clicked from 0x770650 to 0x77072a (218 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'DeathTrackerOptionsPopup::FLAlert_Clicked @ 0x770740\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:15 +0000\n// \n\nint __fastcall DeathTrackerOptionsPopup::FLAlert_Clicked(GJGameLevel **this, FLAlertLayer *a2, int a3)\n{\n  int result; // r0\n  char **v5; // r0\n  char **v6; // r0\n  int *v7; // r9\n  int v8; // r3\n  void (__fastcall *v9)(int *, cocos2d::CCNode *, int); // r10\n  cocos2d::CCNode *v10; // r0\n  DeathTrackerPopup *v11; // r0\n  int v12[3]; // [sp+Ch] [bp-1Ch] BYREF\n  int v13[3]; // [sp+18h] [bp-10h] 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      if ( *(this + 179) )\n      {\n        v5 = (char **)GameLevelManager::sharedState((GameLevelManager *)((char *)&dword_0 + 1));\n        v6 = GameLevelManager::clearDeathDataInstances(v5, *(this + 179), 0);\n        v7 = *(int **)(cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v6) + 220);\n        v8 = *v7;\n        memset(v12, 0, sizeof(v12));\n        v9 = *(void (__fastcall **)(int *, cocos2d::CCNode *, int))(v8 + 232);\n        std::string::__init(v12, \"Death data cleared\", 0x12u);\n        memset(v13, 0, sizeof(v13));\n        std::string::__init(v13, &unk_B6B226, 0);\n        v10 = TextAlertPopup::create((int)v12, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v13);\n        v9(v7, v10, 1000);\n        std::string::~string((int)v13);\n        std::string::~string((int)v12);\n        v11 = *(this + 180);\n        if ( v11 )\n          DeathTrackerPopup::onClose(v11, nullptr);\n        return (*((int (__fastcall **)(GJGameLevel **, _DWORD))*this + 171))(this, 0);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; DeathTrackerOptionsPopup::FLAlert_Clicked from 0x770650 to 0x77072a (218 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'DeathTrackerOptionsPopup::FLAlert_Clicked @ 0x770740\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:15 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x77065A)                ; +0x0, 0x770650\nPUSH.W          {R4-R10,LR}                                            ; +0x2, 0x770652\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x770656\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x770658\nMOV             R8, R0                                                 ; +0xa, 0x77065a\nSUB             SP, SP, #0x28                                          ; +0xc, 0x77065c\nLDR             R0, [R3]                                               ; +0xe, 0x77065e\nMOV             R7, R3                                                 ; +0x10, 0x770660\nSTR             R0, [SP,#0x28+var_4]                                   ; +0x12, 0x770662\nCMP             R2, #0                                                 ; +0x14, 0x770664\nBEQ             loc_770718                                             ; +0x16, 0x770666\nLDR             R3, [R1]                                               ; +0x18, 0x770668\nMOV             R0, R1                                                 ; +0x1a, 0x77066a\nLDR             R3, [R3,#0x20]                                         ; +0x1c, 0x77066c\nBLX             R3                                                     ; +0x1e, 0x77066e\nCMP             R0, #1                                                 ; +0x20, 0x770670\nBNE             loc_770718                                             ; +0x22, 0x770672\nLDR.W           R3, [R8,#0x2CC]                                        ; +0x24, 0x770674\nCMP             R3, #0                                                 ; +0x28, 0x770678\nBEQ             loc_770718                                             ; +0x2a, 0x77067a\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x2c, 0x77067c\nLDR.W           R1, [R8,#0x2CC]; GJGameLevel *                         ; +0x30, 0x770680\nMOVS            R2, #0; bool                                           ; +0x34, 0x770684\nADD             R5, SP, #0x28+var_1C                                   ; +0x36, 0x770686\nBL              _ZN16GameLevelManager23clearDeathDataInstancesEP11GJGameLevelb; GameLevelManager::clearDeathDataInstances(GJGameLevel *,bool) ; +0x38, 0x770688\nMOVS            R4, #0                                                 ; +0x3c, 0x77068c\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x3e, 0x77068e\nLDR             R1, =(aDeathDataClear - 0x77069C); \"Death data cleared\" ; +0x42, 0x770692\nMOVS            R2, #0x12                                              ; +0x44, 0x770694\nADD             R6, SP, #0x28+var_10                                   ; +0x46, 0x770696\nADD             R1, PC; \"Death data cleared\"                           ; +0x48, 0x770698\nLDR.W           R9, [R0,#0xDC]                                         ; +0x4a, 0x77069a\nMOV             R0, R5                                                 ; +0x4e, 0x77069e\nLDR.W           R3, [R9]                                               ; +0x50, 0x7706a0\nSTR             R4, [SP,#0x28+var_1C]                                  ; +0x54, 0x7706a4\nSTR             R4, [SP,#0x28+var_18]                                  ; +0x56, 0x7706a6\nLDR.W           R10, [R3,#0xE8]                                        ; +0x58, 0x7706a8\nSTR             R4, [SP,#0x28+var_14]                                  ; +0x5c, 0x7706ac\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x5e, 0x7706ae\nLDR             R1, =(unk_B6B226 - 0x7706BE)                           ; +0x62, 0x7706b2\nMOV             R0, R6                                                 ; +0x64, 0x7706b4\nMOV             R2, R4                                                 ; +0x66, 0x7706b6\nSTR             R4, [SP,#0x28+var_10]                                  ; +0x68, 0x7706b8\nADD             R1, PC; unk_B6B226                                     ; +0x6a, 0x7706ba\nSTR             R4, [SP,#0x28+var_C]                                   ; +0x6c, 0x7706bc\nSTR             R4, [SP,#0x28+var_8]                                   ; +0x6e, 0x7706be\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x70, 0x7706c0\nSTR             R6, [SP,#0x28+var_28]                                  ; +0x74, 0x7706c4\nMOV             R0, R5                                                 ; +0x76, 0x7706c6\nMOV.W           R1, #0x3F000000                                        ; +0x78, 0x7706c8\nLDR             R2, =0x3F19999A                                        ; +0x7c, 0x7706cc\nMOVS            R3, #0x96                                              ; +0x7e, 0x7706ce\nBL              _ZN14TextAlertPopup6createENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEffiS6_; TextAlertPopup::create(std::string,float,float,int,std::string) ; +0x80, 0x7706d0\nMOV             R1, R0                                                 ; +0x84, 0x7706d4\nMOV.W           R2, #0x3E8                                             ; +0x86, 0x7706d6\nMOV             R0, R9                                                 ; +0x8a, 0x7706da\nBLX             R10                                                    ; +0x8c, 0x7706dc\nMOV             R0, R6                                                 ; +0x8e, 0x7706de\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x90, 0x7706e0\nMOV             R0, R5                                                 ; +0x94, 0x7706e4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x96, 0x7706e6\nLDR.W           R0, [R8,#0x2D0]; this                                  ; +0x9a, 0x7706ea\nCBZ             R0, loc_7706F6                                         ; +0x9e, 0x7706ee\nMOV             R1, R4; cocos2d::CCObject *                            ; +0xa0, 0x7706f0\nBL              _ZN17DeathTrackerPopup7onCloseEPN7cocos2d8CCObjectE; DeathTrackerPopup::onClose(cocos2d::CCObject *) ; +0xa2, 0x7706f2\nLDR.W           R3, [R8]                                               ; +0xa6, 0x7706f6\nMOV             R0, R8                                                 ; +0xaa, 0x7706fa\nMOVS            R1, #0                                                 ; +0xac, 0x7706fc\nLDR.W           R3, [R3,#0x2AC]                                        ; +0xae, 0x7706fe\nBLX             R3                                                     ; +0xb2, 0x770702\nB               loc_770718                                             ; +0xb4, 0x770704\nMOV             R0, R6                                                 ; +0xb6, 0x770706\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xb8, 0x770708\nB               loc_77070E                                             ; +0xbc, 0x77070c\nMOV             R0, R5                                                 ; +0xbe, 0x77070e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xc0, 0x770710\nBL              __cxa_end_cleanup                                      ; +0xc4, 0x770714\nLDR             R2, [SP,#0x28+var_4]                                   ; +0xc8, 0x770718\nLDR             R3, [R7]                                               ; +0xca, 0x77071a\nCMP             R2, R3                                                 ; +0xcc, 0x77071c\nBEQ             loc_770724                                             ; +0xce, 0x77071e\nBLX             __stack_chk_fail                                       ; +0xd0, 0x770720\nADD             SP, SP, #0x28 ; '('                                    ; +0xd4, 0x770724\nPOP.W           {R4-R10,PC}                                            ; +0xd6, 0x770726", "xrefs": ["`non-virtual thunk to'DeathTrackerOptionsPopup::FLAlert_Clicked @ 0x770740"], "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"}