{"type": "func", "start": 12359856, "end": 12360060, "name": "AutoSaveSettingsLayer::setBackupDirectory", "pseudocode": "// \n// AutoSaveSettingsLayer::setBackupDirectory from 0xbc98b0 to 0xbc997c (204 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x68ec0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:03:33 +0000\n// \n\n__int64 __fastcall AutoSaveSettingsLayer::setBackupDirectory(__int64 a1, __int64 a2)\n{\n  __int64 v2; // x20\n  cocos2d::CCObject *v3; // x0\n\n  v2 = *(_QWORD *)(GameManager::sharedState(_stack_chk_guard) + 432);\n  if ( v2 )\n  {\n    v3 = (cocos2d::CCObject *)cocos2d::CCString::create(a2);\n    cocos2d::CCDictionary::setObject(v2, v3);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; AutoSaveSettingsLayer::setBackupDirectory from 0xbc98b0 to 0xbc997c (204 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x68ec0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:03:33 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0xbc98b0\nMOV             X29, SP                                                ; +0x4, 0xbc98b4\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0xbc98b8\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xbc98bc\nSTR             X1, [X29,#0x50+var_28]                                 ; +0x10, 0xbc98c0\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x14, 0xbc98c4\nLDR             X0, [X0]; this                                         ; +0x18, 0xbc98c8\nSTR             X0, [X29,#0x50+var_8]                                  ; +0x1c, 0xbc98cc\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x20, 0xbc98d0\nLDR             X20, [X0,#0x1B0]                                       ; +0x24, 0xbc98d4\nCBZ             X20, loc_BC9930                                        ; +0x28, 0xbc98d8\nLDR             X1, [X29,#0x50+var_28]                                 ; +0x2c, 0xbc98dc\nMOV             X0, X1                                                 ; +0x30, 0xbc98e0\nBL              _ZN7cocos2d8CCString6createERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE; cocos2d::CCString::create(std::string const&) ; +0x34, 0xbc98e4\nSTR             XZR, [X29,#0x50+var_18]                                ; +0x38, 0xbc98e8\nADRP            X3, #aAutobackupdir@PAGE; \"autoBackupDir\"              ; +0x3c, 0xbc98ec\nADD             X2, X29, #0x50+var_20                                  ; +0x40, 0xbc98f0\nADD             X3, X3, #aAutobackupdir@PAGEOFF; \"autoBackupDir\"       ; +0x44, 0xbc98f4\nSTR             XZR, [X29,#0x50+var_10]                                ; +0x48, 0xbc98f8\nMOV             X1, X0; this                                           ; +0x4c, 0xbc98fc\nMOV             W7, #0x1A                                              ; +0x50, 0xbc9900\nMOV             X0, X20; int                                           ; +0x54, 0xbc9904\nSTRB            W7, [X29,#0x50+var_20]                                 ; +0x58, 0xbc9908\nLDR             X6, [X3]; \"autoBackupDir\"                              ; +0x5c, 0xbc990c\nLDR             W5, [X3,#(aAutobackupdir+8 - 0x1122810)]; \"upDir\"      ; +0x60, 0xbc9910\nSTUR            X6, [X29,#0x31]                                        ; +0x64, 0xbc9914\nLDRB            W3, [X3,#(aAutobackupdir+0xC - 0x1122810)]; \"r\"        ; +0x68, 0xbc9918\nSTUR            W5, [X2,#9]                                            ; +0x6c, 0xbc991c\nSTRB            W3, [X2,#0xD]                                          ; +0x70, 0xbc9920\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectERKNSt6__ndk112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const&) ; +0x74, 0xbc9924\nLDRB            W0, [X29,#0x50+var_20]                                 ; +0x78, 0xbc9928\nTBNZ            W0, #0, loc_BC9950                                     ; +0x7c, 0xbc992c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x80, 0xbc9930\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x84, 0xbc9934\nLDR             X0, [X19]                                              ; +0x88, 0xbc9938\nCMP             X1, X0                                                 ; +0x8c, 0xbc993c\nB.NE            loc_BC995C                                             ; +0x90, 0xbc9940\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x94, 0xbc9944\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x98, 0xbc9948\nRET                                                                    ; +0x9c, 0xbc994c\nLDR             X0, [X29,#0x50+var_10]; void *                         ; +0xa0, 0xbc9950\nBL              _ZdlPv; operator delete(void *)                        ; +0xa4, 0xbc9954\nB               loc_BC9930                                             ; +0xa8, 0xbc9958\nBL              .__stack_chk_fail                                      ; +0xac, 0xbc995c\nLDRB            W1, [X29,#0x50+var_20]                                 ; +0xb0, 0xbc9960\nMOV             X19, X0                                                ; +0xb4, 0xbc9964\nTBZ             W1, #0, loc_BC9974                                     ; +0xb8, 0xbc9968\nLDR             X0, [X29,#0x50+var_10]; void *                         ; +0xbc, 0xbc996c\nBL              _ZdlPv; operator delete(void *)                        ; +0xc0, 0xbc9970\nMOV             X0, X19                                                ; +0xc4, 0xbc9974\nBL              _Unwind_Resume                                         ; +0xc8, 0xbc9978", "xrefs": ["<???> @ 0x68ec0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}