//
// cocos2d::CCSpriteBatchNode::updateQuadFromSprite from 0x1800926f0 to 0x1800927ce (222 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c0474
//
// 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
//
void __fastcall cocos2d::CCSpriteBatchNode::updateQuadFromSprite(
cocos2d::CCSpriteBatchNode *this,
struct cocos2d::CCSprite *a2,
unsigned int a3)
{
__int64 v6; // rsi
int v7; // edi
unsigned int v8; // edi
__int64 v9; // rax
__int64 v10; // rdx
while ( 1 )
{
if ( a3 < (*(unsigned int (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 80LL))(*((_QWORD *)this + 41)) )
{
v6 = *((_QWORD *)this + 41);
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 72LL))(v6);
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v6 + 80LL))(v6) != v7 )
break;
}
v8 = (4 * (*(unsigned int (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 80LL))(*((_QWORD *)this + 41)) + 4)
/ 3;
if ( (*(unsigned int (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 80LL))(*((_QWORD *)this + 41)) < v8 )
cocos2d::CCTextureAtlas::resizeCapacity(*((cocos2d::CCTextureAtlas **)this + 41), v8);
}
(*(void (__fastcall **)(struct cocos2d::CCSprite *, cocos2d::CCSpriteBatchNode *))(*(_QWORD *)a2 + 968LL))(a2, this);
v9 = *(_QWORD *)a2;
LOBYTE(v10) = 1;
*((_DWORD *)a2 + 90) = a3;
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v9 + 1048))(a2, v10);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)a2 + 784LL))(a2);
}