{"type": "func", "start": 4298635692, "end": 4298635968, "name": "GameLevelOptionsLayer::setupOptions", "pseudocode": "// \n// GameLevelOptionsLayer::setupOptions from 0x10037f9ac to 0x10037fac0 (276 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100936cd0\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 11:03:29 +0000\n// \n\n__int64 __fastcall GameLevelOptionsLayer::setupOptions(__int64 result)\n{\n  __int64 v1; // x8\n  __int64 v2; // x19\n  __int64 v3; // x20\n  __int64 v4; // x0\n\n  v1 = *(_QWORD *)(result + 1128);\n  if ( v1 )\n  {\n    v2 = result;\n    *(_BYTE *)(GJOptionsLayer::addToggleInternal(result, \"Low Detail Mode\", 1, *(unsigned __int8 *)(v1 + 769), \"\") + 393) = 1;\n    GJOptionsLayer::addToggleInternal(v2, \"Disable Shake\", 2, *(unsigned __int8 *)(*(_QWORD *)(v2 + 1128) + 770LL), \"\");\n    v3 = GJOptionsLayer::addToggleInternal(\n           v2,\n           \"Enable CBS\",\n           3,\n           *(_DWORD *)(*(_QWORD *)(v2 + 1128) + 1436LL) == 1,\n           \"Force <cg>enable</c> <cy>Click Between Steps</c> on this level regardless of the global setting.\");\n    v4 = GJOptionsLayer::addToggleInternal(\n           v2,\n           \"Disable CBS\",\n           4,\n           *(_DWORD *)(*(_QWORD *)(v2 + 1128) + 1436LL) == 2,\n           \"Force <cr>disable</c> <cy>Click Between Steps</c> on this level regardless of the global setting.\");\n    *(_BYTE *)(v3 + 393) = 1;\n    *(_BYTE *)(v4 + 393) = 1;\n    result = GJGameLevel::isPlatformer(*(_QWORD *)(v2 + 1128));\n    if ( (_DWORD)result )\n      return GJOptionsLayer::addToggleInternal(\n               v2,\n               \"Enable Platformer\\nSaves\",\n               5,\n               *(unsigned __int8 *)(*(_QWORD *)(v2 + 1128) + 1528LL),\n               \"Force <cg>enable</c> <cy>checkpoint saving</c> on this level, even if auto-save is globally disabled.\");\n  }\n  return result;\n}", "assembly": "; \n; GameLevelOptionsLayer::setupOptions from 0x10037f9ac to 0x10037fac0 (276 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100936cd0\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 11:03:29 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x10037f9ac\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10037f9b0\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10037f9b4\nADD             X29, SP, #0x20                                         ; +0xc, 0x10037f9b8\nLDR             X8, [X0,#0x468]                                        ; +0x10, 0x10037f9bc\nCBZ             X8, loc_10037FAB0                                      ; +0x14, 0x10037f9c0\nMOV             X19, X0                                                ; +0x18, 0x10037f9c4\nLDRB            W3, [X8,#0x301]                                        ; +0x1c, 0x10037f9c8\nADRL            X1, aLowDetailMode; \"Low Detail Mode\"                  ; +0x20, 0x10037f9cc\nADRL            X20, asc_10088BE68; \"\"                                 ; +0x28, 0x10037f9d4\nMOV             W21, #1                                                ; +0x30, 0x10037f9dc\nMOV             W2, #1                                                 ; +0x34, 0x10037f9e0\nMOV             X4, X20                                                ; +0x38, 0x10037f9e4\nBL              GJOptionsLayer__addToggleInternal                      ; +0x3c, 0x10037f9e8\nSTRB            W21, [X0,#0x189]                                       ; +0x40, 0x10037f9ec\nLDR             X8, [X19,#0x468]                                       ; +0x44, 0x10037f9f0\nLDRB            W3, [X8,#0x302]                                        ; +0x48, 0x10037f9f4\nADRL            X1, aDisableShake; \"Disable Shake\"                     ; +0x4c, 0x10037f9f8\nMOV             X0, X19                                                ; +0x54, 0x10037fa00\nMOV             W2, #2                                                 ; +0x58, 0x10037fa04\nMOV             X4, X20                                                ; +0x5c, 0x10037fa08\nBL              GJOptionsLayer__addToggleInternal                      ; +0x60, 0x10037fa0c\nLDR             X8, [X19,#0x468]                                       ; +0x64, 0x10037fa10\nLDR             W8, [X8,#0x59C]                                        ; +0x68, 0x10037fa14\nCMP             W8, #1                                                 ; +0x6c, 0x10037fa18\nCSET            W3, EQ                                                 ; +0x70, 0x10037fa1c\nADRL            X1, aEnableCbs; \"Enable CBS\"                           ; +0x74, 0x10037fa20\nADRL            X4, aForceCgEnableC; \"Force <cg>enable</c> <cy>Click Between \"... ; +0x7c, 0x10037fa28\nMOV             X0, X19                                                ; +0x84, 0x10037fa30\nMOV             W2, #3                                                 ; +0x88, 0x10037fa34\nBL              GJOptionsLayer__addToggleInternal                      ; +0x8c, 0x10037fa38\nMOV             X20, X0                                                ; +0x90, 0x10037fa3c\nLDR             X8, [X19,#0x468]                                       ; +0x94, 0x10037fa40\nLDR             W8, [X8,#0x59C]                                        ; +0x98, 0x10037fa44\nCMP             W8, #2                                                 ; +0x9c, 0x10037fa48\nCSET            W3, EQ                                                 ; +0xa0, 0x10037fa4c\nADRL            X1, aDisableCbs; \"Disable CBS\"                         ; +0xa4, 0x10037fa50\nADRL            X4, aForceCrDisable; \"Force <cr>disable</c> <cy>Click Between\"... ; +0xac, 0x10037fa58\nMOV             X0, X19                                                ; +0xb4, 0x10037fa60\nMOV             W2, #4                                                 ; +0xb8, 0x10037fa64\nBL              GJOptionsLayer__addToggleInternal                      ; +0xbc, 0x10037fa68\nSTRB            W21, [X20,#0x189]                                      ; +0xc0, 0x10037fa6c\nSTRB            W21, [X0,#0x189]                                       ; +0xc4, 0x10037fa70\nLDR             X0, [X19,#0x468]                                       ; +0xc8, 0x10037fa74\nBL              GJGameLevel__isPlatformer                              ; +0xcc, 0x10037fa78\nCBZ             W0, loc_10037FAB0                                      ; +0xd0, 0x10037fa7c\nLDR             X8, [X19,#0x468]                                       ; +0xd4, 0x10037fa80\nADRL            X1, aEnablePlatform; \"Enable Platformer\\nSaves\"        ; +0xd8, 0x10037fa84\nADRL            X4, aForceCgEnableC_0; \"Force <cg>enable</c> <cy>checkpoint sav\"... ; +0xe0, 0x10037fa8c\nLDRB            W3, [X8,#0x5F8]                                        ; +0xe8, 0x10037fa94\nMOV             X0, X19                                                ; +0xec, 0x10037fa98\nMOV             W2, #5                                                 ; +0xf0, 0x10037fa9c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xf4, 0x10037faa0\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xf8, 0x10037faa4\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xfc, 0x10037faa8\nB               GJOptionsLayer__addToggleInternal                      ; +0x100, 0x10037faac\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x104, 0x10037fab0\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x108, 0x10037fab4\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x10c, 0x10037fab8\nRET                                                                    ; +0x110, 0x10037fabc", "xrefs": ["<???> @ 0x100936cd0"], "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"}