//
// cocos2d::CCSpriteBatchNode::updateQuadFromSprite from 0xd89a2c to 0xd89af0 (196 bytes)
//
// 1 xrefs:
// > ??> @ 0xe8c18
//
// 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
//
__int64 __fastcall cocos2d::CCSpriteBatchNode::updateQuadFromSprite(
cocos2d::CCSpriteBatchNode *this,
cocos2d::CCSprite *a2,
unsigned int a3)
{
int v6; // w21
while ( 1 )
{
if ( (*(unsigned int (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 88LL))(*((_QWORD *)this + 41)) > a3 )
{
v6 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 88LL))(*((_QWORD *)this + 41));
if ( v6 != (*(unsigned int (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 80LL))(*((_QWORD *)this + 41)) )
break;
}
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(this);
}
(*(void (__fastcall **)(cocos2d::CCSprite *, cocos2d::CCSpriteBatchNode *))(*(_QWORD *)a2 + 1120LL))(a2, this);
*((_DWORD *)a2 + 90) = a3;
(*(void (__fastcall **)(cocos2d::CCSprite *, __int64))(*(_QWORD *)a2 + 1200LL))(a2, 1);
return (*(__int64 (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)a2 + 792LL))(a2);
}