{"type": "func", "start": 6442514416, "end": 6442514501, "name": "sub_18000F7F0", "pseudocode": "// \n// sub_18000F7F0 from 0x18000f7f0 to 0x18000f845 (85 bytes)\n// \n// 2 xrefs:\n// > sub_18000F1F0 @ 0x18000f484\n// > sub_18000F1F0 @ 0x18000f533\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_18000F7F0(__int64 a1, __int64 a2)\n{\n  _QWORD *v2; // r8\n  _QWORD *result; // rax\n\n  v2 = *(_QWORD **)(a2 + 16);\n  *(_QWORD *)(a2 + 16) = *v2;\n  if ( !*(_BYTE *)(*v2 + 25LL) )\n    *(_QWORD *)(*v2 + 8LL) = a2;\n  v2[1] = *(_QWORD *)(a2 + 8);\n  result = *(_QWORD **)a1;\n  if ( a2 == *(_QWORD *)(*(_QWORD *)a1 + 8LL) )\n  {\n    result[1] = v2;\n    *v2 = a2;\n    *(_QWORD *)(a2 + 8) = v2;\n  }\n  else\n  {\n    result = *(_QWORD **)(a2 + 8);\n    if ( a2 == *result )\n      *result = v2;\n    else\n      result[2] = v2;\n    *v2 = a2;\n    *(_QWORD *)(a2 + 8) = v2;\n  }\n  return result;\n}", "assembly": "; \n; sub_18000F7F0 from 0x18000f7f0 to 0x18000f845 (85 bytes)\n; \n; 2 xrefs:\n; > sub_18000F1F0 @ 0x18000f484\n; > sub_18000F1F0 @ 0x18000f533\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     r8, [rdx+10h]                                                  ; +0x0, 0x18000f7f0\nmov     rax, [r8]                                                      ; +0x4, 0x18000f7f4\nmov     [rdx+10h], rax                                                 ; +0x7, 0x18000f7f7\nmov     rax, [r8]                                                      ; +0xb, 0x18000f7fb\ncmp     byte ptr [rax+19h], 0                                          ; +0xe, 0x18000f7fe\njnz     short loc_18000F808                                            ; +0x12, 0x18000f802\nmov     [rax+8], rdx                                                   ; +0x14, 0x18000f804\nmov     rax, [rdx+8]                                                   ; +0x18, 0x18000f808\nmov     [r8+8], rax                                                    ; +0x1c, 0x18000f80c\nmov     rax, [rcx]                                                     ; +0x20, 0x18000f810\ncmp     rdx, [rax+8]                                                   ; +0x23, 0x18000f813\njnz     short loc_18000F825                                            ; +0x27, 0x18000f817\nmov     [rax+8], r8                                                    ; +0x29, 0x18000f819\nmov     [r8], rdx                                                      ; +0x2d, 0x18000f81d\nmov     [rdx+8], r8                                                    ; +0x30, 0x18000f820\nretn                                                                   ; +0x34, 0x18000f824\nmov     rax, [rdx+8]                                                   ; +0x35, 0x18000f825\ncmp     rdx, [rax]                                                     ; +0x39, 0x18000f829\njnz     short loc_18000F839                                            ; +0x3c, 0x18000f82c\nmov     [rax], r8                                                      ; +0x3e, 0x18000f82e\nmov     [r8], rdx                                                      ; +0x41, 0x18000f831\nmov     [rdx+8], r8                                                    ; +0x44, 0x18000f834\nretn                                                                   ; +0x48, 0x18000f838\nmov     [rax+10h], r8                                                  ; +0x49, 0x18000f839\nmov     [r8], rdx                                                      ; +0x4d, 0x18000f83d\nmov     [rdx+8], r8                                                    ; +0x50, 0x18000f840\nretn                                                                   ; +0x54, 0x18000f844", "xrefs": ["sub_18000F1F0 @ 0x18000f484", "sub_18000F1F0 @ 0x18000f533"], "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"}