//
// cocos2d::CCSpriteBatchNode::addSpriteWithoutQuad from 0x1800910c0 to 0x180091168 (168 bytes)
//
// 3 xrefs:
// > cocos2d::CCTMXLayer::tileAt @ 0x1800b0e3c
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c0228
//
// This function is hookable on this platform (idp: pc, 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 11:22:08 +0000
//
struct cocos2d::CCSpriteBatchNode *__fastcall cocos2d::CCSpriteBatchNode::addSpriteWithoutQuad(
cocos2d::CCSpriteBatchNode *this,
struct cocos2d::CCSprite *a2,
unsigned int a3,
int a4)
{
int v6; // r8d
__int64 v7; // r10
unsigned int *v10; // rax
__int64 v11; // r9
unsigned __int64 v12; // rax
unsigned __int64 i; // r9
*((_DWORD *)a2 + 90) = a3;
v6 = 0;
v7 = *((_QWORD *)this + 43);
if ( v7 )
{
v10 = *(unsigned int **)(v7 + 56);
v11 = *v10;
if ( (_DWORD)v11 )
{
v12 = *((_QWORD *)v10 + 2);
for ( i = v12 + 8 * (v11 - 1); v12 <= i; v12 += 8LL )
{
if ( !*(_QWORD *)v12 )
break;
if ( *(_DWORD *)(*(_QWORD *)v12 + 360LL) >= a3 )
break;
++v6;
}
}
}
cocos2d::CCArray::insertObject(*((cocos2d::CCArray **)this + 43), a2);
cocos2d::CCNode::addChild(this, a2, a3, a4);
*((_BYTE *)this + 288) = 0;
return this;
}