{"type": "func", "start": 6442929744, "end": 6442929899, "name": "sub_180074E50", "pseudocode": "// \n// sub_180074E50 from 0x180074e50 to 0x180074eeb (155 bytes)\n// \n// 2 xrefs:\n// > sub_1800741F0 @ 0x180074268\n// > sub_180074400 @ 0x18007446f\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_180074E50(__int64 a1, float a2)\n{\n  bool v3; // cf\n  float v4; // xmm0_4\n  float v5; // xmm1_4\n  __int64 result; // rax\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      *(float *)(a1 + 804) = (float)((float)(0.33333334 / (float)(22000.0 - v5)) * (float)(a2 - v5)) + 0.66666669;\n    else\n      *(float *)(a1 + 804) = (float)(1.0 / v4) / (float)((float)(0.15915494 / a2) + (float)(1.0 / v4));\n  }\n  else\n  {\n    *(_DWORD *)(a1 + 804) = 1065353216;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_180074E50 from 0x180074e50 to 0x180074eeb (155 bytes)\n; \n; 2 xrefs:\n; > sub_1800741F0 @ 0x180074268\n; > sub_180074400 @ 0x18007446f\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, 0x180074e50\nmovaps  xmm2, xmm1                                                     ; +0x7, 0x180074e57\nmovss   xmm3, cs:dword_180168134                                       ; +0xa, 0x180074e5a\ncomiss  xmm2, xmm3                                                     ; +0x12, 0x180074e62\nmovd    xmm0, dword ptr [rax+6D0h]                                     ; +0x15, 0x180074e65\ncvtdq2ps xmm0, xmm0                                                    ; +0x1d, 0x180074e6d\nmovaps  xmm1, xmm0                                                     ; +0x20, 0x180074e70\nmulss   xmm1, cs:dword_18016818C                                       ; +0x23, 0x180074e73\njb      short loc_180074E90                                            ; +0x2b, 0x180074e7b\nmovss   xmm0, cs:dword_180145744                                       ; +0x2d, 0x180074e7d\nxor     eax, eax                                                       ; +0x35, 0x180074e85\nmovss   dword ptr [rcx+324h], xmm0                                     ; +0x37, 0x180074e87\nretn                                                                   ; +0x3f, 0x180074e8f\ncomiss  xmm2, xmm1                                                     ; +0x40, 0x180074e90\nja      short loc_180074EC0                                            ; +0x43, 0x180074e93\nmovss   xmm1, cs:dword_180145744                                       ; +0x45, 0x180074e95\nxor     eax, eax                                                       ; +0x4d, 0x180074e9d\ndivss   xmm1, xmm0                                                     ; +0x4f, 0x180074e9f\nmovss   xmm0, cs:dword_180168188                                       ; +0x53, 0x180074ea3\ndivss   xmm0, xmm2                                                     ; +0x5b, 0x180074eab\naddss   xmm0, xmm1                                                     ; +0x5f, 0x180074eaf\ndivss   xmm1, xmm0                                                     ; +0x63, 0x180074eb3\nmovss   dword ptr [rcx+324h], xmm1                                     ; +0x67, 0x180074eb7\nretn                                                                   ; +0x6f, 0x180074ebf\nmovss   xmm0, cs:dword_180164BC4                                       ; +0x70, 0x180074ec0\nsubss   xmm3, xmm1                                                     ; +0x78, 0x180074ec8\nsubss   xmm2, xmm1                                                     ; +0x7c, 0x180074ecc\nxor     eax, eax                                                       ; +0x80, 0x180074ed0\ndivss   xmm0, xmm3                                                     ; +0x82, 0x180074ed2\nmulss   xmm0, xmm2                                                     ; +0x86, 0x180074ed6\naddss   xmm0, cs:dword_1801687DC                                       ; +0x8a, 0x180074eda\nmovss   dword ptr [rcx+324h], xmm0                                     ; +0x92, 0x180074ee2\nretn                                                                   ; +0x9a, 0x180074eea", "xrefs": ["sub_1800741F0 @ 0x180074268", "sub_180074400 @ 0x18007446f"], "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"}