{"type": "func", "start": 6443131024, "end": 6443131132, "name": "cocos2d::unzStringFileNameCompare", "pseudocode": "// \n// cocos2d::unzStringFileNameCompare from 0x1800a6090 to 0x1800a60fc (108 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x18014cf68\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:22:15 +0000\n// \n\nint __fastcall cocos2d::unzStringFileNameCompare(cocos2d *this, const char *a2, const char *a3)\n{\n  int v3; // eax\n  const char *v4; // r9\n  char v5; // al\n  char v6; // r10\n  char v7; // r8\n\n  v3 = 2;\n  v4 = a2;\n  if ( (_DWORD)a3 )\n    v3 = (int)a3;\n  if ( v3 == 1 )\n    return strcmp((const char *)this, a2);\n  while ( 1 )\n  {\n    v5 = v4[this - (cocos2d *)a2];\n    v6 = *v4++;\n    if ( v5 >= 97 && v5 <= 122 )\n      v5 -= 32;\n    v7 = v6 - 32;\n    if ( (unsigned __int8)(v6 - 97) > 0x19u )\n      v7 = v6;\n    if ( !v5 )\n      break;\n    if ( !v7 )\n      return 1;\n    if ( v5 < v7 )\n      return -1;\n    if ( v5 > v7 )\n      return 1;\n  }\n  return -(v7 != 0);\n}", "assembly": "; \n; cocos2d::unzStringFileNameCompare from 0x1800a6090 to 0x1800a60fc (108 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x18014cf68\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:22:15 +0000\n; \ntest    r8d, r8d                                                       ; +0x0, 0x1800a6090\nmov     eax, 2                                                         ; +0x3, 0x1800a6093\nmov     r9, rdx                                                        ; +0x8, 0x1800a6098\nmov     r11, rcx                                                       ; +0xb, 0x1800a609b\ncmovnz  eax, r8d                                                       ; +0xe, 0x1800a609e\ncmp     eax, 1                                                         ; +0x12, 0x1800a60a2\njz      strcmp                                                         ; +0x15, 0x1800a60a5\nsub     r11, rdx                                                       ; +0x1b, 0x1800a60ab\nxchg    ax, ax                                                         ; +0x1e, 0x1800a60ae\nmovzx   eax, byte ptr [r11+r9]                                         ; +0x20, 0x1800a60b0\nmovzx   r10d, byte ptr [r9]                                            ; +0x25, 0x1800a60b5\nlea     r9, [r9+1]                                                     ; +0x29, 0x1800a60b9\ncmp     al, 61h ; 'a'                                                  ; +0x2d, 0x1800a60bd\njl      short loc_1800A60C7                                            ; +0x2f, 0x1800a60bf\ncmp     al, 7Ah ; 'z'                                                  ; +0x31, 0x1800a60c1\njg      short loc_1800A60C7                                            ; +0x33, 0x1800a60c3\nsub     al, 20h ; ' '                                                  ; +0x35, 0x1800a60c5\nlea     edx, [r10-61h]                                                 ; +0x37, 0x1800a60c7\ncmp     dl, 19h                                                        ; +0x3b, 0x1800a60cb\nlea     ecx, [r10-20h]                                                 ; +0x3e, 0x1800a60ce\nmovzx   r8d, cl                                                        ; +0x42, 0x1800a60d2\ncmova   r8d, r10d                                                      ; +0x46, 0x1800a60d6\ntest    al, al                                                         ; +0x4a, 0x1800a60da\njz      short loc_1800A60F6                                            ; +0x4c, 0x1800a60dc\ntest    r8b, r8b                                                       ; +0x4e, 0x1800a60de\njz      short loc_1800A60EA                                            ; +0x51, 0x1800a60e1\ncmp     al, r8b                                                        ; +0x53, 0x1800a60e3\njl      short loc_1800A60F0                                            ; +0x56, 0x1800a60e6\njle     short loc_1800A60B0                                            ; +0x58, 0x1800a60e8\nmov     eax, 1                                                         ; +0x5a, 0x1800a60ea\nretn                                                                   ; +0x5f, 0x1800a60ef\nmov     eax, 0FFFFFFFFh                                                ; +0x60, 0x1800a60f0\nretn                                                                   ; +0x65, 0x1800a60f5\nneg     r8b                                                            ; +0x66, 0x1800a60f6\nsbb     eax, eax                                                       ; +0x69, 0x1800a60f9\nretn                                                                   ; +0x6b, 0x1800a60fb", "xrefs": ["<???> @ 0x18014cf68"], "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"}