{"type": "func", "start": 6443046624, "end": 6443046717, "name": "cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild", "pseudocode": "// \n// cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild from 0x1800916e0 to 0x18009173d (93 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0x1800913b0\n// > cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0x18009142b\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c02a0\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:08 +0000\n// \n\n__int64 __fastcall cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild(\n        cocos2d::CCSpriteBatchNode *this,\n        struct cocos2d::CCSprite *a2)\n{\n  struct cocos2d::CCObject *Object; // rbx\n  cocos2d::CCArray *i; // rdi\n\n  Object = a2;\n  for ( i = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)a2 + 480LL))(a2);\n        i;\n        i = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)Object + 480LL))(Object) )\n  {\n    if ( !(unsigned int)cocos2d::CCArray::count(i) )\n      break;\n    Object = cocos2d::CCArray::lastObject(i);\n  }\n  return *((unsigned int *)Object + 90);\n}", "assembly": "; \n; cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild from 0x1800916e0 to 0x18009173d (93 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0x1800913b0\n; > cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0x18009142b\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c02a0\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:08 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800916e0\npush    rdi                                                            ; +0x5, 0x1800916e5\nsub     rsp, 20h                                                       ; +0x6, 0x1800916e6\nmov     rax, [rdx]                                                     ; +0xa, 0x1800916ea\nmov     rcx, rdx                                                       ; +0xd, 0x1800916ed\nmov     rbx, rdx                                                       ; +0x10, 0x1800916f0\ncall    qword ptr [rax+1E0h]                                           ; +0x13, 0x1800916f3\nmov     rdi, rax                                                       ; +0x19, 0x1800916f9\ntest    rax, rax                                                       ; +0x1c, 0x1800916fc\njz      short loc_18009172C                                            ; +0x1f, 0x1800916ff\nmov     rcx, rdi; this                                                 ; +0x21, 0x180091701\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x24, 0x180091704\ntest    eax, eax                                                       ; +0x29, 0x180091709\njz      short loc_18009172C                                            ; +0x2b, 0x18009170b\nmov     rcx, rdi; this                                                 ; +0x2d, 0x18009170d\ncall    ?lastObject@CCArray@cocos2d@@QEAAPEAVCCObject@2@XZ; cocos2d::CCArray::lastObject(void) ; +0x30, 0x180091710\nmov     rbx, rax                                                       ; +0x35, 0x180091715\nmov     rcx, rbx                                                       ; +0x38, 0x180091718\nmov     rax, [rax]                                                     ; +0x3b, 0x18009171b\ncall    qword ptr [rax+1E0h]                                           ; +0x3e, 0x18009171e\nmov     rdi, rax                                                       ; +0x44, 0x180091724\ntest    rax, rax                                                       ; +0x47, 0x180091727\njnz     short loc_180091701                                            ; +0x4a, 0x18009172a\nmov     eax, [rbx+168h]                                                ; +0x4c, 0x18009172c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x52, 0x180091732\nadd     rsp, 20h                                                       ; +0x57, 0x180091737\npop     rdi                                                            ; +0x5b, 0x18009173b\nretn                                                                   ; +0x5c, 0x18009173c", "xrefs": ["cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0x1800913b0", "cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0x18009142b", "<???> @ 0x18014cf68", "<???> @ 0x1801c02a0"], "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"}