{"type": "func", "start": 6442906848, "end": 6442906993, "name": "sub_18006F4E0", "pseudocode": "// \n// sub_18006F4E0 from 0x18006f4e0 to 0x18006f571 (145 bytes)\n// \n// 2 xrefs:\n// > sub_18006E8E0 @ 0x18006e958\n// > sub_18006EAF0 @ 0x18006eb51\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_18006F4E0(__int64 a1, float a2)\n{\n  bool v3; // cf\n  float v4; // xmm4_4\n  float v5; // xmm1_4\n  __int64 result; // rax\n  float v7; // xmm1_4\n\n  v3 = a2 < 22000.0;\n  v4 = (float)*(int *)(*(_QWORD *)(a1 + 168) + 1744LL);\n  v5 = v4 * 0.31830987;\n  if ( v3 )\n  {\n    result = 0;\n    if ( a2 > v5 )\n      v7 = (float)(0.33333334 / (float)(22000.0 - v5)) * (float)(22000.0 - a2);\n    else\n      v7 = (float)(0.15915494 / a2) / (float)((float)(1.0 / v4) + (float)(0.15915494 / a2));\n    *(float *)(a1 + 804) = v7;\n  }\n  else\n  {\n    *(_DWORD *)(a1 + 804) = 0;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_18006F4E0 from 0x18006f4e0 to 0x18006f571 (145 bytes)\n; \n; 2 xrefs:\n; > sub_18006E8E0 @ 0x18006e958\n; > sub_18006EAF0 @ 0x18006eb51\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     rax, [rcx+0A8h]                                                ; +0x0, 0x18006f4e0\nmovaps  xmm3, xmm1                                                     ; +0x7, 0x18006f4e7\nmovss   xmm2, cs:dword_180168134                                       ; +0xa, 0x18006f4ea\ncomiss  xmm3, xmm2                                                     ; +0x12, 0x18006f4f2\nmovd    xmm4, dword ptr [rax+6D0h]                                     ; +0x15, 0x18006f4f5\ncvtdq2ps xmm4, xmm4                                                    ; +0x1d, 0x18006f4fd\nmovaps  xmm1, xmm4                                                     ; +0x20, 0x18006f500\nmulss   xmm1, cs:dword_18016818C                                       ; +0x23, 0x18006f503\njb      short loc_18006F51B                                            ; +0x2b, 0x18006f50b\nxorps   xmm0, xmm0                                                     ; +0x2d, 0x18006f50d\nxor     eax, eax                                                       ; +0x30, 0x18006f510\nmovss   dword ptr [rcx+324h], xmm0                                     ; +0x32, 0x18006f512\nretn                                                                   ; +0x3a, 0x18006f51a\ncomiss  xmm3, xmm1                                                     ; +0x3b, 0x18006f51b\nja      short loc_18006F54B                                            ; +0x3e, 0x18006f51e\nmovss   xmm1, cs:dword_180168188                                       ; +0x40, 0x18006f520\nxor     eax, eax                                                       ; +0x48, 0x18006f528\nmovss   xmm0, cs:dword_180145744                                       ; +0x4a, 0x18006f52a\ndivss   xmm1, xmm3                                                     ; +0x52, 0x18006f532\ndivss   xmm0, xmm4                                                     ; +0x56, 0x18006f536\naddss   xmm0, xmm1                                                     ; +0x5a, 0x18006f53a\ndivss   xmm1, xmm0                                                     ; +0x5e, 0x18006f53e\nmovss   dword ptr [rcx+324h], xmm1                                     ; +0x62, 0x18006f542\nretn                                                                   ; +0x6a, 0x18006f54a\nmovaps  xmm0, xmm2                                                     ; +0x6b, 0x18006f54b\nxor     eax, eax                                                       ; +0x6e, 0x18006f54e\nsubss   xmm0, xmm1                                                     ; +0x70, 0x18006f550\nmovss   xmm1, cs:dword_180164BC4                                       ; +0x74, 0x18006f554\nsubss   xmm2, xmm3                                                     ; +0x7c, 0x18006f55c\ndivss   xmm1, xmm0                                                     ; +0x80, 0x18006f560\nmulss   xmm1, xmm2                                                     ; +0x84, 0x18006f564\nmovss   dword ptr [rcx+324h], xmm1                                     ; +0x88, 0x18006f568\nretn                                                                   ; +0x90, 0x18006f570", "xrefs": ["sub_18006E8E0 @ 0x18006e958", "sub_18006EAF0 @ 0x18006eb51"], "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"}