{"type": "func", "start": 6443296704, "end": 6443296828, "name": "sub_1800CE7C0", "pseudocode": "// \n// sub_1800CE7C0 from 0x1800ce7c0 to 0x1800ce83c (124 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x18016cac0\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_1800CE7C0(__int64 a1, float a2)\n{\n  __int64 v2; // rdx\n\n  v2 = *(_QWORD *)(a1 + 472);\n  if ( !v2 || !*(_QWORD *)(a1 + 32) )\n    return 30;\n  if ( (*(_BYTE *)(v2 + 56) & 0x10) == 0 )\n    return 40;\n  if ( (LODWORD(a2) & 0x7F800000) == 0x7F800000 )\n    return 29;\n  if ( a2 < 0.0 || a2 > 1.0 )\n    return 31;\n  *(float *)(a1 + 240) = a2;\n  if ( (*(_BYTE *)(v2 + 60) & 0x20) != 0 && a2 < 1.0 )\n    return sub_1800D01B0(a1, 0, 0);\n  else\n    return 0;\n}", "assembly": "; \n; sub_1800CE7C0 from 0x1800ce7c0 to 0x1800ce83c (124 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x18016cac0\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\nmov     rdx, [rcx+1D8h]                                                ; +0x0, 0x1800ce7c0\ntest    rdx, rdx                                                       ; +0x7, 0x1800ce7c7\njz      short loc_1800CE836                                            ; +0xa, 0x1800ce7ca\ncmp     qword ptr [rcx+20h], 0                                         ; +0xc, 0x1800ce7cc\njz      short loc_1800CE836                                            ; +0x11, 0x1800ce7d1\ntest    byte ptr [rdx+38h], 10h                                        ; +0x13, 0x1800ce7d3\njnz     short loc_1800CE7DF                                            ; +0x17, 0x1800ce7d7\nmov     eax, 28h ; '('                                                 ; +0x19, 0x1800ce7d9\nretn                                                                   ; +0x1e, 0x1800ce7de\nmovss   [rsp+arg_0], xmm1                                              ; +0x1f, 0x1800ce7df\nmov     eax, [rsp+arg_0]                                               ; +0x25, 0x1800ce7e5\nand     eax, 7F800000h                                                 ; +0x29, 0x1800ce7e9\ncmp     eax, 7F800000h                                                 ; +0x2e, 0x1800ce7ee\njnz     short loc_1800CE7FB                                            ; +0x33, 0x1800ce7f3\nmov     eax, 1Dh                                                       ; +0x35, 0x1800ce7f5\nretn                                                                   ; +0x3a, 0x1800ce7fa\nxorps   xmm0, xmm0                                                     ; +0x3b, 0x1800ce7fb\ncomiss  xmm1, xmm0                                                     ; +0x3e, 0x1800ce7fe\njb      short loc_1800CE830                                            ; +0x41, 0x1800ce801\nmovss   xmm0, cs:dword_180145744                                       ; +0x43, 0x1800ce803\ncomiss  xmm1, xmm0                                                     ; +0x4b, 0x1800ce80b\nja      short loc_1800CE830                                            ; +0x4e, 0x1800ce80e\nmovss   dword ptr [rcx+0F0h], xmm1                                     ; +0x50, 0x1800ce810\ntest    byte ptr [rdx+3Ch], 20h                                        ; +0x58, 0x1800ce818\njz      short loc_1800CE82D                                            ; +0x5c, 0x1800ce81c\ncomiss  xmm1, xmm0                                                     ; +0x5e, 0x1800ce81e\njnb     short loc_1800CE82D                                            ; +0x61, 0x1800ce821\nxor     r8d, r8d                                                       ; +0x63, 0x1800ce823\nxor     edx, edx                                                       ; +0x66, 0x1800ce826\njmp     sub_1800D01B0                                                  ; +0x68, 0x1800ce828\nxor     eax, eax                                                       ; +0x6d, 0x1800ce82d\nretn                                                                   ; +0x6f, 0x1800ce82f\nmov     eax, 1Fh                                                       ; +0x70, 0x1800ce830\nretn                                                                   ; +0x75, 0x1800ce835\nmov     eax, 1Eh                                                       ; +0x76, 0x1800ce836\nretn                                                                   ; +0x7b, 0x1800ce83b", "xrefs": ["<???> @ 0x18016cac0"], "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"}