{"type": "func", "start": 6442904352, "end": 6442904567, "name": "sub_18006EB20", "pseudocode": "// \n// sub_18006EB20 from 0x18006eb20 to 0x18006ebf7 (215 bytes)\n// \n// 7 xrefs:\n// > sub_18006ED80 @ 0x18006eda8\n// > cocos2d::CCFileUtils::fullPathForFilename @ 0x180070bcf\n// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180094c86\n// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b3a2e\n// > <???> @ 0x1801441e0\n// > <???> @ 0x1801441f0\n// > <???> @ 0x1801be314\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:55 +0000\n// \n\n__int64 __fastcall sub_18006EB20(__int64 *a1, __int64 a2, const void **a3)\n{\n  __int64 v3; // rax\n  __int64 *v6; // rbx\n  size_t v7; // rbp\n  unsigned __int64 v8; // r15\n  _QWORD *v9; // rcx\n  const void *v10; // rdx\n  size_t v11; // rsi\n  size_t v12; // r8\n  int v13; // eax\n  int v14; // eax\n\n  v3 = *a1;\n  *(_DWORD *)(a2 + 8) = 0;\n  *(_QWORD *)(a2 + 16) = v3;\n  v6 = *(__int64 **)(v3 + 8);\n  *(_QWORD *)a2 = v6;\n  if ( !*((_BYTE *)v6 + 25) )\n  {\n    v7 = (size_t)a3[2];\n    v8 = (unsigned __int64)a3[3];\n    do\n    {\n      *(_QWORD *)a2 = v6;\n      v9 = v6 + 4;\n      v10 = a3;\n      if ( v8 > 0xF )\n        v10 = *a3;\n      if ( (unsigned __int64)v6[7] > 0xF )\n        v9 = (_QWORD *)*v9;\n      v11 = v6[6];\n      v12 = v11;\n      if ( v7 < v11 )\n        v12 = v7;\n      v13 = memcmp(v9, v10, v12);\n      if ( !v13 )\n      {\n        if ( v11 >= v7 )\n          v13 = v11 > v7;\n        else\n          v13 = -1;\n      }\n      if ( v13 >= 0 )\n      {\n        *(_QWORD *)(a2 + 16) = v6;\n        v14 = 1;\n      }\n      else\n      {\n        v14 = 0;\n        v6 += 2;\n      }\n      v6 = (__int64 *)*v6;\n      *(_DWORD *)(a2 + 8) = v14;\n    }\n    while ( !*((_BYTE *)v6 + 25) );\n  }\n  return a2;\n}", "assembly": "; \n; sub_18006EB20 from 0x18006eb20 to 0x18006ebf7 (215 bytes)\n; \n; 7 xrefs:\n; > sub_18006ED80 @ 0x18006eda8\n; > cocos2d::CCFileUtils::fullPathForFilename @ 0x180070bcf\n; > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180094c86\n; > cocos2d::CCTMXMapInfo::startElement @ 0x1800b3a2e\n; > <???> @ 0x1801441e0\n; > <???> @ 0x1801441f0\n; > <???> @ 0x1801be314\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:55 +0000\n; \npush    rbx                                                            ; +0x0, 0x18006eb20\npush    rdi                                                            ; +0x2, 0x18006eb22\npush    r14                                                            ; +0x3, 0x18006eb23\nsub     rsp, 20h                                                       ; +0x5, 0x18006eb25\nmov     rax, [rcx]                                                     ; +0x9, 0x18006eb29\nmov     r14, r8                                                        ; +0xc, 0x18006eb2c\nmov     rdi, rdx                                                       ; +0xf, 0x18006eb2f\nmov     dword ptr [rdx+8], 0                                           ; +0x12, 0x18006eb32\nmov     [rdx+10h], rax                                                 ; +0x19, 0x18006eb39\nmov     rbx, [rax+8]                                                   ; +0x1d, 0x18006eb3d\nmov     [rdx], rbx                                                     ; +0x21, 0x18006eb41\ncmp     byte ptr [rbx+19h], 0                                          ; +0x24, 0x18006eb44\njnz     loc_18006EBEB                                                  ; +0x28, 0x18006eb48\nmov     [rsp+38h+arg_0], rbp                                           ; +0x2e, 0x18006eb4e\nmov     rbp, [r8+10h]                                                  ; +0x33, 0x18006eb53\nmov     [rsp+38h+arg_8], rsi                                           ; +0x37, 0x18006eb57\nmov     [rsp+38h+arg_10], r15                                          ; +0x3c, 0x18006eb5c\nmov     r15, [r8+18h]                                                  ; +0x41, 0x18006eb61\nnop     word ptr [rax+rax+00000000h]                                   ; +0x45, 0x18006eb65\nmov     [rdi], rbx                                                     ; +0x50, 0x18006eb70\nlea     rcx, [rbx+20h]                                                 ; +0x53, 0x18006eb73\nmov     rdx, r14                                                       ; +0x57, 0x18006eb77\ncmp     r15, 0Fh                                                       ; +0x5a, 0x18006eb7a\njbe     short loc_18006EB83                                            ; +0x5e, 0x18006eb7e\nmov     rdx, [r14]; Buf2                                               ; +0x60, 0x18006eb80\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0x63, 0x18006eb83\njbe     short loc_18006EB8D                                            ; +0x68, 0x18006eb88\nmov     rcx, [rcx]; Buf1                                               ; +0x6a, 0x18006eb8a\nmov     rsi, [rbx+30h]                                                 ; +0x6d, 0x18006eb8d\ncmp     rbp, rsi                                                       ; +0x71, 0x18006eb91\nmov     r8, rsi                                                        ; +0x74, 0x18006eb94\ncmovb   r8, rbp; Size                                                  ; +0x77, 0x18006eb97\ncall    memcmp                                                         ; +0x7b, 0x18006eb9b\ntest    eax, eax                                                       ; +0x80, 0x18006eba0\njnz     short loc_18006EBB8                                            ; +0x82, 0x18006eba2\ncmp     rsi, rbp                                                       ; +0x84, 0x18006eba4\njnb     short loc_18006EBB0                                            ; +0x87, 0x18006eba7\nmov     eax, 0FFFFFFFFh                                                ; +0x89, 0x18006eba9\njmp     short loc_18006EBB8                                            ; +0x8e, 0x18006ebae\nxor     eax, eax                                                       ; +0x90, 0x18006ebb0\ncmp     rsi, rbp                                                       ; +0x92, 0x18006ebb2\nsetnbe  al                                                             ; +0x95, 0x18006ebb5\nshr     eax, 1Fh                                                       ; +0x98, 0x18006ebb8\ntest    al, al                                                         ; +0x9b, 0x18006ebbb\njz      short loc_18006EBC7                                            ; +0x9d, 0x18006ebbd\nxor     eax, eax                                                       ; +0x9f, 0x18006ebbf\nadd     rbx, 10h                                                       ; +0xa1, 0x18006ebc1\njmp     short loc_18006EBD0                                            ; +0xa5, 0x18006ebc5\nmov     [rdi+10h], rbx                                                 ; +0xa7, 0x18006ebc7\nmov     eax, 1                                                         ; +0xab, 0x18006ebcb\nmov     rbx, [rbx]                                                     ; +0xb0, 0x18006ebd0\nmov     [rdi+8], eax                                                   ; +0xb3, 0x18006ebd3\ncmp     byte ptr [rbx+19h], 0                                          ; +0xb6, 0x18006ebd6\njz      short loc_18006EB70                                            ; +0xba, 0x18006ebda\nmov     r15, [rsp+38h+arg_10]                                          ; +0xbc, 0x18006ebdc\nmov     rsi, [rsp+38h+arg_8]                                           ; +0xc1, 0x18006ebe1\nmov     rbp, [rsp+38h+arg_0]                                           ; +0xc6, 0x18006ebe6\nmov     rax, rdi                                                       ; +0xcb, 0x18006ebeb\nadd     rsp, 20h                                                       ; +0xce, 0x18006ebee\npop     r14                                                            ; +0xd2, 0x18006ebf2\npop     rdi                                                            ; +0xd4, 0x18006ebf4\npop     rbx                                                            ; +0xd5, 0x18006ebf5\nretn                                                                   ; +0xd6, 0x18006ebf6", "xrefs": ["sub_18006ED80 @ 0x18006eda8", "cocos2d::CCFileUtils::fullPathForFilename @ 0x180070bcf", "cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180094c86", "cocos2d::CCTMXMapInfo::startElement @ 0x1800b3a2e", "<???> @ 0x1801441e0", "<???> @ 0x1801441f0", "<???> @ 0x1801be314"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}