{"type": "func", "start": 6443297008, "end": 6443297120, "name": "sub_1800CE8F0", "pseudocode": "// \n// sub_1800CE8F0 from 0x1800ce8f0 to 0x1800ce960 (112 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x18016caa0\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_1800CE8F0(__int64 a1, float a2, float a3, char a4)\n{\n  __int64 v4; // rax\n  float v6; // xmm0_4\n  float v7; // xmm1_4\n  float v8; // xmm2_4\n\n  v4 = *(_QWORD *)(a1 + 472);\n  if ( !v4 || !*(_QWORD *)(a1 + 32) )\n    return 30;\n  if ( (*(_BYTE *)(v4 + 56) & 0x10) == 0 )\n    return 40;\n  v6 = 0.0;\n  v7 = fminf(a2, 1.0);\n  if ( v7 < 0.0 )\n    v7 = 0.0;\n  v8 = fminf(a3, 1.0);\n  *(float *)(a1 + 192) = v7;\n  if ( v8 >= 0.0 )\n    v6 = v8;\n  *(float *)(a1 + 196) = v6;\n  if ( a4 )\n  {\n    *(float *)(a1 + 200) = v7;\n    *(float *)(a1 + 204) = v6;\n  }\n  return 0;\n}", "assembly": "; \n; sub_1800CE8F0 from 0x1800ce8f0 to 0x1800ce960 (112 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x18016caa0\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     rax, [rcx+1D8h]                                                ; +0x0, 0x1800ce8f0\ntest    rax, rax                                                       ; +0x7, 0x1800ce8f7\njz      short loc_1800CE95A                                            ; +0xa, 0x1800ce8fa\ncmp     qword ptr [rcx+20h], 0                                         ; +0xc, 0x1800ce8fc\njz      short loc_1800CE95A                                            ; +0x11, 0x1800ce901\ntest    byte ptr [rax+38h], 10h                                        ; +0x13, 0x1800ce903\njnz     short loc_1800CE90F                                            ; +0x17, 0x1800ce907\nmov     eax, 28h ; '('                                                 ; +0x19, 0x1800ce909\nretn                                                                   ; +0x1e, 0x1800ce90e\nmovss   xmm3, cs:dword_180145744                                       ; +0x1f, 0x1800ce90f\nxorps   xmm0, xmm0                                                     ; +0x27, 0x1800ce917\nminss   xmm1, xmm3                                                     ; +0x2a, 0x1800ce91a\ncomiss  xmm1, xmm0                                                     ; +0x2e, 0x1800ce91e\njnb     short loc_1800CE926                                            ; +0x31, 0x1800ce921\nxorps   xmm1, xmm1                                                     ; +0x33, 0x1800ce923\nminss   xmm2, xmm3                                                     ; +0x36, 0x1800ce926\nmovss   dword ptr [rcx+0C0h], xmm1                                     ; +0x3a, 0x1800ce92a\ncomiss  xmm2, xmm0                                                     ; +0x42, 0x1800ce932\njb      short loc_1800CE93A                                            ; +0x45, 0x1800ce935\nmovaps  xmm0, xmm2                                                     ; +0x47, 0x1800ce937\nmovss   dword ptr [rcx+0C4h], xmm0                                     ; +0x4a, 0x1800ce93a\ntest    r9b, r9b                                                       ; +0x52, 0x1800ce942\njz      short loc_1800CE957                                            ; +0x55, 0x1800ce945\nmovss   dword ptr [rcx+0C8h], xmm1                                     ; +0x57, 0x1800ce947\nmovss   dword ptr [rcx+0CCh], xmm0                                     ; +0x5f, 0x1800ce94f\nxor     eax, eax                                                       ; +0x67, 0x1800ce957\nretn                                                                   ; +0x69, 0x1800ce959\nmov     eax, 1Eh                                                       ; +0x6a, 0x1800ce95a\nretn                                                                   ; +0x6f, 0x1800ce95f", "xrefs": ["<???> @ 0x18016caa0"], "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"}