//
// cocos2d::CCSpriteBatchNode::updateQuadFromSprite from 0x7f2e2c to 0x7f2e90 (100 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall cocos2d::CCSpriteBatchNode::updateQuadFromSprite(
cocos2d::CCSpriteBatchNode *this,
cocos2d::CCSprite *a2,
unsigned int a3)
{
int v6; // r7
int v7; // r3
while ( 1 )
{
if ( a3 < (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 67) + 44))(*((_DWORD *)this + 67)) )
{
v6 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 67) + 44))(*((_DWORD *)this + 67));
if ( v6 != (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 67) + 40))(*((_DWORD *)this + 67)) )
break;
}
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(this);
}
(*(void (__fastcall **)(cocos2d::CCSprite *, cocos2d::CCSpriteBatchNode *))(*(_DWORD *)a2 + 560))(a2, this);
v7 = *(_DWORD *)a2;
*((_DWORD *)a2 + 72) = a3;
(*(void (__fastcall **)(cocos2d::CCSprite *, int))(v7 + 600))(a2, 1);
return (*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)a2 + 396))(a2);
}