{"type": "func", "start": 6443287504, "end": 6443287848, "name": "sub_1800CC3D0", "pseudocode": "// \n// sub_1800CC3D0 from 0x1800cc3d0 to 0x1800cc528 (344 bytes)\n// \n// 4 xrefs:\n// > sub_1800CAC90 @ 0x1800cae47\n// > sub_1800CC3D0 @ 0x1800cc4b9\n// > sub_1800CC6C0 @ 0x1800cc6c0\n// > <???> @ 0x1801fe628\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:54:07 +0000\n// \n\n__int64 __fastcall sub_1800CC3D0(__int64 a1, __int64 a2, __int64 a3, __int64 a4)\n{\n  float v5; // xmm1_4\n  float v6; // xmm0_4\n  __int64 v7; // rax\n  float v8; // xmm0_4\n  float v9; // xmm1_4\n  float *v10; // rbp\n  float **v11; // rsi\n  int v12; // ebx\n  __int64 result; // rax\n  _QWORD *v14; // rbx\n  __int64 *v15; // rbx\n  __int64 v16; // rcx\n\n  if ( (*(_BYTE *)(a1 + 72) & 2) != 0 )\n  {\n    v5 = 0.0;\n    v6 = 0.0;\n  }\n  else\n  {\n    v7 = *(_QWORD *)(a1 + 32);\n    if ( v7 )\n    {\n      v8 = *(float *)(v7 + 492) * *(float *)(a1 + 88);\n      v9 = *(float *)(v7 + 488);\n    }\n    else\n    {\n      v9 = 1.0;\n      v8 = *(float *)(a1 + 88);\n    }\n    v6 = v8 + *(float *)(a1 + 92);\n    v5 = v9 * *(float *)(a1 + 48);\n  }\n  if ( v6 == *(float *)(a1 + 492) && v5 == *(float *)(a1 + 488) )\n    return 0;\n  *(float *)(a1 + 488) = v5;\n  v10 = (float *)(a1 + 316);\n  *(float *)(a1 + 492) = v6;\n  v11 = (float **)(a1 + 336);\n  v12 = 0;\n  while ( 1 )\n  {\n    if ( *v11 )\n    {\n      LOBYTE(a4) = 1;\n      result = sub_18005A4F0(*v11, *(float *)(*(_QWORD *)(a1 + 32) + 492LL) * *v10, 64, a4, 0);\n      if ( (_DWORD)result )\n        return result;\n    }\n    ++v12;\n    ++v11;\n    ++v10;\n    if ( v12 >= 4 )\n    {\n      v14 = *(_QWORD **)(a1 + 400);\n      if ( v14 == (_QWORD *)(a1 + 400) )\n      {\nLABEL_16:\n        v15 = *(__int64 **)(a1 + 424);\n        if ( v15 == (__int64 *)(a1 + 424) )\n        {\nLABEL_19:\n          v16 = *(_QWORD *)(a1 + 584);\n          if ( v16 )\n            *(_DWORD *)(v16 + 636) = *(_DWORD *)(a1 + 492);\n          return 0;\n        }\n        while ( 1 )\n        {\n          result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v15[2] + 512LL))(v15[2]);\n          if ( (_DWORD)result )\n            break;\n          v15 = (__int64 *)*v15;\n          if ( v15 == (__int64 *)(a1 + 424) )\n            goto LABEL_19;\n        }\n      }\n      else\n      {\n        while ( 1 )\n        {\n          result = sub_1800CC3D0(v14[2]);\n          if ( (_DWORD)result )\n            break;\n          v14 = (_QWORD *)*v14;\n          if ( v14 == (_QWORD *)(a1 + 400) )\n            goto LABEL_16;\n        }\n      }\n      return result;\n    }\n  }\n}", "assembly": "; \n; sub_1800CC3D0 from 0x1800cc3d0 to 0x1800cc528 (344 bytes)\n; \n; 4 xrefs:\n; > sub_1800CAC90 @ 0x1800cae47\n; > sub_1800CC3D0 @ 0x1800cc4b9\n; > sub_1800CC6C0 @ 0x1800cc6c0\n; > <???> @ 0x1801fe628\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:54:07 +0000\n; \npush    rdi                                                            ; +0x0, 0x1800cc3d0\nsub     rsp, 30h                                                       ; +0x2, 0x1800cc3d2\ntest    byte ptr [rcx+48h], 2                                          ; +0x6, 0x1800cc3d6\nmov     rdi, rcx                                                       ; +0xa, 0x1800cc3da\njz      short loc_1800CC3E7                                            ; +0xd, 0x1800cc3dd\nxorps   xmm1, xmm1                                                     ; +0xf, 0x1800cc3df\nxorps   xmm0, xmm0                                                     ; +0x12, 0x1800cc3e2\njmp     short loc_1800CC41E                                            ; +0x15, 0x1800cc3e5\nmov     rax, [rcx+20h]                                                 ; +0x17, 0x1800cc3e7\ntest    rax, rax                                                       ; +0x1b, 0x1800cc3eb\njz      short loc_1800CC407                                            ; +0x1e, 0x1800cc3ee\nmovss   xmm0, dword ptr [rax+1ECh]                                     ; +0x20, 0x1800cc3f0\nmulss   xmm0, dword ptr [rcx+58h]                                      ; +0x28, 0x1800cc3f8\nmovss   xmm1, dword ptr [rax+1E8h]                                     ; +0x2d, 0x1800cc3fd\njmp     short loc_1800CC414                                            ; +0x35, 0x1800cc405\nmovss   xmm1, cs:dword_180145744                                       ; +0x37, 0x1800cc407\nmovss   xmm0, dword ptr [rcx+58h]                                      ; +0x3f, 0x1800cc40f\naddss   xmm0, dword ptr [rcx+5Ch]                                      ; +0x44, 0x1800cc414\nmulss   xmm1, dword ptr [rcx+30h]                                      ; +0x49, 0x1800cc419\nucomiss xmm0, dword ptr [rcx+1ECh]                                     ; +0x4e, 0x1800cc41e\nmov     [rsp+38h+arg_0], rbx                                           ; +0x55, 0x1800cc425\nmov     [rsp+38h+arg_8], rbp                                           ; +0x5a, 0x1800cc42a\nmov     [rsp+38h+arg_10], rsi                                          ; +0x5f, 0x1800cc42f\njnz     short loc_1800CC443                                            ; +0x64, 0x1800cc434\nucomiss xmm1, dword ptr [rcx+1E8h]                                     ; +0x66, 0x1800cc436\njz      loc_1800CC511                                                  ; +0x6d, 0x1800cc43d\nmovss   dword ptr [rcx+1E8h], xmm1                                     ; +0x73, 0x1800cc443\nlea     rbp, [rcx+13Ch]                                                ; +0x7b, 0x1800cc44b\nmovss   dword ptr [rcx+1ECh], xmm0                                     ; +0x82, 0x1800cc452\nlea     rsi, [rcx+150h]                                                ; +0x8a, 0x1800cc45a\nxor     ebx, ebx                                                       ; +0x91, 0x1800cc461\nmov     rcx, [rsi]                                                     ; +0x93, 0x1800cc463\ntest    rcx, rcx                                                       ; +0x96, 0x1800cc466\njz      short loc_1800CC497                                            ; +0x99, 0x1800cc469\nmov     rax, [rdi+20h]                                                 ; +0x9b, 0x1800cc46b\nmov     r9b, 1                                                         ; +0x9f, 0x1800cc46f\nmov     r8d, 40h ; '@'                                                 ; +0xa2, 0x1800cc472\nmov     [rsp+38h+var_18], 0                                            ; +0xa8, 0x1800cc478\nmovss   xmm1, dword ptr [rax+1ECh]                                     ; +0xad, 0x1800cc47d\nmulss   xmm1, dword ptr [rbp+0]                                        ; +0xb5, 0x1800cc485\ncall    sub_18005A4F0                                                  ; +0xba, 0x1800cc48a\ntest    eax, eax                                                       ; +0xbf, 0x1800cc48f\njnz     loc_1800CC513                                                  ; +0xc1, 0x1800cc491\ninc     ebx                                                            ; +0xc7, 0x1800cc497\nadd     rsi, 8                                                         ; +0xc9, 0x1800cc499\nadd     rbp, 4                                                         ; +0xcd, 0x1800cc49d\ncmp     ebx, 4                                                         ; +0xd1, 0x1800cc4a1\njl      short loc_1800CC463                                            ; +0xd4, 0x1800cc4a4\nlea     rsi, [rdi+190h]                                                ; +0xd6, 0x1800cc4a6\nmov     rbx, [rsi]                                                     ; +0xdd, 0x1800cc4ad\ncmp     rbx, rsi                                                       ; +0xe0, 0x1800cc4b0\njz      short loc_1800CC4CA                                            ; +0xe3, 0x1800cc4b3\nmov     rcx, [rbx+10h]                                                 ; +0xe5, 0x1800cc4b5\ncall    sub_1800CC3D0                                                  ; +0xe9, 0x1800cc4b9\ntest    eax, eax                                                       ; +0xee, 0x1800cc4be\njnz     short loc_1800CC513                                            ; +0xf0, 0x1800cc4c0\nmov     rbx, [rbx]                                                     ; +0xf2, 0x1800cc4c2\ncmp     rbx, rsi                                                       ; +0xf5, 0x1800cc4c5\njnz     short loc_1800CC4B5                                            ; +0xf8, 0x1800cc4c8\nlea     rsi, [rdi+1A8h]                                                ; +0xfa, 0x1800cc4ca\nmov     rbx, [rsi]                                                     ; +0x101, 0x1800cc4d1\ncmp     rbx, rsi                                                       ; +0x104, 0x1800cc4d4\njz      short loc_1800CC4F9                                            ; +0x107, 0x1800cc4d7\nnop     dword ptr [rax+00000000h]                                      ; +0x109, 0x1800cc4d9\nmov     rcx, [rbx+10h]                                                 ; +0x110, 0x1800cc4e0\nmov     rax, [rcx]                                                     ; +0x114, 0x1800cc4e4\ncall    qword ptr [rax+200h]                                           ; +0x117, 0x1800cc4e7\ntest    eax, eax                                                       ; +0x11d, 0x1800cc4ed\njnz     short loc_1800CC513                                            ; +0x11f, 0x1800cc4ef\nmov     rbx, [rbx]                                                     ; +0x121, 0x1800cc4f1\ncmp     rbx, rsi                                                       ; +0x124, 0x1800cc4f4\njnz     short loc_1800CC4E0                                            ; +0x127, 0x1800cc4f7\nmov     rcx, [rdi+248h]                                                ; +0x129, 0x1800cc4f9\ntest    rcx, rcx                                                       ; +0x130, 0x1800cc500\njz      short loc_1800CC511                                            ; +0x133, 0x1800cc503\nmov     eax, [rdi+1ECh]                                                ; +0x135, 0x1800cc505\nmov     [rcx+27Ch], eax                                                ; +0x13b, 0x1800cc50b\nxor     eax, eax                                                       ; +0x141, 0x1800cc511\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x143, 0x1800cc513\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x148, 0x1800cc518\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x14d, 0x1800cc51d\nadd     rsp, 30h                                                       ; +0x152, 0x1800cc522\npop     rdi                                                            ; +0x156, 0x1800cc526\nretn                                                                   ; +0x157, 0x1800cc527", "xrefs": ["sub_1800CAC90 @ 0x1800cae47", "sub_1800CC3D0 @ 0x1800cc4b9", "sub_1800CC6C0 @ 0x1800cc6c0", "<???> @ 0x1801fe628"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}