{"type": "func", "start": 6443013200, "end": 6443013322, "name": "sub_180089450", "pseudocode": "// \n// sub_180089450 from 0x180089450 to 0x1800894ca (122 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1801ae600\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_180089450(__int64 *a1, int a2, unsigned int a3)\n{\n  __int64 v3; // r9\n  float v4; // xmm1_4\n  __int64 result; // rax\n  unsigned int v6; // ecx\n\n  v3 = *a1;\n  if ( a2 )\n  {\n    if ( !*(_DWORD *)(v3 + 2084) )\n      return 11;\n  }\n  else\n  {\n    v4 = *(float *)(v3 + 2076);\n    if ( v4 > -80.0 )\n      *(_DWORD *)(v3 + 2084) = (int)(float)((float)((float)(v4 + 100.0) * *(float *)(v3 + 2032))\n                                          * (float)((float)*(int *)(v3 + 2080) * 0.000016666667));\n  }\n  result = 0;\n  v6 = *(_DWORD *)(v3 + 2084) - a3;\n  if ( *(_DWORD *)(v3 + 2084) <= a3 )\n    v6 = 0;\n  *(_DWORD *)(v3 + 2084) = v6;\n  return result;\n}", "assembly": "; \n; sub_180089450 from 0x180089450 to 0x1800894ca (122 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1801ae600\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     r9, [rcx]                                                      ; +0x0, 0x180089450\ntest    edx, edx                                                       ; +0x3, 0x180089453\njnz     short loc_1800894BA                                            ; +0x5, 0x180089455\nmovss   xmm1, dword ptr [r9+81Ch]                                      ; +0x7, 0x180089457\ncomiss  xmm1, cs:dword_1801674C8                                       ; +0x10, 0x180089460\njbe     short loc_18008949E                                            ; +0x17, 0x180089467\naddss   xmm1, cs:dword_180164634                                       ; +0x19, 0x180089469\nmovd    xmm0, dword ptr [r9+820h]                                      ; +0x21, 0x180089471\ncvtdq2ps xmm0, xmm0                                                    ; +0x2a, 0x18008947a\nmulss   xmm1, dword ptr [r9+7F0h]                                      ; +0x2d, 0x18008947d\nmulss   xmm0, cs:dword_1801692F4                                       ; +0x36, 0x180089486\nmulss   xmm1, xmm0                                                     ; +0x3e, 0x18008948e\ncvttss2si rax, xmm1                                                    ; +0x42, 0x180089492\nmov     [r9+824h], eax                                                 ; +0x47, 0x180089497\nmov     edx, [r9+824h]                                                 ; +0x4e, 0x18008949e\nxor     eax, eax                                                       ; +0x55, 0x1800894a5\nmov     ecx, edx                                                       ; +0x57, 0x1800894a7\nsub     ecx, r8d                                                       ; +0x59, 0x1800894a9\ncmp     edx, r8d                                                       ; +0x5c, 0x1800894ac\ncmovbe  ecx, eax                                                       ; +0x5f, 0x1800894af\nmov     [r9+824h], ecx                                                 ; +0x62, 0x1800894b2\nretn                                                                   ; +0x69, 0x1800894b9\ncmp     dword ptr [r9+824h], 0                                         ; +0x6a, 0x1800894ba\njnz     short loc_18008949E                                            ; +0x72, 0x1800894c2\nmov     eax, 0Bh                                                       ; +0x74, 0x1800894c4\nretn                                                                   ; +0x79, 0x1800894c9", "xrefs": ["<???> @ 0x1801ae600"], "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"}