{"type": "func", "start": 7236904, "end": 7237004, "name": "AutoSaveSettingsLayer::setBackupDirectory", "pseudocode": "// \n// AutoSaveSettingsLayer::setBackupDirectory from 0x6e6d28 to 0x6e6d8c (100 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::setBackupDirectory(GameManager *a1, int a2)\n{\n  int result; // r0\n  int v4; // r6\n  cocos2d::CCObject *v5; // r7\n  int v6[3]; // [sp+0h] [bp-14h] BYREF\n\n  result = GameManager::sharedState(a1);\n  v4 = *(_DWORD *)(result + 324);\n  if ( v4 )\n  {\n    memset(v6, 0, sizeof(v6));\n    v5 = (cocos2d::CCObject *)cocos2d::CCString::create(a2);\n    std::string::__init(v6, \"autoBackupDir\", 0xDu);\n    cocos2d::CCDictionary::setObject(v4, v5);\n    return std::string::~string((int)v6);\n  }\n  return result;\n}", "assembly": "; \n; AutoSaveSettingsLayer::setBackupDirectory from 0x6e6d28 to 0x6e6d8c (100 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            {R4-R7,LR}                                             ; +0x0, 0x6e6d28\nSUB             SP, SP, #0x14                                          ; +0x2, 0x6e6d2a\nLDR             R4, =(__stack_chk_guard_ptr - 0x6E6D34)                ; +0x4, 0x6e6d2c\nMOV             R5, R1                                                 ; +0x6, 0x6e6d2e\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0x8, 0x6e6d30\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xa, 0x6e6d32\nLDR             R3, [R4]                                               ; +0xc, 0x6e6d34\nSTR             R3, [SP,#0x14+var_8]                                   ; +0xe, 0x6e6d36\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x10, 0x6e6d38\nLDR.W           R6, [R0,#0x144]                                        ; +0x14, 0x6e6d3c\nCBZ             R6, loc_6E6D7C                                         ; +0x18, 0x6e6d40\nMOV             R0, R5                                                 ; +0x1a, 0x6e6d42\nMOV             R5, SP                                                 ; +0x1c, 0x6e6d44\nBL              _ZN7cocos2d8CCString6createERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE; cocos2d::CCString::create(std::string const&) ; +0x1e, 0x6e6d46\nLDR             R1, =(aAutobackupdir - 0x6E6D54); \"autoBackupDir\"      ; +0x22, 0x6e6d4a\nMOVS            R2, #0xD                                               ; +0x24, 0x6e6d4c\nMOVS            R3, #0                                                 ; +0x26, 0x6e6d4e\nADD             R1, PC; \"autoBackupDir\"                                ; +0x28, 0x6e6d50\nSTR             R3, [SP,#0x14+var_14]                                  ; +0x2a, 0x6e6d52\nSTR             R3, [SP,#0x14+var_10]                                  ; +0x2c, 0x6e6d54\nSTR             R3, [SP,#0x14+var_C]                                   ; +0x2e, 0x6e6d56\nMOV             R7, R0                                                 ; +0x30, 0x6e6d58\nMOV             R0, SP                                                 ; +0x32, 0x6e6d5a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x34, 0x6e6d5c\nMOV             R0, R6; int                                            ; +0x38, 0x6e6d60\nMOV             R1, R7; this                                           ; +0x3a, 0x6e6d62\nMOV             R2, SP                                                 ; +0x3c, 0x6e6d64\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectERKNSt6__ndk112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const&) ; +0x3e, 0x6e6d66\nMOV             R0, SP                                                 ; +0x42, 0x6e6d6a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x44, 0x6e6d6c\nB               loc_6E6D7C                                             ; +0x48, 0x6e6d70\nMOV             R0, R5                                                 ; +0x4a, 0x6e6d72\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x4c, 0x6e6d74\nBL              __cxa_end_cleanup                                      ; +0x50, 0x6e6d78\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x54, 0x6e6d7c\nLDR             R3, [R4]                                               ; +0x56, 0x6e6d7e\nCMP             R2, R3                                                 ; +0x58, 0x6e6d80\nBEQ             loc_6E6D88                                             ; +0x5a, 0x6e6d82\nBLX             __stack_chk_fail                                       ; +0x5c, 0x6e6d84\nADD             SP, SP, #0x14                                          ; +0x60, 0x6e6d88\nPOP             {R4-R7,PC}                                             ; +0x62, 0x6e6d8a", "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"}