{"type": "func", "start": 7236456, "end": 7236482, "name": "AutoSaveSettingsLayer::getBackupCap", "pseudocode": "// \n// AutoSaveSettingsLayer::getBackupCap from 0x6e6b68 to 0x6e6b82 (26 bytes)\n// \n// 4 xrefs:\n// > LevelEditorLayer::doAutoBackup @ 0x472d82\n// > AutoBackupOptionsPopup::getValue @ 0x73c364\n// > AutoBackupOptionsPopup::onPrune @ 0x73e97a\n// > AutoBackupOptionsPopup::FLAlert_Clicked @ 0x73eb16\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::getBackupCap(AutoSaveSettingsLayer *this)\n{\n  GameManager *v1; // r0\n  int IntGameVariable; // r0\n\n  v1 = (GameManager *)GameManager::sharedState(this);\n  IntGameVariable = GameManager::getIntGameVariable(v1, \"0236\");\n  if ( IntGameVariable <= 0 )\n    return 20;\n  else\n    return IntGameVariable - 1;\n}", "assembly": "; \n; AutoSaveSettingsLayer::getBackupCap from 0x6e6b68 to 0x6e6b82 (26 bytes)\n; \n; 4 xrefs:\n; > LevelEditorLayer::doAutoBackup @ 0x472d82\n; > AutoBackupOptionsPopup::getValue @ 0x73c364\n; > AutoBackupOptionsPopup::onPrune @ 0x73e97a\n; > AutoBackupOptionsPopup::FLAlert_Clicked @ 0x73eb16\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            {R3,LR}                                                ; +0x0, 0x6e6b68\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x2, 0x6e6b6a\nLDR             R1, =(a0236 - 0x6E6B74); \"0236\"                        ; +0x6, 0x6e6b6e\nADD             R1, PC; \"0236\"                                         ; +0x8, 0x6e6b70\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0xa, 0x6e6b72\nCMP             R0, #0                                                 ; +0xe, 0x6e6b76\nITE GT                                                                 ; +0x10, 0x6e6b78\nADDGT.W         R0, R0, #0xFFFFFFFF                                    ; +0x12, 0x6e6b7a\nMOVLE           R0, #0x14                                              ; +0x16, 0x6e6b7e\nPOP             {R3,PC}                                                ; +0x18, 0x6e6b80", "xrefs": ["LevelEditorLayer::doAutoBackup @ 0x472d82", "AutoBackupOptionsPopup::getValue @ 0x73c364", "AutoBackupOptionsPopup::onPrune @ 0x73e97a", "AutoBackupOptionsPopup::FLAlert_Clicked @ 0x73eb16"], "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"}