{"type": "func", "start": 7742276, "end": 7742476, "name": "ClearPlatformerSavesPopup::FLAlert_Clicked", "pseudocode": "// \n// ClearPlatformerSavesPopup::FLAlert_Clicked from 0x762344 to 0x76240c (200 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'ClearPlatformerSavesPopup::FLAlert_Clicked @ 0x76242c\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:04 +0000\n// \n\nint __fastcall ClearPlatformerSavesPopup::FLAlert_Clicked(cocos2d::CCLabelBMFont **this, FLAlertLayer *a2, int a3)\n{\n  int result; // r0\n  GameLevelManager *v6; // r0\n  const char *v7; // r4\n  __int16 *v8; // r2\n  cocos2d::CCString *v9; // r0\n  const char *CString; // r6\n  size_t v11; // r0\n  int *v12; // r4\n  int v13[3]; // [sp+Ch] [bp-20h] BYREF\n  int v14[3]; // [sp+18h] [bp-14h] BYREF\n\n  result = (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2);\n  if ( result == 1 && a3 )\n  {\n    v6 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)((char *)&dword_0 + 1));\n    v7 = (const char *)GameLevelManager::clearPlatformerSaves(v6, *((unsigned __int8 *)this + 524));\n    ClearPlatformerSavesPopup::updateStats(this);\n    if ( v7 == (_BYTE *)&dword_0 + 1 )\n      v8 = (__int16 *)&unk_B6B226;\n    else\n      v8 = &a1i2r3e45s789g[8];\n    v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                (cocos2d::CCString *)\"Cleared <cg>%i</c> platformer save%s.\",\n                                v7,\n                                v8);\n    memset(v13, 0, sizeof(v13));\n    CString = (const char *)cocos2d::CCString::getCString(v9);\n    v11 = strlen(CString);\n    std::string::__init(v13, CString, v11);\n    std::string::basic_string(v14, (int)v13);\n    v12 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)\"Cleared\", (int)v14, (ButtonSprite *)\"OK\", nullptr, 300.0);\n    std::string::~string((int)v14);\n    (*(void (__fastcall **)(int *))(*v12 + 656))(v12);\n    return std::string::~string((int)v13);\n  }\n  return result;\n}", "assembly": "; \n; ClearPlatformerSavesPopup::FLAlert_Clicked from 0x762344 to 0x76240c (200 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'ClearPlatformerSavesPopup::FLAlert_Clicked @ 0x76242c\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:04 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x762344\nSUB             SP, SP, #0x2C                                          ; +0x2, 0x762346\nLDR             R7, =(__stack_chk_guard_ptr - 0x762354)                ; +0x4, 0x762348\nMOV             R5, R0                                                 ; +0x6, 0x76234a\nMOV             R0, R1                                                 ; +0x8, 0x76234c\nMOV             R4, R2                                                 ; +0xa, 0x76234e\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0xc, 0x762350\nLDR             R7, [R7]; __stack_chk_guard                            ; +0xe, 0x762352\nLDR             R3, [R7]                                               ; +0x10, 0x762354\nSTR             R3, [SP,#0x2C+var_8]                                   ; +0x12, 0x762356\nLDR             R3, [R1]                                               ; +0x14, 0x762358\nLDR             R3, [R3,#0x20]                                         ; +0x16, 0x76235a\nBLX             R3                                                     ; +0x18, 0x76235c\nCMP             R0, #1                                                 ; +0x1a, 0x76235e\nBNE             loc_7623FC                                             ; +0x1c, 0x762360\nCMP             R4, #0                                                 ; +0x1e, 0x762362\nBEQ             loc_7623FC                                             ; +0x20, 0x762364\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x22, 0x762366\nLDRB.W          R1, [R5,#0x20C]; int                                   ; +0x26, 0x76236a\nBL              _ZN16GameLevelManager20clearPlatformerSavesEi; GameLevelManager::clearPlatformerSaves(int) ; +0x2a, 0x76236e\nMOV             R4, R0                                                 ; +0x2e, 0x762372\nMOV             R0, R5; this                                           ; +0x30, 0x762374\nBL              _ZN25ClearPlatformerSavesPopup11updateStatsEv; ClearPlatformerSavesPopup::updateStats(void) ; +0x32, 0x762376\nCMP             R4, #1                                                 ; +0x36, 0x76237a\nBEQ             loc_762384                                             ; +0x38, 0x76237c\nLDR             R2, =(a1i2r3e45s789g+0x10 - 0x762384); \"s789g\"         ; +0x3a, 0x76237e\nADD             R2, PC; \"s789g\"                                        ; +0x3c, 0x762380\nB               loc_762388                                             ; +0x3e, 0x762382\nLDR             R2, =(unk_B6B226 - 0x76238A)                           ; +0x40, 0x762384\nADD             R2, PC; unk_B6B226                                     ; +0x42, 0x762386\nLDR             R0, =(aClearedCgICPla - 0x762394); \"Cleared <cg>%i</c> platformer save%s.\" ; +0x44, 0x762388\nMOV             R1, R4; char *                                         ; +0x46, 0x76238a\nMOVS            R4, #0                                                 ; +0x48, 0x76238c\nADD             R5, SP, #0x2C+var_20                                   ; +0x4a, 0x76238e\nADD             R0, PC; \"Cleared <cg>%i</c> platformer save%s.\"        ; +0x4c, 0x762390\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x4e, 0x762392\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x52, 0x762396\nSTR             R4, [SP,#0x2C+var_20]                                  ; +0x56, 0x76239a\nSTR             R4, [SP,#0x2C+var_1C]                                  ; +0x58, 0x76239c\nSTR             R4, [SP,#0x2C+var_18]                                  ; +0x5a, 0x76239e\nMOV             R6, R0                                                 ; +0x5c, 0x7623a0\nBLX             strlen                                                 ; +0x5e, 0x7623a2\nMOV             R1, R6                                                 ; +0x62, 0x7623a6\nADD             R6, SP, #0x2C+var_14                                   ; +0x64, 0x7623a8\nMOV             R2, R0                                                 ; +0x66, 0x7623aa\nMOV             R0, R5                                                 ; +0x68, 0x7623ac\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x6a, 0x7623ae\nMOV             R0, R6                                                 ; +0x6e, 0x7623b2\nMOV             R1, R5                                                 ; +0x70, 0x7623b4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x72, 0x7623b6\nLDR             R3, flt_76240C                                         ; +0x76, 0x7623ba\nMOV             R0, R4; int                                            ; +0x78, 0x7623bc\nLDR             R1, =(aCleared_0 - 0x7623CA); \"Cleared\"                ; +0x7a, 0x7623be\nMOV             R2, R6; int                                            ; +0x7c, 0x7623c0\nSTR             R4, [SP,#0x2C+var_2C]; int                             ; +0x7e, 0x7623c2\nSTR             R3, [SP,#0x2C+var_28]; float                           ; +0x80, 0x7623c4\nADD             R1, PC; \"Cleared\"                                      ; +0x82, 0x7623c6\nLDR             R3, =(aOk - 0x7623CE); \"OK\"                            ; +0x84, 0x7623c8\nADD             R3, PC; \"OK\"                                           ; +0x86, 0x7623ca\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x88, 0x7623cc\nMOV             R4, R0                                                 ; +0x8c, 0x7623d0\nMOV             R0, R6                                                 ; +0x8e, 0x7623d2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x90, 0x7623d4\nLDR             R3, [R4]                                               ; +0x94, 0x7623d8\nMOV             R0, R4                                                 ; +0x96, 0x7623da\nLDR.W           R3, [R3,#0x290]                                        ; +0x98, 0x7623dc\nBLX             R3                                                     ; +0x9c, 0x7623e0\nMOV             R0, R5                                                 ; +0x9e, 0x7623e2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xa0, 0x7623e4\nB               loc_7623FC                                             ; +0xa4, 0x7623e8\nMOV             R0, R6                                                 ; +0xa6, 0x7623ea\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xa8, 0x7623ec\nB               loc_7623F2                                             ; +0xac, 0x7623f0\nMOV             R0, R5                                                 ; +0xae, 0x7623f2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xb0, 0x7623f4\nBL              __cxa_end_cleanup                                      ; +0xb4, 0x7623f8\nLDR             R2, [SP,#0x2C+var_8]                                   ; +0xb8, 0x7623fc\nLDR             R3, [R7]                                               ; +0xba, 0x7623fe\nCMP             R2, R3                                                 ; +0xbc, 0x762400\nBEQ             loc_762408                                             ; +0xbe, 0x762402\nBLX             __stack_chk_fail                                       ; +0xc0, 0x762404\nADD             SP, SP, #0x2C ; ','                                    ; +0xc4, 0x762408\nPOP             {R4-R7,PC}                                             ; +0xc6, 0x76240a", "xrefs": ["`non-virtual thunk to'ClearPlatformerSavesPopup::FLAlert_Clicked @ 0x76242c"], "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"}