{"type": "func", "start": 5372004176, "end": 5372004712, "name": "LevelOptionsLayer::didToggle", "pseudocode": "// \n// LevelOptionsLayer::didToggle from 0x140324750 to 0x140324968 (536 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14058e2f8\n// > <???> @ 0x14058f490\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid LevelOptionsLayer::didToggle(LevelOptionsLayer *a1, int a2)\n{\n  switch ( a2 )\n  {\n    case 0:\n      a1->m_settingsObject->m_startMini = !a1->m_settingsObject->m_startMini;\n      break;\n    case 1:\n      a1->m_settingsObject->m_startDual = !a1->m_settingsObject->m_startDual;\n      break;\n    case 2:\n      a1->m_settingsObject->m_twoPlayerMode = !a1->m_settingsObject->m_twoPlayerMode;\n      break;\n    case 4:\n      a1->m_settingsObject->m_mirrorMode = !a1->m_settingsObject->m_mirrorMode;\n      break;\n    case 5:\n      a1->m_settingsObject->m_isFlipped = !a1->m_settingsObject->m_isFlipped;\n      break;\n    case 6:\n      a1->m_settingsObject->m_rotateGameplay = !a1->m_settingsObject->m_rotateGameplay;\n      break;\n    case 7:\n      a1->m_settingsObject->m_reverseGameplay = !a1->m_settingsObject->m_reverseGameplay;\n      break;\n    case 8:\n      a1->m_settingsObject->m_allowMultiRotation = !a1->m_settingsObject->m_allowMultiRotation;\n      break;\n    case 9:\n      a1->m_settingsObject->m_enablePlayerSqueeze = !a1->m_settingsObject->m_enablePlayerSqueeze;\n      break;\n    case 10:\n      a1->m_settingsObject->m_fixGravityBug = !a1->m_settingsObject->m_fixGravityBug;\n      break;\n    case 11:\n      a1->m_settingsObject->m_fixNegativeScale = !a1->m_settingsObject->m_fixNegativeScale;\n      break;\n    case 12:\n      a1->m_settingsObject->m_fixRobotJump = !a1->m_settingsObject->m_fixRobotJump;\n      break;\n    case 14:\n      a1->m_settingsObject->m_dynamicLevelHeight = !a1->m_settingsObject->m_dynamicLevelHeight;\n      break;\n    case 15:\n      a1->m_settingsObject->m_sortGroups = !a1->m_settingsObject->m_sortGroups;\n      break;\n    case 16:\n      a1->m_settingsObject->m_fixRadiusCollision = !a1->m_settingsObject->m_fixRadiusCollision;\n      break;\n    case 17:\n      a1->m_settingsObject->m_enable22Changes = !a1->m_settingsObject->m_enable22Changes;\n      break;\n    case 18:\n      a1->m_settingsObject->m_allowStaticRotate = !a1->m_settingsObject->m_allowStaticRotate;\n      break;\n    case 19:\n      a1->m_settingsObject->m_reverseSync = !a1->m_settingsObject->m_reverseSync;\n      break;\n    case 20:\n      a1->m_settingsObject->m_noTimePenalty = !a1->m_settingsObject->m_noTimePenalty;\n      break;\n    case 22:\n      a1->m_settingsObject->m_decreaseBoostSlide = !a1->m_settingsObject->m_decreaseBoostSlide;\n      break;\n    case 23:\n      a1->m_settingsObject->m_enableImpulseFix = !a1->m_settingsObject->m_enableImpulseFix;\n      break;\n    default:\n      return;\n  }\n}", "assembly": "; \n; LevelOptionsLayer::didToggle from 0x140324750 to 0x140324968 (536 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14058e2f8\n; > <???> @ 0x14058f490\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\ncmp     edx, 17h; switch 24 cases                                      ; +0x0, 0x140324750\nja      def_14032476E; jumptable 000000014032476E default case, cases 3,13,21 ; +0x3, 0x140324753\nmovsxd  rax, edx                                                       ; +0x9, 0x140324759\nlea     r8, cs:140000000h                                              ; +0xc, 0x14032475c\nmov     edx, ds:(jpt_14032476E - 140000000h)[r8+rax*4]                 ; +0x13, 0x140324763\nadd     rdx, r8                                                        ; +0x1b, 0x14032476b\njmp     rdx; switch jump                                               ; +0x1e, 0x14032476e\nmov     rcx, [rcx+3F0h]; jumptable 000000014032476E case 0             ; +0x20, 0x140324770\ncmp     byte ptr [rcx+150h], 0                                         ; +0x27, 0x140324777\nsetz    al                                                             ; +0x2e, 0x14032477e\nmov     [rcx+150h], al                                                 ; +0x31, 0x140324781\nretn                                                                   ; +0x37, 0x140324787\nmov     rcx, [rcx+3F0h]; jumptable 000000014032476E case 1             ; +0x38, 0x140324788\ncmp     byte ptr [rcx+151h], 0                                         ; +0x3f, 0x14032478f\nsetz    al                                                             ; +0x46, 0x140324796\nmov     [rcx+151h], al                                                 ; +0x49, 0x140324799\nretn                                                                   ; +0x4f, 0x14032479f\nmov     rcx, [rcx+3F0h]; jumptable 000000014032476E case 2             ; +0x50, 0x1403247a0\ncmp     byte ptr [rcx+154h], 0                                         ; +0x57, 0x1403247a7\nsetz    al                                                             ; +0x5e, 0x1403247ae\nmov     [rcx+154h], al                                                 ; +0x61, 0x1403247b1\nretn                                                                   ; +0x67, 0x1403247b7\nmov     rcx, [rcx+3F0h]; jumptable 000000014032476E case 4             ; +0x68, 0x1403247b8\ncmp     byte ptr [rcx+152h], 0                                         ; +0x6f, 0x1403247bf\nsetz    al                                                             ; +0x76, 0x1403247c6\nmov     [rcx+152h], al                                                 ; +0x79, 0x1403247c9\nretn                                                                   ; +0x7f, 0x1403247cf\nmov     rcx, [rcx+3F0h]; jumptable 000000014032476E case 5             ; +0x80, 0x1403247d0\ncmp     byte ptr [rcx+171h], 0                                         ; +0x87, 0x1403247d7\nsetz    al                                                             ; +0x8e, 0x1403247de\nmov     [rcx+171h], al                                                 ; +0x91, 0x1403247e1\nretn                                                                   ; +0x97, 0x1403247e7\nmov     rcx, [rcx+3F0h]; jumptable 000000014032476E case 6             ; +0x98, 0x1403247e8\ncmp     byte ptr [rcx+153h], 0                                         ; +0x9f, 0x1403247ef\nsetz    al                                                             ; +0xa6, 0x1403247f6\nmov     [rcx+153h], al                                                 ; +0xa9, 0x1403247f9\nretn                                                                   ; +0xaf, 0x1403247ff\nmov     rcx, [rcx+3F0h]; jumptable 000000014032476E case 7             ; +0xb0, 0x140324800\ncmp     byte ptr [rcx+172h], 0                                         ; +0xb7, 0x140324807\nsetz    al                                                             ; +0xbe, 0x14032480e\nmov     [rcx+172h], al                                                 ; +0xc1, 0x140324811\nretn                                                                   ; +0xc7, 0x140324817\nmov     rcx, [rcx+3F0h]; jumptable 000000014032476E case 8             ; +0xc8, 0x140324818\ncmp     byte ptr [rcx+1C8h], 0                                         ; +0xcf, 0x14032481f\nsetz    al                                                             ; +0xd6, 0x140324826\nmov     [rcx+1C8h], al                                                 ; +0xd9, 0x140324829\nretn                                                                   ; +0xdf, 0x14032482f\nmov     rcx, [rcx+3F0h]; jumptable 000000014032476E case 9             ; +0xe0, 0x140324830\ncmp     byte ptr [rcx+1C9h], 0                                         ; +0xe7, 0x140324837\nsetz    al                                                             ; +0xee, 0x14032483e\nmov     [rcx+1C9h], al                                                 ; +0xf1, 0x140324841\nretn                                                                   ; +0xf7, 0x140324847\nmov     rcx, [rcx+3F0h]; jumptable 000000014032476E case 10            ; +0xf8, 0x140324848\ncmp     byte ptr [rcx+1CAh], 0                                         ; +0xff, 0x14032484f\nsetz    al                                                             ; +0x106, 0x140324856\nmov     [rcx+1CAh], al                                                 ; +0x109, 0x140324859\nretn                                                                   ; +0x10f, 0x14032485f\nmov     rcx, [rcx+3F0h]; jumptable 000000014032476E case 11            ; +0x110, 0x140324860\ncmp     byte ptr [rcx+1CBh], 0                                         ; +0x117, 0x140324867\nsetz    al                                                             ; +0x11e, 0x14032486e\nmov     [rcx+1CBh], al                                                 ; +0x121, 0x140324871\nretn                                                                   ; +0x127, 0x140324877\nmov     rcx, [rcx+3F0h]; jumptable 000000014032476E case 12            ; +0x128, 0x140324878\ncmp     byte ptr [rcx+1CCh], 0                                         ; +0x12f, 0x14032487f\nsetz    al                                                             ; +0x136, 0x140324886\nmov     [rcx+1CCh], al                                                 ; +0x139, 0x140324889\nretn                                                                   ; +0x13f, 0x14032488f\nmov     rcx, [rcx+3F0h]; jumptable 000000014032476E case 14            ; +0x140, 0x140324890\ncmp     byte ptr [rcx+1CDh], 0                                         ; +0x147, 0x140324897\nsetz    al                                                             ; +0x14e, 0x14032489e\nmov     [rcx+1CDh], al                                                 ; +0x151, 0x1403248a1\nretn                                                                   ; +0x157, 0x1403248a7\nmov     rcx, [rcx+3F0h]; jumptable 000000014032476E case 15            ; +0x158, 0x1403248a8\ncmp     byte ptr [rcx+1CEh], 0                                         ; +0x15f, 0x1403248af\nsetz    al                                                             ; +0x166, 0x1403248b6\nmov     [rcx+1CEh], al                                                 ; +0x169, 0x1403248b9\nretn                                                                   ; +0x16f, 0x1403248bf\nmov     rcx, [rcx+3F0h]; jumptable 000000014032476E case 16            ; +0x170, 0x1403248c0\ncmp     byte ptr [rcx+1CFh], 0                                         ; +0x177, 0x1403248c7\nsetz    al                                                             ; +0x17e, 0x1403248ce\nmov     [rcx+1CFh], al                                                 ; +0x181, 0x1403248d1\nretn                                                                   ; +0x187, 0x1403248d7\nmov     rcx, [rcx+3F0h]; jumptable 000000014032476E case 17            ; +0x188, 0x1403248d8\ncmp     byte ptr [rcx+1D0h], 0                                         ; +0x18f, 0x1403248df\nsetz    al                                                             ; +0x196, 0x1403248e6\nmov     [rcx+1D0h], al                                                 ; +0x199, 0x1403248e9\nretn                                                                   ; +0x19f, 0x1403248ef\nmov     rcx, [rcx+3F0h]; jumptable 000000014032476E case 18            ; +0x1a0, 0x1403248f0\ncmp     byte ptr [rcx+1D1h], 0                                         ; +0x1a7, 0x1403248f7\nsetz    al                                                             ; +0x1ae, 0x1403248fe\nmov     [rcx+1D1h], al                                                 ; +0x1b1, 0x140324901\nretn                                                                   ; +0x1b7, 0x140324907\nmov     rcx, [rcx+3F0h]; jumptable 000000014032476E case 19            ; +0x1b8, 0x140324908\ncmp     byte ptr [rcx+1D2h], 0                                         ; +0x1bf, 0x14032490f\nsetz    al                                                             ; +0x1c6, 0x140324916\nmov     [rcx+1D2h], al                                                 ; +0x1c9, 0x140324919\nretn                                                                   ; +0x1cf, 0x14032491f\nmov     rcx, [rcx+3F0h]; jumptable 000000014032476E case 20            ; +0x1d0, 0x140324920\ncmp     byte ptr [rcx+1B6h], 0                                         ; +0x1d7, 0x140324927\nsetz    al                                                             ; +0x1de, 0x14032492e\nmov     [rcx+1B6h], al                                                 ; +0x1e1, 0x140324931\nretn                                                                   ; +0x1e7, 0x140324937\nmov     rcx, [rcx+3F0h]; jumptable 000000014032476E case 22            ; +0x1e8, 0x140324938\ncmp     byte ptr [rcx+1D3h], 0                                         ; +0x1ef, 0x14032493f\nsetz    al                                                             ; +0x1f6, 0x140324946\nmov     [rcx+1D3h], al                                                 ; +0x1f9, 0x140324949\nretn                                                                   ; +0x1ff, 0x14032494f\nmov     rcx, [rcx+3F0h]; jumptable 000000014032476E case 23            ; +0x200, 0x140324950\ncmp     byte ptr [rcx+1D4h], 0                                         ; +0x207, 0x140324957\nsetz    al                                                             ; +0x20e, 0x14032495e\nmov     [rcx+1D4h], al                                                 ; +0x211, 0x140324961\nretn; jumptable 000000014032476E default case, cases 3,13,21           ; +0x217, 0x140324967", "xrefs": ["<???> @ 0x14058e2f8", "<???> @ 0x14058f490"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}