{"type": "func", "start": 4300987312, "end": 4300987519, "name": "AutoSaveSettingsLayer::getValue", "pseudocode": "// \n// AutoSaveSettingsLayer::getValue from 0x1005bdbb0 to 0x1005bdc7f (207 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100b7e580\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::getValue(_QWORD *a1, int a2)\n{\n  __int64 v2; // rax\n  __int64 v3; // rax\n  __int64 v4; // rax\n  __int64 v5; // rax\n\n  switch ( a2 )\n  {\n    case -4:\n      v2 = GameManager::sharedState();\n      GameManager::getIntGameVariable(v2, \"0187\");\n      break;\n    case -3:\n      v5 = GameManager::sharedState();\n      GameManager::getGameVariable(v5, \"0186\");\n      break;\n    case -2:\n      v3 = GameManager::sharedState();\n      GameManager::getIntGameVariable(v3, \"0185\");\n      break;\n    case -1:\n      v4 = GameManager::sharedState();\n      GameManager::getGameVariable(v4, \"0184\");\n      break;\n    default:\n      SetupTriggerPopup::getValue(a1, a2);\n      break;\n  }\n}", "assembly": "; \n; AutoSaveSettingsLayer::getValue from 0x1005bdbb0 to 0x1005bdc7f (207 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100b7e580\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; \nlea     eax, [rsi+4]; switch 4 cases                                   ; +0x0, 0x1005bdbb0\ncmp     eax, 3                                                         ; +0x3, 0x1005bdbb3\nja      def_1005BDBCE; jumptable 00000001005BDBCE default case         ; +0x6, 0x1005bdbb6\npush    rbp                                                            ; +0xc, 0x1005bdbbc\nmov     rbp, rsp                                                       ; +0xd, 0x1005bdbbd\nlea     rcx, jpt_1005BDBCE                                             ; +0x10, 0x1005bdbc0\nmovsxd  rax, (jpt_1005BDBCE - 1005BDC80h)[rcx+rax*4]                   ; +0x17, 0x1005bdbc7\nadd     rax, rcx                                                       ; +0x1b, 0x1005bdbcb\njmp     rax; switch jump                                               ; +0x1e, 0x1005bdbce\ncall    GameManager__sharedState; jumptable 00000001005BDBCE case -4   ; +0x20, 0x1005bdbd0\nlea     rsi, a0187; \"0187\"                                             ; +0x25, 0x1005bdbd5\nmov     rdi, rax                                                       ; +0x2c, 0x1005bdbdc\ncall    GameManager__getIntGameVariable                                ; +0x2f, 0x1005bdbdf\ntest    eax, eax                                                       ; +0x34, 0x1005bdbe4\njg      short loc_1005BDC0B                                            ; +0x36, 0x1005bdbe6\nmov     ecx, 3Ch ; '<'                                                 ; +0x38, 0x1005bdbe8\ncvtsi2ss xmm0, ecx                                                     ; +0x3d, 0x1005bdbed\npop     rbp                                                            ; +0x41, 0x1005bdbf1\nretn                                                                   ; +0x42, 0x1005bdbf2\ncall    GameManager__sharedState; jumptable 00000001005BDBCE case -2   ; +0x43, 0x1005bdbf3\nlea     rsi, a0185; \"0185\"                                             ; +0x48, 0x1005bdbf8\nmov     rdi, rax                                                       ; +0x4f, 0x1005bdbff\ncall    GameManager__getIntGameVariable                                ; +0x52, 0x1005bdc02\ntest    eax, eax                                                       ; +0x57, 0x1005bdc07\njle     short loc_1005BDC74                                            ; +0x59, 0x1005bdc09\nmovsxd  rcx, eax                                                       ; +0x5b, 0x1005bdc0b\nimul    rcx, 0FFFFFFFF88888889h                                        ; +0x5e, 0x1005bdc0e\nshr     rcx, 20h                                                       ; +0x65, 0x1005bdc15\nadd     ecx, eax                                                       ; +0x69, 0x1005bdc19\nmov     eax, ecx                                                       ; +0x6b, 0x1005bdc1b\nshr     eax, 1Fh                                                       ; +0x6d, 0x1005bdc1d\nsar     ecx, 5                                                         ; +0x70, 0x1005bdc20\nadd     ecx, eax                                                       ; +0x73, 0x1005bdc23\ncvtsi2ss xmm0, ecx                                                     ; +0x75, 0x1005bdc25\npop     rbp                                                            ; +0x79, 0x1005bdc29\nretn                                                                   ; +0x7a, 0x1005bdc2a\ncall    GameManager__sharedState; jumptable 00000001005BDBCE case -1   ; +0x7b, 0x1005bdc2b\nlea     rsi, a0184; \"0184\"                                             ; +0x80, 0x1005bdc30\nmov     rdi, rax                                                       ; +0x87, 0x1005bdc37\ncall    GameManager__getGameVariable                                   ; +0x8a, 0x1005bdc3a\ntest    al, al                                                         ; +0x8f, 0x1005bdc3f\njnz     short loc_1005BDC65                                            ; +0x91, 0x1005bdc41\nxorps   xmm0, xmm0                                                     ; +0x93, 0x1005bdc43\npop     rbp                                                            ; +0x96, 0x1005bdc46\nretn                                                                   ; +0x97, 0x1005bdc47\ncall    GameManager__sharedState; jumptable 00000001005BDBCE case -3   ; +0x98, 0x1005bdc48\nlea     rsi, a0186; \"0186\"                                             ; +0x9d, 0x1005bdc4d\nmov     rdi, rax                                                       ; +0xa4, 0x1005bdc54\ncall    GameManager__getGameVariable                                   ; +0xa7, 0x1005bdc57\ntest    al, al                                                         ; +0xac, 0x1005bdc5c\njnz     short loc_1005BDC65                                            ; +0xae, 0x1005bdc5e\nxorps   xmm0, xmm0                                                     ; +0xb0, 0x1005bdc60\npop     rbp                                                            ; +0xb3, 0x1005bdc63\nretn                                                                   ; +0xb4, 0x1005bdc64\nmovss   xmm0, cs:alpha                                                 ; +0xb5, 0x1005bdc65\npop     rbp                                                            ; +0xbd, 0x1005bdc6d\nretn                                                                   ; +0xbe, 0x1005bdc6e\njmp     SetupTriggerPopup__getValue; jumptable 00000001005BDBCE default case ; +0xbf, 0x1005bdc6f\nmov     ecx, 5                                                         ; +0xc4, 0x1005bdc74\ncvtsi2ss xmm0, ecx                                                     ; +0xc9, 0x1005bdc79\npop     rbp                                                            ; +0xcd, 0x1005bdc7d\nretn                                                                   ; +0xce, 0x1005bdc7e", "xrefs": ["<???> @ 0x100b7e580"], "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"}