{"type": "func", "start": 5373287296, "end": 5373287936, "name": "LevelOptionsLayer2::setupOptions", "pseudocode": "// \n// LevelOptionsLayer2::setupOptions from 0x14045db80 to 0x14045de00 (640 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140798808\n// > <???> @ 0x140927da0\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 11:32:32 +0000\n// \n\nstruct cocos2d::CCObject *__fastcall LevelOptionsLayer2::setupOptions(__int64 a1)\n{\n  struct cocos2d::CCObject *result; // rax\n\n  GJOptionsLayer::addToggleInternal(\n    a1,\n    \"Allow Multi-Rotation\",\n    8,\n    *(_BYTE *)(*(_QWORD *)(a1 + 1136) + 456LL),\n    \"Allows multiple rotation actions to run on the same target group. This was not possible before 2.2.\");\n  GJOptionsLayer::addToggleInternal(\n    a1,\n    \"Enable 2.2 Changes\",\n    17,\n    *(_BYTE *)(*(_QWORD *)(a1 + 1136) + 464LL),\n    \"Legacy compatibility pre 2.2. Should be enabled on new levels.\");\n  GJOptionsLayer::addToggleInternal(\n    a1,\n    \"Allow Static-Rotate\",\n    18,\n    *(_BYTE *)(*(_QWORD *)(a1 + 1136) + 467LL),\n    \"Allow rotating static objects in actions and animations. There is currently no support for rotating static objects o\"\n    \"ther than 90 degree steps, but use this option to allow it anyway. Hitboxes will not match the art. Can be useful in some cases.\");\n  GJOptionsLayer::addToggleInternal(\n    a1,\n    \"Enable Player Squeeze\",\n    9,\n    *(_BYTE *)(*(_QWORD *)(a1 + 1136) + 457LL),\n    \"Destroys player when squeezed between two objects. This is on by default but only for levels after update 2.2 for le\"\n    \"gacy reasons. Cannot be disabled for platformer levels.\");\n  GJOptionsLayer::addToggleInternal(\n    a1,\n    \"Fix Gravity Bug\",\n    10,\n    *(_BYTE *)(*(_QWORD *)(a1 + 1136) + 458LL),\n    \"Fixes an old bug that makes flipped gravity act differently than normal gravity. Old levels can break with this enabled.\");\n  GJOptionsLayer::addToggleInternal(\n    a1,\n    \"Fix Negative Scale\",\n    11,\n    *(_BYTE *)(*(_QWORD *)(a1 + 1136) + 459LL),\n    \"Makes negative scaled objects collide correctly. Disabled on old levels for compatibility.\");\n  GJOptionsLayer::addToggleInternal(\n    a1,\n    \"Fix Robot Jump\",\n    12,\n    *(_BYTE *)(*(_QWORD *)(a1 + 1136) + 460LL),\n    \"Fixes robot jumps being bugged on slopes and/or pads.\");\n  GJOptionsLayer::addToggleInternal(\n    a1,\n    \"Dynamic Level Height\",\n    14,\n    *(_BYTE *)(*(_QWORD *)(a1 + 1136) + 461LL),\n    \"Increases max level height dynamically (the same way as max length). This option is always enabled in platformer mode.\");\n  GJOptionsLayer::addToggleInternal(\n    a1,\n    \"Sort Groups\",\n    15,\n    *(_BYTE *)(*(_QWORD *)(a1 + 1136) + 462LL),\n    \"Makes sure that spawn groups are triggered in the correct order (left to right).\");\n  GJOptionsLayer::addToggleInternal(\n    a1,\n    \"Fix Radius Collision\",\n    16,\n    *(_BYTE *)(*(_QWORD *)(a1 + 1136) + 463LL),\n    \"Replaces the player hitbox with a circle (instead of a square) for interactions with circular hitboxes. This fixes s\"\n    \"ome issues where collisions would not register.\");\n  GJOptionsLayer::addToggleInternal(\n    a1,\n    \"Reverse Sync\",\n    19,\n    *(_BYTE *)(*(_QWORD *)(a1 + 1136) + 468LL),\n    \"Slows down or speeds up the player when reversing direction using orb or pads to keep music in sync.\");\n  GJOptionsLayer::addToggleInternal(\n    a1,\n    \"Decrease Boost Slide\",\n    22,\n    *(_BYTE *)(*(_QWORD *)(a1 + 1136) + 469LL),\n    \"Slide less after dashing or being launched by moving blocks in platformer mode.\");\n  result = *(struct cocos2d::CCObject **)(a1 + 1136);\n  if ( !*((_BYTE *)result + 470) )\n    return GJOptionsLayer::addToggleInternal(\n             a1,\n             \"Enable Impulse Fix\",\n             23,\n             0,\n             \"Fix moving platform impulse bugs in platformer mode.\");\n  return result;\n}", "assembly": "; \n; LevelOptionsLayer2::setupOptions from 0x14045db80 to 0x14045de00 (640 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140798808\n; > <???> @ 0x140927da0\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 11:32:32 +0000\n; \npush    rbx                                                            ; +0x0, 0x14045db80\nsub     rsp, 30h                                                       ; +0x2, 0x14045db82\nmov     r9, [rcx+470h]                                                 ; +0x6, 0x14045db86\nlea     rax, aAllowsMultiple; \"Allows multiple rotation actions to run\"... ; +0xd, 0x14045db8d\nmov     r8d, 8                                                         ; +0x14, 0x14045db94\nmov     [rsp+38h+var_18], rax                                          ; +0x1a, 0x14045db9a\nlea     rdx, aAllowMultiRota; \"Allow Multi-Rotation\"                   ; +0x1f, 0x14045db9f\nmov     rbx, rcx                                                       ; +0x26, 0x14045dba6\nmovzx   r9d, byte ptr [r9+1C8h]                                        ; +0x29, 0x14045dba9\ncall    GJOptionsLayer__addToggleInternal                              ; +0x31, 0x14045dbb1\nmov     r9, [rbx+470h]                                                 ; +0x36, 0x14045dbb6\nlea     rax, aLegacyCompatib; \"Legacy compatibility pre 2.2. Should be\"... ; +0x3d, 0x14045dbbd\nmov     r8d, 11h                                                       ; +0x44, 0x14045dbc4\nmov     [rsp+38h+var_18], rax                                          ; +0x4a, 0x14045dbca\nlea     rdx, aEnable22Change; \"Enable 2.2 Changes\"                     ; +0x4f, 0x14045dbcf\nmov     rcx, rbx                                                       ; +0x56, 0x14045dbd6\nmovzx   r9d, byte ptr [r9+1D0h]                                        ; +0x59, 0x14045dbd9\ncall    GJOptionsLayer__addToggleInternal                              ; +0x61, 0x14045dbe1\nmov     r9, [rbx+470h]                                                 ; +0x66, 0x14045dbe6\nlea     rax, aAllowRotatingS; \"Allow rotating static objects in action\"... ; +0x6d, 0x14045dbed\nmov     r8d, 12h                                                       ; +0x74, 0x14045dbf4\nmov     [rsp+38h+var_18], rax                                          ; +0x7a, 0x14045dbfa\nlea     rdx, aAllowStaticRot; \"Allow Static-Rotate\"                    ; +0x7f, 0x14045dbff\nmov     rcx, rbx                                                       ; +0x86, 0x14045dc06\nmovzx   r9d, byte ptr [r9+1D3h]                                        ; +0x89, 0x14045dc09\ncall    GJOptionsLayer__addToggleInternal                              ; +0x91, 0x14045dc11\nmov     r9, [rbx+470h]                                                 ; +0x96, 0x14045dc16\nlea     rax, aDestroysPlayer; \"Destroys player when squeezed between t\"... ; +0x9d, 0x14045dc1d\nmov     r8d, 9                                                         ; +0xa4, 0x14045dc24\nmov     [rsp+38h+var_18], rax                                          ; +0xaa, 0x14045dc2a\nlea     rdx, aEnablePlayerSq; \"Enable Player Squeeze\"                  ; +0xaf, 0x14045dc2f\nmov     rcx, rbx                                                       ; +0xb6, 0x14045dc36\nmovzx   r9d, byte ptr [r9+1C9h]                                        ; +0xb9, 0x14045dc39\ncall    GJOptionsLayer__addToggleInternal                              ; +0xc1, 0x14045dc41\nmov     r9, [rbx+470h]                                                 ; +0xc6, 0x14045dc46\nlea     rax, aFixesAnOldBugT; \"Fixes an old bug that makes flipped gra\"... ; +0xcd, 0x14045dc4d\nmov     r8d, 0Ah                                                       ; +0xd4, 0x14045dc54\nmov     [rsp+38h+var_18], rax                                          ; +0xda, 0x14045dc5a\nlea     rdx, aFixGravityBug; \"Fix Gravity Bug\"                         ; +0xdf, 0x14045dc5f\nmov     rcx, rbx                                                       ; +0xe6, 0x14045dc66\nmovzx   r9d, byte ptr [r9+1CAh]                                        ; +0xe9, 0x14045dc69\ncall    GJOptionsLayer__addToggleInternal                              ; +0xf1, 0x14045dc71\nmov     r9, [rbx+470h]                                                 ; +0xf6, 0x14045dc76\nlea     rax, aMakesNegativeS; \"Makes negative scaled objects collide c\"... ; +0xfd, 0x14045dc7d\nmov     r8d, 0Bh                                                       ; +0x104, 0x14045dc84\nmov     [rsp+38h+var_18], rax                                          ; +0x10a, 0x14045dc8a\nlea     rdx, aFixNegativeSca; \"Fix Negative Scale\"                     ; +0x10f, 0x14045dc8f\nmov     rcx, rbx                                                       ; +0x116, 0x14045dc96\nmovzx   r9d, byte ptr [r9+1CBh]                                        ; +0x119, 0x14045dc99\ncall    GJOptionsLayer__addToggleInternal                              ; +0x121, 0x14045dca1\nmov     r9, [rbx+470h]                                                 ; +0x126, 0x14045dca6\nlea     rax, aFixesRobotJump; \"Fixes robot jumps being bugged on slope\"... ; +0x12d, 0x14045dcad\nmov     r8d, 0Ch                                                       ; +0x134, 0x14045dcb4\nmov     [rsp+38h+var_18], rax                                          ; +0x13a, 0x14045dcba\nlea     rdx, aFixRobotJump; \"Fix Robot Jump\"                           ; +0x13f, 0x14045dcbf\nmov     rcx, rbx                                                       ; +0x146, 0x14045dcc6\nmovzx   r9d, byte ptr [r9+1CCh]                                        ; +0x149, 0x14045dcc9\ncall    GJOptionsLayer__addToggleInternal                              ; +0x151, 0x14045dcd1\nmov     r9, [rbx+470h]                                                 ; +0x156, 0x14045dcd6\nlea     rax, aIncreasesMaxLe; \"Increases max level height dynamically \"... ; +0x15d, 0x14045dcdd\nmov     r8d, 0Eh                                                       ; +0x164, 0x14045dce4\nmov     [rsp+38h+var_18], rax                                          ; +0x16a, 0x14045dcea\nlea     rdx, aDynamicLevelHe; \"Dynamic Level Height\"                   ; +0x16f, 0x14045dcef\nmov     rcx, rbx                                                       ; +0x176, 0x14045dcf6\nmovzx   r9d, byte ptr [r9+1CDh]                                        ; +0x179, 0x14045dcf9\ncall    GJOptionsLayer__addToggleInternal                              ; +0x181, 0x14045dd01\nmov     r9, [rbx+470h]                                                 ; +0x186, 0x14045dd06\nlea     rax, aMakesSureThatS; \"Makes sure that spawn groups are trigge\"... ; +0x18d, 0x14045dd0d\nmov     r8d, 0Fh                                                       ; +0x194, 0x14045dd14\nmov     [rsp+38h+var_18], rax                                          ; +0x19a, 0x14045dd1a\nlea     rdx, aSortGroups; \"Sort Groups\"                                ; +0x19f, 0x14045dd1f\nmov     rcx, rbx                                                       ; +0x1a6, 0x14045dd26\nmovzx   r9d, byte ptr [r9+1CEh]                                        ; +0x1a9, 0x14045dd29\ncall    GJOptionsLayer__addToggleInternal                              ; +0x1b1, 0x14045dd31\nmov     r9, [rbx+470h]                                                 ; +0x1b6, 0x14045dd36\nlea     rax, aReplacesThePla; \"Replaces the player hitbox with a circl\"... ; +0x1bd, 0x14045dd3d\nmov     r8d, 10h                                                       ; +0x1c4, 0x14045dd44\nmov     [rsp+38h+var_18], rax                                          ; +0x1ca, 0x14045dd4a\nlea     rdx, aFixRadiusColli; \"Fix Radius Collision\"                   ; +0x1cf, 0x14045dd4f\nmov     rcx, rbx                                                       ; +0x1d6, 0x14045dd56\nmovzx   r9d, byte ptr [r9+1CFh]                                        ; +0x1d9, 0x14045dd59\ncall    GJOptionsLayer__addToggleInternal                              ; +0x1e1, 0x14045dd61\nmov     r9, [rbx+470h]                                                 ; +0x1e6, 0x14045dd66\nmovzx   r9d, byte ptr [r9+1D4h]                                        ; +0x1ed, 0x14045dd6d\nlea     rax, aSlowsDownOrSpe; \"Slows down or speeds up the player when\"... ; +0x1f5, 0x14045dd75\nmov     r8d, 13h                                                       ; +0x1fc, 0x14045dd7c\nmov     [rsp+38h+var_18], rax                                          ; +0x202, 0x14045dd82\nlea     rdx, aReverseSync; \"Reverse Sync\"                              ; +0x207, 0x14045dd87\nmov     rcx, rbx                                                       ; +0x20e, 0x14045dd8e\ncall    GJOptionsLayer__addToggleInternal                              ; +0x211, 0x14045dd91\nmov     r9, [rbx+470h]                                                 ; +0x216, 0x14045dd96\nlea     rax, aSlideLessAfter; \"Slide less after dashing or being launc\"... ; +0x21d, 0x14045dd9d\nmov     r8d, 16h                                                       ; +0x224, 0x14045dda4\nmov     [rsp+38h+var_18], rax                                          ; +0x22a, 0x14045ddaa\nlea     rdx, aDecreaseBoostS; \"Decrease Boost Slide\"                   ; +0x22f, 0x14045ddaf\nmov     rcx, rbx                                                       ; +0x236, 0x14045ddb6\nmovzx   r9d, byte ptr [r9+1D5h]                                        ; +0x239, 0x14045ddb9\ncall    GJOptionsLayer__addToggleInternal                              ; +0x241, 0x14045ddc1\nmov     rax, [rbx+470h]                                                ; +0x246, 0x14045ddc6\ncmp     byte ptr [rax+1D6h], 0                                         ; +0x24d, 0x14045ddcd\njnz     short loc_14045DDFA                                            ; +0x254, 0x14045ddd4\nlea     rax, aFixMovingPlatf; \"Fix moving platform impulse bugs in pla\"... ; +0x256, 0x14045ddd6\nxor     r9d, r9d                                                       ; +0x25d, 0x14045dddd\nmov     r8d, 17h                                                       ; +0x260, 0x14045dde0\nmov     [rsp+38h+var_18], rax                                          ; +0x266, 0x14045dde6\nlea     rdx, aEnableImpulseF; \"Enable Impulse Fix\"                     ; +0x26b, 0x14045ddeb\nmov     rcx, rbx                                                       ; +0x272, 0x14045ddf2\ncall    GJOptionsLayer__addToggleInternal                              ; +0x275, 0x14045ddf5\nadd     rsp, 30h                                                       ; +0x27a, 0x14045ddfa\npop     rbx                                                            ; +0x27e, 0x14045ddfe\nretn                                                                   ; +0x27f, 0x14045ddff", "xrefs": ["<???> @ 0x140798808", "<???> @ 0x140927da0"], "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"}