{"type": "func", "start": 6443284480, "end": 6443284610, "name": "sub_1800CB800", "pseudocode": "// \n// sub_1800CB800 from 0x1800cb800 to 0x1800cb882 (130 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x18016c820\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_1800CB800(float *a1, __int64 a2, __int64 a3)\n{\n  float v3; // xmm1_4\n  float v4; // xmm2_4\n  float v5; // xmm0_4\n  float v6; // xmm1_4\n  float v7; // xmm2_4\n  __int64 v8; // rax\n\n  if ( (LODWORD(v3) & 0x7F800000) == 0x7F800000 || (LODWORD(v4) & 0x7F800000) == 0x7F800000 )\n    return 29;\n  v5 = 0.0;\n  v6 = fminf(v3, 1.0);\n  if ( v6 < 0.0 )\n    v6 = 0.0;\n  v7 = fminf(v4, 1.0);\n  a1[52] = v6;\n  if ( v7 >= 0.0 )\n    v5 = v7;\n  v8 = *(_QWORD *)a1;\n  a1[53] = v5;\n  return (*(__int64 (__fastcall **)(float *, __int64, __int64, _QWORD))(v8 + 408))(a1, a2, a3, 0);\n}", "assembly": "; \n; sub_1800CB800 from 0x1800cb800 to 0x1800cb882 (130 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x18016c820\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\nmovss   [rsp+arg_8], xmm1                                              ; +0x0, 0x1800cb800\nmov     eax, [rsp+arg_8]                                               ; +0x6, 0x1800cb806\nand     eax, 7F800000h                                                 ; +0xa, 0x1800cb80a\ncmp     eax, 7F800000h                                                 ; +0xf, 0x1800cb80f\njz      short loc_1800CB87C                                            ; +0x14, 0x1800cb814\nmovss   [rsp+arg_8], xmm2                                              ; +0x16, 0x1800cb816\nmov     eax, [rsp+arg_8]                                               ; +0x1c, 0x1800cb81c\nand     eax, 7F800000h                                                 ; +0x20, 0x1800cb820\ncmp     eax, 7F800000h                                                 ; +0x25, 0x1800cb825\njz      short loc_1800CB87C                                            ; +0x2a, 0x1800cb82a\nmovss   xmm3, cs:dword_180145744                                       ; +0x2c, 0x1800cb82c\nxorps   xmm0, xmm0                                                     ; +0x34, 0x1800cb834\nminss   xmm1, xmm3                                                     ; +0x37, 0x1800cb837\ncomiss  xmm1, xmm0                                                     ; +0x3b, 0x1800cb83b\njnb     short loc_1800CB843                                            ; +0x3e, 0x1800cb83e\nxorps   xmm1, xmm1                                                     ; +0x40, 0x1800cb840\nminss   xmm2, xmm3                                                     ; +0x43, 0x1800cb843\nmovss   dword ptr [rcx+0D0h], xmm1                                     ; +0x47, 0x1800cb847\ncomiss  xmm2, xmm0                                                     ; +0x4f, 0x1800cb84f\njb      short loc_1800CB857                                            ; +0x52, 0x1800cb852\nmovaps  xmm0, xmm2                                                     ; +0x54, 0x1800cb854\nmov     rax, [rcx]                                                     ; +0x57, 0x1800cb857\nxor     r9d, r9d                                                       ; +0x5a, 0x1800cb85a\nmovss   xmm2, dword ptr [rcx+0C4h]                                     ; +0x5d, 0x1800cb85d\nmovss   xmm1, dword ptr [rcx+0C0h]                                     ; +0x65, 0x1800cb865\nmovss   dword ptr [rcx+0D4h], xmm0                                     ; +0x6d, 0x1800cb86d\njmp     qword ptr [rax+198h]                                           ; +0x75, 0x1800cb875\nmov     eax, 1Dh                                                       ; +0x7c, 0x1800cb87c\nretn                                                                   ; +0x81, 0x1800cb881", "xrefs": ["<???> @ 0x18016c820"], "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"}