{"type": "func", "start": 12359796, "end": 12359856, "name": "AutoSaveSettingsLayer::setBackupCap", "pseudocode": "// \n// AutoSaveSettingsLayer::setBackupCap from 0xbc9874 to 0xbc98b0 (60 bytes)\n// \n// 2 xrefs:\n// > AutoBackupOptionsPopup::valueDidChange @ 0xc51b8c\n// > <???> @ 0xfb6e0\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::setBackupCap(AutoSaveSettingsLayer *this)\n{\n  int v1; // w19\n  GameManager *v2; // x0\n  int v3; // w2\n\n  if ( (int)this > 1000 )\n    v1 = 1000;\n  else\n    v1 = (int)this;\n  v2 = (GameManager *)GameManager::sharedState(this);\n  if ( v1 < 0 )\n    v3 = 0;\n  else\n    v3 = v1;\n  return GameManager::setIntGameVariable(v2, \"0236\", v3 + 1);\n}", "assembly": "; \n; AutoSaveSettingsLayer::setBackupCap from 0xbc9874 to 0xbc98b0 (60 bytes)\n; \n; 2 xrefs:\n; > AutoBackupOptionsPopup::valueDidChange @ 0xc51b8c\n; > <???> @ 0xfb6e0\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_20]!                                ; +0x0, 0xbc9874\nCMP             W0, #0x3E8                                             ; +0x4, 0xbc9878\nMOV             X29, SP                                                ; +0x8, 0xbc987c\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0xbc9880\nMOV             W19, #0x3E8                                            ; +0x10, 0xbc9884\nCSEL            W19, W0, W19, LE                                       ; +0x14, 0xbc9888\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x18, 0xbc988c\nCMP             W19, WZR                                               ; +0x1c, 0xbc9890\nADRP            X1, #a0236@PAGE; \"0236\"                                ; +0x20, 0xbc9894\nCSEL            W2, W19, WZR, GE                                       ; +0x24, 0xbc9898\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x28, 0xbc989c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x2c, 0xbc98a0\nADD             X1, X1, #a0236@PAGEOFF; \"0236\"                         ; +0x30, 0xbc98a4\nADD             W2, W2, #1; int                                        ; +0x34, 0xbc98a8\nB               _ZN11GameManager18setIntGameVariableEPKci; GameManager::setIntGameVariable(char const*,int) ; +0x38, 0xbc98ac", "xrefs": ["AutoBackupOptionsPopup::valueDidChange @ 0xc51b8c", "<???> @ 0xfb6e0"], "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"}