{"type": "func", "start": 4300987536, "end": 4300987774, "name": "AutoSaveSettingsLayer::valueDidChange", "pseudocode": "// \n// AutoSaveSettingsLayer::valueDidChange from 0x1005bdc90 to 0x1005bdd7e (238 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100b7e578\n// \n// This function is hookable on this platform (idp: pc, 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 12:32:45 +0000\n// \n\nvoid __fastcall AutoSaveSettingsLayer::valueDidChange(__int64 a1, int a2)\n{\n  __int64 v2; // rax\n  const std::string::value_type *v3; // rsi\n  __int64 v4; // rax\n  std::string::value_type *v5; // rsi\n\n  switch ( a2 )\n  {\n    case -4:\n      v2 = GameManager::sharedState();\n      v3 = \"0187\";\n      goto LABEL_4;\n    case -3:\n      v4 = GameManager::sharedState();\n      v5 = \"0186\";\n      goto LABEL_7;\n    case -2:\n      v2 = GameManager::sharedState();\n      v3 = \"0185\";\nLABEL_4:\n      GameManager::setIntGameVariable(v2, v3);\n      return;\n    case -1:\n      v4 = GameManager::sharedState();\n      v5 = \"0184\";\nLABEL_7:\n      GameManager::setGameVariable(v4, v5);\n      break;\n    default:\n      return;\n  }\n}", "assembly": "; \n; AutoSaveSettingsLayer::valueDidChange from 0x1005bdc90 to 0x1005bdd7e (238 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100b7e578\n; \n; This function is hookable on this platform (idp: pc, 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 12:32:45 +0000\n; \npush    rbp                                                            ; +0x0, 0x1005bdc90\nmov     rbp, rsp                                                       ; +0x1, 0x1005bdc91\npush    rbx                                                            ; +0x4, 0x1005bdc94\npush    rax                                                            ; +0x5, 0x1005bdc95\nadd     esi, 4; switch 4 cases                                         ; +0x6, 0x1005bdc96\ncmp     esi, 3                                                         ; +0x9, 0x1005bdc99\nja      def_1005BDCB0; jumptable 00000001005BDCB0 default case         ; +0xc, 0x1005bdc9c\nlea     rax, jpt_1005BDCB0                                             ; +0x12, 0x1005bdca2\nmovsxd  rcx, (jpt_1005BDCB0 - 1005BDD80h)[rax+rsi*4]                   ; +0x19, 0x1005bdca9\nadd     rcx, rax                                                       ; +0x1d, 0x1005bdcad\njmp     rcx; switch jump                                               ; +0x20, 0x1005bdcb0\ncvttss2si eax, xmm0; jumptable 00000001005BDCB0 case -4                ; +0x22, 0x1005bdcb2\nimul    eax, 3Ch ; '<'                                                 ; +0x26, 0x1005bdcb6\ncmp     eax, 4650h                                                     ; +0x29, 0x1005bdcb9\nmov     ecx, 4650h                                                     ; +0x2e, 0x1005bdcbe\ncmovl   ecx, eax                                                       ; +0x33, 0x1005bdcc3\ncmp     ecx, 259h                                                      ; +0x36, 0x1005bdcc6\nmov     ebx, 258h                                                      ; +0x3c, 0x1005bdccc\ncmovge  ebx, ecx                                                       ; +0x41, 0x1005bdcd1\ncall    GameManager__sharedState                                       ; +0x44, 0x1005bdcd4\nlea     rsi, a0187; \"0187\"                                             ; +0x49, 0x1005bdcd9\njmp     short loc_1005BDD0D                                            ; +0x50, 0x1005bdce0\ncvttss2si eax, xmm0; jumptable 00000001005BDCB0 case -2                ; +0x52, 0x1005bdce2\nimul    eax, 3Ch ; '<'                                                 ; +0x56, 0x1005bdce6\ncmp     eax, 0E10h                                                     ; +0x59, 0x1005bdce9\nmov     ecx, 0E10h                                                     ; +0x5e, 0x1005bdcee\ncmovl   ecx, eax                                                       ; +0x63, 0x1005bdcf3\ncmp     ecx, 3Dh ; '='                                                 ; +0x66, 0x1005bdcf6\nmov     ebx, 3Ch ; '<'                                                 ; +0x69, 0x1005bdcf9\ncmovge  ebx, ecx                                                       ; +0x6e, 0x1005bdcfe\ncall    GameManager__sharedState                                       ; +0x71, 0x1005bdd01\nlea     rsi, a0185; \"0185\"                                             ; +0x76, 0x1005bdd06\nmov     rdi, rax                                                       ; +0x7d, 0x1005bdd0d\nmov     edx, ebx                                                       ; +0x80, 0x1005bdd10\nadd     rsp, 8                                                         ; +0x82, 0x1005bdd12\npop     rbx                                                            ; +0x86, 0x1005bdd16\npop     rbp                                                            ; +0x87, 0x1005bdd17\njmp     GameManager__setIntGameVariable                                ; +0x88, 0x1005bdd18\nmovss   [rbp+var_C], xmm0; jumptable 00000001005BDCB0 case -1          ; +0x8d, 0x1005bdd1d\ncall    GameManager__sharedState                                       ; +0x92, 0x1005bdd22\nxorps   xmm0, xmm0                                                     ; +0x97, 0x1005bdd27\nmovss   xmm1, [rbp+var_C]                                              ; +0x9a, 0x1005bdd2a\ncmpneqss xmm1, xmm0                                                    ; +0x9f, 0x1005bdd2f\nmovd    edx, xmm1                                                      ; +0xa4, 0x1005bdd34\nand     edx, 1                                                         ; +0xa8, 0x1005bdd38\nlea     rsi, a0184; \"0184\"                                             ; +0xab, 0x1005bdd3b\njmp     short loc_1005BDD69                                            ; +0xb2, 0x1005bdd42\nmovss   [rbp+var_C], xmm0; jumptable 00000001005BDCB0 case -3          ; +0xb4, 0x1005bdd44\ncall    GameManager__sharedState                                       ; +0xb9, 0x1005bdd49\nxorps   xmm0, xmm0                                                     ; +0xbe, 0x1005bdd4e\nmovss   xmm1, [rbp+var_C]                                              ; +0xc1, 0x1005bdd51\ncmpneqss xmm1, xmm0                                                    ; +0xc6, 0x1005bdd56\nmovd    edx, xmm1                                                      ; +0xcb, 0x1005bdd5b\nand     edx, 1                                                         ; +0xcf, 0x1005bdd5f\nlea     rsi, a0186; \"0186\"                                             ; +0xd2, 0x1005bdd62\nmov     rdi, rax                                                       ; +0xd9, 0x1005bdd69\nadd     rsp, 8                                                         ; +0xdc, 0x1005bdd6c\npop     rbx                                                            ; +0xe0, 0x1005bdd70\npop     rbp                                                            ; +0xe1, 0x1005bdd71\njmp     GameManager__setGameVariable                                   ; +0xe2, 0x1005bdd72\nadd     rsp, 8; jumptable 00000001005BDCB0 default case                ; +0xe7, 0x1005bdd77\npop     rbx                                                            ; +0xeb, 0x1005bdd7b\npop     rbp                                                            ; +0xec, 0x1005bdd7c\nretn                                                                   ; +0xed, 0x1005bdd7d", "xrefs": ["<???> @ 0x100b7e578"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}