{"type": "func", "start": 4297718560, "end": 4297718840, "name": "GameLevelOptionsLayer::setupOptions", "pseudocode": "// \n// GameLevelOptionsLayer::setupOptions from 0x10029fb20 to 0x10029fc38 (280 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100b04248\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:27:54 +0000\n// \n\n__int64 __fastcall GameLevelOptionsLayer::setupOptions(__int64 a1, double a2)\n{\n  __int64 result; // rax\n  __int64 v4; // r14\n  __int64 v5; // rax\n\n  result = *(_QWORD *)(a1 + 1128);\n  if ( result )\n  {\n    *(_BYTE *)(sub_100287300(a1, \"Low Detail Mode\", 1, *(unsigned __int8 *)(result + 769), \"\") + 393) = 1;\n    sub_100287300(a1, \"Disable Shake\", 2, *(unsigned __int8 *)(*(_QWORD *)(a1 + 1128) + 770LL), \"\");\n    v4 = sub_100287300(\n           a1,\n           \"Enable CBS\",\n           3,\n           *(_DWORD *)(*(_QWORD *)(a1 + 1128) + 1436LL) == 1,\n           \"Force <cg>enable</c> <cy>Click Between Steps</c> on this level regardless of the global setting.\");\n    v5 = sub_100287300(\n           a1,\n           \"Disable CBS\",\n           4,\n           *(_DWORD *)(*(_QWORD *)(a1 + 1128) + 1436LL) == 2,\n           \"Force <cr>disable</c> <cy>Click Between Steps</c> on this level regardless of the global setting.\");\n    *(_BYTE *)(v4 + 393) = 1;\n    *(_BYTE *)(v5 + 393) = 1;\n    result = GJGameLevel::isPlatformer(*(_QWORD *)(a1 + 1128), a2);\n    if ( (_BYTE)result )\n      return sub_100287300(\n               a1,\n               \"Enable Platformer\\nSaves\",\n               5,\n               *(unsigned __int8 *)(*(_QWORD *)(a1 + 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 0x10029fb20 to 0x10029fc38 (280 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100b04248\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:27:54 +0000\n; \npush    rbp                                                            ; +0x0, 0x10029fb20\nmov     rbp, rsp                                                       ; +0x1, 0x10029fb21\npush    r14                                                            ; +0x4, 0x10029fb24\npush    rbx                                                            ; +0x6, 0x10029fb26\nmov     rax, [rdi+468h]                                                ; +0x7, 0x10029fb27\ntest    rax, rax                                                       ; +0xe, 0x10029fb2e\njz      loc_10029FC33                                                  ; +0x11, 0x10029fb31\nmov     rbx, rdi                                                       ; +0x17, 0x10029fb37\nmovzx   ecx, byte ptr [rax+301h]                                       ; +0x1a, 0x10029fb3a\nlea     rsi, aLowDetailMode; \"Low Detail Mode\"                         ; +0x21, 0x10029fb41\nlea     r14, asc_100A41668; \"\"                                         ; +0x28, 0x10029fb48\nmov     edx, 1                                                         ; +0x2f, 0x10029fb4f\nmov     r8, r14                                                        ; +0x34, 0x10029fb54\ncall    sub_100287300                                                  ; +0x37, 0x10029fb57\nmov     byte ptr [rax+189h], 1                                         ; +0x3c, 0x10029fb5c\nmov     rax, [rbx+468h]                                                ; +0x43, 0x10029fb63\nmovzx   ecx, byte ptr [rax+302h]                                       ; +0x4a, 0x10029fb6a\nlea     rsi, aDisableShake; \"Disable Shake\"                            ; +0x51, 0x10029fb71\nmov     rdi, rbx; char                                                 ; +0x58, 0x10029fb78\nmov     edx, 2                                                         ; +0x5b, 0x10029fb7b\nmov     r8, r14                                                        ; +0x60, 0x10029fb80\ncall    sub_100287300                                                  ; +0x63, 0x10029fb83\nmov     rax, [rbx+468h]                                                ; +0x68, 0x10029fb88\nxor     ecx, ecx                                                       ; +0x6f, 0x10029fb8f\ncmp     dword ptr [rax+59Ch], 1                                        ; +0x71, 0x10029fb91\nsetz    cl                                                             ; +0x78, 0x10029fb98\nlea     rsi, aEnableCbs; \"Enable CBS\"                                  ; +0x7b, 0x10029fb9b\nlea     r8, aForceCgEnableC; \"Force <cg>enable</c> <cy>Click Between \"... ; +0x82, 0x10029fba2\nmov     rdi, rbx; char                                                 ; +0x89, 0x10029fba9\nmov     edx, 3                                                         ; +0x8c, 0x10029fbac\ncall    sub_100287300                                                  ; +0x91, 0x10029fbb1\nmov     r14, rax                                                       ; +0x96, 0x10029fbb6\nmov     rax, [rbx+468h]                                                ; +0x99, 0x10029fbb9\nxor     ecx, ecx                                                       ; +0xa0, 0x10029fbc0\ncmp     dword ptr [rax+59Ch], 2                                        ; +0xa2, 0x10029fbc2\nsetz    cl                                                             ; +0xa9, 0x10029fbc9\nlea     rsi, aDisableCbs; \"Disable CBS\"                                ; +0xac, 0x10029fbcc\nlea     r8, aForceCrDisable; \"Force <cr>disable</c> <cy>Click Between\"... ; +0xb3, 0x10029fbd3\nmov     rdi, rbx; char                                                 ; +0xba, 0x10029fbda\nmov     edx, 4                                                         ; +0xbd, 0x10029fbdd\ncall    sub_100287300                                                  ; +0xc2, 0x10029fbe2\nmov     byte ptr [r14+189h], 1                                         ; +0xc7, 0x10029fbe7\nmov     byte ptr [rax+189h], 1                                         ; +0xcf, 0x10029fbef\nmov     rdi, [rbx+468h]                                                ; +0xd6, 0x10029fbf6\ncall    GJGameLevel__isPlatformer                                      ; +0xdd, 0x10029fbfd\ntest    al, al                                                         ; +0xe2, 0x10029fc02\njz      short loc_10029FC33                                            ; +0xe4, 0x10029fc04\nmov     rax, [rbx+468h]                                                ; +0xe6, 0x10029fc06\nmovzx   ecx, byte ptr [rax+5F8h]                                       ; +0xed, 0x10029fc0d\nlea     rsi, aEnablePlatform; \"Enable Platformer\\nSaves\"               ; +0xf4, 0x10029fc14\nlea     r8, aForceCgEnableC_0; \"Force <cg>enable</c> <cy>checkpoint sav\"... ; +0xfb, 0x10029fc1b\nmov     rdi, rbx; char                                                 ; +0x102, 0x10029fc22\nmov     edx, 5                                                         ; +0x105, 0x10029fc25\npop     rbx                                                            ; +0x10a, 0x10029fc2a\npop     r14                                                            ; +0x10b, 0x10029fc2b\npop     rbp                                                            ; +0x10d, 0x10029fc2d\njmp     sub_100287300                                                  ; +0x10e, 0x10029fc2e\npop     rbx                                                            ; +0x113, 0x10029fc33\npop     r14                                                            ; +0x114, 0x10029fc34\npop     rbp                                                            ; +0x116, 0x10029fc36\nretn                                                                   ; +0x117, 0x10029fc37", "xrefs": ["<???> @ 0x100b04248"], "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"}