{"type": "func", "start": 4297126540, "end": 4297126996, "name": "LevelOptionsLayer::didToggle", "pseudocode": "// \n// LevelOptionsLayer::didToggle from 0x10020f28c to 0x10020f454 (456 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1008f84d8\n// > <???> @ 0x1008f8d18\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:01:02 +0000\n// \n\n__int64 __fastcall LevelOptionsLayer::didToggle(__int64 result, int a2)\n{\n  switch ( a2 )\n  {\n    case 0:\n      *(_BYTE *)(*(_QWORD *)(result + 1120) + 336LL) ^= 1u;\n      break;\n    case 1:\n      *(_BYTE *)(*(_QWORD *)(result + 1120) + 337LL) ^= 1u;\n      break;\n    case 2:\n      *(_BYTE *)(*(_QWORD *)(result + 1120) + 340LL) ^= 1u;\n      break;\n    case 4:\n      *(_BYTE *)(*(_QWORD *)(result + 1120) + 338LL) ^= 1u;\n      break;\n    case 5:\n      *(_BYTE *)(*(_QWORD *)(result + 1120) + 369LL) ^= 1u;\n      break;\n    case 6:\n      *(_BYTE *)(*(_QWORD *)(result + 1120) + 339LL) ^= 1u;\n      break;\n    case 7:\n      *(_BYTE *)(*(_QWORD *)(result + 1120) + 370LL) ^= 1u;\n      break;\n    case 8:\n      *(_BYTE *)(*(_QWORD *)(result + 1120) + 448LL) ^= 1u;\n      break;\n    case 9:\n      *(_BYTE *)(*(_QWORD *)(result + 1120) + 449LL) ^= 1u;\n      break;\n    case 10:\n      *(_BYTE *)(*(_QWORD *)(result + 1120) + 450LL) ^= 1u;\n      break;\n    case 11:\n      *(_BYTE *)(*(_QWORD *)(result + 1120) + 451LL) ^= 1u;\n      break;\n    case 12:\n      *(_BYTE *)(*(_QWORD *)(result + 1120) + 452LL) ^= 1u;\n      break;\n    case 14:\n      *(_BYTE *)(*(_QWORD *)(result + 1120) + 453LL) ^= 1u;\n      break;\n    case 15:\n      *(_BYTE *)(*(_QWORD *)(result + 1120) + 454LL) ^= 1u;\n      break;\n    case 16:\n      *(_BYTE *)(*(_QWORD *)(result + 1120) + 455LL) ^= 1u;\n      break;\n    case 17:\n      *(_BYTE *)(*(_QWORD *)(result + 1120) + 456LL) ^= 1u;\n      break;\n    case 18:\n      *(_BYTE *)(*(_QWORD *)(result + 1120) + 459LL) ^= 1u;\n      break;\n    case 19:\n      *(_BYTE *)(*(_QWORD *)(result + 1120) + 460LL) ^= 1u;\n      break;\n    case 20:\n      *(_BYTE *)(*(_QWORD *)(result + 1120) + 430LL) ^= 1u;\n      break;\n    case 22:\n      *(_BYTE *)(*(_QWORD *)(result + 1120) + 461LL) ^= 1u;\n      break;\n    case 23:\n      *(_BYTE *)(*(_QWORD *)(result + 1120) + 462LL) ^= 1u;\n      break;\n    default:\n      return result;\n  }\n  return result;\n}", "assembly": "; \n; LevelOptionsLayer::didToggle from 0x10020f28c to 0x10020f454 (456 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1008f84d8\n; > <???> @ 0x1008f8d18\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:01:02 +0000\n; \nCMP             W1, #0x17; switch 24 cases                             ; +0x0, 0x10020f28c\nB.HI            def_10020F2AC; jumptable 000000010020F2AC default case, cases 3,13,21 ; +0x4, 0x10020f290\nMOV             W8, W1                                                 ; +0x8, 0x10020f294\nADRL            X9, jpt_10020F2AC                                      ; +0xc, 0x10020f298\nADR             X10, loc_10020F2B0; jumptable 000000010020F2AC case 0  ; +0x14, 0x10020f2a0\nLDRB            W11, [X9,X8]                                           ; +0x18, 0x10020f2a4\nADD             X10, X10, X11,LSL#2                                    ; +0x1c, 0x10020f2a8\nBR              X10; switch jump                                       ; +0x20, 0x10020f2ac\nLDR             X8, [X0,#0x460]; jumptable 000000010020F2AC case 0     ; +0x24, 0x10020f2b0\nLDRB            W9, [X8,#0x150]                                        ; +0x28, 0x10020f2b4\nEOR             W9, W9, #1                                             ; +0x2c, 0x10020f2b8\nSTRB            W9, [X8,#0x150]                                        ; +0x30, 0x10020f2bc\nRET                                                                    ; +0x34, 0x10020f2c0\nLDR             X8, [X0,#0x460]; jumptable 000000010020F2AC case 20    ; +0x38, 0x10020f2c4\nLDRB            W9, [X8,#0x1AE]                                        ; +0x3c, 0x10020f2c8\nEOR             W9, W9, #1                                             ; +0x40, 0x10020f2cc\nSTRB            W9, [X8,#0x1AE]                                        ; +0x44, 0x10020f2d0\nRET                                                                    ; +0x48, 0x10020f2d4\nLDR             X8, [X0,#0x460]; jumptable 000000010020F2AC case 15    ; +0x4c, 0x10020f2d8\nLDRB            W9, [X8,#0x1C6]                                        ; +0x50, 0x10020f2dc\nEOR             W9, W9, #1                                             ; +0x54, 0x10020f2e0\nSTRB            W9, [X8,#0x1C6]                                        ; +0x58, 0x10020f2e4\nRET                                                                    ; +0x5c, 0x10020f2e8\nLDR             X8, [X0,#0x460]; jumptable 000000010020F2AC case 11    ; +0x60, 0x10020f2ec\nLDRB            W9, [X8,#0x1C3]                                        ; +0x64, 0x10020f2f0\nEOR             W9, W9, #1                                             ; +0x68, 0x10020f2f4\nSTRB            W9, [X8,#0x1C3]                                        ; +0x6c, 0x10020f2f8\nRET                                                                    ; +0x70, 0x10020f2fc\nLDR             X8, [X0,#0x460]; jumptable 000000010020F2AC case 14    ; +0x74, 0x10020f300\nLDRB            W9, [X8,#0x1C5]                                        ; +0x78, 0x10020f304\nEOR             W9, W9, #1                                             ; +0x7c, 0x10020f308\nSTRB            W9, [X8,#0x1C5]                                        ; +0x80, 0x10020f30c\nRET                                                                    ; +0x84, 0x10020f310\nLDR             X8, [X0,#0x460]; jumptable 000000010020F2AC case 22    ; +0x88, 0x10020f314\nLDRB            W9, [X8,#0x1CD]                                        ; +0x8c, 0x10020f318\nEOR             W9, W9, #1                                             ; +0x90, 0x10020f31c\nSTRB            W9, [X8,#0x1CD]                                        ; +0x94, 0x10020f320\nRET                                                                    ; +0x98, 0x10020f324\nLDR             X8, [X0,#0x460]; jumptable 000000010020F2AC case 2     ; +0x9c, 0x10020f328\nLDRB            W9, [X8,#0x154]                                        ; +0xa0, 0x10020f32c\nEOR             W9, W9, #1                                             ; +0xa4, 0x10020f330\nSTRB            W9, [X8,#0x154]                                        ; +0xa8, 0x10020f334\nRET                                                                    ; +0xac, 0x10020f338\nLDR             X8, [X0,#0x460]; jumptable 000000010020F2AC case 6     ; +0xb0, 0x10020f33c\nLDRB            W9, [X8,#0x153]                                        ; +0xb4, 0x10020f340\nEOR             W9, W9, #1                                             ; +0xb8, 0x10020f344\nSTRB            W9, [X8,#0x153]                                        ; +0xbc, 0x10020f348\nRET                                                                    ; +0xc0, 0x10020f34c\nLDR             X8, [X0,#0x460]; jumptable 000000010020F2AC case 12    ; +0xc4, 0x10020f350\nLDRB            W9, [X8,#0x1C4]                                        ; +0xc8, 0x10020f354\nEOR             W9, W9, #1                                             ; +0xcc, 0x10020f358\nSTRB            W9, [X8,#0x1C4]                                        ; +0xd0, 0x10020f35c\nRET                                                                    ; +0xd4, 0x10020f360\nLDR             X8, [X0,#0x460]; jumptable 000000010020F2AC case 1     ; +0xd8, 0x10020f364\nLDRB            W9, [X8,#0x151]                                        ; +0xdc, 0x10020f368\nEOR             W9, W9, #1                                             ; +0xe0, 0x10020f36c\nSTRB            W9, [X8,#0x151]                                        ; +0xe4, 0x10020f370\nRET                                                                    ; +0xe8, 0x10020f374\nLDR             X8, [X0,#0x460]; jumptable 000000010020F2AC case 7     ; +0xec, 0x10020f378\nLDRB            W9, [X8,#0x172]                                        ; +0xf0, 0x10020f37c\nEOR             W9, W9, #1                                             ; +0xf4, 0x10020f380\nSTRB            W9, [X8,#0x172]                                        ; +0xf8, 0x10020f384\nRET                                                                    ; +0xfc, 0x10020f388\nLDR             X8, [X0,#0x460]; jumptable 000000010020F2AC case 8     ; +0x100, 0x10020f38c\nLDRB            W9, [X8,#0x1C0]                                        ; +0x104, 0x10020f390\nEOR             W9, W9, #1                                             ; +0x108, 0x10020f394\nSTRB            W9, [X8,#0x1C0]                                        ; +0x10c, 0x10020f398\nRET                                                                    ; +0x110, 0x10020f39c\nLDR             X8, [X0,#0x460]; jumptable 000000010020F2AC case 16    ; +0x114, 0x10020f3a0\nLDRB            W9, [X8,#0x1C7]                                        ; +0x118, 0x10020f3a4\nEOR             W9, W9, #1                                             ; +0x11c, 0x10020f3a8\nSTRB            W9, [X8,#0x1C7]                                        ; +0x120, 0x10020f3ac\nRET                                                                    ; +0x124, 0x10020f3b0\nLDR             X8, [X0,#0x460]; jumptable 000000010020F2AC case 17    ; +0x128, 0x10020f3b4\nLDRB            W9, [X8,#0x1C8]                                        ; +0x12c, 0x10020f3b8\nEOR             W9, W9, #1                                             ; +0x130, 0x10020f3bc\nSTRB            W9, [X8,#0x1C8]                                        ; +0x134, 0x10020f3c0\nRET                                                                    ; +0x138, 0x10020f3c4\nLDR             X8, [X0,#0x460]; jumptable 000000010020F2AC case 4     ; +0x13c, 0x10020f3c8\nLDRB            W9, [X8,#0x152]                                        ; +0x140, 0x10020f3cc\nEOR             W9, W9, #1                                             ; +0x144, 0x10020f3d0\nSTRB            W9, [X8,#0x152]                                        ; +0x148, 0x10020f3d4\nRET                                                                    ; +0x14c, 0x10020f3d8\nLDR             X8, [X0,#0x460]; jumptable 000000010020F2AC case 5     ; +0x150, 0x10020f3dc\nLDRB            W9, [X8,#0x171]                                        ; +0x154, 0x10020f3e0\nEOR             W9, W9, #1                                             ; +0x158, 0x10020f3e4\nSTRB            W9, [X8,#0x171]                                        ; +0x15c, 0x10020f3e8\nRET                                                                    ; +0x160, 0x10020f3ec\nLDR             X8, [X0,#0x460]; jumptable 000000010020F2AC case 10    ; +0x164, 0x10020f3f0\nLDRB            W9, [X8,#0x1C2]                                        ; +0x168, 0x10020f3f4\nEOR             W9, W9, #1                                             ; +0x16c, 0x10020f3f8\nSTRB            W9, [X8,#0x1C2]                                        ; +0x170, 0x10020f3fc\nRET                                                                    ; +0x174, 0x10020f400\nLDR             X8, [X0,#0x460]; jumptable 000000010020F2AC case 9     ; +0x178, 0x10020f404\nLDRB            W9, [X8,#0x1C1]                                        ; +0x17c, 0x10020f408\nEOR             W9, W9, #1                                             ; +0x180, 0x10020f40c\nSTRB            W9, [X8,#0x1C1]                                        ; +0x184, 0x10020f410\nRET                                                                    ; +0x188, 0x10020f414\nLDR             X8, [X0,#0x460]; jumptable 000000010020F2AC case 19    ; +0x18c, 0x10020f418\nLDRB            W9, [X8,#0x1CC]                                        ; +0x190, 0x10020f41c\nEOR             W9, W9, #1                                             ; +0x194, 0x10020f420\nSTRB            W9, [X8,#0x1CC]                                        ; +0x198, 0x10020f424\nRET                                                                    ; +0x19c, 0x10020f428\nLDR             X8, [X0,#0x460]; jumptable 000000010020F2AC case 18    ; +0x1a0, 0x10020f42c\nLDRB            W9, [X8,#0x1CB]                                        ; +0x1a4, 0x10020f430\nEOR             W9, W9, #1                                             ; +0x1a8, 0x10020f434\nSTRB            W9, [X8,#0x1CB]                                        ; +0x1ac, 0x10020f438\nRET                                                                    ; +0x1b0, 0x10020f43c\nLDR             X8, [X0,#0x460]; jumptable 000000010020F2AC case 23    ; +0x1b4, 0x10020f440\nLDRB            W9, [X8,#0x1CE]                                        ; +0x1b8, 0x10020f444\nEOR             W9, W9, #1                                             ; +0x1bc, 0x10020f448\nSTRB            W9, [X8,#0x1CE]                                        ; +0x1c0, 0x10020f44c\nRET; jumptable 000000010020F2AC default case, cases 3,13,21            ; +0x1c4, 0x10020f450", "xrefs": ["<???> @ 0x1008f84d8", "<???> @ 0x1008f8d18"], "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"}