{"type": "func", "start": 6443289728, "end": 6443289803, "name": "sub_1800CCC80", "pseudocode": "// \n// sub_1800CCC80 from 0x1800ccc80 to 0x1800ccccb (75 bytes)\n// \n// 5 xrefs:\n// > sub_1800D04F0 @ 0x1800d06a0\n// > sub_1800D04F0 @ 0x1800d0705\n// > sub_1800D7EC0 @ 0x1800d8513\n// > sub_1800D8C60 @ 0x1800d8d92\n// > sub_1800D8DD0 @ 0x1800d8fc7\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_QWORD *__fastcall sub_1800CCC80(__int64 a1, __int64 **a2, __int64 a3, unsigned int a4)\n{\n  __int64 *v4; // rax\n  _QWORD *result; // rax\n\n  v4 = *a2;\n  while ( a4 >= *((_DWORD *)v4 + 6) )\n  {\n    v4 = (__int64 *)*v4;\n    if ( v4[1] == a3 )\n    {\n      *(_DWORD *)(a1 + 24) = a4;\n      *(_QWORD *)(a1 + 8) = *(_QWORD *)(a3 + 8);\n      *(_QWORD *)a1 = a3;\n      *(_QWORD *)(a3 + 8) = a1;\n      result = *(_QWORD **)(a1 + 8);\n      *result = a1;\n      return result;\n    }\n  }\n  *(_DWORD *)(a1 + 24) = a4;\n  *(_QWORD *)(a1 + 8) = v4[1];\n  *(_QWORD *)a1 = v4;\n  v4[1] = a1;\n  result = *(_QWORD **)(a1 + 8);\n  *result = a1;\n  return result;\n}", "assembly": "; \n; sub_1800CCC80 from 0x1800ccc80 to 0x1800ccccb (75 bytes)\n; \n; 5 xrefs:\n; > sub_1800D04F0 @ 0x1800d06a0\n; > sub_1800D04F0 @ 0x1800d0705\n; > sub_1800D7EC0 @ 0x1800d8513\n; > sub_1800D8C60 @ 0x1800d8d92\n; > sub_1800D8DD0 @ 0x1800d8fc7\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, [rdx]                                                     ; +0x0, 0x1800ccc80\nmov     r10, rcx                                                       ; +0x3, 0x1800ccc83\ncmp     r9d, [rax+18h]                                                 ; +0x6, 0x1800ccc86\njb      short loc_1800CCCB0                                            ; +0xa, 0x1800ccc8a\nmov     rax, [rax]                                                     ; +0xc, 0x1800ccc8c\ncmp     [rax+8], r8                                                    ; +0xf, 0x1800ccc8f\njnz     short loc_1800CCC86                                            ; +0x13, 0x1800ccc93\nmov     [rcx+18h], r9d                                                 ; +0x15, 0x1800ccc95\nmov     rax, [r8+8]                                                    ; +0x19, 0x1800ccc99\nmov     [rcx+8], rax                                                   ; +0x1d, 0x1800ccc9d\nmov     [rcx], r8                                                      ; +0x21, 0x1800ccca1\nmov     [r8+8], r10                                                    ; +0x24, 0x1800ccca4\nmov     rax, [rcx+8]                                                   ; +0x28, 0x1800ccca8\nmov     [rax], r10                                                     ; +0x2c, 0x1800cccac\nretn                                                                   ; +0x2f, 0x1800cccaf\nmov     [rcx+18h], r9d                                                 ; +0x30, 0x1800cccb0\nmov     rcx, [rax+8]                                                   ; +0x34, 0x1800cccb4\nmov     [r10+8], rcx                                                   ; +0x38, 0x1800cccb8\nmov     [r10], rax                                                     ; +0x3c, 0x1800cccbc\nmov     [rax+8], r10                                                   ; +0x3f, 0x1800cccbf\nmov     rax, [r10+8]                                                   ; +0x43, 0x1800cccc3\nmov     [rax], r10                                                     ; +0x47, 0x1800cccc7\nretn                                                                   ; +0x4a, 0x1800cccca", "xrefs": ["sub_1800D04F0 @ 0x1800d06a0", "sub_1800D04F0 @ 0x1800d0705", "sub_1800D7EC0 @ 0x1800d8513", "sub_1800D8C60 @ 0x1800d8d92", "sub_1800D8DD0 @ 0x1800d8fc7"], "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"}