{"type": "func", "start": 6442516048, "end": 6442516386, "name": "sub_18000FE50", "pseudocode": "// \n// sub_18000FE50 from 0x18000fe50 to 0x18000ffa2 (338 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18016c7e0\n// > <???> @ 0x18016ca58\n// > <???> @ 0x1801f6dbc\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_18000FE50(__int64 a1, float a2, float a3)\n{\n  __int64 result; // rax\n  int v5; // r8d\n  unsigned int v6; // edx\n  __int64 v7; // rdx\n  int v8; // [rsp+50h] [rbp+8h] BYREF\n  float v9; // [rsp+68h] [rbp+20h]\n\n  result = (*(__int64 (__fastcall **)(__int64, int *))(*(_QWORD *)a1 + 152LL))(a1, &v8);\n  if ( !(_DWORD)result )\n  {\n    v5 = v8;\n    if ( (v8 & 0x10) == 0 )\n      return 40;\n    v9 = a2;\n    result = 29;\n    if ( (LODWORD(a2) & 0x7F800000) != 0x7F800000 )\n    {\n      v6 = 0;\n      v9 = a3;\n      if ( (LODWORD(a3) & 0x7F800000) == 0x7F800000 )\n        return 29;\n      if ( a2 < 0.0 || a3 < 0.0 || a3 < a2 )\n      {\n        return 31;\n      }\n      else\n      {\n        if ( a2 == *(float *)(a1 + 156) && a3 == *(float *)(a1 + 160) )\n          return v6;\n        *(float *)(a1 + 156) = a2;\n        *(float *)(a1 + 160) = a3;\n        if ( (v5 & 0x4F00000) == 0 && !*(_QWORD *)(*(_QWORD *)(a1 + 8) + 69120LL) )\n        {\n          *(_DWORD *)(a1 + 72) |= 4u;\n          return 0;\n        }\n        *(_DWORD *)(a1 + 72) |= 4u;\n        result = sub_180012140(a1, 0, 0, 0);\n        if ( !(_DWORD)result )\n        {\n          result = (*(__int64 (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 32LL))(a1, v7, 0);\n          v6 = result;\n          if ( !(_DWORD)result )\n            return v6;\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_18000FE50 from 0x18000fe50 to 0x18000ffa2 (338 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18016c7e0\n; > <???> @ 0x18016ca58\n; > <???> @ 0x1801f6dbc\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, 0x18000fe50\nsub     rsp, 40h                                                       ; +0x2, 0x18000fe52\nmov     rax, [rcx]                                                     ; +0x6, 0x18000fe56\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x9, 0x18000fe59\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0xe, 0x18000fe5e\nmov     rbx, rcx                                                       ; +0x13, 0x18000fe63\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x16, 0x18000fe66\nmovaps  xmm6, xmm1                                                     ; +0x1b, 0x18000fe6b\nmovaps  xmm7, xmm2                                                     ; +0x1e, 0x18000fe6e\ncall    qword ptr [rax+98h]                                            ; +0x21, 0x18000fe71\ntest    eax, eax                                                       ; +0x27, 0x18000fe77\njnz     loc_18000FF92                                                  ; +0x29, 0x18000fe79\nmov     r8d, [rsp+48h+arg_0]                                           ; +0x2f, 0x18000fe7f\ntest    r8b, 10h                                                       ; +0x34, 0x18000fe84\njnz     short loc_18000FE9F                                            ; +0x38, 0x18000fe88\nmov     eax, 28h ; '('                                                 ; +0x3a, 0x18000fe8a\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x3f, 0x18000fe8f\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x44, 0x18000fe94\nadd     rsp, 40h                                                       ; +0x49, 0x18000fe99\npop     rbx                                                            ; +0x4d, 0x18000fe9d\nretn                                                                   ; +0x4e, 0x18000fe9e\nmovss   [rsp+48h+arg_18], xmm6                                         ; +0x4f, 0x18000fe9f\nmov     eax, [rsp+48h+arg_18]                                          ; +0x55, 0x18000fea5\nand     eax, 7F800000h                                                 ; +0x59, 0x18000fea9\ncmp     eax, 7F800000h                                                 ; +0x5e, 0x18000feae\nmov     eax, 1Dh                                                       ; +0x63, 0x18000feb3\njz      loc_18000FF92                                                  ; +0x68, 0x18000feb8\nxor     edx, edx                                                       ; +0x6e, 0x18000febe\nmovss   [rsp+48h+arg_18], xmm7                                         ; +0x70, 0x18000fec0\nmov     ecx, [rsp+48h+arg_18]                                          ; +0x76, 0x18000fec6\nand     ecx, 7F800000h                                                 ; +0x7a, 0x18000feca\ncmp     ecx, 7F800000h                                                 ; +0x80, 0x18000fed0\ncmovz   edx, eax                                                       ; +0x86, 0x18000fed6\njz      loc_18000FF7B                                                  ; +0x89, 0x18000fed9\nxorps   xmm0, xmm0                                                     ; +0x8f, 0x18000fedf\ncomiss  xmm6, xmm0                                                     ; +0x92, 0x18000fee2\njb      loc_18000FF8D                                                  ; +0x95, 0x18000fee5\ncomiss  xmm7, xmm0                                                     ; +0x9b, 0x18000feeb\njb      loc_18000FF8D                                                  ; +0x9e, 0x18000feee\ncomiss  xmm7, xmm6                                                     ; +0xa4, 0x18000fef4\njb      loc_18000FF8D                                                  ; +0xa7, 0x18000fef7\nucomiss xmm6, dword ptr [rbx+9Ch]                                      ; +0xad, 0x18000fefd\njnz     short loc_18000FF0F                                            ; +0xb4, 0x18000ff04\nucomiss xmm7, dword ptr [rbx+0A0h]                                     ; +0xb6, 0x18000ff06\njz      short loc_18000FF7B                                            ; +0xbd, 0x18000ff0d\nmovss   dword ptr [rbx+9Ch], xmm6                                      ; +0xbf, 0x18000ff0f\nmovss   dword ptr [rbx+0A0h], xmm7                                     ; +0xc7, 0x18000ff17\ntest    r8d, 4F00000h                                                  ; +0xcf, 0x18000ff1f\njnz     short loc_18000FF4C                                            ; +0xd6, 0x18000ff26\nmov     rax, [rbx+8]                                                   ; +0xd8, 0x18000ff28\ncmp     qword ptr [rax+10E00h], 0                                      ; +0xdc, 0x18000ff2c\njnz     short loc_18000FF4C                                            ; +0xe4, 0x18000ff34\nor      dword ptr [rbx+48h], 4                                         ; +0xe6, 0x18000ff36\nmov     eax, edx                                                       ; +0xea, 0x18000ff3a\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0xec, 0x18000ff3c\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0xf1, 0x18000ff41\nadd     rsp, 40h                                                       ; +0xf6, 0x18000ff46\npop     rbx                                                            ; +0xfa, 0x18000ff4a\nretn                                                                   ; +0xfb, 0x18000ff4b\nor      dword ptr [rbx+48h], 4                                         ; +0xfc, 0x18000ff4c\nxor     r9d, r9d                                                       ; +0x100, 0x18000ff50\nxor     r8d, r8d                                                       ; +0x103, 0x18000ff53\nxor     edx, edx                                                       ; +0x106, 0x18000ff56\nmov     rcx, rbx                                                       ; +0x108, 0x18000ff58\ncall    sub_180012140                                                  ; +0x10b, 0x18000ff5b\ntest    eax, eax                                                       ; +0x110, 0x18000ff60\njnz     short loc_18000FF92                                            ; +0x112, 0x18000ff62\nmov     rax, [rbx]                                                     ; +0x114, 0x18000ff64\nxor     r8d, r8d                                                       ; +0x117, 0x18000ff67\nmovss   xmm1, dword ptr [rbx+30h]                                      ; +0x11a, 0x18000ff6a\nmov     rcx, rbx                                                       ; +0x11f, 0x18000ff6f\ncall    qword ptr [rax+20h]                                            ; +0x122, 0x18000ff72\nmov     edx, eax                                                       ; +0x125, 0x18000ff75\ntest    eax, eax                                                       ; +0x127, 0x18000ff77\njnz     short loc_18000FF92                                            ; +0x129, 0x18000ff79\nmov     eax, edx                                                       ; +0x12b, 0x18000ff7b\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x12d, 0x18000ff7d\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x132, 0x18000ff82\nadd     rsp, 40h                                                       ; +0x137, 0x18000ff87\npop     rbx                                                            ; +0x13b, 0x18000ff8b\nretn                                                                   ; +0x13c, 0x18000ff8c\nmov     eax, 1Fh                                                       ; +0x13d, 0x18000ff8d\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x142, 0x18000ff92\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x147, 0x18000ff97\nadd     rsp, 40h                                                       ; +0x14c, 0x18000ff9c\npop     rbx                                                            ; +0x150, 0x18000ffa0\nretn                                                                   ; +0x151, 0x18000ffa1", "xrefs": ["<???> @ 0x18016c7e0", "<???> @ 0x18016ca58", "<???> @ 0x1801f6dbc"], "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"}