//
// cocos2d::CCSpriteBatchNode::addSpriteWithoutQuad from 0x7f2ed2 to 0x7f2f38 (102 bytes)
//
// 1 xrefs:
// > cocos2d::CCTMXLayer::tileAt @ 0x8045cc
//
// 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:06 +0000
//
cocos2d::CCSpriteBatchNode *__fastcall cocos2d::CCSpriteBatchNode::addSpriteWithoutQuad(
cocos2d::CCSpriteBatchNode *this,
cocos2d::CCSprite *a2,
unsigned int a3,
int a4)
{
cocos2d::CCArray *v6; // r0
unsigned int *v9; // r3
unsigned int v10; // r2
int *v11; // r4
unsigned int v12; // r1
int *v13; // r1
int v14; // r3
int v15; // t1
*((_DWORD *)a2 + 72) = a3;
v6 = *((cocos2d::CCArray **)this + 70);
if ( v6 )
{
v9 = *((unsigned int **)v6 + 13);
v10 = *v9;
if ( *v9 )
{
v11 = (int *)v9[3];
v12 = v10 + 0x3FFFFFFF;
v10 = 0;
v13 = &v11[v12];
while ( v11 <= v13 )
{
v15 = *v11++;
v14 = v15;
if ( !v15 || *(_DWORD *)(v14 + 288) >= a3 )
break;
++v10;
}
}
}
else
{
v10 = 0;
}
cocos2d::CCArray::insertObject(v6, a2, v10);
cocos2d::CCNode::addChild(this, a2, a3, a4);
cocos2d::CCSpriteBatchNode::reorderBatch((int)this, 0);
return this;
}