{"type": "func", "start": 6443024880, "end": 6443024970, "name": "cocos2d::CCSprite::setBatchNode", "pseudocode": "// \n// cocos2d::CCSprite::setBatchNode from 0x18008c1f0 to 0x18008c24a (90 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x1800ebc38\n// > <???> @ 0x1800ec110\n// > <???> @ 0x1800ecc90\n// > <???> @ 0x180103b48\n// > <???> @ 0x180106b40\n// > <???> @ 0x1801438a8\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::setBatchNode(cocos2d::CCSprite *this, struct cocos2d::CCSpriteBatchNode *a2)\n{\n  cocos2d::CCSprite_vtbl *v2; // rax\n\n  this->m_pobBatchNode = a2;\n  if ( a2 )\n  {\n    this->m_transformToBatch = cocos2d::CCAffineTransformIdentity;\n    this->m_pobTextureAtlas = a2->m_pobTextureAtlas;\n  }\n  else\n  {\n    v2 = this->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    this->m_uAtlasIndex = -1;\n    this->m_pobTextureAtlas = nullptr;\n    this->m_bRecursiveDirty = 0;\n    ((void (*)(void))v2->setDirty)();\n  }\n}", "assembly": "; \n; cocos2d::CCSprite::setBatchNode from 0x18008c1f0 to 0x18008c24a (90 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x1800ebc38\n; > <???> @ 0x1800ec110\n; > <???> @ 0x1800ecc90\n; > <???> @ 0x180103b48\n; > <???> @ 0x180106b40\n; > <???> @ 0x1801438a8\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     [rcx+170h], rdx                                                ; +0x0, 0x18008c1f0\ntest    rdx, rdx                                                       ; +0x7, 0x18008c1f7\njnz     short loc_18008C21D                                            ; +0xa, 0x18008c1fa\nmov     rax, [rcx]                                                     ; +0xc, 0x18008c1fc\nmov     dword ptr [rcx+168h], 0FFFFFFFFh                               ; +0xf, 0x18008c1ff\nmov     [rcx+160h], rdx                                                ; +0x19, 0x18008c209\nmov     [rcx+179h], dl                                                 ; +0x20, 0x18008c210\njmp     qword ptr [rax+408h]                                           ; +0x26, 0x18008c216\nmovups  xmm0, xmmword ptr cs:?CCAffineTransformIdentity@cocos2d@@3UCCAffineTransform@1@B; cocos2d::CCAffineTransform const cocos2d::CCAffineTransformIdentity ; +0x2d, 0x18008c21d\nmovups  xmmword ptr [rcx+17Ch], xmm0                                   ; +0x34, 0x18008c224\nmovsd   xmm0, qword ptr cs:?CCAffineTransformIdentity@cocos2d@@3UCCAffineTransform@1@B+10h; cocos2d::CCAffineTransform const cocos2d::CCAffineTransformIdentity ; +0x3b, 0x18008c22b\nmovsd   qword ptr [rcx+18Ch], xmm0                                     ; +0x43, 0x18008c233\nmov     rax, [rdx+148h]                                                ; +0x4b, 0x18008c23b\nmov     [rcx+160h], rax                                                ; +0x52, 0x18008c242\nretn                                                                   ; +0x59, 0x18008c249", "xrefs": ["<???> @ 0x1800ebc38", "<???> @ 0x1800ec110", "<???> @ 0x1800ecc90", "<???> @ 0x180103b48", "<???> @ 0x180106b40", "<???> @ 0x1801438a8"], "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"}