// // cocos2d::CCSpriteBatchNode::appendChild from 0x7f2a3c to 0x7f2b3c (256 bytes) // // 3 xrefs: // > cocos2d::CCSprite::addChild @ 0x7f1ce4 // > cocos2d::CCSpriteBatchNode::appendChild @ 0x7f2b24 // > cocos2d::CCSpriteBatchNode::addChild @ 0x7f2ece // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:01:05 +0000 // int __fastcall cocos2d::CCSpriteBatchNode::appendChild(cocos2d::CCSpriteBatchNode *this, cocos2d::CCSprite *a2) { int v4; // r7 _DWORD *v5; // r7 void *v6; // r0 int result; // r0 cocos2d::CCSprite **v8; // r7 int v9; // r8 unsigned int v10; // r4 cocos2d::CCSprite *v11; // r1 cocos2d::CCSprite *v12; // t1 _BYTE v13[96]; // [sp+4h] [bp-64h] BYREF *((_BYTE *)this + 240) = 1; (*(void (__fastcall **)(cocos2d::CCSprite *, cocos2d::CCSpriteBatchNode *))(*(_DWORD *)a2 + 560))(a2, this); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)a2 + 600))(a2, 1); if ( !*((_BYTE *)a2 + 471) ) { v4 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 67) + 40))(*((_DWORD *)this + 67)); if ( v4 == (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 67) + 44))(*((_DWORD *)this + 67)) ) cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(this); v5 = *(_DWORD **)(*((_DWORD *)this + 70) + 52); cocos2d::ccArrayAppendObjectWithResizeBatch(v5, a2); *((_DWORD *)a2 + 72) = *v5 - 1; v6 = memcpy(v13, (char *)a2 + 372, sizeof(v13)); cocos2d::CCTextureAtlas::insertQuad(*((_DWORD *)this + 67), v6); } result = (*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)a2 + 244))(a2); if ( result ) { result = (*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)a2 + 244))(a2); if ( **(_DWORD **)(result + 52) ) { v8 = *(cocos2d::CCSprite ***)(*(_DWORD *)((*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)a2 + 244))(a2) + 52) + 12); v9 = *(_DWORD *)(*(_DWORD *)((*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)a2 + 244))(a2) + 52) + 12); result = (*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)a2 + 244))(a2); v10 = v9 + 4 * (**(_DWORD **)(result + 52) + 0x3FFFFFFF); while ( (unsigned int)v8 <= v10 ) { v12 = *v8++; v11 = v12; if ( !v12 ) break; result = cocos2d::CCSpriteBatchNode::appendChild(this, v11); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source