{"type": "func", "start": 6443032064, "end": 6443032221, "name": "cocos2d::CCSpriteBatchNode::addChild", "pseudocode": "// \n// cocos2d::CCSpriteBatchNode::addChild from 0x18008de00 to 0x18008de9d (157 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1800ec430\n// > <???> @ 0x180103e30\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b5f4c\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::CCSpriteBatchNode::addChild(\n        cocos2d::CCSpriteBatchNode *this,\n        struct cocos2d::CCSprite *a2,\n        unsigned int a3,\n        int a4)\n{\n  __int64 v8; // rax\n  __int64 v9; // rax\n\n  _RTDynamicCast(a2, 0, &cocos2d::CCNode `RTTI Type Descriptor', &cocos2d::CCSprite `RTTI Type Descriptor', 0);\n  v8 = ((__int64 (__fastcall *)(cocos2d::CCTextureProtocol *))a2->getTexture)(&a2->cocos2d::CCTextureProtocol);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 96LL))(v8);\n  v9 = ((__int64 (__fastcall *)(cocos2d::CCTextureAtlas *))this->m_pobTextureAtlas->getTexture)(this->m_pobTextureAtlas);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 96LL))(v9);\n  cocos2d::CCNode::addChild(this, a2, a3, a4);\n  cocos2d::CCSpriteBatchNode::appendChild(this, a2);\n}", "assembly": "; \n; cocos2d::CCSpriteBatchNode::addChild from 0x18008de00 to 0x18008de9d (157 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1800ec430\n; > <???> @ 0x180103e30\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b5f4c\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, 0x18008de00\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x18008de05\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18008de0a\npush    rdi                                                            ; +0xf, 0x18008de0f\nsub     rsp, 30h                                                       ; +0x10, 0x18008de10\nmov     rsi, rdx                                                       ; +0x14, 0x18008de14\nmov     [rsp+38h+var_18], 0                                            ; +0x17, 0x18008de17\nmov     ebx, r9d                                                       ; +0x1f, 0x18008de1f\nmov     edi, r8d                                                       ; +0x22, 0x18008de22\nmov     rbp, rcx                                                       ; +0x25, 0x18008de25\nlea     r9, ??_R0?AVCCSprite@cocos2d@@@8; cocos2d::CCSprite `RTTI Type Descriptor' ; +0x28, 0x18008de28\nmov     rcx, rsi                                                       ; +0x2f, 0x18008de2f\nlea     r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x32, 0x18008de32\nxor     edx, edx                                                       ; +0x39, 0x18008de39\ncall    __RTDynamicCast                                                ; +0x3b, 0x18008de3b\nlea     rcx, [rsi+158h]                                                ; +0x40, 0x18008de40\nmov     rax, [rcx]                                                     ; +0x47, 0x18008de47\ncall    qword ptr [rax+10h]                                            ; +0x4a, 0x18008de4a\nmov     rcx, rax                                                       ; +0x4d, 0x18008de4d\nmov     r8, [rax]                                                      ; +0x50, 0x18008de50\ncall    qword ptr [r8+60h]                                             ; +0x53, 0x18008de53\nmov     rcx, [rbp+148h]                                                ; +0x57, 0x18008de57\nmov     rax, [rcx]                                                     ; +0x5e, 0x18008de5e\ncall    qword ptr [rax+58h]                                            ; +0x61, 0x18008de61\nmov     rcx, rax                                                       ; +0x64, 0x18008de64\nmov     rdx, [rax]                                                     ; +0x67, 0x18008de67\ncall    qword ptr [rdx+60h]                                            ; +0x6a, 0x18008de6a\nmov     r9d, ebx; int                                                  ; +0x6d, 0x18008de6d\nmov     r8d, edi; int                                                  ; +0x70, 0x18008de70\nmov     rdx, rsi; struct cocos2d::CCNode *                             ; +0x73, 0x18008de73\nmov     rcx, rbp; this                                                 ; +0x76, 0x18008de76\ncall    ?addChild@CCNode@cocos2d@@UEAAXPEAV12@HH@Z; cocos2d::CCNode::addChild(cocos2d::CCNode *,int,int) ; +0x79, 0x18008de79\nmov     rdx, rsi; struct cocos2d::CCSprite *                           ; +0x7e, 0x18008de7e\nmov     rcx, rbp; this                                                 ; +0x81, 0x18008de81\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x84, 0x18008de84\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x89, 0x18008de89\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x8e, 0x18008de8e\nadd     rsp, 30h                                                       ; +0x93, 0x18008de93\npop     rdi                                                            ; +0x97, 0x18008de97\njmp     ?appendChild@CCSpriteBatchNode@cocos2d@@QEAAXPEAVCCSprite@2@@Z; cocos2d::CCSpriteBatchNode::appendChild(cocos2d::CCSprite *) ; +0x98, 0x18008de98", "xrefs": ["<???> @ 0x1800ec430", "<???> @ 0x180103e30", "<???> @ 0x1801438a8", "<???> @ 0x1801b5f4c"], "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"}