{"type": "func", "start": 6442515728, "end": 6442515878, "name": "sub_18000FD10", "pseudocode": "// \n// sub_18000FD10 from 0x18000fd10 to 0x18000fda6 (150 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18016c858\n// > <???> @ 0x18016cad0\n// > <???> @ 0x1801f6da4\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_18000FD10(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 > 5.0 )\n      {\n        return 31;\n      }\n      else\n      {\n        a1[61] = a2;\n        return 0;\n      }\n    }\n    else\n    {\n      return 40;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_18000FD10 from 0x18000fd10 to 0x18000fda6 (150 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18016c858\n; > <???> @ 0x18016cad0\n; > <???> @ 0x1801f6da4\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, 0x18000fd10\nsub     rsp, 30h                                                       ; +0x2, 0x18000fd12\nmov     rax, [rcx]                                                     ; +0x6, 0x18000fd16\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x9, 0x18000fd19\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xe, 0x18000fd1e\nmov     rbx, rcx                                                       ; +0x13, 0x18000fd23\nmovaps  xmm6, xmm1                                                     ; +0x16, 0x18000fd26\ncall    qword ptr [rax+98h]                                            ; +0x19, 0x18000fd29\ntest    eax, eax                                                       ; +0x1f, 0x18000fd2f\njnz     short loc_18000FD9B                                            ; +0x21, 0x18000fd31\ntest    byte ptr [rsp+38h+arg_0], 10h                                  ; +0x23, 0x18000fd33\njnz     short loc_18000FD4A                                            ; +0x28, 0x18000fd38\nmov     eax, 28h ; '('                                                 ; +0x2a, 0x18000fd3a\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x2f, 0x18000fd3f\nadd     rsp, 30h                                                       ; +0x34, 0x18000fd44\npop     rbx                                                            ; +0x38, 0x18000fd48\nretn                                                                   ; +0x39, 0x18000fd49\nmovss   [rsp+38h+arg_0], xmm6                                          ; +0x3a, 0x18000fd4a\nmov     eax, [rsp+38h+arg_0]                                           ; +0x40, 0x18000fd50\nand     eax, 7F800000h                                                 ; +0x44, 0x18000fd54\ncmp     eax, 7F800000h                                                 ; +0x49, 0x18000fd59\njnz     short loc_18000FD70                                            ; +0x4e, 0x18000fd5e\nmov     eax, 1Dh                                                       ; +0x50, 0x18000fd60\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x55, 0x18000fd65\nadd     rsp, 30h                                                       ; +0x5a, 0x18000fd6a\npop     rbx                                                            ; +0x5e, 0x18000fd6e\nretn                                                                   ; +0x5f, 0x18000fd6f\nxorps   xmm0, xmm0                                                     ; +0x60, 0x18000fd70\ncomiss  xmm6, xmm0                                                     ; +0x63, 0x18000fd73\njb      short loc_18000FD96                                            ; +0x66, 0x18000fd76\ncomiss  xmm6, cs:dword_180145758                                       ; +0x68, 0x18000fd78\nja      short loc_18000FD96                                            ; +0x6f, 0x18000fd7f\nmovss   dword ptr [rbx+0F4h], xmm6                                     ; +0x71, 0x18000fd81\nxor     eax, eax                                                       ; +0x79, 0x18000fd89\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x7b, 0x18000fd8b\nadd     rsp, 30h                                                       ; +0x80, 0x18000fd90\npop     rbx                                                            ; +0x84, 0x18000fd94\nretn                                                                   ; +0x85, 0x18000fd95\nmov     eax, 1Fh                                                       ; +0x86, 0x18000fd96\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x8b, 0x18000fd9b\nadd     rsp, 30h                                                       ; +0x90, 0x18000fda0\npop     rbx                                                            ; +0x94, 0x18000fda4\nretn                                                                   ; +0x95, 0x18000fda5", "xrefs": ["<???> @ 0x18016c858", "<???> @ 0x18016cad0", "<???> @ 0x1801f6da4"], "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"}