{"type": "func", "start": 6442793248, "end": 6442793354, "name": "cocos2d::CCScene::getHighestChildZ", "pseudocode": "// \n// cocos2d::CCScene::getHighestChildZ from 0x180053920 to 0x18005398a (106 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc55c\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:21:46 +0000\n// \n\n__int64 __fastcall cocos2d::CCScene::getHighestChildZ(cocos2d::CCScene *this)\n{\n  unsigned int v1; // ebx\n  cocos2d::CCArray *v2; // rsi\n  unsigned int i; // edi\n  struct cocos2d::CCString *v4; // rax\n  int v5; // eax\n\n  v1 = 0;\n  v2 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(cocos2d::CCScene *))(*(_QWORD *)this + 480LL))(this);\n  for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(v2); v1 = v5 )\n  {\n    v4 = cocos2d::CCArray::stringAtIndex(v2, i);\n    v5 = (*(__int64 (__fastcall **)(struct cocos2d::CCString *))(*(_QWORD *)v4 + 96LL))(v4);\n    if ( (int)v1 > v5 )\n      v5 = v1;\n    ++i;\n  }\n  return v1;\n}", "assembly": "; \n; cocos2d::CCScene::getHighestChildZ from 0x180053920 to 0x18005398a (106 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc55c\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:21:46 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180053920\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180053925\npush    rdi                                                            ; +0xa, 0x18005392a\nsub     rsp, 20h                                                       ; +0xb, 0x18005392b\nmov     rax, [rcx]                                                     ; +0xf, 0x18005392f\nxor     ebx, ebx                                                       ; +0x12, 0x180053932\ncall    qword ptr [rax+1E0h]                                           ; +0x14, 0x180053934\nmov     rcx, rax; this                                                 ; +0x1a, 0x18005393a\nmov     rsi, rax                                                       ; +0x1d, 0x18005393d\nmov     edi, ebx                                                       ; +0x20, 0x180053940\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x22, 0x180053942\ntest    eax, eax                                                       ; +0x27, 0x180053947\njz      short loc_180053978                                            ; +0x29, 0x180053949\nnop     dword ptr [rax+rax+00h]                                        ; +0x2b, 0x18005394b\nmov     edx, edi; unsigned int                                         ; +0x30, 0x180053950\nmov     rcx, rsi; this                                                 ; +0x32, 0x180053952\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x35, 0x180053955\nmov     rcx, rax                                                       ; +0x3a, 0x18005395a\nmov     rax, [rax]                                                     ; +0x3d, 0x18005395d\ncall    qword ptr [rax+60h]                                            ; +0x40, 0x180053960\ncmp     ebx, eax                                                       ; +0x43, 0x180053963\nmov     rcx, rsi; this                                                 ; +0x45, 0x180053965\ncmovg   eax, ebx                                                       ; +0x48, 0x180053968\ninc     edi                                                            ; +0x4b, 0x18005396b\nmov     ebx, eax                                                       ; +0x4d, 0x18005396d\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4f, 0x18005396f\ncmp     edi, eax                                                       ; +0x54, 0x180053974\njb      short loc_180053950                                            ; +0x56, 0x180053976\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x58, 0x180053978\nmov     eax, ebx                                                       ; +0x5d, 0x18005397d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5f, 0x18005397f\nadd     rsp, 20h                                                       ; +0x64, 0x180053984\npop     rdi                                                            ; +0x68, 0x180053988\nretn                                                                   ; +0x69, 0x180053989", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bc55c"], "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"}