{"type": "func", "start": 12359748, "end": 12359796, "name": "AutoSaveSettingsLayer::getBackupCap", "pseudocode": "// \n// AutoSaveSettingsLayer::getBackupCap from 0xbc9844 to 0xbc9874 (48 bytes)\n// \n// 5 xrefs:\n// > LevelEditorLayer::doAutoBackup @ 0x7a85c4\n// > AutoBackupOptionsPopup::getValue @ 0xc51cb0\n// > AutoBackupOptionsPopup::onPrune @ 0xc58b90\n// > AutoBackupOptionsPopup::FLAlert_Clicked @ 0xc58ee0\n// > <???> @ 0x79d38\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::getBackupCap(AutoSaveSettingsLayer *this)\n{\n  GameManager *v1; // x0\n  int IntGameVariable; // w0\n\n  v1 = (GameManager *)GameManager::sharedState(this);\n  IntGameVariable = GameManager::getIntGameVariable(v1, \"0236\");\n  if ( IntGameVariable <= 0 )\n    return 20;\n  else\n    return (unsigned int)(IntGameVariable - 1);\n}", "assembly": "; \n; AutoSaveSettingsLayer::getBackupCap from 0xbc9844 to 0xbc9874 (48 bytes)\n; \n; 5 xrefs:\n; > LevelEditorLayer::doAutoBackup @ 0x7a85c4\n; > AutoBackupOptionsPopup::getValue @ 0xc51cb0\n; > AutoBackupOptionsPopup::onPrune @ 0xc58b90\n; > AutoBackupOptionsPopup::FLAlert_Clicked @ 0xc58ee0\n; > <???> @ 0x79d38\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,#-0x10+var_s0]!                          ; +0x0, 0xbc9844\nMOV             X29, SP                                                ; +0x4, 0xbc9848\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x8, 0xbc984c\nADRL            X1, a0236; \"0236\"                                      ; +0xc, 0xbc9850\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x14, 0xbc9858\nSUB             W1, W0, #1                                             ; +0x18, 0xbc985c\nCMP             W0, WZR                                                ; +0x1c, 0xbc9860\nMOV             W0, #0x14                                              ; +0x20, 0xbc9864\nCSEL            W0, W1, W0, GT                                         ; +0x24, 0xbc9868\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x28, 0xbc986c\nRET                                                                    ; +0x2c, 0xbc9870", "xrefs": ["LevelEditorLayer::doAutoBackup @ 0x7a85c4", "AutoBackupOptionsPopup::getValue @ 0xc51cb0", "AutoBackupOptionsPopup::onPrune @ 0xc58b90", "AutoBackupOptionsPopup::FLAlert_Clicked @ 0xc58ee0", "<???> @ 0x79d38"], "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"}