{"type": "func", "start": 6442895184, "end": 6442895365, "name": "sub_18006C750", "pseudocode": "// \n// sub_18006C750 from 0x18006c750 to 0x18006c805 (181 bytes)\n// \n// 8 xrefs:\n// > sub_18006CA70 @ 0x18006ca98\n// > cocos2d::CCFileUtils::fullPathForFilename @ 0x18006ebc3\n// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x1800917c0\n// > cocos2d::CCTMXMapInfo::startElement @ 0x1800affd0\n// > <???> @ 0x18013ae5c\n// > <???> @ 0x18013ae6c\n// > <???> @ 0x18013ae88\n// > <???> @ 0x1801b3f90\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_18006C750(__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  const void *v9; // rdx\n  const void *v10; // rcx\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 = a3;\n      if ( v8 > 0xF )\n        v9 = *a3;\n      v10 = v6 + 4;\n      if ( (unsigned __int64)v6[7] > 0xF )\n        v10 = (const void *)v6[4];\n      v11 = v6[6];\n      v12 = v11;\n      if ( v7 < v11 )\n        v12 = v7;\n      v13 = memcmp(v10, v9, v12);\n      if ( v13 )\n      {\n        if ( v13 < 0 )\n          goto LABEL_15;\n      }\n      else if ( v11 < v7 )\n      {\nLABEL_15:\n        v6 = (__int64 *)v6[2];\n        v14 = 0;\n        goto LABEL_12;\n      }\n      *(_QWORD *)(a2 + 16) = v6;\n      v14 = 1;\n      v6 = (__int64 *)*v6;\nLABEL_12:\n      *(_DWORD *)(a2 + 8) = v14;\n    }\n    while ( !*((_BYTE *)v6 + 25) );\n  }\n  return a2;\n}", "assembly": "; \n; sub_18006C750 from 0x18006c750 to 0x18006c805 (181 bytes)\n; \n; 8 xrefs:\n; > sub_18006CA70 @ 0x18006ca98\n; > cocos2d::CCFileUtils::fullPathForFilename @ 0x18006ebc3\n; > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x1800917c0\n; > cocos2d::CCTMXMapInfo::startElement @ 0x1800affd0\n; > <???> @ 0x18013ae5c\n; > <???> @ 0x18013ae6c\n; > <???> @ 0x18013ae88\n; > <???> @ 0x1801b3f90\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\npush    rbx                                                            ; +0x0, 0x18006c750\npush    rdi                                                            ; +0x2, 0x18006c752\npush    r14                                                            ; +0x3, 0x18006c753\nsub     rsp, 20h                                                       ; +0x5, 0x18006c755\nmov     rax, [rcx]                                                     ; +0x9, 0x18006c759\nmov     r14, r8                                                        ; +0xc, 0x18006c75c\nmov     rdi, rdx                                                       ; +0xf, 0x18006c75f\nmov     dword ptr [rdx+8], 0                                           ; +0x12, 0x18006c762\nmov     [rdx+10h], rax                                                 ; +0x19, 0x18006c769\nmov     rbx, [rax+8]                                                   ; +0x1d, 0x18006c76d\nmov     [rdx], rbx                                                     ; +0x21, 0x18006c771\ncmp     byte ptr [rbx+19h], 0                                          ; +0x24, 0x18006c774\njnz     short loc_18006C7EC                                            ; +0x28, 0x18006c778\nmov     [rsp+38h+arg_0], rbp                                           ; +0x2a, 0x18006c77a\nmov     rbp, [r8+10h]                                                  ; +0x2f, 0x18006c77f\nmov     [rsp+38h+arg_8], rsi                                           ; +0x33, 0x18006c783\nmov     [rsp+38h+arg_10], r15                                          ; +0x38, 0x18006c788\nmov     r15, [r8+18h]                                                  ; +0x3d, 0x18006c78d\nmov     [rdi], rbx                                                     ; +0x41, 0x18006c791\nmov     rdx, r14                                                       ; +0x44, 0x18006c794\ncmp     r15, 0Fh                                                       ; +0x47, 0x18006c797\njbe     short loc_18006C7A0                                            ; +0x4b, 0x18006c79b\nmov     rdx, [r14]; Buf2                                               ; +0x4d, 0x18006c79d\ncmp     qword ptr [rbx+38h], 0Fh                                       ; +0x50, 0x18006c7a0\nlea     rcx, [rbx+20h]                                                 ; +0x55, 0x18006c7a5\njbe     short loc_18006C7AF                                            ; +0x59, 0x18006c7a9\nmov     rcx, [rbx+20h]; Buf1                                           ; +0x5b, 0x18006c7ab\nmov     rsi, [rbx+30h]                                                 ; +0x5f, 0x18006c7af\ncmp     rbp, rsi                                                       ; +0x63, 0x18006c7b3\nmov     r8, rsi                                                        ; +0x66, 0x18006c7b6\ncmovb   r8, rbp; Size                                                  ; +0x69, 0x18006c7b9\ncall    memcmp                                                         ; +0x6d, 0x18006c7bd\ntest    eax, eax                                                       ; +0x72, 0x18006c7c2\njz      short loc_18006C7F8                                            ; +0x74, 0x18006c7c4\njs      short loc_18006C7FD                                            ; +0x76, 0x18006c7c6\nmov     [rdi+10h], rbx                                                 ; +0x78, 0x18006c7c8\nmov     eax, 1                                                         ; +0x7c, 0x18006c7cc\nmov     rbx, [rbx]                                                     ; +0x81, 0x18006c7d1\nmov     [rdi+8], eax                                                   ; +0x84, 0x18006c7d4\ncmp     byte ptr [rbx+19h], 0                                          ; +0x87, 0x18006c7d7\njz      short loc_18006C791                                            ; +0x8b, 0x18006c7db\nmov     r15, [rsp+38h+arg_10]                                          ; +0x8d, 0x18006c7dd\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x92, 0x18006c7e2\nmov     rbp, [rsp+38h+arg_0]                                           ; +0x97, 0x18006c7e7\nmov     rax, rdi                                                       ; +0x9c, 0x18006c7ec\nadd     rsp, 20h                                                       ; +0x9f, 0x18006c7ef\npop     r14                                                            ; +0xa3, 0x18006c7f3\npop     rdi                                                            ; +0xa5, 0x18006c7f5\npop     rbx                                                            ; +0xa6, 0x18006c7f6\nretn                                                                   ; +0xa7, 0x18006c7f7\ncmp     rsi, rbp                                                       ; +0xa8, 0x18006c7f8\njnb     short loc_18006C7C8                                            ; +0xab, 0x18006c7fb\nmov     rbx, [rbx+10h]                                                 ; +0xad, 0x18006c7fd\nxor     eax, eax                                                       ; +0xb1, 0x18006c801\njmp     short loc_18006C7D4                                            ; +0xb3, 0x18006c803", "xrefs": ["sub_18006CA70 @ 0x18006ca98", "cocos2d::CCFileUtils::fullPathForFilename @ 0x18006ebc3", "cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x1800917c0", "cocos2d::CCTMXMapInfo::startElement @ 0x1800affd0", "<???> @ 0x18013ae5c", "<???> @ 0x18013ae6c", "<???> @ 0x18013ae88", "<???> @ 0x1801b3f90"], "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"}