//
// cocos2d::CCSpriteBatchNode::addSpriteWithoutQuad from 0xd89b70 to 0xd89c2c (188 bytes)
//
// 2 xrefs:
// > cocos2d::CCTMXLayer::tileAt @ 0xdac4d8
// > ??> @ 0x4edd8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:08:15 +0000
//
cocos2d::CCSpriteBatchNode *__fastcall cocos2d::CCSpriteBatchNode::addSpriteWithoutQuad(
cocos2d::CCSpriteBatchNode *this,
cocos2d::CCSprite *a2,
unsigned int a3,
int a4)
{
cocos2d::CCArray *v7; // x0
int *v8; // x1
unsigned int v9; // w2
unsigned __int64 v10; // x1
__int64 v11; // x5
int v12; // w2
unsigned __int64 i; // x5
*((_DWORD *)a2 + 90) = a3;
v7 = *((cocos2d::CCArray **)this + 43);
if ( v7 )
{
v8 = *((int **)v7 + 7);
v9 = *v8;
if ( *v8 )
{
v10 = *((_QWORD *)v8 + 2);
v11 = 8LL * v9 - 8;
v12 = 0;
for ( i = v10 + v11; i >= v10; ++v12 )
{
if ( !*(_QWORD *)v10 )
break;
if ( a3 <= *(_DWORD *)(*(_QWORD *)v10 + 360LL) )
break;
v10 += 8LL;
}
}
}
cocos2d::CCArray::insertObject(v7, a2);
cocos2d::CCNode::addChild(this, a2, a3, a4);
cocos2d::CCSpriteBatchNode::reorderBatch((__int64)this, 0);
return this;
}