{"type": "func", "start": 7236184, "end": 7236360, "name": "AutoSaveSettingsLayer::valueDidChange", "pseudocode": "// \n// AutoSaveSettingsLayer::valueDidChange from 0x6e6a58 to 0x6e6b08 (176 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\nGameManager *__fastcall AutoSaveSettingsLayer::valueDidChange(GameManager *this, int a2, float a3)\n{\n  GameManager *v4; // r0\n  char *v5; // r1\n  bool v6; // zf\n  int v7; // r4\n  GameManager *v8; // r0\n  int v9; // r3\n  const char *v10; // r2\n  char *v11; // r1\n  const char *v12; // r2\n  int v13; // r4\n\n  switch ( a2 )\n  {\n    case -4:\n      v13 = 60 * (int)a3;\n      if ( v13 >= 18000 )\n        v13 = 18000;\n      v8 = (GameManager *)GameManager::sharedState(this);\n      v10 = (const char *)v13;\n      v11 = \"0187\";\n      if ( v13 < 600 )\n        v10 = (_BYTE *)(&stru_24C + 12);\n      return (GameManager *)GameManager::setIntGameVariable(v8, v11, v10, v9);\n    case -3:\n      v4 = (GameManager *)GameManager::sharedState(this);\n      v5 = \"0186\";\n      v6 = a3 == 0.0;\n      goto LABEL_9;\n    case -2:\n      v7 = 60 * (int)a3;\n      if ( v7 >= 3600 )\n        v7 = 3600;\n      v8 = (GameManager *)GameManager::sharedState(this);\n      v10 = (const char *)v7;\n      v11 = \"0185\";\n      if ( v7 < 60 )\n        v10 = (_BYTE *)off_3C;\n      return (GameManager *)GameManager::setIntGameVariable(v8, v11, v10, v9);\n    case -1:\n      v4 = (GameManager *)GameManager::sharedState(this);\n      v5 = \"0184\";\n      v6 = a3 == 0.0;\nLABEL_9:\n      v12 = (const char *)!v6;\n      this = (GameManager *)GameManager::setGameVariable(v4, v5, v12);\n      break;\n    default:\n      return this;\n  }\n  return this;\n}", "assembly": "; \n; AutoSaveSettingsLayer::valueDidChange from 0x6e6a58 to 0x6e6b08 (176 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; \nADDS            R1, #4                                                 ; +0x0, 0x6e6a58\nPUSH            {R4,LR}                                                ; +0x2, 0x6e6a5a\nVPUSH           {D8}                                                   ; +0x4, 0x6e6a5c\nVMOV            S16, R2                                                ; +0x8, 0x6e6a60\nCMP             R1, #3; switch 4 cases                                 ; +0xc, 0x6e6a64\nBHI             def_6E6A68; jumptable 006E6A68 default case            ; +0xe, 0x6e6a66\nTBB.W           [PC,R1]; switch jump                                   ; +0x10, 0x6e6a68\nDCB 0x30; jump table for switch statement                              ; +0x14, 0x6e6a6c\nDCB 0x1F                                                               ; +0x15, 0x6e6a6d\nDCB 0xB                                                                ; +0x16, 0x6e6a6e\nDCB 2                                                                  ; +0x17, 0x6e6a6f\nBL              _ZN11GameManager11sharedStateEv; jumptable 006E6A68 case 3 ; +0x18, 0x6e6a70\nVCMP.F32        S16, #0.0                                              ; +0x1c, 0x6e6a74\nLDR             R1, =(a0184 - 0x6E6A7E); \"0184\"                        ; +0x20, 0x6e6a78\nADD             R1, PC; \"0184\"                                         ; +0x22, 0x6e6a7a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x24, 0x6e6a7c\nB               loc_6E6ABA                                             ; +0x28, 0x6e6a80\nVCVT.S32.F32    S16, S16; jumptable 006E6A68 case 2                    ; +0x2a, 0x6e6a82\nMOVS            R4, #0x3C ; '<'                                        ; +0x2e, 0x6e6a86\nVMOV            R3, S16                                                ; +0x30, 0x6e6a88\nMULS            R4, R3                                                 ; +0x34, 0x6e6a8c\nCMP.W           R4, #0xE10                                             ; +0x36, 0x6e6a8e\nIT GE                                                                  ; +0x3a, 0x6e6a92\nMOVGE.W         R4, #0xE10                                             ; +0x3c, 0x6e6a94\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x40, 0x6e6a98\nLDR             R1, =(a0185 - 0x6E6AA6); \"0185\"                        ; +0x44, 0x6e6a9c\nCMP             R4, #0x3C ; '<'                                        ; +0x46, 0x6e6a9e\nMOV             R2, R4                                                 ; +0x48, 0x6e6aa0\nADD             R1, PC; \"0185\"                                         ; +0x4a, 0x6e6aa2\nIT LT                                                                  ; +0x4c, 0x6e6aa4\nMOVLT           R2, #0x3C ; '<'                                        ; +0x4e, 0x6e6aa6\nB               loc_6E6AF6                                             ; +0x50, 0x6e6aa8\nBL              _ZN11GameManager11sharedStateEv; jumptable 006E6A68 case 1 ; +0x52, 0x6e6aaa\nVCMP.F32        S16, #0.0                                              ; +0x56, 0x6e6aae\nLDR             R1, =(a0186 - 0x6E6AB8); \"0186\"                        ; +0x5a, 0x6e6ab2\nADD             R1, PC; \"0186\"                                         ; +0x5c, 0x6e6ab4\nVMRS            APSR_nzcv, FPSCR                                       ; +0x5e, 0x6e6ab6\nVPOP            {D8}                                                   ; +0x62, 0x6e6aba\nITE NE                                                                 ; +0x66, 0x6e6abe\nMOVNE           R2, #1                                                 ; +0x68, 0x6e6ac0\nMOVEQ           R2, #0; bool                                           ; +0x6a, 0x6e6ac2\nPOP.W           {R4,LR}                                                ; +0x6c, 0x6e6ac4\nB.W             _ZN11GameManager15setGameVariableEPKcb; GameManager::setGameVariable(char const*,bool) ; +0x70, 0x6e6ac8\nVCVT.S32.F32    S16, S16; jumptable 006E6A68 case 0                    ; +0x74, 0x6e6acc\nMOVS            R4, #0x3C ; '<'                                        ; +0x78, 0x6e6ad0\nMOVW            R2, #0x4650                                            ; +0x7a, 0x6e6ad2\nVMOV            R3, S16                                                ; +0x7e, 0x6e6ad6\nMULS            R4, R3                                                 ; +0x82, 0x6e6ada\nCMP             R4, R2                                                 ; +0x84, 0x6e6adc\nIT GE                                                                  ; +0x86, 0x6e6ade\nMOVGE           R4, R2                                                 ; +0x88, 0x6e6ae0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x8a, 0x6e6ae2\nLDR             R1, =(a0187 - 0x6E6AF2); \"0187\"                        ; +0x8e, 0x6e6ae6\nCMP.W           R4, #0x258                                             ; +0x90, 0x6e6ae8\nMOV             R2, R4                                                 ; +0x94, 0x6e6aec\nADD             R1, PC; \"0187\"                                         ; +0x96, 0x6e6aee\nIT LT                                                                  ; +0x98, 0x6e6af0\nMOVLT.W         R2, #0x258; int                                        ; +0x9a, 0x6e6af2\nVPOP            {D8}                                                   ; +0x9e, 0x6e6af6\nPOP.W           {R4,LR}                                                ; +0xa2, 0x6e6afa\nB.W             _ZN11GameManager18setIntGameVariableEPKci; GameManager::setIntGameVariable(char const*,int) ; +0xa6, 0x6e6afe\nVPOP            {D8}; jumptable 006E6A68 default case                  ; +0xaa, 0x6e6b02\nPOP             {R4,PC}                                                ; +0xae, 0x6e6b06", "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"}