{"type": "func", "start": 6443033776, "end": 6443033869, "name": "cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild", "pseudocode": "// \n// cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild from 0x18008e4b0 to 0x18008e50d (93 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0x18008e18d\n// > cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0x18008e208\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b5fe8\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::CCSpriteBatchNode::highestAtlasIndexInChild(\n        cocos2d::CCSpriteBatchNode *this,\n        struct cocos2d::CCSprite *a2)\n{\n  struct cocos2d::CCSprite *Object; // rbx\n  cocos2d::CCArray *i; // rdi\n\n  Object = a2;\n  for ( i = (cocos2d::CCArray *)((__int64 (__fastcall *)(struct cocos2d::CCSprite *))a2->getChildren)(a2);\n        i;\n        i = (cocos2d::CCArray *)((__int64 (__fastcall *)(struct cocos2d::CCSprite *))Object->getChildren)(Object) )\n  {\n    if ( !(unsigned int)cocos2d::CCArray::count(i) )\n      break;\n    Object = (struct cocos2d::CCSprite *)cocos2d::CCArray::lastObject(i);\n  }\n  return Object->m_uAtlasIndex;\n}", "assembly": "; \n; cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild from 0x18008e4b0 to 0x18008e50d (93 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0x18008e18d\n; > cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0x18008e208\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b5fe8\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, 0x18008e4b0\npush    rdi                                                            ; +0x5, 0x18008e4b5\nsub     rsp, 20h                                                       ; +0x6, 0x18008e4b6\nmov     rax, [rdx]                                                     ; +0xa, 0x18008e4ba\nmov     rcx, rdx                                                       ; +0xd, 0x18008e4bd\nmov     rbx, rdx                                                       ; +0x10, 0x18008e4c0\ncall    qword ptr [rax+1D0h]                                           ; +0x13, 0x18008e4c3\nmov     rdi, rax                                                       ; +0x19, 0x18008e4c9\ntest    rax, rax                                                       ; +0x1c, 0x18008e4cc\njz      short loc_18008E4FC                                            ; +0x1f, 0x18008e4cf\nmov     rcx, rdi; this                                                 ; +0x21, 0x18008e4d1\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x24, 0x18008e4d4\ntest    eax, eax                                                       ; +0x29, 0x18008e4d9\njz      short loc_18008E4FC                                            ; +0x2b, 0x18008e4db\nmov     rcx, rdi; this                                                 ; +0x2d, 0x18008e4dd\ncall    ?lastObject@CCArray@cocos2d@@QEAAPEAVCCObject@2@XZ; cocos2d::CCArray::lastObject(void) ; +0x30, 0x18008e4e0\nmov     rbx, rax                                                       ; +0x35, 0x18008e4e5\nmov     rcx, rbx                                                       ; +0x38, 0x18008e4e8\nmov     rax, [rax]                                                     ; +0x3b, 0x18008e4eb\ncall    qword ptr [rax+1D0h]                                           ; +0x3e, 0x18008e4ee\nmov     rdi, rax                                                       ; +0x44, 0x18008e4f4\ntest    rax, rax                                                       ; +0x47, 0x18008e4f7\njnz     short loc_18008E4D1                                            ; +0x4a, 0x18008e4fa\nmov     eax, [rbx+168h]                                                ; +0x4c, 0x18008e4fc\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x52, 0x18008e502\nadd     rsp, 20h                                                       ; +0x57, 0x18008e507\npop     rdi                                                            ; +0x5b, 0x18008e50b\nretn                                                                   ; +0x5c, 0x18008e50c", "xrefs": ["cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0x18008e18d", "cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0x18008e208", "<???> @ 0x1801438a8", "<???> @ 0x1801b5fe8"], "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"}