{"type": "func", "start": 5372731472, "end": 5372732240, "name": "KeybindingsLayer::setupTabs", "pseudocode": "// \n// KeybindingsLayer::setupTabs from 0x1403d6050 to 0x1403d6350 (768 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140786648\n// > <???> @ 0x1409249ec\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:31:37 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall KeybindingsLayer::setupTabs(__int64 a1)\n{\n  __m128i si128; // xmm6\n  void *v3; // rcx\n  void *v4; // rcx\n  void *v5; // rcx\n  void *v6; // rcx\n  void *v7; // rcx\n  void *v8; // rcx\n  void *Block[2]; // [rsp+30h] [rbp-40h] BYREF\n  __m128i v11; // [rsp+40h] [rbp-30h]\n\n  Block[1] = nullptr;\n  si128 = _mm_load_si128((const __m128i *)&xmmword_140836590);\n  v11 = si128;\n  Block[0] = (void *)0x79616C70656D6147LL;\n  TabbedPopupLayer::addTab(a1, Block, 0);\n  if ( v11.m128i_i64[1] > 0xFuLL )\n  {\n    v3 = Block[0];\n    if ( (unsigned __int64)(v11.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v3 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v3 - 8) > 0x1F )\n        goto LABEL_24;\n    }\n    j_j_free(v3);\n    si128 = _mm_load_si128((const __m128i *)&xmmword_140836590);\n  }\n  Block[1] = nullptr;\n  v11 = si128;\n  Block[0] = (void *)0x6563697463617250LL;\n  TabbedPopupLayer::addTab(a1, Block, 0);\n  if ( v11.m128i_i64[1] > 0xFuLL )\n  {\n    v4 = Block[0];\n    if ( (unsigned __int64)(v11.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v4 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v4 - 8) > 0x1F )\n        goto LABEL_24;\n    }\n    j_j_free(v4);\n  }\n  *(_OWORD *)Block = 0;\n  v11 = _mm_load_si128((const __m128i *)&xmmword_140836570);\n  strcpy((char *)Block, \"Editor\");\n  TabbedPopupLayer::addTab(a1, Block, 0);\n  if ( v11.m128i_i64[1] > 0xFuLL )\n  {\n    v5 = Block[0];\n    if ( (unsigned __int64)(v11.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v5 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )\n        goto LABEL_24;\n    }\n    j_j_free(v5);\n  }\n  *(_OWORD *)Block = 0;\n  v11 = _mm_load_si128((const __m128i *)&xmmword_140836560);\n  strcpy((char *)Block, \"Tools\");\n  TabbedPopupLayer::addTab(a1, Block, 0);\n  if ( v11.m128i_i64[1] > 0xFuLL )\n  {\n    v6 = Block[0];\n    if ( (unsigned __int64)(v11.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v6 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )\n        goto LABEL_24;\n    }\n    j_j_free(v6);\n  }\n  *(_OWORD *)Block = 0;\n  v11 = _mm_load_si128((const __m128i *)&xmmword_140836550);\n  strcpy((char *)Block, \"View\");\n  TabbedPopupLayer::addTab(a1, Block, 0);\n  if ( v11.m128i_i64[1] <= 0xFuLL )\n    goto LABEL_21;\n  v7 = Block[0];\n  if ( (unsigned __int64)(v11.m128i_i64[1] + 1) >= 0x1000 )\n  {\n    v7 = *((void **)Block[0] - 1);\n    if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )\nLABEL_24:\n      invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n  }\n  j_j_free(v7);\nLABEL_21:\n  *(_OWORD *)Block = 0;\n  v11 = _mm_load_si128((const __m128i *)&xmmword_140836520);\n  LOWORD(Block[0]) = 83;\n  *(_DWORD *)(a1 + 1176) = TabbedPopupLayer::addTab(a1, Block, \"searchIcon_001.png\");\n  if ( v11.m128i_i64[1] > 0xFuLL )\n  {\n    v8 = Block[0];\n    if ( (unsigned __int64)(v11.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v8 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )\n        goto LABEL_24;\n    }\n    j_j_free(v8);\n  }\n  return TabbedPopupLayer::createTabButtons_1(a1);\n}", "assembly": "; \n; KeybindingsLayer::setupTabs from 0x1403d6050 to 0x1403d6350 (768 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140786648\n; > <???> @ 0x1409249ec\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:31:37 +0000\n; \nmov     [rsp-8+arg_8], rbx                                             ; +0x0, 0x1403d6050\npush    rbp                                                            ; +0x5, 0x1403d6055\nmov     rbp, rsp                                                       ; +0x6, 0x1403d6056\nsub     rsp, 70h                                                       ; +0x9, 0x1403d6059\nmovaps  [rsp+70h+var_10], xmm6                                         ; +0xd, 0x1403d605d\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x1403d6062\nxor     rax, rsp                                                       ; +0x19, 0x1403d6069\nmov     [rbp+var_20], rax                                              ; +0x1c, 0x1403d606c\nmov     rbx, rcx                                                       ; +0x20, 0x1403d6070\nxorps   xmm0, xmm0                                                     ; +0x23, 0x1403d6073\nmovups  xmmword ptr [rbp+Block], xmm0                                  ; +0x26, 0x1403d6076\nmovdqa  xmm6, cs:xmmword_140836590                                     ; +0x2a, 0x1403d607a\nmovdqu  [rbp+var_30], xmm6                                             ; +0x32, 0x1403d6082\nmov     rax, 79616C70656D6147h                                         ; +0x37, 0x1403d6087\nmov     [rbp+Block], rax                                               ; +0x41, 0x1403d6091\nmov     byte ptr [rbp+Block+8], 0                                      ; +0x45, 0x1403d6095\nxor     r8d, r8d                                                       ; +0x49, 0x1403d6099\nlea     rdx, [rbp+Block]                                               ; +0x4c, 0x1403d609c\ncall    TabbedPopupLayer__addTab                                       ; +0x50, 0x1403d60a0\nnop                                                                    ; +0x55, 0x1403d60a5\nmov     rdx, qword ptr [rbp+var_30+8]                                  ; +0x56, 0x1403d60a6\ncmp     rdx, 0Fh                                                       ; +0x5a, 0x1403d60aa\njbe     short loc_1403D60E9                                            ; +0x5e, 0x1403d60ae\ninc     rdx                                                            ; +0x60, 0x1403d60b0\nmov     rcx, [rbp+Block]                                               ; +0x63, 0x1403d60b3\nmov     rax, rcx                                                       ; +0x67, 0x1403d60b7\ncmp     rdx, 1000h                                                     ; +0x6a, 0x1403d60ba\njb      short loc_1403D60DC                                            ; +0x71, 0x1403d60c1\nadd     rdx, 27h ; '''                                                 ; +0x73, 0x1403d60c3\nmov     rcx, [rcx-8]; Block                                            ; +0x77, 0x1403d60c7\nsub     rax, rcx                                                       ; +0x7b, 0x1403d60cb\nsub     rax, 8                                                         ; +0x7e, 0x1403d60ce\ncmp     rax, 1Fh                                                       ; +0x82, 0x1403d60d2\nja      loc_1403D630A                                                  ; +0x86, 0x1403d60d6\ncall    j_j_free                                                       ; +0x8c, 0x1403d60dc\nmovdqa  xmm6, cs:xmmword_140836590                                     ; +0x91, 0x1403d60e1\nxorps   xmm0, xmm0                                                     ; +0x99, 0x1403d60e9\nmovups  xmmword ptr [rbp+Block], xmm0                                  ; +0x9c, 0x1403d60ec\nmovdqu  [rbp+var_30], xmm6                                             ; +0xa0, 0x1403d60f0\nmov     rax, 6563697463617250h                                         ; +0xa5, 0x1403d60f5\nmov     [rbp+Block], rax                                               ; +0xaf, 0x1403d60ff\nmov     byte ptr [rbp+Block+8], 0                                      ; +0xb3, 0x1403d6103\nxor     r8d, r8d                                                       ; +0xb7, 0x1403d6107\nlea     rdx, [rbp+Block]                                               ; +0xba, 0x1403d610a\nmov     rcx, rbx                                                       ; +0xbe, 0x1403d610e\ncall    TabbedPopupLayer__addTab                                       ; +0xc1, 0x1403d6111\nnop                                                                    ; +0xc6, 0x1403d6116\nmov     rdx, qword ptr [rbp+var_30+8]                                  ; +0xc7, 0x1403d6117\ncmp     rdx, 0Fh                                                       ; +0xcb, 0x1403d611b\njbe     short loc_1403D6152                                            ; +0xcf, 0x1403d611f\ninc     rdx                                                            ; +0xd1, 0x1403d6121\nmov     rcx, [rbp+Block]                                               ; +0xd4, 0x1403d6124\nmov     rax, rcx                                                       ; +0xd8, 0x1403d6128\ncmp     rdx, 1000h                                                     ; +0xdb, 0x1403d612b\njb      short loc_1403D614D                                            ; +0xe2, 0x1403d6132\nadd     rdx, 27h ; '''                                                 ; +0xe4, 0x1403d6134\nmov     rcx, [rcx-8]; Block                                            ; +0xe8, 0x1403d6138\nsub     rax, rcx                                                       ; +0xec, 0x1403d613c\nsub     rax, 8                                                         ; +0xef, 0x1403d613f\ncmp     rax, 1Fh                                                       ; +0xf3, 0x1403d6143\nja      loc_1403D630A                                                  ; +0xf7, 0x1403d6147\ncall    j_j_free                                                       ; +0xfd, 0x1403d614d\nxorps   xmm0, xmm0                                                     ; +0x102, 0x1403d6152\nmovups  xmmword ptr [rbp+Block], xmm0                                  ; +0x105, 0x1403d6155\nmovdqa  xmm1, cs:xmmword_140836570                                     ; +0x109, 0x1403d6159\nmovdqu  [rbp+var_30], xmm1                                             ; +0x111, 0x1403d6161\nmov     eax, cs:dword_140762F5C                                        ; +0x116, 0x1403d6166\nmov     dword ptr [rbp+Block], eax                                     ; +0x11c, 0x1403d616c\nmovzx   eax, cs:word_140762F60                                         ; +0x11f, 0x1403d616f\nmov     word ptr [rbp+Block+4], ax                                     ; +0x126, 0x1403d6176\nmov     byte ptr [rbp+Block+6], 0                                      ; +0x12a, 0x1403d617a\nxor     r8d, r8d                                                       ; +0x12e, 0x1403d617e\nlea     rdx, [rbp+Block]                                               ; +0x131, 0x1403d6181\nmov     rcx, rbx                                                       ; +0x135, 0x1403d6185\ncall    TabbedPopupLayer__addTab                                       ; +0x138, 0x1403d6188\nnop                                                                    ; +0x13d, 0x1403d618d\nmov     rdx, qword ptr [rbp+var_30+8]                                  ; +0x13e, 0x1403d618e\ncmp     rdx, 0Fh                                                       ; +0x142, 0x1403d6192\njbe     short loc_1403D61C9                                            ; +0x146, 0x1403d6196\ninc     rdx                                                            ; +0x148, 0x1403d6198\nmov     rcx, [rbp+Block]                                               ; +0x14b, 0x1403d619b\nmov     rax, rcx                                                       ; +0x14f, 0x1403d619f\ncmp     rdx, 1000h                                                     ; +0x152, 0x1403d61a2\njb      short loc_1403D61C4                                            ; +0x159, 0x1403d61a9\nadd     rdx, 27h ; '''                                                 ; +0x15b, 0x1403d61ab\nmov     rcx, [rcx-8]; Block                                            ; +0x15f, 0x1403d61af\nsub     rax, rcx                                                       ; +0x163, 0x1403d61b3\nsub     rax, 8                                                         ; +0x166, 0x1403d61b6\ncmp     rax, 1Fh                                                       ; +0x16a, 0x1403d61ba\nja      loc_1403D630A                                                  ; +0x16e, 0x1403d61be\ncall    j_j_free                                                       ; +0x174, 0x1403d61c4\nxorps   xmm0, xmm0                                                     ; +0x179, 0x1403d61c9\nmovups  xmmword ptr [rbp+Block], xmm0                                  ; +0x17c, 0x1403d61cc\nmovdqa  xmm1, cs:xmmword_140836560                                     ; +0x180, 0x1403d61d0\nmovdqu  [rbp+var_30], xmm1                                             ; +0x188, 0x1403d61d8\nmov     eax, cs:dword_140786850                                        ; +0x18d, 0x1403d61dd\nmov     dword ptr [rbp+Block], eax                                     ; +0x193, 0x1403d61e3\nmovzx   eax, cs:byte_140786854                                         ; +0x196, 0x1403d61e6\nmov     byte ptr [rbp+Block+4], al                                     ; +0x19d, 0x1403d61ed\nmov     byte ptr [rbp+Block+5], 0                                      ; +0x1a0, 0x1403d61f0\nxor     r8d, r8d                                                       ; +0x1a4, 0x1403d61f4\nlea     rdx, [rbp+Block]                                               ; +0x1a7, 0x1403d61f7\nmov     rcx, rbx                                                       ; +0x1ab, 0x1403d61fb\ncall    TabbedPopupLayer__addTab                                       ; +0x1ae, 0x1403d61fe\nnop                                                                    ; +0x1b3, 0x1403d6203\nmov     rdx, qword ptr [rbp+var_30+8]                                  ; +0x1b4, 0x1403d6204\ncmp     rdx, 0Fh                                                       ; +0x1b8, 0x1403d6208\njbe     short loc_1403D623F                                            ; +0x1bc, 0x1403d620c\ninc     rdx                                                            ; +0x1be, 0x1403d620e\nmov     rcx, [rbp+Block]                                               ; +0x1c1, 0x1403d6211\nmov     rax, rcx                                                       ; +0x1c5, 0x1403d6215\ncmp     rdx, 1000h                                                     ; +0x1c8, 0x1403d6218\njb      short loc_1403D623A                                            ; +0x1cf, 0x1403d621f\nadd     rdx, 27h ; '''                                                 ; +0x1d1, 0x1403d6221\nmov     rcx, [rcx-8]; Block                                            ; +0x1d5, 0x1403d6225\nsub     rax, rcx                                                       ; +0x1d9, 0x1403d6229\nsub     rax, 8                                                         ; +0x1dc, 0x1403d622c\ncmp     rax, 1Fh                                                       ; +0x1e0, 0x1403d6230\nja      loc_1403D630A                                                  ; +0x1e4, 0x1403d6234\ncall    j_j_free                                                       ; +0x1ea, 0x1403d623a\nxorps   xmm0, xmm0                                                     ; +0x1ef, 0x1403d623f\nmovups  xmmword ptr [rbp+Block], xmm0                                  ; +0x1f2, 0x1403d6242\nmovdqa  xmm1, cs:xmmword_140836550                                     ; +0x1f6, 0x1403d6246\nmovdqu  [rbp+var_30], xmm1                                             ; +0x1fe, 0x1403d624e\nmov     dword ptr [rbp+Block], 77656956h                               ; +0x203, 0x1403d6253\nmov     byte ptr [rbp+Block+4], 0                                      ; +0x20a, 0x1403d625a\nxor     r8d, r8d                                                       ; +0x20e, 0x1403d625e\nlea     rdx, [rbp+Block]                                               ; +0x211, 0x1403d6261\nmov     rcx, rbx                                                       ; +0x215, 0x1403d6265\ncall    TabbedPopupLayer__addTab                                       ; +0x218, 0x1403d6268\nnop                                                                    ; +0x21d, 0x1403d626d\nmov     rdx, qword ptr [rbp+var_30+8]                                  ; +0x21e, 0x1403d626e\ncmp     rdx, 0Fh                                                       ; +0x222, 0x1403d6272\njbe     short loc_1403D62A5                                            ; +0x226, 0x1403d6276\ninc     rdx                                                            ; +0x228, 0x1403d6278\nmov     rcx, [rbp+Block]                                               ; +0x22b, 0x1403d627b\nmov     rax, rcx                                                       ; +0x22f, 0x1403d627f\ncmp     rdx, 1000h                                                     ; +0x232, 0x1403d6282\njb      short loc_1403D62A0                                            ; +0x239, 0x1403d6289\nadd     rdx, 27h ; '''                                                 ; +0x23b, 0x1403d628b\nmov     rcx, [rcx-8]; Block                                            ; +0x23f, 0x1403d628f\nsub     rax, rcx                                                       ; +0x243, 0x1403d6293\nsub     rax, 8                                                         ; +0x246, 0x1403d6296\ncmp     rax, 1Fh                                                       ; +0x24a, 0x1403d629a\nja      short loc_1403D630A                                            ; +0x24e, 0x1403d629e\ncall    j_j_free                                                       ; +0x250, 0x1403d62a0\nxorps   xmm0, xmm0                                                     ; +0x255, 0x1403d62a5\nmovups  xmmword ptr [rbp+Block], xmm0                                  ; +0x258, 0x1403d62a8\nmovdqa  xmm1, cs:xmmword_140836520                                     ; +0x25c, 0x1403d62ac\nmovdqu  [rbp+var_30], xmm1                                             ; +0x264, 0x1403d62b4\nmov     word ptr [rbp+Block], 53h ; 'S'                                ; +0x269, 0x1403d62b9\nlea     r8, aSearchicon001P; \"searchIcon_001.png\"                      ; +0x26f, 0x1403d62bf\nlea     rdx, [rbp+Block]                                               ; +0x276, 0x1403d62c6\nmov     rcx, rbx                                                       ; +0x27a, 0x1403d62ca\ncall    TabbedPopupLayer__addTab                                       ; +0x27d, 0x1403d62cd\nmov     [rbx+498h], eax                                                ; +0x282, 0x1403d62d2\nmov     rdx, qword ptr [rbp+var_30+8]                                  ; +0x288, 0x1403d62d8\ncmp     rdx, 0Fh                                                       ; +0x28c, 0x1403d62dc\njbe     short loc_1403D6329                                            ; +0x290, 0x1403d62e0\ninc     rdx                                                            ; +0x292, 0x1403d62e2\nmov     rcx, [rbp+Block]; Block                                        ; +0x295, 0x1403d62e5\nmov     rax, rcx                                                       ; +0x299, 0x1403d62e9\ncmp     rdx, 1000h                                                     ; +0x29c, 0x1403d62ec\njb      short loc_1403D6324                                            ; +0x2a3, 0x1403d62f3\nadd     rdx, 27h ; '''                                                 ; +0x2a5, 0x1403d62f5\nmov     rcx, [rcx-8]                                                   ; +0x2a9, 0x1403d62f9\nsub     rax, rcx                                                       ; +0x2ad, 0x1403d62fd\nsub     rax, 8                                                         ; +0x2b0, 0x1403d6300\ncmp     rax, 1Fh                                                       ; +0x2b4, 0x1403d6304\njbe     short loc_1403D6324                                            ; +0x2b8, 0x1403d6308\nmov     [rsp+70h+Reserved], 0; Reserved                                ; +0x2ba, 0x1403d630a\nxor     r9d, r9d; LineNo                                               ; +0x2c3, 0x1403d6313\nxor     r8d, r8d; FileName                                             ; +0x2c6, 0x1403d6316\nxor     edx, edx; FunctionName                                         ; +0x2c9, 0x1403d6319\nxor     ecx, ecx; Expression                                           ; +0x2cb, 0x1403d631b\ncall    cs:_invoke_watson                                              ; +0x2cd, 0x1403d631d\nalign 4                                                                ; +0x2d3, 0x1403d6323\ncall    j_j_free                                                       ; +0x2d4, 0x1403d6324\nmov     rcx, rbx                                                       ; +0x2d9, 0x1403d6329\ncall    TabbedPopupLayer__createTabButtons_1                           ; +0x2dc, 0x1403d632c\nmov     rcx, [rbp+var_20]                                              ; +0x2e1, 0x1403d6331\nxor     rcx, rsp; StackCookie                                          ; +0x2e5, 0x1403d6335\ncall    __security_check_cookie                                        ; +0x2e8, 0x1403d6338\nmov     rbx, [rsp+70h+arg_8]                                           ; +0x2ed, 0x1403d633d\nmovaps  xmm6, [rsp+70h+var_10]                                         ; +0x2f5, 0x1403d6345\nadd     rsp, 70h                                                       ; +0x2fa, 0x1403d634a\npop     rbp                                                            ; +0x2fe, 0x1403d634e\nretn                                                                   ; +0x2ff, 0x1403d634f", "xrefs": ["<???> @ 0x140786648", "<???> @ 0x1409249ec"], "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"}