{"type": "func", "start": 6442514912, "end": 6442515153, "name": "sub_18000F9E0", "pseudocode": "// \n// sub_18000F9E0 from 0x18000f9e0 to 0x18000fad1 (241 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18016c7f0\n// > <???> @ 0x18016ca68\n// > <???> @ 0x1801f6d80\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:52:44 +0000\n// \n\n__int64 __fastcall sub_18000F9E0(__int64 a1, float a2, float a3, float a4)\n{\n  __int64 result; // rax\n  unsigned int v6; // edx\n  float v7; // [rsp+60h] [rbp+8h] BYREF\n\n  result = (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)a1 + 152LL))(a1, &v7);\n  if ( !(_DWORD)result )\n  {\n    if ( (LOBYTE(v7) & 0x10) == 0 )\n      return 40;\n    v7 = a2;\n    if ( (LODWORD(a2) & 0x7F800000) == 0x7F800000 )\n      return 29;\n    v7 = a3;\n    if ( (LODWORD(a3) & 0x7F800000) == 0x7F800000 )\n    {\n      return 29;\n    }\n    else\n    {\n      v6 = 0;\n      v7 = a4;\n      if ( (LODWORD(a4) & 0x7F800000) == 0x7F800000 )\n      {\n        return 29;\n      }\n      else\n      {\n        if ( a2 > a3 )\n          return 31;\n        *(_DWORD *)(a1 + 72) |= 4u;\n        *(float *)(a1 + 168) = a2;\n        *(float *)(a1 + 172) = a3;\n        *(float *)(a1 + 176) = fmaxf(fminf(a4, 1.0), 0.0);\n      }\n      return v6;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_18000F9E0 from 0x18000f9e0 to 0x18000fad1 (241 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18016c7f0\n; > <???> @ 0x18016ca68\n; > <???> @ 0x1801f6d80\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:52:44 +0000\n; \npush    rbx                                                            ; +0x0, 0x18000f9e0\nsub     rsp, 50h                                                       ; +0x2, 0x18000f9e2\nmov     rax, [rcx]                                                     ; +0x6, 0x18000f9e6\nlea     rdx, [rsp+58h+arg_0]                                           ; +0x9, 0x18000f9e9\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0xe, 0x18000f9ee\nmov     rbx, rcx                                                       ; +0x13, 0x18000f9f3\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0x16, 0x18000f9f6\nmovaps  xmm6, xmm3                                                     ; +0x1b, 0x18000f9fb\nmovaps  [rsp+58h+var_38], xmm8                                         ; +0x1e, 0x18000f9fe\nmovaps  xmm7, xmm2                                                     ; +0x24, 0x18000fa04\nmovaps  xmm8, xmm1                                                     ; +0x27, 0x18000fa07\ncall    qword ptr [rax+98h]                                            ; +0x2b, 0x18000fa0b\ntest    eax, eax                                                       ; +0x31, 0x18000fa11\njnz     loc_18000FABB                                                  ; +0x33, 0x18000fa13\ntest    byte ptr [rsp+58h+arg_0], 10h                                  ; +0x39, 0x18000fa19\njnz     short loc_18000FA2A                                            ; +0x3e, 0x18000fa1e\nmov     eax, 28h ; '('                                                 ; +0x40, 0x18000fa20\njmp     loc_18000FABB                                                  ; +0x45, 0x18000fa25\nmovss   [rsp+58h+arg_0], xmm8                                          ; +0x4a, 0x18000fa2a\nmov     eax, [rsp+58h+arg_0]                                           ; +0x51, 0x18000fa31\nand     eax, 7F800000h                                                 ; +0x55, 0x18000fa35\ncmp     eax, 7F800000h                                                 ; +0x5a, 0x18000fa3a\njz      short loc_18000FAB6                                            ; +0x5f, 0x18000fa3f\nmovss   [rsp+58h+arg_0], xmm7                                          ; +0x61, 0x18000fa41\nmov     eax, [rsp+58h+arg_0]                                           ; +0x67, 0x18000fa47\nand     eax, 7F800000h                                                 ; +0x6b, 0x18000fa4b\ncmp     eax, 7F800000h                                                 ; +0x70, 0x18000fa50\njz      short loc_18000FAB6                                            ; +0x75, 0x18000fa55\nxor     edx, edx                                                       ; +0x77, 0x18000fa57\nmovss   [rsp+58h+arg_0], xmm6                                          ; +0x79, 0x18000fa59\nmov     ecx, [rsp+58h+arg_0]                                           ; +0x7f, 0x18000fa5f\nmov     eax, 1Dh                                                       ; +0x83, 0x18000fa63\nand     ecx, 7F800000h                                                 ; +0x88, 0x18000fa68\ncmp     ecx, 7F800000h                                                 ; +0x8e, 0x18000fa6e\ncmovz   edx, eax                                                       ; +0x94, 0x18000fa74\njz      short loc_18000FAB2                                            ; +0x97, 0x18000fa77\ncomiss  xmm8, xmm7                                                     ; +0x99, 0x18000fa79\njbe     short loc_18000FA86                                            ; +0x9d, 0x18000fa7d\nmov     eax, 1Fh                                                       ; +0x9f, 0x18000fa7f\njmp     short loc_18000FABB                                            ; +0xa4, 0x18000fa84\nminss   xmm6, cs:dword_180145744                                       ; +0xa6, 0x18000fa86\nor      dword ptr [rbx+48h], 4                                         ; +0xae, 0x18000fa8e\nxorps   xmm0, xmm0                                                     ; +0xb2, 0x18000fa92\nmovss   dword ptr [rbx+0A8h], xmm8                                     ; +0xb5, 0x18000fa95\nmovss   dword ptr [rbx+0ACh], xmm7                                     ; +0xbe, 0x18000fa9e\nmaxss   xmm6, xmm0                                                     ; +0xc6, 0x18000faa6\nmovss   dword ptr [rbx+0B0h], xmm6                                     ; +0xca, 0x18000faaa\nmov     eax, edx                                                       ; +0xd2, 0x18000fab2\njmp     short loc_18000FABB                                            ; +0xd4, 0x18000fab4\nmov     eax, 1Dh                                                       ; +0xd6, 0x18000fab6\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0xdb, 0x18000fabb\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0xe0, 0x18000fac0\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0xe5, 0x18000fac5\nadd     rsp, 50h                                                       ; +0xeb, 0x18000facb\npop     rbx                                                            ; +0xef, 0x18000facf\nretn                                                                   ; +0xf0, 0x18000fad0", "xrefs": ["<???> @ 0x18016c7f0", "<???> @ 0x18016ca68", "<???> @ 0x1801f6d80"], "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"}