{"type": "func", "start": 4297718848, "end": 4297719943, "name": "GameLevelOptionsLayer::didToggle", "pseudocode": "// \n// GameLevelOptionsLayer::didToggle from 0x10029fc40 to 0x1002a0087 (1095 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100b04258\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\nunsigned __int64 __fastcall GameLevelOptionsLayer::didToggle(_QWORD *a1, int a2)\n{\n  unsigned __int64 result; // rax\n  int v3; // r8d\n  int v4; // r15d\n  unsigned __int64 v5; // rcx\n  unsigned __int64 v6; // r9\n  unsigned __int64 v7; // rdx\n  __int64 v8; // rbx\n  __int64 v9; // rcx\n  unsigned int v10; // eax\n  __int64 v11; // rbx\n  __int64 **v12; // rax\n  __int64 *v13; // r9\n  __int64 v14; // rdx\n  unsigned __int64 v15; // rsi\n  unsigned __int64 v16; // rdx\n  __int64 v17; // rsi\n  __int64 *v18; // rdi\n  unsigned __int64 v19; // rcx\n  __int64 v20; // rdi\n  _QWORD v21[2]; // [rsp+0h] [rbp-40h] BYREF\n  void *__p; // [rsp+10h] [rbp-30h]\n\n  result = (unsigned int)(a2 - 1);\n  switch ( a2 )\n  {\n    case 1:\n      v9 = a1[141];\n      v10 = *(unsigned __int8 *)(v9 + 1472);\n      if ( (v10 & 1) != 0 )\n      {\n        if ( *(_QWORD *)(v9 + 1480) )\n          goto LABEL_10;\n      }\n      else if ( v10 >> 1 )\n      {\nLABEL_10:\n        __p = operator new(0x60u);\n        v21[0] = 97;\n        v21[1] = 94;\n        strcpy(\n          (char *)__p,\n          \"Changing <cy>LDM</c> will <cr>delete</c> your <cg>saved</c> <cy>checkpoint</c> for this level.\");\n        v11 = FLAlertLayer::create_1(a1 + 140, \"Low Detail Mode\", v21, \"Cancel\", \"OK\", 380.0);\n        if ( (v21[0] & 1) != 0 )\n          operator delete(__p);\n        return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 1312LL))(v11);\n      }\n      return sub_1002A00C0();\n    case 2:\n      result = a1[141];\n      *(_BYTE *)(result + 770) ^= 1u;\n      return result;\n    case 3:\n    case 4:\n      result = a1[141];\n      v3 = *(_DWORD *)(result + 1436);\n      v4 = a2 != 3 || v3 != 1;\n      if ( a2 != 3 )\n        v4 = 2 * (v3 != 2);\n      *(_DWORD *)(result + 1436) = v4;\n      v5 = a1[136];\n      if ( !v5 )\n        return result;\n      v6 = ((v5 - ((v5 >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL)\n         + (((v5 - ((v5 >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL);\n      v7 = (0x101010101010101LL * ((v6 + (v6 >> 4)) & 0xF0F0F0F0F0F0F0FLL)) >> 56;\n      if ( v7 > 1 )\n      {\n        v8 = 3;\n        if ( v5 <= 3 )\n          v8 = 3u % (unsigned __int8)v5;\n      }\n      else\n      {\n        v8 = ((_BYTE)v5 - 1) & 3;\n      }\n      v12 = *(__int64 ***)(a1[135] + 8 * v8);\n      if ( !v12 )\n        goto LABEL_40;\n      v13 = *v12;\n      if ( !*v12 )\n        goto LABEL_40;\n      if ( (unsigned int)v7 >= 2 )\n      {\n        while ( 1 )\n        {\n          result = v13[1];\n          if ( result == 3 )\n          {\n            if ( *((_DWORD *)v13 + 4) == 3 )\n              goto LABEL_37;\n          }\n          else\n          {\n            if ( result < v5 )\n              goto LABEL_26;\n            if ( (v5 | result) >> 32 )\n            {\n              result %= v5;\nLABEL_26:\n              if ( result != v8 )\n                goto LABEL_39;\n              goto LABEL_21;\n            }\n            result = (unsigned int)result % (unsigned int)v5;\n            if ( result != v8 )\n              goto LABEL_39;\n          }\nLABEL_21:\n          v13 = (__int64 *)*v13;\n          if ( !v13 )\n            goto LABEL_39;\n        }\n      }\n      result = v5 - 1;\n      while ( 1 )\n      {\n        v14 = v13[1];\n        if ( v14 == 3 )\n          break;\n        if ( (result & v14) != v8 )\n          goto LABEL_39;\nLABEL_31:\n        v13 = (__int64 *)*v13;\n        if ( !v13 )\n          goto LABEL_39;\n      }\n      if ( *((_DWORD *)v13 + 4) != 3 )\n        goto LABEL_31;\nLABEL_37:\n      result = v13[3];\n      if ( result )\n      {\n        result = CCMenuItemToggler::toggle(v13[3], (v3 != 1) & (unsigned __int8)(a2 == 3));\n        v5 = a1[136];\n      }\nLABEL_39:\n      if ( v5 )\n      {\nLABEL_40:\n        v15 = ((v5 - ((v5 >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL)\n            + (((v5 - ((v5 >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL);\n        v16 = (0x101010101010101LL * ((v15 + (v15 >> 4)) & 0xF0F0F0F0F0F0F0FLL)) >> 56;\n        if ( v16 > 1 )\n        {\n          v17 = 4;\n          if ( v5 <= 4 )\n            v17 = 4u % (unsigned __int8)v5;\n        }\n        else\n        {\n          v17 = ((_BYTE)v5 - 1) & 4;\n        }\n        result = *(_QWORD *)(a1[135] + 8 * v17);\n        if ( result )\n        {\n          v18 = *(__int64 **)result;\n          if ( *(_QWORD *)result )\n          {\n            if ( (unsigned int)v16 < 2 )\n            {\n              v19 = v5 - 1;\n              while ( 1 )\n              {\n                result = v18[1];\n                if ( result == 4 )\n                {\n                  if ( *((_DWORD *)v18 + 4) == 4 )\n                    goto LABEL_63;\n                }\n                else\n                {\n                  result &= v19;\n                  if ( result != v17 )\n                    return result;\n                }\n                v18 = (__int64 *)*v18;\n                if ( !v18 )\n                  return result;\n              }\n            }\n            do\n            {\n              result = v18[1];\n              if ( result == 4 )\n              {\n                if ( *((_DWORD *)v18 + 4) == 4 )\n                {\nLABEL_63:\n                  v20 = v18[3];\n                  if ( v20 )\n                    return CCMenuItemToggler::toggle(v20, v4 == 2);\n                  return result;\n                }\n              }\n              else\n              {\n                if ( result < v5 )\n                  goto LABEL_54;\n                if ( (v5 | result) >> 32 )\n                {\n                  result %= v5;\nLABEL_54:\n                  if ( result != v17 )\n                    return result;\n                  goto LABEL_49;\n                }\n                result = (unsigned int)result % (unsigned int)v5;\n                if ( result != v17 )\n                  return result;\n              }\nLABEL_49:\n              v18 = (__int64 *)*v18;\n            }\n            while ( v18 );\n          }\n        }\n      }\n      return result;\n    case 5:\n      result = a1[141];\n      *(_BYTE *)(result + 1528) ^= 1u;\n      return result;\n    default:\n      return result;\n  }\n}", "assembly": "; \n; GameLevelOptionsLayer::didToggle from 0x10029fc40 to 0x1002a0087 (1095 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100b04258\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, 0x10029fc40\nmov     rbp, rsp                                                       ; +0x1, 0x10029fc41\npush    r15                                                            ; +0x4, 0x10029fc44\npush    r14                                                            ; +0x6, 0x10029fc46\npush    r13                                                            ; +0x8, 0x10029fc48\npush    r12                                                            ; +0xa, 0x10029fc4a\npush    rbx                                                            ; +0xc, 0x10029fc4c\nsub     rsp, 18h                                                       ; +0xd, 0x10029fc4d\nlea     eax, [rsi-1]; switch 5 cases                                   ; +0x11, 0x10029fc51\ncmp     eax, 4                                                         ; +0x14, 0x10029fc54\nja      def_10029FC6B; jumptable 000000010029FC6B default case         ; +0x17, 0x10029fc57\nlea     rcx, jpt_10029FC6B                                             ; +0x1d, 0x10029fc5d\nmovsxd  rax, (jpt_10029FC6B - 1002A00A4h)[rcx+rax*4]                   ; +0x24, 0x10029fc64\nadd     rax, rcx                                                       ; +0x28, 0x10029fc68\njmp     rax; switch jump                                               ; +0x2b, 0x10029fc6b\nmov     rax, [rdi+468h]; jumptable 000000010029FC6B cases 3,4          ; +0x2d, 0x10029fc6d\nmov     r8d, [rax+59Ch]                                                ; +0x34, 0x10029fc74\nxor     ecx, ecx                                                       ; +0x3b, 0x10029fc7b\ncmp     r8d, 2                                                         ; +0x3d, 0x10029fc7d\nsetnz   cl                                                             ; +0x41, 0x10029fc81\ncmp     esi, 3                                                         ; +0x44, 0x10029fc84\nsetnz   dl                                                             ; +0x47, 0x10029fc87\ncmp     r8d, 1                                                         ; +0x4a, 0x10029fc8a\nsetnz   r9b                                                            ; +0x4e, 0x10029fc8e\nor      r9b, dl                                                        ; +0x52, 0x10029fc92\nadd     ecx, ecx                                                       ; +0x55, 0x10029fc95\ncmp     esi, 3                                                         ; +0x57, 0x10029fc97\nmovzx   r15d, r9b                                                      ; +0x5a, 0x10029fc9a\ncmovnz  r15d, ecx                                                      ; +0x5e, 0x10029fc9e\nmov     [rax+59Ch], r15d                                               ; +0x62, 0x10029fca2\nmov     rcx, [rdi+440h]                                                ; +0x69, 0x10029fca9\ntest    rcx, rcx                                                       ; +0x70, 0x10029fcb0\njz      def_10029FC6B; jumptable 000000010029FC6B default case         ; +0x73, 0x10029fcb3\nmov     rax, rcx                                                       ; +0x79, 0x10029fcb9\nshr     rax, 1                                                         ; +0x7c, 0x10029fcbc\nmov     r10, 5555555555555555h                                         ; +0x7f, 0x10029fcbf\nand     rax, r10                                                       ; +0x89, 0x10029fcc9\nmov     r9, rcx                                                        ; +0x8c, 0x10029fccc\nsub     r9, rax                                                        ; +0x8f, 0x10029fccf\nmov     r14, 3333333333333333h                                         ; +0x92, 0x10029fcd2\nmov     rax, r9                                                        ; +0x9c, 0x10029fcdc\nand     rax, r14                                                       ; +0x9f, 0x10029fcdf\nshr     r9, 2                                                          ; +0xa2, 0x10029fce2\nand     r9, r14                                                        ; +0xa6, 0x10029fce6\nadd     r9, rax                                                        ; +0xa9, 0x10029fce9\nmov     rdx, r9                                                        ; +0xac, 0x10029fcec\nshr     rdx, 4                                                         ; +0xaf, 0x10029fcef\nadd     rdx, r9                                                        ; +0xb3, 0x10029fcf3\nmov     r12, 0F0F0F0F0F0F0F0Fh                                         ; +0xb6, 0x10029fcf6\nand     rdx, r12                                                       ; +0xc0, 0x10029fd00\nmov     r13, 101010101010101h                                          ; +0xc3, 0x10029fd03\nimul    rdx, r13                                                       ; +0xcd, 0x10029fd0d\nshr     rdx, 38h                                                       ; +0xd1, 0x10029fd11\ncmp     rdx, 1                                                         ; +0xd5, 0x10029fd15\nja      loc_10029FE2A                                                  ; +0xd9, 0x10029fd19\nlea     ebx, [rcx-1]                                                   ; +0xdf, 0x10029fd1f\nand     ebx, 3                                                         ; +0xe2, 0x10029fd22\njmp     loc_10029FE3F                                                  ; +0xe5, 0x10029fd25\nmov     rax, [rdi+468h]; jumptable 000000010029FC6B case 5             ; +0xea, 0x10029fd2a\nxor     byte ptr [rax+5F8h], 1                                         ; +0xf1, 0x10029fd31\njmp     def_10029FC6B; jumptable 000000010029FC6B default case         ; +0xf8, 0x10029fd38\nmov     rcx, [rdi+468h]; jumptable 000000010029FC6B case 1             ; +0xfd, 0x10029fd3d\nmovzx   eax, byte ptr [rcx+5C0h]                                       ; +0x104, 0x10029fd44\ntest    al, 1                                                          ; +0x10b, 0x10029fd4b\njnz     loc_10029FEF3                                                  ; +0x10d, 0x10029fd4d\nshr     eax, 1                                                         ; +0x113, 0x10029fd53\ntest    rax, rax                                                       ; +0x115, 0x10029fd55\njz      loc_10029FF03                                                  ; +0x118, 0x10029fd58\nadd     rdi, 460h                                                      ; +0x11e, 0x10029fd5e\nmov     rbx, rdi                                                       ; +0x125, 0x10029fd65\nmov     edi, 60h ; '`'; __sz                                           ; +0x128, 0x10029fd68\ncall    __Znwm; operator new(ulong)                                    ; +0x12d, 0x10029fd6d\nmov     [rbp+__p], rax                                                 ; +0x132, 0x10029fd72\nmov     [rbp+var_40], 61h ; 'a'                                        ; +0x136, 0x10029fd76\nmov     [rbp+var_38], 5Eh ; '^'                                        ; +0x13e, 0x10029fd7e\nmovups  xmm0, xmmword ptr cs:aChangingCyLdmC+4Eh; \" for this level.\"   ; +0x146, 0x10029fd86\nmovups  xmmword ptr [rax+4Eh], xmm0                                    ; +0x14d, 0x10029fd8d\nmovups  xmm0, xmmword ptr cs:aChangingCyLdmC+40h; \"checkpoint</c> for this level.\" ; +0x151, 0x10029fd91\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0x158, 0x10029fd98\nmovups  xmm0, xmmword ptr cs:aChangingCyLdmC+30h; \"g>saved</c> <cy>checkpoint</c> for this\"... ; +0x15c, 0x10029fd9c\nmovups  xmmword ptr [rax+30h], xmm0                                    ; +0x163, 0x10029fda3\nmovups  xmm0, xmmword ptr cs:aChangingCyLdmC+20h; \"lete</c> your <cg>saved</c> <cy>checkpo\"... ; +0x167, 0x10029fda7\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x16e, 0x10029fdae\nmovups  xmm0, xmmword ptr cs:aChangingCyLdmC+10h; \"</c> will <cr>delete</c> your <cg>saved\"... ; +0x172, 0x10029fdb2\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x179, 0x10029fdb9\nmovups  xmm0, xmmword ptr cs:aChangingCyLdmC; \"Changing <cy>LDM</c> will <cr>delete</c\"... ; +0x17d, 0x10029fdbd\nmovups  xmmword ptr [rax], xmm0                                        ; +0x184, 0x10029fdc4\nmov     byte ptr [rax+5Eh], 0                                          ; +0x187, 0x10029fdc7\nlea     rsi, aLowDetailMode; \"Low Detail Mode\"                         ; +0x18b, 0x10029fdcb\nlea     rcx, aCancel; \"Cancel\"                                         ; +0x192, 0x10029fdd2\nlea     r8, aOk; \"OK\"                                                  ; +0x199, 0x10029fdd9\nlea     rdx, [rbp+var_40]                                              ; +0x1a0, 0x10029fde0\nmovss   xmm0, cs:dword_100A03824                                       ; +0x1a4, 0x10029fde4\nmov     rdi, rbx                                                       ; +0x1ac, 0x10029fdec\ncall    FLAlertLayer__create_1                                         ; +0x1af, 0x10029fdef\nmov     rbx, rax                                                       ; +0x1b4, 0x10029fdf4\ntest    byte ptr [rbp+var_40], 1                                       ; +0x1b7, 0x10029fdf7\njz      short loc_10029FE06                                            ; +0x1bb, 0x10029fdfb\nmov     rdi, [rbp+__p]; __p                                            ; +0x1bd, 0x10029fdfd\ncall    __ZdlPv; operator delete(void *)                               ; +0x1c1, 0x10029fe01\nmov     rax, [rbx]                                                     ; +0x1c6, 0x10029fe06\nmov     rdi, rbx                                                       ; +0x1c9, 0x10029fe09\ncall    qword ptr [rax+520h]                                           ; +0x1cc, 0x10029fe0c\njmp     def_10029FC6B; jumptable 000000010029FC6B default case         ; +0x1d2, 0x10029fe12\nmov     rax, [rdi+468h]; jumptable 000000010029FC6B case 2             ; +0x1d7, 0x10029fe17\nxor     byte ptr [rax+302h], 1                                         ; +0x1de, 0x10029fe1e\njmp     def_10029FC6B; jumptable 000000010029FC6B default case         ; +0x1e5, 0x10029fe25\nmov     ebx, 3                                                         ; +0x1ea, 0x10029fe2a\ncmp     rcx, 3                                                         ; +0x1ef, 0x10029fe2f\nja      short loc_10029FE3F                                            ; +0x1f3, 0x10029fe33\nmov     al, 3                                                          ; +0x1f5, 0x10029fe35\nmovzx   eax, al                                                        ; +0x1f7, 0x10029fe37\ndiv     cl                                                             ; +0x1fa, 0x10029fe3a\nmovzx   ebx, ah                                                        ; +0x1fc, 0x10029fe3c\nmov     rax, [rdi+438h]                                                ; +0x1ff, 0x10029fe3f\nmov     rax, [rax+rbx*8]                                               ; +0x206, 0x10029fe46\ntest    rax, rax                                                       ; +0x20a, 0x10029fe4a\njz      loc_10029FF59                                                  ; +0x20d, 0x10029fe4d\nmov     r9, [rax]                                                      ; +0x213, 0x10029fe53\ntest    r9, r9                                                         ; +0x216, 0x10029fe56\njz      loc_10029FF59                                                  ; +0x219, 0x10029fe59\ncmp     edx, 2                                                         ; +0x21f, 0x10029fe5f\njnb     short loc_10029FE87                                            ; +0x222, 0x10029fe62\nlea     rax, [rcx-1]                                                   ; +0x224, 0x10029fe64\njmp     short loc_10029FEDF                                            ; +0x228, 0x10029fe68\nalign 10h                                                              ; +0x22a, 0x10029fe6a\ncmp     dword ptr [r9+10h], 3                                          ; +0x230, 0x10029fe70\njz      loc_10029FF16                                                  ; +0x235, 0x10029fe75\nmov     r9, [r9]                                                       ; +0x23b, 0x10029fe7b\ntest    r9, r9                                                         ; +0x23e, 0x10029fe7e\njz      loc_10029FF50                                                  ; +0x241, 0x10029fe81\nmov     rax, [r9+8]                                                    ; +0x247, 0x10029fe87\ncmp     rax, 3                                                         ; +0x24b, 0x10029fe8b\njz      short loc_10029FE70                                            ; +0x24f, 0x10029fe8f\ncmp     rax, rcx                                                       ; +0x251, 0x10029fe91\njb      short loc_10029FEAA                                            ; +0x254, 0x10029fe94\nmov     rdx, rax                                                       ; +0x256, 0x10029fe96\nor      rdx, rcx                                                       ; +0x259, 0x10029fe99\nshr     rdx, 20h                                                       ; +0x25c, 0x10029fe9c\njz      short loc_10029FEB4                                            ; +0x260, 0x10029fea0\nxor     edx, edx                                                       ; +0x262, 0x10029fea2\ndiv     rcx                                                            ; +0x264, 0x10029fea4\nmov     rax, rdx                                                       ; +0x267, 0x10029fea7\ncmp     rax, rbx                                                       ; +0x26a, 0x10029feaa\njz      short loc_10029FE7B                                            ; +0x26d, 0x10029fead\njmp     loc_10029FF50                                                  ; +0x26f, 0x10029feaf\nxor     edx, edx                                                       ; +0x274, 0x10029feb4\ndiv     ecx                                                            ; +0x276, 0x10029feb6\nmov     eax, edx                                                       ; +0x278, 0x10029feb8\ncmp     rax, rbx                                                       ; +0x27a, 0x10029feba\njz      short loc_10029FE7B                                            ; +0x27d, 0x10029febd\njmp     loc_10029FF50                                                  ; +0x27f, 0x10029febf\nalign 10h                                                              ; +0x284, 0x10029fec4\ncmp     dword ptr [r9+10h], 3                                          ; +0x290, 0x10029fed0\njz      short loc_10029FF16                                            ; +0x295, 0x10029fed5\nmov     r9, [r9]                                                       ; +0x297, 0x10029fed7\ntest    r9, r9                                                         ; +0x29a, 0x10029feda\njz      short loc_10029FF50                                            ; +0x29d, 0x10029fedd\nmov     rdx, [r9+8]                                                    ; +0x29f, 0x10029fedf\ncmp     rdx, 3                                                         ; +0x2a3, 0x10029fee3\njz      short loc_10029FED0                                            ; +0x2a7, 0x10029fee7\nand     rdx, rax                                                       ; +0x2a9, 0x10029fee9\ncmp     rdx, rbx                                                       ; +0x2ac, 0x10029feec\njz      short loc_10029FED7                                            ; +0x2af, 0x10029feef\njmp     short loc_10029FF50                                            ; +0x2b1, 0x10029fef1\nmov     rax, [rcx+5C8h]                                                ; +0x2b3, 0x10029fef3\ntest    rax, rax                                                       ; +0x2ba, 0x10029fefa\njnz     loc_10029FD5E                                                  ; +0x2bd, 0x10029fefd\nadd     rsp, 18h                                                       ; +0x2c3, 0x10029ff03\npop     rbx                                                            ; +0x2c7, 0x10029ff07\npop     r12                                                            ; +0x2c8, 0x10029ff08\npop     r13                                                            ; +0x2ca, 0x10029ff0a\npop     r14                                                            ; +0x2cc, 0x10029ff0c\npop     r15                                                            ; +0x2ce, 0x10029ff0e\npop     rbp                                                            ; +0x2d0, 0x10029ff10\njmp     sub_1002A00C0                                                  ; +0x2d1, 0x10029ff11\nmov     rax, [r9+18h]                                                  ; +0x2d6, 0x10029ff16\ntest    rax, rax                                                       ; +0x2da, 0x10029ff1a\njz      short loc_10029FF50                                            ; +0x2dd, 0x10029ff1d\ncmp     r8d, 1                                                         ; +0x2df, 0x10029ff1f\nsetnz   cl                                                             ; +0x2e3, 0x10029ff23\ncmp     esi, 3                                                         ; +0x2e6, 0x10029ff26\nsetz    dl                                                             ; +0x2e9, 0x10029ff29\nand     dl, cl                                                         ; +0x2ec, 0x10029ff2c\nmovzx   esi, dl                                                        ; +0x2ee, 0x10029ff2e\nmov     rbx, rdi                                                       ; +0x2f1, 0x10029ff31\nmov     rdi, rax                                                       ; +0x2f4, 0x10029ff34\ncall    CCMenuItemToggler__toggle                                      ; +0x2f7, 0x10029ff37\nmov     r10, 5555555555555555h                                         ; +0x2fc, 0x10029ff3c\nmov     rdi, rbx                                                       ; +0x306, 0x10029ff46\nmov     rcx, [rbx+440h]                                                ; +0x309, 0x10029ff49\ntest    rcx, rcx                                                       ; +0x310, 0x10029ff50\njz      def_10029FC6B; jumptable 000000010029FC6B default case         ; +0x313, 0x10029ff53\nmov     rax, rcx                                                       ; +0x319, 0x10029ff59\nshr     rax, 1                                                         ; +0x31c, 0x10029ff5c\nand     rax, r10                                                       ; +0x31f, 0x10029ff5f\nmov     rsi, rcx                                                       ; +0x322, 0x10029ff62\nsub     rsi, rax                                                       ; +0x325, 0x10029ff65\nmov     rax, rsi                                                       ; +0x328, 0x10029ff68\nand     rax, r14                                                       ; +0x32b, 0x10029ff6b\nshr     rsi, 2                                                         ; +0x32e, 0x10029ff6e\nand     rsi, r14                                                       ; +0x332, 0x10029ff72\nadd     rsi, rax                                                       ; +0x335, 0x10029ff75\nmov     rdx, rsi                                                       ; +0x338, 0x10029ff78\nshr     rdx, 4                                                         ; +0x33b, 0x10029ff7b\nadd     rdx, rsi                                                       ; +0x33f, 0x10029ff7f\nand     rdx, r12                                                       ; +0x342, 0x10029ff82\nimul    rdx, r13                                                       ; +0x345, 0x10029ff85\nshr     rdx, 38h                                                       ; +0x349, 0x10029ff89\ncmp     rdx, 1                                                         ; +0x34d, 0x10029ff8d\nja      short loc_10029FF9B                                            ; +0x351, 0x10029ff91\nlea     esi, [rcx-1]                                                   ; +0x353, 0x10029ff93\nand     esi, 4                                                         ; +0x356, 0x10029ff96\njmp     short loc_10029FFB0                                            ; +0x359, 0x10029ff99\nmov     esi, 4                                                         ; +0x35b, 0x10029ff9b\ncmp     rcx, 4                                                         ; +0x360, 0x10029ffa0\nja      short loc_10029FFB0                                            ; +0x364, 0x10029ffa4\nmov     al, 4                                                          ; +0x366, 0x10029ffa6\nmovzx   eax, al                                                        ; +0x368, 0x10029ffa8\ndiv     cl                                                             ; +0x36b, 0x10029ffab\nmovzx   esi, ah                                                        ; +0x36d, 0x10029ffad\nmov     rax, [rdi+438h]                                                ; +0x370, 0x10029ffb0\nmov     rax, [rax+rsi*8]                                               ; +0x377, 0x10029ffb7\ntest    rax, rax                                                       ; +0x37b, 0x10029ffbb\njz      def_10029FC6B; jumptable 000000010029FC6B default case         ; +0x37e, 0x10029ffbe\nmov     rdi, [rax]                                                     ; +0x384, 0x10029ffc4\ntest    rdi, rdi                                                       ; +0x387, 0x10029ffc7\njz      def_10029FC6B; jumptable 000000010029FC6B default case         ; +0x38a, 0x10029ffca\ncmp     edx, 2                                                         ; +0x390, 0x10029ffd0\njnb     short loc_10029FFF2                                            ; +0x393, 0x10029ffd3\ndec     rcx                                                            ; +0x395, 0x10029ffd5\njmp     short loc_1002A003E                                            ; +0x398, 0x10029ffd8\nalign 20h                                                              ; +0x39a, 0x10029ffda\ncmp     dword ptr [rdi+10h], 4                                         ; +0x3a0, 0x10029ffe0\njz      short loc_1002A0052                                            ; +0x3a4, 0x10029ffe4\nmov     rdi, [rdi]                                                     ; +0x3a6, 0x10029ffe6\ntest    rdi, rdi                                                       ; +0x3a9, 0x10029ffe9\njz      def_10029FC6B; jumptable 000000010029FC6B default case         ; +0x3ac, 0x10029ffec\nmov     rax, [rdi+8]                                                   ; +0x3b2, 0x10029fff2\ncmp     rax, 4                                                         ; +0x3b6, 0x10029fff6\njz      short loc_10029FFE0                                            ; +0x3ba, 0x10029fffa\ncmp     rax, rcx                                                       ; +0x3bc, 0x10029fffc\njb      short loc_1002A0015                                            ; +0x3bf, 0x10029ffff\nmov     rdx, rax                                                       ; +0x3c1, 0x1002a0001\nor      rdx, rcx                                                       ; +0x3c4, 0x1002a0004\nshr     rdx, 20h                                                       ; +0x3c7, 0x1002a0007\njz      short loc_1002A001C                                            ; +0x3cb, 0x1002a000b\nxor     edx, edx                                                       ; +0x3cd, 0x1002a000d\ndiv     rcx                                                            ; +0x3cf, 0x1002a000f\nmov     rax, rdx                                                       ; +0x3d2, 0x1002a0012\ncmp     rax, rsi                                                       ; +0x3d5, 0x1002a0015\njz      short loc_10029FFE6                                            ; +0x3d8, 0x1002a0018\njmp     short def_10029FC6B; jumptable 000000010029FC6B default case   ; +0x3da, 0x1002a001a\nxor     edx, edx                                                       ; +0x3dc, 0x1002a001c\ndiv     ecx                                                            ; +0x3de, 0x1002a001e\nmov     eax, edx                                                       ; +0x3e0, 0x1002a0020\ncmp     rax, rsi                                                       ; +0x3e2, 0x1002a0022\njz      short loc_10029FFE6                                            ; +0x3e5, 0x1002a0025\njmp     short def_10029FC6B; jumptable 000000010029FC6B default case   ; +0x3e7, 0x1002a0027\nalign 10h                                                              ; +0x3e9, 0x1002a0029\ncmp     dword ptr [rdi+10h], 4                                         ; +0x3f0, 0x1002a0030\njz      short loc_1002A0052                                            ; +0x3f4, 0x1002a0034\nmov     rdi, [rdi]                                                     ; +0x3f6, 0x1002a0036\ntest    rdi, rdi                                                       ; +0x3f9, 0x1002a0039\njz      short def_10029FC6B; jumptable 000000010029FC6B default case   ; +0x3fc, 0x1002a003c\nmov     rax, [rdi+8]                                                   ; +0x3fe, 0x1002a003e\ncmp     rax, 4                                                         ; +0x402, 0x1002a0042\njz      short loc_1002A0030                                            ; +0x406, 0x1002a0046\nand     rax, rcx                                                       ; +0x408, 0x1002a0048\ncmp     rax, rsi                                                       ; +0x40b, 0x1002a004b\njz      short loc_1002A0036                                            ; +0x40e, 0x1002a004e\njmp     short def_10029FC6B; jumptable 000000010029FC6B default case   ; +0x410, 0x1002a0050\nmov     rdi, [rdi+18h]                                                 ; +0x412, 0x1002a0052\ntest    rdi, rdi                                                       ; +0x416, 0x1002a0056\njz      short def_10029FC6B; jumptable 000000010029FC6B default case   ; +0x419, 0x1002a0059\nxor     esi, esi                                                       ; +0x41b, 0x1002a005b\ncmp     r15d, 2                                                        ; +0x41d, 0x1002a005d\nsetz    sil                                                            ; +0x421, 0x1002a0061\nadd     rsp, 18h                                                       ; +0x425, 0x1002a0065\npop     rbx                                                            ; +0x429, 0x1002a0069\npop     r12                                                            ; +0x42a, 0x1002a006a\npop     r13                                                            ; +0x42c, 0x1002a006c\npop     r14                                                            ; +0x42e, 0x1002a006e\npop     r15                                                            ; +0x430, 0x1002a0070\npop     rbp                                                            ; +0x432, 0x1002a0072\njmp     CCMenuItemToggler__toggle                                      ; +0x433, 0x1002a0073\nadd     rsp, 18h; jumptable 000000010029FC6B default case              ; +0x438, 0x1002a0078\npop     rbx                                                            ; +0x43c, 0x1002a007c\npop     r12                                                            ; +0x43d, 0x1002a007d\npop     r13                                                            ; +0x43f, 0x1002a007f\npop     r14                                                            ; +0x441, 0x1002a0081\npop     r15                                                            ; +0x443, 0x1002a0083\npop     rbp                                                            ; +0x445, 0x1002a0085\nretn                                                                   ; +0x446, 0x1002a0086", "xrefs": ["<???> @ 0x100b04258"], "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"}