{"type": "func", "start": 6443288768, "end": 6443289038, "name": "sub_1800CC8C0", "pseudocode": "// \n// sub_1800CC8C0 from 0x1800cc8c0 to 0x1800cc9ce (270 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18016c708\n// > <???> @ 0x1801fe694\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_1800CC8C0(float *a1, unsigned int a2)\n{\n  __int64 v4; // rbp\n  float *v5; // rdi\n  __int64 v6; // rax\n  __int64 result; // rax\n  __int64 v8; // [rsp+40h] [rbp+8h] BYREF\n\n  v4 = 3LL * (int)a2;\n  v5 = &a1[2 * a2];\n  if ( !*(_QWORD *)(*((_QWORD *)a1 + 1) + 24LL * (int)a2 + 73784) )\n    goto LABEL_11;\n  v6 = *((_QWORD *)v5 + 42);\n  if ( a1[a2 + 79] == 0.0 )\n  {\n    if ( !v6 )\n      return 0;\n    result = (*(__int64 (__fastcall **)(float *, __int64, __int64 *))(*(_QWORD *)a1 + 288LL))(a1, 4294967294LL, &v8);\n    if ( (_DWORD)result )\n      return result;\n    result = sub_180096490(*(_QWORD *)(*((_QWORD *)a1 + 1) + 8 * v4 + 73784), v8, *((_QWORD *)v5 + 42), 4);\n    if ( (_DWORD)result )\n      return result;\nLABEL_11:\n    *((_QWORD *)v5 + 42) = 0;\n    return 0;\n  }\n  if ( v6\n    || (result = (*(__int64 (__fastcall **)(float *, __int64, __int64 *))(*(_QWORD *)a1 + 288LL))(a1, 4294967294LL, &v8),\n        !(_DWORD)result)\n    && (result = sub_1800923A0(*(_QWORD *)(*((_QWORD *)a1 + 1) + 8 * v4 + 73784), v8, (_QWORD *)v5 + 42, 2, 0, nullptr),\n        !(_DWORD)result) )\n  {\n    result = sub_1800CC9D0(a1, a2);\n    if ( !(_DWORD)result )\n      return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800CC8C0 from 0x1800cc8c0 to 0x1800cc9ce (270 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18016c708\n; > <???> @ 0x1801fe694\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     [rsp+arg_8], rbx                                               ; +0x0, 0x1800cc8c0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1800cc8c5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1800cc8ca\npush    rdi                                                            ; +0xf, 0x1800cc8cf\nsub     rsp, 30h                                                       ; +0x10, 0x1800cc8d0\nmov     rax, [rcx+8]                                                   ; +0x14, 0x1800cc8d4\nmov     rbx, rcx                                                       ; +0x18, 0x1800cc8d8\nmovsxd  rsi, edx                                                       ; +0x1b, 0x1800cc8db\nlea     rbp, [rsi+rsi*2]                                               ; +0x1e, 0x1800cc8de\ncmp     qword ptr [rax+rbp*8+12038h], 0                                ; +0x22, 0x1800cc8e2\nlea     rdi, [rcx+rsi*8]                                               ; +0x2b, 0x1800cc8eb\njz      loc_1800CC9AC                                                  ; +0x2f, 0x1800cc8ef\nmov     rax, [rdi+150h]                                                ; +0x35, 0x1800cc8f5\nxorps   xmm0, xmm0                                                     ; +0x3c, 0x1800cc8fc\nucomiss xmm0, dword ptr [rcx+rsi*4+13Ch]                               ; +0x3f, 0x1800cc8ff\njz      short loc_1800CC96B                                            ; +0x47, 0x1800cc907\ntest    rax, rax                                                       ; +0x49, 0x1800cc909\njnz     short loc_1800CC95B                                            ; +0x4c, 0x1800cc90c\nmov     rax, [rcx]                                                     ; +0x4e, 0x1800cc90e\nlea     r8, [rsp+38h+arg_0]                                            ; +0x51, 0x1800cc911\nmov     edx, 0FFFFFFFEh                                                ; +0x56, 0x1800cc916\ncall    qword ptr [rax+120h]                                           ; +0x5b, 0x1800cc91b\ntest    eax, eax                                                       ; +0x61, 0x1800cc921\njnz     loc_1800CC9B9                                                  ; +0x63, 0x1800cc923\nmov     rcx, [rbx+8]                                                   ; +0x69, 0x1800cc929\nlea     r9d, [rax+2]                                                   ; +0x6d, 0x1800cc92d\nmov     rdx, [rsp+38h+arg_0]                                           ; +0x71, 0x1800cc931\nlea     r8, [rdi+150h]                                                 ; +0x76, 0x1800cc936\nmov     [rsp+38h+var_10], 0                                            ; +0x7d, 0x1800cc93d\nmov     [rsp+38h+var_18], al                                           ; +0x86, 0x1800cc946\nmov     rcx, [rcx+rbp*8+12038h]                                        ; +0x8a, 0x1800cc94a\ncall    sub_1800923A0                                                  ; +0x92, 0x1800cc952\ntest    eax, eax                                                       ; +0x97, 0x1800cc957\njnz     short loc_1800CC9B9                                            ; +0x99, 0x1800cc959\nmov     edx, esi                                                       ; +0x9b, 0x1800cc95b\nmov     rcx, rbx                                                       ; +0x9d, 0x1800cc95d\ncall    sub_1800CC9D0                                                  ; +0xa0, 0x1800cc960\ntest    eax, eax                                                       ; +0xa5, 0x1800cc965\njz      short loc_1800CC9B7                                            ; +0xa7, 0x1800cc967\njmp     short loc_1800CC9B9                                            ; +0xa9, 0x1800cc969\ntest    rax, rax                                                       ; +0xab, 0x1800cc96b\njz      short loc_1800CC9B7                                            ; +0xae, 0x1800cc96e\nmov     rax, [rcx]                                                     ; +0xb0, 0x1800cc970\nlea     r8, [rsp+38h+arg_0]                                            ; +0xb3, 0x1800cc973\nmov     edx, 0FFFFFFFEh                                                ; +0xb8, 0x1800cc978\ncall    qword ptr [rax+120h]                                           ; +0xbd, 0x1800cc97d\ntest    eax, eax                                                       ; +0xc3, 0x1800cc983\njnz     short loc_1800CC9B9                                            ; +0xc5, 0x1800cc985\nmov     rcx, [rbx+8]                                                   ; +0xc7, 0x1800cc987\nlea     r9d, [rax+4]                                                   ; +0xcb, 0x1800cc98b\nmov     r8, [rdi+150h]                                                 ; +0xcf, 0x1800cc98f\nmov     rdx, [rsp+38h+arg_0]                                           ; +0xd6, 0x1800cc996\nmov     rcx, [rcx+rbp*8+12038h]                                        ; +0xdb, 0x1800cc99b\ncall    sub_180096490                                                  ; +0xe3, 0x1800cc9a3\ntest    eax, eax                                                       ; +0xe8, 0x1800cc9a8\njnz     short loc_1800CC9B9                                            ; +0xea, 0x1800cc9aa\nmov     qword ptr [rdi+150h], 0                                        ; +0xec, 0x1800cc9ac\nxor     eax, eax                                                       ; +0xf7, 0x1800cc9b7\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xf9, 0x1800cc9b9\nmov     rbp, [rsp+38h+arg_10]                                          ; +0xfe, 0x1800cc9be\nmov     rsi, [rsp+38h+arg_18]                                          ; +0x103, 0x1800cc9c3\nadd     rsp, 30h                                                       ; +0x108, 0x1800cc9c8\npop     rdi                                                            ; +0x10c, 0x1800cc9cc\nretn                                                                   ; +0x10d, 0x1800cc9cd", "xrefs": ["<???> @ 0x18016c708", "<???> @ 0x1801fe694"], "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"}