{"type": "func", "start": 4296435604, "end": 4296435800, "name": "GameSettingsLayer::getValue", "pseudocode": "// \n// GameSettingsLayer::getValue from 0x100166794 to 0x100166858 (196 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1008e3458\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 10:59:48 +0000\n// \n\nvoid __fastcall GameSettingsLayer::getValue(__int64 a1, int a2)\n{\n  __int64 *v3; // x0\n  __int64 *v4; // x20\n  __int64 v5; // x0\n  __int64 v6; // x0\n  unsigned int v7; // [xsp+Ch] [xbp-14h] BYREF\n\n  v7 = a2;\n  if ( a2 <= -3 )\n  {\n    if ( a2 != -4 )\n    {\n      if ( a2 == -3 )\n      {\n        FMODAudioEngine::sharedEngine(a1);\n        return;\n      }\n      goto LABEL_8;\n    }\nLABEL_7:\n    GameManager::sharedState(a1);\n    return;\n  }\n  if ( a2 == -2 )\n  {\n    v6 = GameStatsManager::sharedState(a1);\n    sub_1003D4738(v6, 12, 17);\n    return;\n  }\n  if ( a2 == -1 )\n    goto LABEL_7;\nLABEL_8:\n  v3 = sub_100019268((_QWORD *)(a1 + 1104), (int *)&v7);\n  if ( v3 )\n  {\n    v4 = v3;\n    v5 = GameManager::sharedState(v3);\n    GameManager::getGameVariable(v5, v4[3]);\n  }\n  else\n  {\n    SetupTriggerPopup::getValue(a1, v7);\n  }\n}", "assembly": "; \n; GameSettingsLayer::getValue from 0x100166794 to 0x100166858 (196 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1008e3458\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 10:59:48 +0000\n; \nSUB             SP, SP, #0x30                                          ; +0x0, 0x100166794\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100166798\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10016679c\nADD             X29, SP, #0x20                                         ; +0xc, 0x1001667a0\nMOV             X19, X0                                                ; +0x10, 0x1001667a4\nSTR             W1, [SP,#0x20+var_14]                                  ; +0x14, 0x1001667a8\nCMN             W1, #3                                                 ; +0x18, 0x1001667ac\nB.GT            loc_1001667D4                                          ; +0x1c, 0x1001667b0\nCMN             W1, #4                                                 ; +0x20, 0x1001667b4\nB.EQ            loc_100166818                                          ; +0x24, 0x1001667b8\nCMN             W1, #3                                                 ; +0x28, 0x1001667bc\nB.NE            loc_1001667F4                                          ; +0x2c, 0x1001667c0\nBL              FMODAudioEngine__sharedEngine                          ; +0x30, 0x1001667c4\nLDR             S0, [X0,#0x224]                                        ; +0x34, 0x1001667c8\nSCVTF           S0, S0                                                 ; +0x38, 0x1001667cc\nB               loc_100166838                                          ; +0x3c, 0x1001667d0\nCMN             W1, #2                                                 ; +0x40, 0x1001667d4\nB.EQ            loc_100166824                                          ; +0x44, 0x1001667d8\nCMN             W1, #1                                                 ; +0x48, 0x1001667dc\nB.NE            loc_1001667F4                                          ; +0x4c, 0x1001667e0\nBL              GameManager__sharedState                               ; +0x50, 0x1001667e4\nLDR             B0, [X0,#0x39C]                                        ; +0x54, 0x1001667e8\nUCVTF           S0, S0                                                 ; +0x58, 0x1001667ec\nB               loc_100166838                                          ; +0x5c, 0x1001667f0\nADD             X0, X19, #0x450                                        ; +0x60, 0x1001667f4\nADD             X1, SP, #0x20+var_14                                   ; +0x64, 0x1001667f8\nBL              sub_100019268                                          ; +0x68, 0x1001667fc\nCBZ             X0, loc_100166848                                      ; +0x6c, 0x100166800\nMOV             X20, X0                                                ; +0x70, 0x100166804\nBL              GameManager__sharedState                               ; +0x74, 0x100166808\nLDR             X1, [X20,#0x18]                                        ; +0x78, 0x10016680c\nBL              GameManager__getGameVariable                           ; +0x7c, 0x100166810\nB               loc_100166834                                          ; +0x80, 0x100166814\nBL              GameManager__sharedState                               ; +0x84, 0x100166818\nLDR             S0, [X0,#0x454]                                        ; +0x88, 0x10016681c\nB               loc_100166838                                          ; +0x8c, 0x100166820\nBL              GameStatsManager__sharedState                          ; +0x90, 0x100166824\nMOV             W1, #0xC                                               ; +0x94, 0x100166828\nMOV             W2, #0x11                                              ; +0x98, 0x10016682c\nBL              sub_1003D4738                                          ; +0x9c, 0x100166830\nUCVTF           S0, W0                                                 ; +0xa0, 0x100166834\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xa4, 0x100166838\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xa8, 0x10016683c\nADD             SP, SP, #0x30 ; '0'                                    ; +0xac, 0x100166840\nRET                                                                    ; +0xb0, 0x100166844\nLDR             W1, [SP,#0x20+var_14]                                  ; +0xb4, 0x100166848\nMOV             X0, X19                                                ; +0xb8, 0x10016684c\nBL              SetupTriggerPopup__getValue                            ; +0xbc, 0x100166850\nB               loc_100166838                                          ; +0xc0, 0x100166854", "xrefs": ["<???> @ 0x1008e3458"], "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"}