{"type": "func", "start": 6442949344, "end": 6442949508, "name": "sub_180079AE0", "pseudocode": "// \n// sub_180079AE0 from 0x180079ae0 to 0x180079b84 (164 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCFileUtils::CCFileUtils @ 0x180079ec5\n// > cocos2d::CCFileUtils::operator= @ 0x18007a093\n// > <???> @ 0x1801b4b9c\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_180079AE0(_QWORD *a1, _QWORD *a2)\n{\n  _QWORD *v4; // r8\n  __int64 **v5; // rdx\n  __int64 *i; // rcx\n  __int64 v7; // rcx\n  __int64 result; // rax\n\n  *(_QWORD *)(*a1 + 8LL) = sub_180079B90(a1, *(_QWORD *)(*a2 + 8LL), *a1);\n  v4 = (_QWORD *)*a1;\n  a1[1] = a2[1];\n  v5 = (__int64 **)v4[1];\n  if ( *((_BYTE *)v5 + 25) )\n  {\n    *v4 = v4;\n    result = *a1;\n    *(_QWORD *)(*a1 + 16LL) = *a1;\n  }\n  else\n  {\n    for ( i = *v5; !*((_BYTE *)i + 25); i = (__int64 *)*i )\n      v5 = (__int64 **)i;\n    *v4 = v5;\n    v7 = *(_QWORD *)(*a1 + 8LL);\n    for ( result = *(_QWORD *)(v7 + 16); !*(_BYTE *)(result + 25); result = *(_QWORD *)(result + 16) )\n      v7 = result;\n    *(_QWORD *)(*a1 + 16LL) = v7;\n  }\n  return result;\n}", "assembly": "; \n; sub_180079AE0 from 0x180079ae0 to 0x180079b84 (164 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCFileUtils::CCFileUtils @ 0x180079ec5\n; > cocos2d::CCFileUtils::operator= @ 0x18007a093\n; > <???> @ 0x1801b4b9c\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_0], rbx                                               ; +0x0, 0x180079ae0\npush    rdi                                                            ; +0x5, 0x180079ae5\nsub     rsp, 20h                                                       ; +0x6, 0x180079ae6\nmov     r8, [rcx]                                                      ; +0xa, 0x180079aea\nmov     rbx, rdx                                                       ; +0xd, 0x180079aed\nmov     rdx, [rdx]                                                     ; +0x10, 0x180079af0\nmov     rdi, rcx                                                       ; +0x13, 0x180079af3\nmov     rdx, [rdx+8]                                                   ; +0x16, 0x180079af6\ncall    sub_180079B90                                                  ; +0x1a, 0x180079afa\nmov     r8, [rdi]                                                      ; +0x1f, 0x180079aff\nmov     [r8+8], rax                                                    ; +0x22, 0x180079b02\nmov     r8, [rdi]                                                      ; +0x26, 0x180079b06\nmov     rax, [rbx+8]                                                   ; +0x29, 0x180079b09\nmov     [rdi+8], rax                                                   ; +0x2d, 0x180079b0d\nmov     rdx, [r8+8]                                                    ; +0x31, 0x180079b11\ncmp     byte ptr [rdx+19h], 0                                          ; +0x35, 0x180079b15\njnz     short loc_180079B6F                                            ; +0x39, 0x180079b19\nmov     rcx, [rdx]                                                     ; +0x3b, 0x180079b1b\ncmp     byte ptr [rcx+19h], 0                                          ; +0x3e, 0x180079b1e\njnz     short loc_180079B3F                                            ; +0x42, 0x180079b22\nnop     dword ptr [rax+00h]                                            ; +0x44, 0x180079b24\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x48, 0x180079b28\nmov     rax, [rcx]                                                     ; +0x50, 0x180079b30\nmov     rdx, rcx                                                       ; +0x53, 0x180079b33\nmov     rcx, rax                                                       ; +0x56, 0x180079b36\ncmp     byte ptr [rax+19h], 0                                          ; +0x59, 0x180079b39\njz      short loc_180079B30                                            ; +0x5d, 0x180079b3d\nmov     [r8], rdx                                                      ; +0x5f, 0x180079b3f\nmov     rdx, [rdi]                                                     ; +0x62, 0x180079b42\nmov     rcx, [rdx+8]                                                   ; +0x65, 0x180079b45\nmov     rax, [rcx+10h]                                                 ; +0x69, 0x180079b49\ncmp     byte ptr [rax+19h], 0                                          ; +0x6d, 0x180079b4d\njnz     short loc_180079B60                                            ; +0x71, 0x180079b51\nmov     rcx, rax                                                       ; +0x73, 0x180079b53\nmov     rax, [rax+10h]                                                 ; +0x76, 0x180079b56\ncmp     byte ptr [rax+19h], 0                                          ; +0x7a, 0x180079b5a\njz      short loc_180079B53                                            ; +0x7e, 0x180079b5e\nmov     [rdx+10h], rcx                                                 ; +0x80, 0x180079b60\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x84, 0x180079b64\nadd     rsp, 20h                                                       ; +0x89, 0x180079b69\npop     rdi                                                            ; +0x8d, 0x180079b6d\nretn                                                                   ; +0x8e, 0x180079b6e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x8f, 0x180079b6f\nmov     [r8], r8                                                       ; +0x94, 0x180079b74\nmov     rax, [rdi]                                                     ; +0x97, 0x180079b77\nmov     [rax+10h], rax                                                 ; +0x9a, 0x180079b7a\nadd     rsp, 20h                                                       ; +0x9e, 0x180079b7e\npop     rdi                                                            ; +0xa2, 0x180079b82\nretn                                                                   ; +0xa3, 0x180079b83", "xrefs": ["cocos2d::CCFileUtils::CCFileUtils @ 0x180079ec5", "cocos2d::CCFileUtils::operator= @ 0x18007a093", "<???> @ 0x1801b4b9c"], "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"}