{"type": "func", "start": 6443037440, "end": 6443037564, "name": "cocos2d::CCSprite::reorderChild", "pseudocode": "// \n// cocos2d::CCSprite::reorderChild from 0x18008f300 to 0x18008f37c (124 bytes)\n// \n// 7 xrefs:\n// > <???> @ 0x1800f1bb8\n// > <???> @ 0x1800f20a0\n// > <???> @ 0x1800f2c50\n// > <???> @ 0x18010a090\n// > <???> @ 0x18010d0a8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bff40\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:07 +0000\n// \n\nvoid __fastcall cocos2d::CCSprite::reorderChild(cocos2d::CCArray **this, struct cocos2d::CCNode *a2, unsigned int a3)\n{\n  cocos2d::CCArray::containsObject(*(this + 26), a2);\n  if ( a3 != (*(unsigned int (__fastcall **)(struct cocos2d::CCNode *))(*(_QWORD *)a2 + 96LL))(a2) )\n  {\n    if ( *(this + 46) )\n    {\n      if ( !*((_BYTE *)this + 288) )\n      {\n        (*((void (__fastcall **)(cocos2d::CCArray **))*this + 134))(this);\n        cocos2d::CCSpriteBatchNode::reorderBatch(*(this + 46), 1);\n      }\n    }\n    cocos2d::CCNode::reorderChild((cocos2d::CCNode *)this, a2, a3);\n  }\n}", "assembly": "; \n; cocos2d::CCSprite::reorderChild from 0x18008f300 to 0x18008f37c (124 bytes)\n; \n; 7 xrefs:\n; > <???> @ 0x1800f1bb8\n; > <???> @ 0x1800f20a0\n; > <???> @ 0x1800f2c50\n; > <???> @ 0x18010a090\n; > <???> @ 0x18010d0a8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bff40\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:07 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18008f300\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18008f305\npush    rdi                                                            ; +0xa, 0x18008f30a\nsub     rsp, 20h                                                       ; +0xb, 0x18008f30b\nmov     rbx, rcx                                                       ; +0xf, 0x18008f30f\nmov     esi, r8d                                                       ; +0x12, 0x18008f312\nmov     rcx, [rcx+0D0h]; this                                          ; +0x15, 0x18008f315\nmov     rdi, rdx                                                       ; +0x1c, 0x18008f31c\ncall    ?containsObject@CCArray@cocos2d@@QEBA_NPEAVCCObject@2@@Z; cocos2d::CCArray::containsObject(cocos2d::CCObject *) ; +0x1f, 0x18008f31f\nmov     rax, [rdi]                                                     ; +0x24, 0x18008f324\nmov     rcx, rdi                                                       ; +0x27, 0x18008f327\ncall    qword ptr [rax+60h]                                            ; +0x2a, 0x18008f32a\ncmp     esi, eax                                                       ; +0x2d, 0x18008f32d\njz      short loc_18008F36C                                            ; +0x2f, 0x18008f32f\ncmp     qword ptr [rbx+170h], 0                                        ; +0x31, 0x18008f331\njz      short loc_18008F35E                                            ; +0x39, 0x18008f339\ncmp     byte ptr [rbx+120h], 0                                         ; +0x3b, 0x18008f33b\njnz     short loc_18008F35E                                            ; +0x42, 0x18008f342\nmov     rax, [rbx]                                                     ; +0x44, 0x18008f344\nmov     rcx, rbx                                                       ; +0x47, 0x18008f347\ncall    qword ptr [rax+430h]                                           ; +0x4a, 0x18008f34a\nmov     rcx, [rbx+170h]; this                                          ; +0x50, 0x18008f350\nmov     dl, 1; bool                                                    ; +0x57, 0x18008f357\ncall    ?reorderBatch@CCSpriteBatchNode@cocos2d@@QEAAX_N@Z; cocos2d::CCSpriteBatchNode::reorderBatch(bool) ; +0x59, 0x18008f359\nmov     r8d, esi; int                                                  ; +0x5e, 0x18008f35e\nmov     rdx, rdi; struct cocos2d::CCNode *                             ; +0x61, 0x18008f361\nmov     rcx, rbx; this                                                 ; +0x64, 0x18008f364\ncall    ?reorderChild@CCNode@cocos2d@@UEAAXPEAV12@H@Z; cocos2d::CCNode::reorderChild(cocos2d::CCNode *,int) ; +0x67, 0x18008f367\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6c, 0x18008f36c\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x71, 0x18008f371\nadd     rsp, 20h                                                       ; +0x76, 0x18008f376\npop     rdi                                                            ; +0x7a, 0x18008f37a\nretn                                                                   ; +0x7b, 0x18008f37b", "xrefs": ["<???> @ 0x1800f1bb8", "<???> @ 0x1800f20a0", "<???> @ 0x1800f2c50", "<???> @ 0x18010a090", "<???> @ 0x18010d0a8", "<???> @ 0x18014cf68", "<???> @ 0x1801bff40"], "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"}