{"type": "func", "start": 5372744640, "end": 5372744824, "name": "KeybindingsSettingsPopup::onEntry", "pseudocode": "// \n// KeybindingsSettingsPopup::onEntry from 0x1403d93c0 to 0x1403d9478 (184 bytes)\n// \n// 2 xrefs:\n// > KeybindingsSettingsPopup::init @ 0x1403d91fa\n// > <???> @ 0x140924bb4\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:38 +0000\n// \n\n__int64 __fastcall KeybindingsSettingsPopup::onEntry(_QWORD *a1, __int64 a2)\n{\n  __int64 result; // rax\n  __int64 v5; // r9\n  __int64 v6; // r10\n  _QWORD *v7; // rcx\n  __int64 (__fastcall *v8)(_QWORD *, __int64); // xmm1_8\n  __int64 v9; // rdx\n  __int64 v10; // [rsp+40h] [rbp-18h]\n\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  v5 = (int)result;\n  if ( (int)result >= 0 )\n  {\n    v6 = a1[85];\n    result = 0x6666666666666667LL * (a1[86] - v6);\n    if ( (int)v5 < (int)((a1[86] - v6) / 40) )\n    {\n      v7 = a1;\n      v10 = *(_QWORD *)(v6 + 40 * v5 + 32);\n      v8 = (__int64 (__fastcall *)(_QWORD *, __int64))_mm_srli_si128(*(__m128i *)(v6 + 40 * v5 + 16), 8).m128i_u64[0];\n      if ( *(_QWORD *)(v6 + 40 * v5 + 16) )\n        v7 = *(_QWORD **)(v6 + 40 * v5 + 16);\n      result = v8(v7, a2);\n      if ( (_BYTE)v10 )\n      {\n        (*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 992LL))(a1, 0);\n        LOBYTE(v9) = 1;\n        return (*(__int64 (__fastcall **)(_QWORD *, __int64))(*a1 + 520LL))(a1, v9);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; KeybindingsSettingsPopup::onEntry from 0x1403d93c0 to 0x1403d9478 (184 bytes)\n; \n; 2 xrefs:\n; > KeybindingsSettingsPopup::init @ 0x1403d91fa\n; > <???> @ 0x140924bb4\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:38 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1403d93c0\npush    rdi                                                            ; +0x5, 0x1403d93c5\nsub     rsp, 50h                                                       ; +0x6, 0x1403d93c6\nmov     rax, [rdx]                                                     ; +0xa, 0x1403d93ca\nmov     rbx, rcx                                                       ; +0xd, 0x1403d93cd\nmov     rcx, rdx                                                       ; +0x10, 0x1403d93d0\nmov     rdi, rdx                                                       ; +0x13, 0x1403d93d3\ncall    qword ptr [rax+38h]                                            ; +0x16, 0x1403d93d6\nmovsxd  r9, eax                                                        ; +0x19, 0x1403d93d9\ntest    eax, eax                                                       ; +0x1c, 0x1403d93dc\njs      loc_1403D946D                                                  ; +0x1e, 0x1403d93de\nmov     r10, [rbx+2A8h]                                                ; +0x24, 0x1403d93e4\nmov     rax, 6666666666666667h                                         ; +0x2b, 0x1403d93eb\nmov     r8, [rbx+2B0h]                                                 ; +0x35, 0x1403d93f5\nsub     r8, r10                                                        ; +0x3c, 0x1403d93fc\nimul    r8                                                             ; +0x3f, 0x1403d93ff\nsar     rdx, 4                                                         ; +0x42, 0x1403d9402\nmov     rcx, rdx                                                       ; +0x46, 0x1403d9406\nshr     rcx, 3Fh                                                       ; +0x49, 0x1403d9409\nadd     rdx, rcx                                                       ; +0x4d, 0x1403d940d\ncmp     r9d, edx                                                       ; +0x50, 0x1403d9410\njge     short loc_1403D946D                                            ; +0x53, 0x1403d9413\nlea     rcx, [r9+r9*4]                                                 ; +0x55, 0x1403d9415\nmov     rdx, rdi                                                       ; +0x59, 0x1403d9419\nmovups  xmm1, xmmword ptr [r10+rcx*8+10h]                              ; +0x5c, 0x1403d941c\nmovsd   xmm0, qword ptr [r10+rcx*8+20h]                                ; +0x62, 0x1403d9422\nmov     rcx, rbx                                                       ; +0x69, 0x1403d9429\nmovq    rax, xmm1                                                      ; +0x6c, 0x1403d942c\nmovsd   [rsp+58h+var_18], xmm0                                         ; +0x71, 0x1403d9431\ntest    rax, rax                                                       ; +0x77, 0x1403d9437\npsrldq  xmm1, 8                                                        ; +0x7a, 0x1403d943a\ncmovnz  rcx, rax                                                       ; +0x7f, 0x1403d943f\nmovq    rax, xmm1                                                      ; +0x83, 0x1403d9443\ncall    rax                                                            ; +0x88, 0x1403d9448\ncmp     byte ptr [rsp+58h+var_18], 0                                   ; +0x8a, 0x1403d944a\njz      short loc_1403D946D                                            ; +0x8f, 0x1403d944f\nmov     rax, [rbx]                                                     ; +0x91, 0x1403d9451\nxor     edx, edx                                                       ; +0x94, 0x1403d9454\nmov     rcx, rbx                                                       ; +0x96, 0x1403d9456\ncall    qword ptr [rax+3E0h]                                           ; +0x99, 0x1403d9459\nmov     rax, [rbx]                                                     ; +0x9f, 0x1403d945f\nmov     dl, 1                                                          ; +0xa2, 0x1403d9462\nmov     rcx, rbx                                                       ; +0xa4, 0x1403d9464\ncall    qword ptr [rax+208h]                                           ; +0xa7, 0x1403d9467\nmov     rbx, [rsp+58h+arg_0]                                           ; +0xad, 0x1403d946d\nadd     rsp, 50h                                                       ; +0xb2, 0x1403d9472\npop     rdi                                                            ; +0xb6, 0x1403d9476\nretn                                                                   ; +0xb7, 0x1403d9477", "xrefs": ["KeybindingsSettingsPopup::init @ 0x1403d91fa", "<???> @ 0x140924bb4"], "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"}