{"type": "func", "start": 7236016, "end": 7236140, "name": "AutoSaveSettingsLayer::getValue", "pseudocode": "// \n// AutoSaveSettingsLayer::getValue from 0x6e69b0 to 0x6e6a2c (124 bytes)\n// \n// 0 xrefs:\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\nfloat __fastcall AutoSaveSettingsLayer::getValue(AutoSaveSettingsLayer *this, int a2, int a3, int a4)\n{\n  GameManager *v4; // r0\n  char *v5; // r1\n  float v6; // s15\n  GameManager *v7; // r0\n  int IntGameVariable; // r0\n  GameManager *v9; // r0\n  float result; // r0\n\n  switch ( a2 )\n  {\n    case -4:\n      v9 = (GameManager *)GameManager::sharedState(this);\n      IntGameVariable = GameManager::getIntGameVariable(v9, \"0187\");\n      if ( IntGameVariable <= 0 )\n        IntGameVariable = 3600;\n      goto LABEL_12;\n    case -3:\n      v4 = (GameManager *)GameManager::sharedState(this);\n      v5 = \"0186\";\n      goto LABEL_3;\n    case -2:\n      v7 = (GameManager *)GameManager::sharedState(this);\n      IntGameVariable = GameManager::getIntGameVariable(v7, \"0185\");\n      if ( IntGameVariable <= 0 )\n        IntGameVariable = (int)&dword_12C;\nLABEL_12:\n      v6 = (float)(IntGameVariable / 60);\n      goto LABEL_14;\n    case -1:\n      v4 = (GameManager *)GameManager::sharedState(this);\n      v5 = \"0184\";\nLABEL_3:\n      if ( GameManager::getGameVariable(v4, v5) )\n        v6 = 1.0;\n      else\n        v6 = 0.0;\nLABEL_14:\n      result = v6;\n      break;\n    default:\n      result = SetupTriggerPopup::getValue((cocos2d::CCDictionary **)this, a2, a3, a4);\n      break;\n  }\n  return result;\n}", "assembly": "; \n; AutoSaveSettingsLayer::getValue from 0x6e69b0 to 0x6e6a2c (124 bytes)\n; \n; 0 xrefs:\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, 0x6e69b0\nADDS            R3, R1, #4                                             ; +0x2, 0x6e69b2\nCMP             R3, #3; switch 4 cases                                 ; +0x4, 0x6e69b4\nBHI             def_6E69B8; jumptable 006E69B8 default case            ; +0x6, 0x6e69b6\nTBB.W           [PC,R3]; switch jump                                   ; +0x8, 0x6e69b8\nDCB 0x1F; jump table for switch statement                              ; +0xc, 0x6e69bc\nDCB 0x1A                                                               ; +0xd, 0x6e69bd\nDCB 0xF                                                                ; +0xe, 0x6e69be\nDCB 2                                                                  ; +0xf, 0x6e69bf\nBL              _ZN11GameManager11sharedStateEv; jumptable 006E69B8 case 3 ; +0x10, 0x6e69c0\nLDR             R1, =(a0184 - 0x6E69CA); \"0184\"                        ; +0x14, 0x6e69c4\nADD             R1, PC; \"0184\"                                         ; +0x16, 0x6e69c6\nBL              _ZN11GameManager15getGameVariableEPKc; GameManager::getGameVariable(char const*) ; +0x18, 0x6e69c8\nCBZ             R0, loc_6E69D4                                         ; +0x1c, 0x6e69cc\nVMOV.F32        S15, #1.0                                              ; +0x1e, 0x6e69ce\nB               loc_6E6A26                                             ; +0x22, 0x6e69d2\nVLDR            S15, =0.0                                              ; +0x24, 0x6e69d4\nB               loc_6E6A26                                             ; +0x28, 0x6e69d8\nBL              _ZN11GameManager11sharedStateEv; jumptable 006E69B8 case 2 ; +0x2a, 0x6e69da\nLDR             R1, =(a0185 - 0x6E69E4); \"0185\"                        ; +0x2e, 0x6e69de\nADD             R1, PC; \"0185\"                                         ; +0x30, 0x6e69e0\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x32, 0x6e69e2\nCMP             R0, #0                                                 ; +0x36, 0x6e69e6\nIT LE                                                                  ; +0x38, 0x6e69e8\nMOVLE.W         R0, #dword_12C; this                                   ; +0x3a, 0x6e69ea\nB               loc_6E6A0E                                             ; +0x3e, 0x6e69ee\nBL              _ZN11GameManager11sharedStateEv; jumptable 006E69B8 case 1 ; +0x40, 0x6e69f0\nLDR             R1, =(a0186 - 0x6E69FA); \"0186\"                        ; +0x44, 0x6e69f4\nADD             R1, PC; \"0186\"                                         ; +0x46, 0x6e69f6\nB               loc_6E69C8                                             ; +0x48, 0x6e69f8\nBL              _ZN11GameManager11sharedStateEv; jumptable 006E69B8 case 0 ; +0x4a, 0x6e69fa\nLDR             R1, =(a0187 - 0x6E6A04); \"0187\"                        ; +0x4e, 0x6e69fe\nADD             R1, PC; \"0187\"                                         ; +0x50, 0x6e6a00\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x52, 0x6e6a02\nCMP             R0, #0                                                 ; +0x56, 0x6e6a06\nIT LE                                                                  ; +0x58, 0x6e6a08\nMOVLE.W         R0, #0xE10                                             ; +0x5a, 0x6e6a0a\nMOVS            R1, #0x3C ; '<'                                        ; +0x5e, 0x6e6a0e\nBLX             __aeabi_idiv                                           ; +0x60, 0x6e6a10\nVMOV            S15, R0; this                                          ; +0x64, 0x6e6a14\nVCVT.F32.S32    S15, S15                                               ; +0x68, 0x6e6a18\nB               loc_6E6A26                                             ; +0x6c, 0x6e6a1c\nPOP.W           {R3,LR}; jumptable 006E69B8 default case               ; +0x6e, 0x6e6a1e\nB.W             _ZN17SetupTriggerPopup8getValueEi; SetupTriggerPopup::getValue(int) ; +0x72, 0x6e6a22\nVMOV            R0, S15                                                ; +0x76, 0x6e6a26\nPOP             {R3,PC}                                                ; +0x7a, 0x6e6a2a", "xrefs": [], "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"}