{"type": "func", "start": 6442515888, "end": 6442516038, "name": "sub_18000FDB0", "pseudocode": "// \n// sub_18000FDB0 from 0x18000fdb0 to 0x18000fe46 (150 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18016c848\n// > <???> @ 0x1801f6db0\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_18000FDB0(float *a1, float a2)\n{\n  __int64 result; // rax\n  float v4; // [rsp+40h] [rbp+8h] BYREF\n\n  result = (*(__int64 (__fastcall **)(float *, float *))(*(_QWORD *)a1 + 152LL))(a1, &v4);\n  if ( !(_DWORD)result )\n  {\n    if ( (LOBYTE(v4) & 0x10) != 0 )\n    {\n      v4 = a2;\n      if ( (LODWORD(a2) & 0x7F800000) == 0x7F800000 )\n      {\n        return 29;\n      }\n      else if ( a2 < 0.0 || a2 > 1.0 )\n      {\n        return 31;\n      }\n      else\n      {\n        a1[60] = a2;\n        return 0;\n      }\n    }\n    else\n    {\n      return 40;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_18000FDB0 from 0x18000fdb0 to 0x18000fe46 (150 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18016c848\n; > <???> @ 0x1801f6db0\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\npush    rbx                                                            ; +0x0, 0x18000fdb0\nsub     rsp, 30h                                                       ; +0x2, 0x18000fdb2\nmov     rax, [rcx]                                                     ; +0x6, 0x18000fdb6\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x9, 0x18000fdb9\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xe, 0x18000fdbe\nmov     rbx, rcx                                                       ; +0x13, 0x18000fdc3\nmovaps  xmm6, xmm1                                                     ; +0x16, 0x18000fdc6\ncall    qword ptr [rax+98h]                                            ; +0x19, 0x18000fdc9\ntest    eax, eax                                                       ; +0x1f, 0x18000fdcf\njnz     short loc_18000FE3B                                            ; +0x21, 0x18000fdd1\ntest    byte ptr [rsp+38h+arg_0], 10h                                  ; +0x23, 0x18000fdd3\njnz     short loc_18000FDEA                                            ; +0x28, 0x18000fdd8\nmov     eax, 28h ; '('                                                 ; +0x2a, 0x18000fdda\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x2f, 0x18000fddf\nadd     rsp, 30h                                                       ; +0x34, 0x18000fde4\npop     rbx                                                            ; +0x38, 0x18000fde8\nretn                                                                   ; +0x39, 0x18000fde9\nmovss   [rsp+38h+arg_0], xmm6                                          ; +0x3a, 0x18000fdea\nmov     eax, [rsp+38h+arg_0]                                           ; +0x40, 0x18000fdf0\nand     eax, 7F800000h                                                 ; +0x44, 0x18000fdf4\ncmp     eax, 7F800000h                                                 ; +0x49, 0x18000fdf9\njnz     short loc_18000FE10                                            ; +0x4e, 0x18000fdfe\nmov     eax, 1Dh                                                       ; +0x50, 0x18000fe00\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x55, 0x18000fe05\nadd     rsp, 30h                                                       ; +0x5a, 0x18000fe0a\npop     rbx                                                            ; +0x5e, 0x18000fe0e\nretn                                                                   ; +0x5f, 0x18000fe0f\nxorps   xmm0, xmm0                                                     ; +0x60, 0x18000fe10\ncomiss  xmm6, xmm0                                                     ; +0x63, 0x18000fe13\njb      short loc_18000FE36                                            ; +0x66, 0x18000fe16\ncomiss  xmm6, cs:dword_180145744                                       ; +0x68, 0x18000fe18\nja      short loc_18000FE36                                            ; +0x6f, 0x18000fe1f\nmovss   dword ptr [rbx+0F0h], xmm6                                     ; +0x71, 0x18000fe21\nxor     eax, eax                                                       ; +0x79, 0x18000fe29\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x7b, 0x18000fe2b\nadd     rsp, 30h                                                       ; +0x80, 0x18000fe30\npop     rbx                                                            ; +0x84, 0x18000fe34\nretn                                                                   ; +0x85, 0x18000fe35\nmov     eax, 1Fh                                                       ; +0x86, 0x18000fe36\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x8b, 0x18000fe3b\nadd     rsp, 30h                                                       ; +0x90, 0x18000fe40\npop     rbx                                                            ; +0x94, 0x18000fe44\nretn                                                                   ; +0x95, 0x18000fe45", "xrefs": ["<???> @ 0x18016c848", "<???> @ 0x1801f6db0"], "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"}