{"type": "func", "start": 6443350592, "end": 6443350706, "name": "sub_1800DBA40", "pseudocode": "// \n// sub_1800DBA40 from 0x1800dba40 to 0x1800dbab2 (114 bytes)\n// \n// 2 xrefs:\n// > sub_1800DB2E0 @ 0x1800db4f2\n// > <???> @ 0x1801ff3e4\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 10:54:13 +0000\n// \n\n__int64 __fastcall sub_1800DBA40(__int64 a1, _OWORD *a2)\n{\n  int v4; // ecx\n  int v5; // eax\n  int v6; // eax\n  __int64 result; // rax\n\n  v4 = *(_DWORD *)(a1 + 8) + 1;\n  v5 = abs32(*(_DWORD *)(a1 + 12));\n  if ( v4 <= v5 )\n    goto LABEL_7;\n  v6 = (int)(float)((float)v5 * 1.5);\n  if ( v4 <= v6 )\n    v4 = v6;\n  if ( v4 < 4 )\n    v4 = 4;\n  result = sub_1800DBCA0(a1, (unsigned int)v4);\n  if ( !(_DWORD)result )\n  {\nLABEL_7:\n    *(_OWORD *)(*(_QWORD *)a1 + 16LL * (int)(*(_DWORD *)(a1 + 8))++) = *a2;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800DBA40 from 0x1800dba40 to 0x1800dbab2 (114 bytes)\n; \n; 2 xrefs:\n; > sub_1800DB2E0 @ 0x1800db4f2\n; > <???> @ 0x1801ff3e4\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 10:54:13 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800dba40\npush    rdi                                                            ; +0x5, 0x1800dba45\nsub     rsp, 20h                                                       ; +0x6, 0x1800dba46\nmov     rbx, rcx                                                       ; +0xa, 0x1800dba4a\nmov     rdi, rdx                                                       ; +0xd, 0x1800dba4d\nmov     ecx, [rcx+8]                                                   ; +0x10, 0x1800dba50\ninc     ecx                                                            ; +0x13, 0x1800dba53\nmov     eax, [rbx+0Ch]                                                 ; +0x15, 0x1800dba55\ncdq                                                                    ; +0x18, 0x1800dba58\nxor     eax, edx                                                       ; +0x19, 0x1800dba59\nsub     eax, edx                                                       ; +0x1b, 0x1800dba5b\ncmp     ecx, eax                                                       ; +0x1d, 0x1800dba5d\njle     short loc_1800DBA91                                            ; +0x1f, 0x1800dba5f\nmovd    xmm0, eax                                                      ; +0x21, 0x1800dba61\ncvtdq2ps xmm0, xmm0                                                    ; +0x25, 0x1800dba65\nmulss   xmm0, cs:dword_180169168                                       ; +0x28, 0x1800dba68\ncvttss2si eax, xmm0                                                    ; +0x30, 0x1800dba70\ncmp     ecx, eax                                                       ; +0x34, 0x1800dba74\ncmovle  ecx, eax                                                       ; +0x36, 0x1800dba76\nmov     eax, 4                                                         ; +0x39, 0x1800dba79\ncmp     ecx, eax                                                       ; +0x3e, 0x1800dba7e\ncmovl   ecx, eax                                                       ; +0x40, 0x1800dba80\nmov     edx, ecx                                                       ; +0x43, 0x1800dba83\nmov     rcx, rbx                                                       ; +0x45, 0x1800dba85\ncall    sub_1800DBCA0                                                  ; +0x48, 0x1800dba88\ntest    eax, eax                                                       ; +0x4d, 0x1800dba8d\njnz     short loc_1800DBAA7                                            ; +0x4f, 0x1800dba8f\nmovsxd  rcx, dword ptr [rbx+8]                                         ; +0x51, 0x1800dba91\nmov     rax, [rbx]                                                     ; +0x55, 0x1800dba95\nadd     rcx, rcx                                                       ; +0x58, 0x1800dba98\nmovups  xmm0, xmmword ptr [rdi]                                        ; +0x5b, 0x1800dba9b\nmovups  xmmword ptr [rax+rcx*8], xmm0                                  ; +0x5e, 0x1800dba9e\ninc     dword ptr [rbx+8]                                              ; +0x62, 0x1800dbaa2\nxor     eax, eax                                                       ; +0x65, 0x1800dbaa5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x67, 0x1800dbaa7\nadd     rsp, 20h                                                       ; +0x6c, 0x1800dbaac\npop     rdi                                                            ; +0x70, 0x1800dbab0\nretn                                                                   ; +0x71, 0x1800dbab1", "xrefs": ["sub_1800DB2E0 @ 0x1800db4f2", "<???> @ 0x1801ff3e4"], "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"}