{"type": "func", "start": 6442549072, "end": 6442549181, "name": "sub_180017F50", "pseudocode": "// \n// sub_180017F50 from 0x180017f50 to 0x180017fbd (109 bytes)\n// \n// 6 xrefs:\n// > sub_1800162A0 @ 0x18001637b\n// > sub_18006ED80 @ 0x18006edd5\n// > cocos2d::CCFileUtils::fullPathForFilename @ 0x180070beb\n// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180094cb0\n// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b3a5e\n// > <???> @ 0x1801b883c\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:25 +0000\n// \n\n__int64 __fastcall sub_180017F50(__int64 a1, const void **a2, const void **a3)\n{\n  const void *v3; // rax\n  const void *v4; // rcx\n  size_t v5; // rdi\n  size_t v6; // rbx\n  size_t v7; // r8\n  unsigned int v8; // eax\n\n  v3 = a3;\n  if ( (unsigned __int64)a3[3] > 0xF )\n    v3 = *a3;\n  v4 = a2;\n  if ( (unsigned __int64)a2[3] > 0xF )\n    v4 = *a2;\n  v5 = (size_t)a3[2];\n  v6 = (size_t)a2[2];\n  v7 = v6;\n  if ( v5 < v6 )\n    v7 = v5;\n  v8 = memcmp(v4, v3, v7);\n  if ( !v8 )\n  {\n    if ( v6 < v5 )\n      return 1;\n    v8 = v6 > v5;\n  }\n  return v8 >> 31;\n}", "assembly": "; \n; sub_180017F50 from 0x180017f50 to 0x180017fbd (109 bytes)\n; \n; 6 xrefs:\n; > sub_1800162A0 @ 0x18001637b\n; > sub_18006ED80 @ 0x18006edd5\n; > cocos2d::CCFileUtils::fullPathForFilename @ 0x180070beb\n; > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180094cb0\n; > cocos2d::CCTMXMapInfo::startElement @ 0x1800b3a5e\n; > <???> @ 0x1801b883c\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:25 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180017f50\npush    rdi                                                            ; +0x5, 0x180017f55\nsub     rsp, 20h                                                       ; +0x6, 0x180017f56\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0xa, 0x180017f5a\nmov     rax, r8                                                        ; +0xf, 0x180017f5f\njbe     short loc_180017F67                                            ; +0x12, 0x180017f62\nmov     rax, [r8]                                                      ; +0x14, 0x180017f64\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0x17, 0x180017f67\nmov     rcx, rdx                                                       ; +0x1c, 0x180017f6c\njbe     short loc_180017F74                                            ; +0x1f, 0x180017f6f\nmov     rcx, [rdx]; Buf1                                               ; +0x21, 0x180017f71\nmov     rdi, [r8+10h]                                                  ; +0x24, 0x180017f74\nmov     rbx, [rdx+10h]                                                 ; +0x28, 0x180017f78\nmov     rdx, rax; Buf2                                                 ; +0x2c, 0x180017f7c\ncmp     rdi, rbx                                                       ; +0x2f, 0x180017f7f\nmov     r8, rbx                                                        ; +0x32, 0x180017f82\ncmovb   r8, rdi; Size                                                  ; +0x35, 0x180017f85\ncall    memcmp                                                         ; +0x39, 0x180017f89\ntest    eax, eax                                                       ; +0x3e, 0x180017f8e\njnz     short loc_180017FAF                                            ; +0x40, 0x180017f90\ncmp     rbx, rdi                                                       ; +0x42, 0x180017f92\njnb     short loc_180017FA7                                            ; +0x45, 0x180017f95\nmov     eax, 1                                                         ; +0x47, 0x180017f97\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4c, 0x180017f9c\nadd     rsp, 20h                                                       ; +0x51, 0x180017fa1\npop     rdi                                                            ; +0x55, 0x180017fa5\nretn                                                                   ; +0x56, 0x180017fa6\nxor     eax, eax                                                       ; +0x57, 0x180017fa7\ncmp     rbx, rdi                                                       ; +0x59, 0x180017fa9\nsetnbe  al                                                             ; +0x5c, 0x180017fac\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5f, 0x180017faf\nshr     eax, 1Fh                                                       ; +0x64, 0x180017fb4\nadd     rsp, 20h                                                       ; +0x67, 0x180017fb7\npop     rdi                                                            ; +0x6b, 0x180017fbb\nretn                                                                   ; +0x6c, 0x180017fbc", "xrefs": ["sub_1800162A0 @ 0x18001637b", "sub_18006ED80 @ 0x18006edd5", "cocos2d::CCFileUtils::fullPathForFilename @ 0x180070beb", "cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180094cb0", "cocos2d::CCTMXMapInfo::startElement @ 0x1800b3a5e", "<???> @ 0x1801b883c"], "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"}