{"type": "func", "start": 6443325904, "end": 6443325991, "name": "sub_1800D59D0", "pseudocode": "// \n// sub_1800D59D0 from 0x1800d59d0 to 0x1800d5a27 (87 bytes)\n// \n// 4 xrefs:\n// > sub_180018CF0 @ 0x180018d86\n// > sub_180025F50 @ 0x180025fe6\n// > sub_1800363B0 @ 0x180036446\n// > sub_18003D900 @ 0x18003d996\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n__int64 __fastcall sub_1800D59D0(__int64 a1, float a2)\n{\n  int v2; // eax\n  float v3; // xmm2_4\n\n  v2 = *(_DWORD *)(a1 + 3060);\n  *(float *)(a1 + 3028) = a2;\n  if ( v2 < 1 )\n    v2 = 1;\n  *(_DWORD *)(a1 + 3060) = v2;\n  v3 = (float)((float)v2 * 0.40000001) * a2;\n  if ( v3 >= 0.0099999998 )\n    *(_DWORD *)(a1 + 2132) = (int)(float)((float)*(int *)(*(_QWORD *)(a1 + 8) + 16LL) / v3);\n  return 0;\n}", "assembly": "; \n; sub_1800D59D0 from 0x1800d59d0 to 0x1800d5a27 (87 bytes)\n; \n; 4 xrefs:\n; > sub_180018CF0 @ 0x180018d86\n; > sub_180025F50 @ 0x180025fe6\n; > sub_1800363B0 @ 0x180036446\n; > sub_18003D900 @ 0x18003d996\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     eax, [rcx+0BF4h]                                               ; +0x0, 0x1800d59d0\nmov     edx, 1                                                         ; +0x6, 0x1800d59d6\ncmp     eax, edx                                                       ; +0xb, 0x1800d59db\nmovss   dword ptr [rcx+0BD4h], xmm1                                    ; +0xd, 0x1800d59dd\ncmovl   eax, edx                                                       ; +0x15, 0x1800d59e5\nmov     [rcx+0BF4h], eax                                               ; +0x18, 0x1800d59e8\nmovd    xmm2, eax                                                      ; +0x1e, 0x1800d59ee\ncvtdq2ps xmm2, xmm2                                                    ; +0x22, 0x1800d59f2\nmulss   xmm2, cs:dword_1801699AC                                       ; +0x25, 0x1800d59f5\nmulss   xmm2, xmm1                                                     ; +0x2d, 0x1800d59fd\ncomiss  xmm2, cs:dword_1801670CC                                       ; +0x31, 0x1800d5a01\njb      short loc_1800D5A24                                            ; +0x38, 0x1800d5a08\nmov     rax, [rcx+8]                                                   ; +0x3a, 0x1800d5a0a\nmovd    xmm0, dword ptr [rax+10h]                                      ; +0x3e, 0x1800d5a0e\ncvtdq2ps xmm0, xmm0                                                    ; +0x43, 0x1800d5a13\ndivss   xmm0, xmm2                                                     ; +0x46, 0x1800d5a16\ncvttss2si eax, xmm0                                                    ; +0x4a, 0x1800d5a1a\nmov     [rcx+854h], eax                                                ; +0x4e, 0x1800d5a1e\nxor     eax, eax                                                       ; +0x54, 0x1800d5a24\nretn                                                                   ; +0x56, 0x1800d5a26", "xrefs": ["sub_180018CF0 @ 0x180018d86", "sub_180025F50 @ 0x180025fe6", "sub_1800363B0 @ 0x180036446", "sub_18003D900 @ 0x18003d996"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}