{"type": "func", "start": 6443021296, "end": 6443021510, "name": "cocos2d::CCSprite::addChild", "pseudocode": "// \n// cocos2d::CCSprite::addChild from 0x18008b3f0 to 0x18008b4c6 (214 bytes)\n// \n// 9 xrefs:\n// > <???> @ 0x1800eba30\n// > <???> @ 0x1800ebf08\n// > <???> @ 0x1800eca88\n// > <???> @ 0x180103940\n// > <???> @ 0x180106938\n// > <???> @ 0x18013d3ec\n// > <???> @ 0x18013d3fc\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b5af0\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::addChild(\n        cocos2d::CCSprite *this,\n        struct cocos2d::CCNode *a2,\n        unsigned int a3,\n        int a4)\n{\n  struct cocos2d::CCSprite *v8; // rbx\n  __int64 v9; // rax\n  __int64 v10; // rax\n\n  if ( this->m_pobBatchNode )\n  {\n    v8 = (struct cocos2d::CCSprite *)_RTDynamicCast(\n                                       a2,\n                                       0,\n                                       &cocos2d::CCNode `RTTI Type Descriptor',\n                                       &cocos2d::CCSprite `RTTI Type Descriptor',\n                                       0);\n    v9 = ((__int64 (__fastcall *)(cocos2d::CCTextureProtocol *))v8->getTexture)(&v8->cocos2d::CCTextureProtocol);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 96LL))(v9);\n    v10 = ((__int64 (__fastcall *)(cocos2d::CCTextureAtlas *))this->m_pobTextureAtlas->getTexture)(this->m_pobTextureAtlas);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 96LL))(v10);\n    cocos2d::CCSpriteBatchNode::appendChild(this->m_pobBatchNode, v8);\n    if ( !this->m_bReorderChildDirty )\n      ((void (__fastcall *)(cocos2d::CCSprite *))this->setReorderChildDirtyRecursively)(this);\n  }\n  cocos2d::CCNode::addChild(this, a2, a3, a4);\n  this->m_bHasChildren = 1;\n}", "assembly": "; \n; cocos2d::CCSprite::addChild from 0x18008b3f0 to 0x18008b4c6 (214 bytes)\n; \n; 9 xrefs:\n; > <???> @ 0x1800eba30\n; > <???> @ 0x1800ebf08\n; > <???> @ 0x1800eca88\n; > <???> @ 0x180103940\n; > <???> @ 0x180106938\n; > <???> @ 0x18013d3ec\n; > <???> @ 0x18013d3fc\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b5af0\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_8], rbp                                               ; +0x0, 0x18008b3f0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18008b3f5\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x18008b3fa\npush    r14                                                            ; +0xf, 0x18008b3ff\nsub     rsp, 30h                                                       ; +0x11, 0x18008b401\ncmp     qword ptr [rcx+170h], 0                                        ; +0x15, 0x18008b405\nmov     ebp, r9d                                                       ; +0x1d, 0x18008b40d\nmov     r14d, r8d                                                      ; +0x20, 0x18008b410\nmov     rsi, rdx                                                       ; +0x23, 0x18008b413\nmov     rdi, rcx                                                       ; +0x26, 0x18008b416\njz      short loc_18008B498                                            ; +0x29, 0x18008b419\nlea     r9, ??_R0?AVCCSprite@cocos2d@@@8; cocos2d::CCSprite `RTTI Type Descriptor' ; +0x2b, 0x18008b41b\nmov     [rsp+38h+arg_0], rbx                                           ; +0x32, 0x18008b422\nlea     r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x37, 0x18008b427\nmov     [rsp+38h+var_18], 0                                            ; +0x3e, 0x18008b42e\nxor     edx, edx                                                       ; +0x46, 0x18008b436\nmov     rcx, rsi                                                       ; +0x48, 0x18008b438\ncall    __RTDynamicCast                                                ; +0x4b, 0x18008b43b\nmov     rbx, rax                                                       ; +0x50, 0x18008b440\nlea     rcx, [rax+158h]                                                ; +0x53, 0x18008b443\nmov     rdx, [rcx]                                                     ; +0x5a, 0x18008b44a\ncall    qword ptr [rdx+10h]                                            ; +0x5d, 0x18008b44d\nmov     rcx, rax                                                       ; +0x60, 0x18008b450\nmov     rdx, [rax]                                                     ; +0x63, 0x18008b453\ncall    qword ptr [rdx+60h]                                            ; +0x66, 0x18008b456\nmov     rcx, [rdi+160h]                                                ; +0x69, 0x18008b459\nmov     rdx, [rcx]                                                     ; +0x70, 0x18008b460\ncall    qword ptr [rdx+58h]                                            ; +0x73, 0x18008b463\nmov     rcx, rax                                                       ; +0x76, 0x18008b466\nmov     rdx, [rax]                                                     ; +0x79, 0x18008b469\ncall    qword ptr [rdx+60h]                                            ; +0x7c, 0x18008b46c\nmov     rcx, [rdi+170h]; this                                          ; +0x7f, 0x18008b46f\nmov     rdx, rbx; struct cocos2d::CCSprite *                           ; +0x86, 0x18008b476\ncall    ?appendChild@CCSpriteBatchNode@cocos2d@@QEAAXPEAVCCSprite@2@@Z; cocos2d::CCSpriteBatchNode::appendChild(cocos2d::CCSprite *) ; +0x89, 0x18008b479\ncmp     byte ptr [rdi+120h], 0                                         ; +0x8e, 0x18008b47e\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x95, 0x18008b485\njnz     short loc_18008B498                                            ; +0x9a, 0x18008b48a\nmov     rax, [rdi]                                                     ; +0x9c, 0x18008b48c\nmov     rcx, rdi                                                       ; +0x9f, 0x18008b48f\ncall    qword ptr [rax+420h]                                           ; +0xa2, 0x18008b492\nmov     r9d, ebp; int                                                  ; +0xa8, 0x18008b498\nmov     r8d, r14d; int                                                 ; +0xab, 0x18008b49b\nmov     rdx, rsi; struct cocos2d::CCNode *                             ; +0xae, 0x18008b49e\nmov     rcx, rdi; this                                                 ; +0xb1, 0x18008b4a1\ncall    ?addChild@CCNode@cocos2d@@UEAAXPEAV12@HH@Z; cocos2d::CCNode::addChild(cocos2d::CCNode *,int,int) ; +0xb4, 0x18008b4a4\nmov     rbp, [rsp+38h+arg_8]                                           ; +0xb9, 0x18008b4a9\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xbe, 0x18008b4ae\nmov     byte ptr [rdi+17Ah], 1                                         ; +0xc3, 0x18008b4b3\nmov     rdi, [rsp+38h+arg_18]                                          ; +0xca, 0x18008b4ba\nadd     rsp, 30h                                                       ; +0xcf, 0x18008b4bf\npop     r14                                                            ; +0xd3, 0x18008b4c3\nretn                                                                   ; +0xd5, 0x18008b4c5", "xrefs": ["<???> @ 0x1800eba30", "<???> @ 0x1800ebf08", "<???> @ 0x1800eca88", "<???> @ 0x180103940", "<???> @ 0x180106938", "<???> @ 0x18013d3ec", "<???> @ 0x18013d3fc", "<???> @ 0x1801438a8", "<???> @ 0x1801b5af0"], "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"}