{"type": "func", "start": 6443169680, "end": 6443169715, "name": "cocos2d::CCTMXLayer::atlasIndexForNewZ", "pseudocode": "// \n// cocos2d::CCTMXLayer::atlasIndexForNewZ from 0x1800af790 to 0x1800af7b3 (35 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:19 +0000\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 0x1800af790 to 0x1800af7b3 (35 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:19 +0000\n; \nmov     r9, [rcx+1D8h]                                                 ; +0x0, 0x1800af790\nxor     eax, eax                                                       ; +0x7, 0x1800af797\nmov     r8d, [r9]                                                      ; +0x9, 0x1800af799\ntest    r8d, r8d                                                       ; +0xc, 0x1800af79c\njz      short locret_1800AF7B2                                         ; +0xf, 0x1800af79f\nmov     r9, [r9+10h]                                                   ; +0x11, 0x1800af7a1\ncmp     edx, [r9+rax*8]                                                ; +0x15, 0x1800af7a5\njl      short locret_1800AF7B2                                         ; +0x19, 0x1800af7a9\ninc     eax                                                            ; +0x1b, 0x1800af7ab\ncmp     eax, r8d                                                       ; +0x1d, 0x1800af7ad\njb      short loc_1800AF7A5                                            ; +0x20, 0x1800af7b0\nretn                                                                   ; +0x22, 0x1800af7b2", "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"}