{"type": "func", "start": 6443024656, "end": 6443024780, "name": "cocos2d::CCSprite::reorderChild", "pseudocode": "// \n// cocos2d::CCSprite::reorderChild from 0x18008c110 to 0x18008c18c (124 bytes)\n// \n// 7 xrefs:\n// > <???> @ 0x1800ebab8\n// > <???> @ 0x1800ebf90\n// > <???> @ 0x1800ecb10\n// > <???> @ 0x1801039c8\n// > <???> @ 0x1801069c0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b5c70\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\nvoid __fastcall cocos2d::CCSprite::reorderChild(cocos2d::CCSprite *this, struct cocos2d::CCNode *a2, unsigned int a3)\n{\n  cocos2d::CCArray::containsObject(this->m_pChildren, a2);\n  if ( a3 != ((unsigned int (__fastcall *)(struct cocos2d::CCNode *))a2->getZOrder)(a2) )\n  {\n    if ( this->m_pobBatchNode )\n    {\n      if ( !this->m_bReorderChildDirty )\n      {\n        ((void (__fastcall *)(cocos2d::CCSprite *))this->setReorderChildDirtyRecursively)(this);\n        cocos2d::CCSpriteBatchNode::reorderBatch(this->m_pobBatchNode, 1);\n      }\n    }\n    cocos2d::CCNode::reorderChild(this, a2, a3);\n  }\n}", "assembly": "; \n; cocos2d::CCSprite::reorderChild from 0x18008c110 to 0x18008c18c (124 bytes)\n; \n; 7 xrefs:\n; > <???> @ 0x1800ebab8\n; > <???> @ 0x1800ebf90\n; > <???> @ 0x1800ecb10\n; > <???> @ 0x1801039c8\n; > <???> @ 0x1801069c0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b5c70\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, 0x18008c110\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18008c115\npush    rdi                                                            ; +0xa, 0x18008c11a\nsub     rsp, 20h                                                       ; +0xb, 0x18008c11b\nmov     rbx, rcx                                                       ; +0xf, 0x18008c11f\nmov     esi, r8d                                                       ; +0x12, 0x18008c122\nmov     rcx, [rcx+0D0h]; this                                          ; +0x15, 0x18008c125\nmov     rdi, rdx                                                       ; +0x1c, 0x18008c12c\ncall    ?containsObject@CCArray@cocos2d@@QEBA_NPEAVCCObject@2@@Z; cocos2d::CCArray::containsObject(cocos2d::CCObject *) ; +0x1f, 0x18008c12f\nmov     rax, [rdi]                                                     ; +0x24, 0x18008c134\nmov     rcx, rdi                                                       ; +0x27, 0x18008c137\ncall    qword ptr [rax+60h]                                            ; +0x2a, 0x18008c13a\ncmp     esi, eax                                                       ; +0x2d, 0x18008c13d\njz      short loc_18008C17C                                            ; +0x2f, 0x18008c13f\ncmp     qword ptr [rbx+170h], 0                                        ; +0x31, 0x18008c141\njz      short loc_18008C16E                                            ; +0x39, 0x18008c149\ncmp     byte ptr [rbx+120h], 0                                         ; +0x3b, 0x18008c14b\njnz     short loc_18008C16E                                            ; +0x42, 0x18008c152\nmov     rax, [rbx]                                                     ; +0x44, 0x18008c154\nmov     rcx, rbx                                                       ; +0x47, 0x18008c157\ncall    qword ptr [rax+420h]                                           ; +0x4a, 0x18008c15a\nmov     rcx, [rbx+170h]; this                                          ; +0x50, 0x18008c160\nmov     dl, 1; bool                                                    ; +0x57, 0x18008c167\ncall    ?reorderBatch@CCSpriteBatchNode@cocos2d@@QEAAX_N@Z; cocos2d::CCSpriteBatchNode::reorderBatch(bool) ; +0x59, 0x18008c169\nmov     r8d, esi; int                                                  ; +0x5e, 0x18008c16e\nmov     rdx, rdi; struct cocos2d::CCNode *                             ; +0x61, 0x18008c171\nmov     rcx, rbx; this                                                 ; +0x64, 0x18008c174\ncall    ?reorderChild@CCNode@cocos2d@@UEAAXPEAV12@H@Z; cocos2d::CCNode::reorderChild(cocos2d::CCNode *,int) ; +0x67, 0x18008c177\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6c, 0x18008c17c\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x71, 0x18008c181\nadd     rsp, 20h                                                       ; +0x76, 0x18008c186\npop     rdi                                                            ; +0x7a, 0x18008c18a\nretn                                                                   ; +0x7b, 0x18008c18b", "xrefs": ["<???> @ 0x1800ebab8", "<???> @ 0x1800ebf90", "<???> @ 0x1800ecb10", "<???> @ 0x1801039c8", "<???> @ 0x1801069c0", "<???> @ 0x1801438a8", "<???> @ 0x1801b5c70"], "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"}