{"type": "func", "start": 6442785696, "end": 6442785802, "name": "cocos2d::CCScene::getHighestChildZ", "pseudocode": "// \n// cocos2d::CCScene::getHighestChildZ from 0x180051ba0 to 0x180051c0a (106 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b22c8\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::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 *))this->getChildren)(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 *))v4->__vftable[1].acceptVisitor)(v4);\n    if ( (int)v1 > v5 )\n      v5 = v1;\n    ++i;\n  }\n  return v1;\n}", "assembly": "; \n; cocos2d::CCScene::getHighestChildZ from 0x180051ba0 to 0x180051c0a (106 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b22c8\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, 0x180051ba0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180051ba5\npush    rdi                                                            ; +0xa, 0x180051baa\nsub     rsp, 20h                                                       ; +0xb, 0x180051bab\nmov     rax, [rcx]                                                     ; +0xf, 0x180051baf\nxor     ebx, ebx                                                       ; +0x12, 0x180051bb2\ncall    qword ptr [rax+1D0h]                                           ; +0x14, 0x180051bb4\nmov     rcx, rax; this                                                 ; +0x1a, 0x180051bba\nmov     rsi, rax                                                       ; +0x1d, 0x180051bbd\nmov     edi, ebx                                                       ; +0x20, 0x180051bc0\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x22, 0x180051bc2\ntest    eax, eax                                                       ; +0x27, 0x180051bc7\njz      short loc_180051BF8                                            ; +0x29, 0x180051bc9\nnop     dword ptr [rax+rax+00h]                                        ; +0x2b, 0x180051bcb\nmov     edx, edi; unsigned int                                         ; +0x30, 0x180051bd0\nmov     rcx, rsi; this                                                 ; +0x32, 0x180051bd2\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x35, 0x180051bd5\nmov     rcx, rax                                                       ; +0x3a, 0x180051bda\nmov     rdx, [rax]                                                     ; +0x3d, 0x180051bdd\ncall    qword ptr [rdx+60h]                                            ; +0x40, 0x180051be0\ncmp     ebx, eax                                                       ; +0x43, 0x180051be3\nmov     rcx, rsi; this                                                 ; +0x45, 0x180051be5\ncmovg   eax, ebx                                                       ; +0x48, 0x180051be8\ninc     edi                                                            ; +0x4b, 0x180051beb\nmov     ebx, eax                                                       ; +0x4d, 0x180051bed\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4f, 0x180051bef\ncmp     edi, eax                                                       ; +0x54, 0x180051bf4\njb      short loc_180051BD0                                            ; +0x56, 0x180051bf6\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x58, 0x180051bf8\nmov     eax, ebx                                                       ; +0x5d, 0x180051bfd\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5f, 0x180051bff\nadd     rsp, 20h                                                       ; +0x64, 0x180051c04\npop     rdi                                                            ; +0x68, 0x180051c08\nretn                                                                   ; +0x69, 0x180051c09", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b22c8"], "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"}