{"type": "func", "start": 6442950016, "end": 6442950191, "name": "sub_180079D80", "pseudocode": "// \n// sub_180079D80 from 0x180079d80 to 0x180079e2f (175 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCFileUtils::CCFileUtils @ 0x180079e64\n// > cocos2d::CCFileUtils::CCFileUtils @ 0x180079e72\n// > <???> @ 0x1801b4be4\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// Hidden C++ exception states: #wind=2\n__int64 *__fastcall sub_180079D80(__int64 *a1, __int64 *a2)\n{\n  unsigned __int64 v4; // rdx\n  __int64 v5; // rdi\n  __int64 v6; // rbp\n  __int64 i; // rbx\n\n  *a1 = 0;\n  a1[1] = 0;\n  a1[2] = 0;\n  v4 = (a2[1] - *a2) >> 5;\n  if ( v4 )\n  {\n    if ( v4 > 0x7FFFFFFFFFFFFFFLL )\n      std::vector<void *>::_Xlen();\n    sub_18007A190(a1, v4);\n    v5 = *a1;\n    v6 = a2[1];\n    for ( i = *a2; i != v6; i += 32 )\n    {\n      sub_180016C80(v5, i);\n      v5 += 32;\n    }\n    a1[1] = v5;\n  }\n  return a1;\n}", "assembly": "; \n; sub_180079D80 from 0x180079d80 to 0x180079e2f (175 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCFileUtils::CCFileUtils @ 0x180079e64\n; > cocos2d::CCFileUtils::CCFileUtils @ 0x180079e72\n; > <???> @ 0x1801b4be4\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, 0x180079d80\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x180079d85\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x180079d8a\npush    rdi                                                            ; +0xf, 0x180079d8f\nsub     rsp, 40h                                                       ; +0x10, 0x180079d90\nmov     rbx, rdx                                                       ; +0x14, 0x180079d94\nmov     rsi, rcx                                                       ; +0x17, 0x180079d97\nxor     eax, eax                                                       ; +0x1a, 0x180079d9a\nmov     [rcx], rax                                                     ; +0x1c, 0x180079d9c\nmov     [rcx+8], rax                                                   ; +0x1f, 0x180079d9f\nmov     [rcx+10h], rax                                                 ; +0x23, 0x180079da3\nmov     rdx, [rdx+8]                                                   ; +0x27, 0x180079da7\nsub     rdx, [rbx]                                                     ; +0x2b, 0x180079dab\nsar     rdx, 5                                                         ; +0x2e, 0x180079dae\ntest    rdx, rdx                                                       ; +0x32, 0x180079db2\njz      short loc_180079E11                                            ; +0x35, 0x180079db5\nmov     rax, 7FFFFFFFFFFFFFFh                                          ; +0x37, 0x180079db7\ncmp     rdx, rax                                                       ; +0x41, 0x180079dc1\nja      short loc_180079E29                                            ; +0x44, 0x180079dc4\ncall    sub_18007A190                                                  ; +0x46, 0x180079dc6\nmov     [rsp+48h+arg_0], rsi                                           ; +0x4b, 0x180079dcb\nmov     rdi, [rsi]                                                     ; +0x50, 0x180079dd0\nmov     rbp, [rbx+8]                                                   ; +0x53, 0x180079dd3\nmov     rbx, [rbx]                                                     ; +0x57, 0x180079dd7\nmov     [rsp+48h+var_28], rdi                                          ; +0x5a, 0x180079dda\nmov     [rsp+48h+var_20], rdi                                          ; +0x5f, 0x180079ddf\nmov     [rsp+48h+var_18], rsi                                          ; +0x64, 0x180079de4\ncmp     rbx, rbp                                                       ; +0x69, 0x180079de9\njz      short loc_180079E0D                                            ; +0x6c, 0x180079dec\nxchg    ax, ax                                                         ; +0x6e, 0x180079dee\nmov     rdx, rbx                                                       ; +0x70, 0x180079df0\nmov     rcx, rdi                                                       ; +0x73, 0x180079df3\ncall    sub_180016C80                                                  ; +0x76, 0x180079df6\nadd     rdi, 20h ; ' '                                                 ; +0x7b, 0x180079dfb\nmov     [rsp+48h+var_20], rdi                                          ; +0x7f, 0x180079dff\nadd     rbx, 20h ; ' '                                                 ; +0x84, 0x180079e04\ncmp     rbx, rbp                                                       ; +0x88, 0x180079e08\njnz     short loc_180079DF0                                            ; +0x8b, 0x180079e0b\nmov     [rsi+8], rdi                                                   ; +0x8d, 0x180079e0d\nmov     rax, rsi                                                       ; +0x91, 0x180079e11\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x94, 0x180079e14\nmov     rbp, [rsp+48h+arg_10]                                          ; +0x99, 0x180079e19\nmov     rsi, [rsp+48h+arg_18]                                          ; +0x9e, 0x180079e1e\nadd     rsp, 40h                                                       ; +0xa3, 0x180079e23\npop     rdi                                                            ; +0xa7, 0x180079e27\nretn                                                                   ; +0xa8, 0x180079e28\ncall    ?_Xlen@?$vector@PEAXV?$allocator@PEAX@std@@@std@@IEBAXXZ_0; std::vector<void *>::_Xlen(void) ; +0xa9, 0x180079e29\ndb 0CCh                                                                ; +0xae, 0x180079e2e", "xrefs": ["cocos2d::CCFileUtils::CCFileUtils @ 0x180079e64", "cocos2d::CCFileUtils::CCFileUtils @ 0x180079e72", "<???> @ 0x1801b4be4"], "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"}