{"type": "func", "start": 6443155360, "end": 6443155395, "name": "cocos2d::CCTMXLayer::atlasIndexForNewZ", "pseudocode": "// \n// cocos2d::CCTMXLayer::atlasIndexForNewZ from 0x1800abfa0 to 0x1800abfc3 (35 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1801438a8\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 cocos2d::CCTMXLayer::atlasIndexForNewZ(cocos2d::CCTMXLayer *this, int a2)\n{\n  __int64 v2; // r9\n  __int64 result; // rax\n  unsigned int v4; // r8d\n  __int64 v5; // r9\n\n  v2 = *((_QWORD *)this + 59);\n  result = 0;\n  v4 = *(_DWORD *)v2;\n  if ( *(_DWORD *)v2 )\n  {\n    v5 = *(_QWORD *)(v2 + 16);\n    do\n    {\n      if ( a2 < *(_DWORD *)(v5 + 8 * result) )\n        break;\n      result = (unsigned int)(result + 1);\n    }\n    while ( (unsigned int)result < v4 );\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCTMXLayer::atlasIndexForNewZ from 0x1800abfa0 to 0x1800abfc3 (35 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1801438a8\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     r9, [rcx+1D8h]                                                 ; +0x0, 0x1800abfa0\nxor     eax, eax                                                       ; +0x7, 0x1800abfa7\nmov     r8d, [r9]                                                      ; +0x9, 0x1800abfa9\ntest    r8d, r8d                                                       ; +0xc, 0x1800abfac\njz      short locret_1800ABFC2                                         ; +0xf, 0x1800abfaf\nmov     r9, [r9+10h]                                                   ; +0x11, 0x1800abfb1\ncmp     edx, [r9+rax*8]                                                ; +0x15, 0x1800abfb5\njl      short locret_1800ABFC2                                         ; +0x19, 0x1800abfb9\ninc     eax                                                            ; +0x1b, 0x1800abfbb\ncmp     eax, r8d                                                       ; +0x1d, 0x1800abfbd\njb      short loc_1800ABFB5                                            ; +0x20, 0x1800abfc0\nretn                                                                   ; +0x22, 0x1800abfc2", "xrefs": ["<???> @ 0x1801438a8"], "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"}