{"type": "func", "start": 12358908, "end": 12359136, "name": "AutoSaveSettingsLayer::getValue", "pseudocode": "// \n// AutoSaveSettingsLayer::getValue from 0xbc94fc to 0xbc95e0 (228 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0xdca20\n// > <???> @ 0x14e1198\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\nfloat __fastcall AutoSaveSettingsLayer::getValue(AutoSaveSettingsLayer *this, int a2)\n{\n  float result; // s0\n  GameManager *v3; // x0\n  int IntGameVariable; // w0\n  GameManager *v5; // x0\n  GameManager *v6; // x0\n  GameManager *v7; // x0\n\n  switch ( a2 )\n  {\n    case -4:\n      v6 = (GameManager *)GameManager::sharedState(this);\n      IntGameVariable = GameManager::getIntGameVariable(v6, \"0187\");\n      if ( IntGameVariable > 0 )\n        goto LABEL_5;\n      result = 60.0;\n      break;\n    case -3:\n      v5 = (GameManager *)GameManager::sharedState(this);\n      if ( (unsigned __int8)GameManager::getGameVariable(v5, \"0186\") )\n        goto LABEL_11;\n      goto LABEL_7;\n    case -2:\n      v3 = (GameManager *)GameManager::sharedState(this);\n      IntGameVariable = GameManager::getIntGameVariable(v3, \"0185\");\n      if ( IntGameVariable <= 0 )\n        result = 5.0;\n      else\nLABEL_5:\n        result = (float)(IntGameVariable / 60);\n      break;\n    case -1:\n      v7 = (GameManager *)GameManager::sharedState(this);\n      if ( (unsigned __int8)GameManager::getGameVariable(v7, \"0184\") )\nLABEL_11:\n        result = 1.0;\n      else\nLABEL_7:\n        result = 0.0;\n      break;\n    default:\n      result = SetupTriggerPopup::getValue((cocos2d::CCDictionary **)this, a2);\n      break;\n  }\n  return result;\n}", "assembly": "; \n; AutoSaveSettingsLayer::getValue from 0xbc94fc to 0xbc95e0 (228 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0xdca20\n; > <???> @ 0x14e1198\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, 0xbc94fc\nADD             W2, W1, #4                                             ; +0x4, 0xbc9500\nCMP             W2, #3; switch 4 cases                                 ; +0x8, 0xbc9504\nMOV             X29, SP                                                ; +0xc, 0xbc9508\nB.LS            loc_BC9518                                             ; +0x10, 0xbc950c\nLDP             X29, X30, [SP+var_s0],#0x10; jumptable 0000000000BC952C default case ; +0x14, 0xbc9510\nB               _ZN17SetupTriggerPopup8getValueEi; SetupTriggerPopup::getValue(int) ; +0x18, 0xbc9514\nADRL            X0, jpt_BC952C                                         ; +0x1c, 0xbc9518\nLDRB            W0, [X0,W2,UXTW]                                       ; +0x24, 0xbc9520\nADR             X1, loc_BC9530; jumptable 0000000000BC952C case 2      ; +0x28, 0xbc9524\nADD             X0, X1, W0,SXTB#2; this                                ; +0x2c, 0xbc9528\nBR              X0; switch jump                                        ; +0x30, 0xbc952c\nBL              _ZN11GameManager11sharedStateEv; jumptable 0000000000BC952C case 2 ; +0x34, 0xbc9530\nADRL            X1, a0185; \"0185\"                                      ; +0x38, 0xbc9534\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x40, 0xbc953c\nCMP             W0, WZR                                                ; +0x44, 0xbc9540\nB.LE            loc_BC95D8                                             ; +0x48, 0xbc9544\nMOV             W1, #0x88888889                                        ; +0x4c, 0xbc9548\nSMULL           X1, W0, W1                                             ; +0x54, 0xbc9550\nLSR             X1, X1, #0x20 ; ' '                                    ; +0x58, 0xbc9554\nADD             W1, W0, W1                                             ; +0x5c, 0xbc9558\nASR             W1, W1, #5                                             ; +0x60, 0xbc955c\nSUB             W0, W1, W0,ASR#31                                      ; +0x64, 0xbc9560\nSCVTF           S0, W0                                                 ; +0x68, 0xbc9564\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x6c, 0xbc9568\nRET                                                                    ; +0x70, 0xbc956c\nBL              _ZN11GameManager11sharedStateEv; jumptable 0000000000BC952C case 1 ; +0x74, 0xbc9570\nADRL            X1, a0186; \"0186\"                                      ; +0x78, 0xbc9574\nBL              _ZN11GameManager15getGameVariableEPKc; GameManager::getGameVariable(char const*) ; +0x80, 0xbc957c\nUXTB            W0, W0                                                 ; +0x84, 0xbc9580\nCBNZ            W0, loc_BC95CC                                         ; +0x88, 0xbc9584\nFMOV            S0, WZR                                                ; +0x8c, 0xbc9588\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x90, 0xbc958c\nRET                                                                    ; +0x94, 0xbc9590\nBL              _ZN11GameManager11sharedStateEv; jumptable 0000000000BC952C case 0 ; +0x98, 0xbc9594\nADRL            X1, a0187; \"0187\"                                      ; +0x9c, 0xbc9598\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0xa4, 0xbc95a0\nCMP             W0, WZR                                                ; +0xa8, 0xbc95a4\nB.GT            loc_BC9548                                             ; +0xac, 0xbc95a8\nLDR             S0, =0x42700000                                        ; +0xb0, 0xbc95ac\nB               loc_BC9568                                             ; +0xb4, 0xbc95b0\nBL              _ZN11GameManager11sharedStateEv; jumptable 0000000000BC952C case 3 ; +0xb8, 0xbc95b4\nADRL            X1, a0184; \"0184\"                                      ; +0xbc, 0xbc95b8\nBL              _ZN11GameManager15getGameVariableEPKc; GameManager::getGameVariable(char const*) ; +0xc4, 0xbc95c0\nUXTB            W0, W0                                                 ; +0xc8, 0xbc95c4\nCBZ             W0, loc_BC9588                                         ; +0xcc, 0xbc95c8\nFMOV            S0, #1.0                                               ; +0xd0, 0xbc95cc\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0xd4, 0xbc95d0\nRET                                                                    ; +0xd8, 0xbc95d4\nFMOV            S0, #5.0                                               ; +0xdc, 0xbc95d8\nB               loc_BC9568                                             ; +0xe0, 0xbc95dc", "xrefs": ["<???> @ 0xdca20", "<???> @ 0x14e1198"], "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"}