{"type": "func", "start": 6442516400, "end": 6442516544, "name": "sub_18000FFB0", "pseudocode": "// \n// sub_18000FFB0 from 0x18000ffb0 to 0x180010040 (144 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18016c838\n// > <???> @ 0x18016cab0\n// > <???> @ 0x1801f6dc8\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_18000FFB0(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      result = 0;\n      v4 = a2;\n      if ( (LODWORD(a2) & 0x7F800000) == 0x7F800000 )\n      {\n        return 29;\n      }\n      else if ( a2 < 0.0 || a2 > 360.0 )\n      {\n        return 31;\n      }\n      else\n      {\n        a1[59] = a2;\n      }\n    }\n    else\n    {\n      return 40;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_18000FFB0 from 0x18000ffb0 to 0x180010040 (144 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18016c838\n; > <???> @ 0x18016cab0\n; > <???> @ 0x1801f6dc8\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, 0x18000ffb0\nsub     rsp, 30h                                                       ; +0x2, 0x18000ffb2\nmov     rax, [rcx]                                                     ; +0x6, 0x18000ffb6\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x9, 0x18000ffb9\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xe, 0x18000ffbe\nmov     rbx, rcx                                                       ; +0x13, 0x18000ffc3\nmovaps  xmm6, xmm1                                                     ; +0x16, 0x18000ffc6\ncall    qword ptr [rax+98h]                                            ; +0x19, 0x18000ffc9\ntest    eax, eax                                                       ; +0x1f, 0x18000ffcf\njnz     short loc_180010035                                            ; +0x21, 0x18000ffd1\ntest    byte ptr [rsp+38h+arg_0], 10h                                  ; +0x23, 0x18000ffd3\njnz     short loc_18000FFEA                                            ; +0x28, 0x18000ffd8\nmov     eax, 28h ; '('                                                 ; +0x2a, 0x18000ffda\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x2f, 0x18000ffdf\nadd     rsp, 30h                                                       ; +0x34, 0x18000ffe4\npop     rbx                                                            ; +0x38, 0x18000ffe8\nretn                                                                   ; +0x39, 0x18000ffe9\nxor     eax, eax                                                       ; +0x3a, 0x18000ffea\nmovss   [rsp+38h+arg_0], xmm6                                          ; +0x3c, 0x18000ffec\nmov     ecx, [rsp+38h+arg_0]                                           ; +0x42, 0x18000fff2\nmov     edx, 1Dh                                                       ; +0x46, 0x18000fff6\nand     ecx, 7F800000h                                                 ; +0x4b, 0x18000fffb\ncmp     ecx, 7F800000h                                                 ; +0x51, 0x180010001\ncmovz   eax, edx                                                       ; +0x57, 0x180010007\njz      short loc_180010035                                            ; +0x5a, 0x18001000a\nxorps   xmm0, xmm0                                                     ; +0x5c, 0x18001000c\ncomiss  xmm6, xmm0                                                     ; +0x5f, 0x18001000f\njb      short loc_180010030                                            ; +0x62, 0x180010012\ncomiss  xmm6, cs:dword_180145770                                       ; +0x64, 0x180010014\nja      short loc_180010030                                            ; +0x6b, 0x18001001b\nmovss   dword ptr [rbx+0ECh], xmm6                                     ; +0x6d, 0x18001001d\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x75, 0x180010025\nadd     rsp, 30h                                                       ; +0x7a, 0x18001002a\npop     rbx                                                            ; +0x7e, 0x18001002e\nretn                                                                   ; +0x7f, 0x18001002f\nmov     eax, 1Fh                                                       ; +0x80, 0x180010030\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x85, 0x180010035\nadd     rsp, 30h                                                       ; +0x8a, 0x18001003a\npop     rbx                                                            ; +0x8e, 0x18001003e\nretn                                                                   ; +0x8f, 0x18001003f", "xrefs": ["<???> @ 0x18016c838", "<???> @ 0x18016cab0", "<???> @ 0x1801f6dc8"], "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"}