{"type": "func", "start": 7238000, "end": 7238190, "name": "AutoSaveSettingsLayer::onOpenBackupDir", "pseudocode": "// \n// AutoSaveSettingsLayer::onOpenBackupDir from 0x6e7170 to 0x6e722e (190 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:57:25 +0000\n// \n\nint __fastcall AutoSaveSettingsLayer::onOpenBackupDir(AutoSaveSettingsLayer *this, cocos2d::CCObject *a2)\n{\n  AutoSaveSettingsLayer *CustomBackupDirectory; // r0\n  int v4; // r3\n  int v6; // r3\n  void (__fastcall *v7)(AutoSaveSettingsLayer *, cocos2d::CCNode *, int); // r9\n  cocos2d::CCNode *v8; // r0\n  _BYTE v9[4]; // [sp+8h] [bp-2Ch] BYREF\n  int v10; // [sp+Ch] [bp-28h]\n  int v11[3]; // [sp+14h] [bp-20h] BYREF\n  int v12[3]; // [sp+20h] [bp-14h] BYREF\n\n  CustomBackupDirectory = AutoSaveSettingsLayer::getCustomBackupDirectory((AutoSaveSettingsLayer *)v9);\n  if ( (v9[0] & 1) != 0 )\n    v4 = v10;\n  else\n    v4 = (int)v9[0] >> 1;\n  if ( v4 && (CustomBackupDirectory = (AutoSaveSettingsLayer *)GameToolbox::directoryExists((int)v9)) == nullptr )\n  {\n    v6 = *(_DWORD *)this;\n    memset(v11, 0, sizeof(v11));\n    v7 = *(void (__fastcall **)(AutoSaveSettingsLayer *, cocos2d::CCNode *, int))(v6 + 232);\n    std::string::__init(v11, \"Directory not found\", 0x13u);\n    memset(v12, 0, sizeof(v12));\n    std::string::__init(v12, &unk_B6B226, 0);\n    v8 = TextAlertPopup::create((int)v11, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v12);\n    v7(this, v8, 100);\n    std::string::~string((int)v12);\n    std::string::~string((int)v11);\n  }\n  else\n  {\n    AutoSaveSettingsLayer::openBackupDirectory(CustomBackupDirectory);\n  }\n  return std::string::~string((int)v9);\n}", "assembly": "; \n; AutoSaveSettingsLayer::onOpenBackupDir from 0x6e7170 to 0x6e722e (190 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:57:25 +0000\n; \nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x6e7170\nSUB             SP, SP, #0x34                                          ; +0x4, 0x6e7174\nLDR             R4, =(__stack_chk_guard_ptr - 0x6E7180)                ; +0x6, 0x6e7176\nADD             R5, SP, #0x34+var_2C                                   ; +0x8, 0x6e7178\nMOV             R8, R0                                                 ; +0xa, 0x6e717a\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xc, 0x6e717c\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xe, 0x6e717e\nMOV             R0, R5; this                                           ; +0x10, 0x6e7180\nLDR             R3, [R4]                                               ; +0x12, 0x6e7182\nSTR             R3, [SP,#0x34+var_8]                                   ; +0x14, 0x6e7184\nBL              _ZN21AutoSaveSettingsLayer24getCustomBackupDirectoryEv; AutoSaveSettingsLayer::getCustomBackupDirectory(void) ; +0x16, 0x6e7186\nLDRB.W          R3, [SP,#0x34+var_2C]                                  ; +0x1a, 0x6e718a\nLSLS            R2, R3, #0x1F                                          ; +0x1e, 0x6e718e\nITE PL                                                                 ; +0x20, 0x6e7190\nASRPL           R3, R3, #1                                             ; +0x22, 0x6e7192\nLDRMI           R3, [SP,#0x34+var_28]                                  ; +0x24, 0x6e7194\nCBZ             R3, loc_6E71AC                                         ; +0x26, 0x6e7196\nMOV             R0, R5                                                 ; +0x28, 0x6e7198\nBL              _ZN11GameToolbox15directoryExistsERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; GameToolbox::directoryExists(std::string const&) ; +0x2a, 0x6e719a\nCBNZ            R0, loc_6E71AC                                         ; +0x2e, 0x6e719e\nB               loc_6E71C2                                             ; +0x30, 0x6e71a0\nMOV             R0, R5                                                 ; +0x32, 0x6e71a2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x34, 0x6e71a4\nBL              __cxa_end_cleanup                                      ; +0x38, 0x6e71a8\nBL              _ZN21AutoSaveSettingsLayer19openBackupDirectoryEv; AutoSaveSettingsLayer::openBackupDirectory(void) ; +0x3c, 0x6e71ac\nMOV             R0, R5                                                 ; +0x40, 0x6e71b0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x42, 0x6e71b2\nLDR             R2, [SP,#0x34+var_8]                                   ; +0x46, 0x6e71b6\nLDR             R3, [R4]                                               ; +0x48, 0x6e71b8\nCMP             R2, R3                                                 ; +0x4a, 0x6e71ba\nBEQ             loc_6E7228                                             ; +0x4c, 0x6e71bc\nBLX             __stack_chk_fail                                       ; +0x4e, 0x6e71be\nLDR.W           R3, [R8]                                               ; +0x52, 0x6e71c2\nADD             R6, SP, #0x34+var_20                                   ; +0x56, 0x6e71c6\nLDR             R1, =(aDirectoryNotFo - 0x6E71D4); \"Directory not found\" ; +0x58, 0x6e71c8\nMOVS            R2, #0x13                                              ; +0x5a, 0x6e71ca\nSTR             R0, [SP,#0x34+var_20]                                  ; +0x5c, 0x6e71cc\nSTR             R0, [SP,#0x34+var_1C]                                  ; +0x5e, 0x6e71ce\nADD             R1, PC; \"Directory not found\"                          ; +0x60, 0x6e71d0\nSTR             R0, [SP,#0x34+var_18]                                  ; +0x62, 0x6e71d2\nMOV             R0, R6                                                 ; +0x64, 0x6e71d4\nLDR.W           R9, [R3,#0xE8]                                         ; +0x66, 0x6e71d6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x6a, 0x6e71da\nADD             R7, SP, #0x34+var_14                                   ; +0x6e, 0x6e71de\nLDR             R1, =(unk_B6B226 - 0x6E71EC)                           ; +0x70, 0x6e71e0\nMOVS            R2, #0                                                 ; +0x72, 0x6e71e2\nSTR             R2, [SP,#0x34+var_14]                                  ; +0x74, 0x6e71e4\nMOV             R0, R7                                                 ; +0x76, 0x6e71e6\nADD             R1, PC; unk_B6B226                                     ; +0x78, 0x6e71e8\nSTR             R2, [SP,#0x34+var_10]                                  ; +0x7a, 0x6e71ea\nSTR             R2, [SP,#0x34+var_C]                                   ; +0x7c, 0x6e71ec\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x7e, 0x6e71ee\nSTR             R7, [SP,#0x34+var_34]                                  ; +0x82, 0x6e71f2\nMOV             R0, R6                                                 ; +0x84, 0x6e71f4\nMOV.W           R1, #0x3F000000                                        ; +0x86, 0x6e71f6\nLDR             R2, =0x3F19999A                                        ; +0x8a, 0x6e71fa\nMOVS            R3, #0x96                                              ; +0x8c, 0x6e71fc\nBL              _ZN14TextAlertPopup6createENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEffiS6_; TextAlertPopup::create(std::string,float,float,int,std::string) ; +0x8e, 0x6e71fe\nMOV             R1, R0                                                 ; +0x92, 0x6e7202\nMOVS            R2, #0x64 ; 'd'                                        ; +0x94, 0x6e7204\nMOV             R0, R8                                                 ; +0x96, 0x6e7206\nBLX             R9                                                     ; +0x98, 0x6e7208\nMOV             R0, R7                                                 ; +0x9a, 0x6e720a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x9c, 0x6e720c\nMOV             R0, R6                                                 ; +0xa0, 0x6e7210\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xa2, 0x6e7212\nB               loc_6E71B0                                             ; +0xa6, 0x6e7216\nMOV             R0, R7                                                 ; +0xa8, 0x6e7218\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xaa, 0x6e721a\nB               loc_6E7220                                             ; +0xae, 0x6e721e\nMOV             R0, R6                                                 ; +0xb0, 0x6e7220\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xb2, 0x6e7222\nB               loc_6E71A2                                             ; +0xb6, 0x6e7226\nADD             SP, SP, #0x34 ; '4'                                    ; +0xb8, 0x6e7228\nPOP.W           {R4-R9,PC}                                             ; +0xba, 0x6e722a", "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"}