{"type": "func", "start": 7790388, "end": 7790520, "name": "DeathMarkerSettingsPopup::onClearMarkers", "pseudocode": "// \n// DeathMarkerSettingsPopup::onClearMarkers from 0x76df34 to 0x76dfb8 (132 bytes)\n// \n// 0 xrefs:\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::onClearMarkers(DeathMarkerSettingsPopup *this, cocos2d::CCObject *a2)\n{\n  char **v3; // r4\n  int v5[3]; // [sp+8h] [bp-10h] BYREF\n\n  memset(v5, 0, sizeof(v5));\n  std::string::__init(\n    v5,\n    \"Clear your saved <cb>death markers</c> for this level? Death stats are not affected. This cannot be undone.\",\n    0x6Bu);\n  v3 = (char **)FLAlertLayer::create(\n                  (int)this + 712,\n                  (cocos2d::CCLabelBMFont *)\"Clear Markers\",\n                  (int)v5,\n                  (ButtonSprite *)\"Cancel\",\n                  (ButtonSprite *)\"Clear\",\n                  320.0);\n  std::string::~string((int)v5);\n  (*((void (__fastcall **)(char **, int))*v3 + 9))(v3, 1);\n  ButtonSprite::updateBGImage(v3[121], \"GJ_button_06.png\");\n  return (*((int (__fastcall **)(char **))*v3 + 164))(v3);\n}", "assembly": "; \n; DeathMarkerSettingsPopup::onClearMarkers from 0x76df34 to 0x76dfb8 (132 bytes)\n; \n; 0 xrefs:\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; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x76df34\nSUB             SP, SP, #0x18                                          ; +0x2, 0x76df36\nLDR             R6, =(__stack_chk_guard_ptr - 0x76DF44)                ; +0x4, 0x76df38\nADD             R5, SP, #0x18+var_10                                   ; +0x6, 0x76df3a\nLDR             R1, =(aClearYourSaved - 0x76DF4A); \"Clear your saved <cb>death markers</c> \"... ; +0x8, 0x76df3c\nMOV             R4, R0                                                 ; +0xa, 0x76df3e\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xc, 0x76df40\nLDR             R6, [R6]; __stack_chk_guard                            ; +0xe, 0x76df42\nMOV             R0, R5                                                 ; +0x10, 0x76df44\nADD             R1, PC; \"Clear your saved <cb>death markers</c> \"...   ; +0x12, 0x76df46\nMOVS            R2, #0x6B ; 'k'                                        ; +0x14, 0x76df48\nLDR             R3, [R6]                                               ; +0x16, 0x76df4a\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x18, 0x76df4c\nMOVS            R3, #0                                                 ; +0x1a, 0x76df4e\nSTR             R3, [SP,#0x18+var_10]                                  ; +0x1c, 0x76df50\nSTR             R3, [SP,#0x18+var_C]                                   ; +0x1e, 0x76df52\nSTR             R3, [SP,#0x18+var_8]                                   ; +0x20, 0x76df54\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x22, 0x76df56\nLDR             R3, =(aClear - 0x76DF68); \"Clear\"                      ; +0x26, 0x76df5a\nADD.W           R0, R4, #0x2C8; int                                    ; +0x28, 0x76df5c\nLDR             R1, =(aClearMarkers - 0x76DF6E); \"Clear Markers\"       ; +0x2c, 0x76df60\nMOV             R2, R5; int                                            ; +0x2e, 0x76df62\nADD             R3, PC; \"Clear\"                                        ; +0x30, 0x76df64\nSTR             R3, [SP,#0x18+var_18]; int                             ; +0x32, 0x76df66\nLDR             R3, flt_76DFB8                                         ; +0x34, 0x76df68\nADD             R1, PC; \"Clear Markers\"                                ; +0x36, 0x76df6a\nSTR             R3, [SP,#0x18+var_14]; float                           ; +0x38, 0x76df6c\nLDR             R3, =(aCancel - 0x76DF74); \"Cancel\"                    ; +0x3a, 0x76df6e\nADD             R3, PC; \"Cancel\"                                       ; +0x3c, 0x76df70\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x3e, 0x76df72\nMOV             R4, R0                                                 ; +0x42, 0x76df76\nMOV             R0, R5                                                 ; +0x44, 0x76df78\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x46, 0x76df7a\nLDR             R3, [R4]                                               ; +0x4a, 0x76df7e\nMOV             R0, R4                                                 ; +0x4c, 0x76df80\nMOVS            R1, #1                                                 ; +0x4e, 0x76df82\nLDR             R3, [R3,#0x24]                                         ; +0x50, 0x76df84\nBLX             R3                                                     ; +0x52, 0x76df86\nLDR             R1, =(aGjButton06Png - 0x76DF92); \"GJ_button_06.png\"   ; +0x54, 0x76df88\nLDR.W           R0, [R4,#0x1E4]; this                                  ; +0x56, 0x76df8a\nADD             R1, PC; \"GJ_button_06.png\"                             ; +0x5a, 0x76df8e\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x5c, 0x76df90\nLDR             R3, [R4]                                               ; +0x60, 0x76df94\nMOV             R0, R4                                                 ; +0x62, 0x76df96\nLDR.W           R3, [R3,#0x290]                                        ; +0x64, 0x76df98\nBLX             R3                                                     ; +0x68, 0x76df9c\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x6a, 0x76df9e\nLDR             R3, [R6]                                               ; +0x6c, 0x76dfa0\nCMP             R2, R3                                                 ; +0x6e, 0x76dfa2\nBEQ             loc_76DFB4                                             ; +0x70, 0x76dfa4\nBLX             __stack_chk_fail                                       ; +0x72, 0x76dfa6\nMOV             R0, R5                                                 ; +0x76, 0x76dfaa\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x78, 0x76dfac\nBL              __cxa_end_cleanup                                      ; +0x7c, 0x76dfb0\nADD             SP, SP, #0x18                                          ; +0x80, 0x76dfb4\nPOP             {R4-R6,PC}                                             ; +0x82, 0x76dfb6", "xrefs": [], "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"}