{"type": "func", "start": 6442549984, "end": 6442550093, "name": "sub_1800182E0", "pseudocode": "// \n// sub_1800182E0 from 0x1800182e0 to 0x18001834d (109 bytes)\n// \n// 6 xrefs:\n// > sub_1800166E0 @ 0x1800167cd\n// > sub_18006CA70 @ 0x18006cac5\n// > cocos2d::CCFileUtils::fullPathForFilename @ 0x18006ebdf\n// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x1800917ea\n// > cocos2d::CCTMXMapInfo::startElement @ 0x1800afffd\n// > <???> @ 0x1801ae7d0\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_1800182E0(__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_1800182E0 from 0x1800182e0 to 0x18001834d (109 bytes)\n; \n; 6 xrefs:\n; > sub_1800166E0 @ 0x1800167cd\n; > sub_18006CA70 @ 0x18006cac5\n; > cocos2d::CCFileUtils::fullPathForFilename @ 0x18006ebdf\n; > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x1800917ea\n; > cocos2d::CCTMXMapInfo::startElement @ 0x1800afffd\n; > <???> @ 0x1801ae7d0\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, 0x1800182e0\npush    rdi                                                            ; +0x5, 0x1800182e5\nsub     rsp, 20h                                                       ; +0x6, 0x1800182e6\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0xa, 0x1800182ea\nmov     rax, r8                                                        ; +0xf, 0x1800182ef\njbe     short loc_1800182F7                                            ; +0x12, 0x1800182f2\nmov     rax, [r8]                                                      ; +0x14, 0x1800182f4\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0x17, 0x1800182f7\nmov     rcx, rdx                                                       ; +0x1c, 0x1800182fc\njbe     short loc_180018304                                            ; +0x1f, 0x1800182ff\nmov     rcx, [rdx]; Buf1                                               ; +0x21, 0x180018301\nmov     rdi, [r8+10h]                                                  ; +0x24, 0x180018304\nmov     rbx, [rdx+10h]                                                 ; +0x28, 0x180018308\nmov     rdx, rax; Buf2                                                 ; +0x2c, 0x18001830c\ncmp     rdi, rbx                                                       ; +0x2f, 0x18001830f\nmov     r8, rbx                                                        ; +0x32, 0x180018312\ncmovb   r8, rdi; Size                                                  ; +0x35, 0x180018315\ncall    memcmp                                                         ; +0x39, 0x180018319\ntest    eax, eax                                                       ; +0x3e, 0x18001831e\njnz     short loc_18001833F                                            ; +0x40, 0x180018320\ncmp     rbx, rdi                                                       ; +0x42, 0x180018322\njnb     short loc_180018337                                            ; +0x45, 0x180018325\nmov     eax, 1                                                         ; +0x47, 0x180018327\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4c, 0x18001832c\nadd     rsp, 20h                                                       ; +0x51, 0x180018331\npop     rdi                                                            ; +0x55, 0x180018335\nretn                                                                   ; +0x56, 0x180018336\nxor     eax, eax                                                       ; +0x57, 0x180018337\ncmp     rbx, rdi                                                       ; +0x59, 0x180018339\nsetnbe  al                                                             ; +0x5c, 0x18001833c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5f, 0x18001833f\nshr     eax, 1Fh                                                       ; +0x64, 0x180018344\nadd     rsp, 20h                                                       ; +0x67, 0x180018347\npop     rdi                                                            ; +0x6b, 0x18001834b\nretn                                                                   ; +0x6c, 0x18001834c", "xrefs": ["sub_1800166E0 @ 0x1800167cd", "sub_18006CA70 @ 0x18006cac5", "cocos2d::CCFileUtils::fullPathForFilename @ 0x18006ebdf", "cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x1800917ea", "cocos2d::CCTMXMapInfo::startElement @ 0x1800afffd", "<???> @ 0x1801ae7d0"], "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"}