//
// cocos2d::CCTextureAtlas::updateQuad from 0x10026a230 to 0x10026a274 (68 bytes)
//
// 2 xrefs:
// > cocos2d::CCSprite::updateTransform @ 0x10023851c
// > cocos2d::CCSprite::updateColor @ 0x100239200
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::CCTextureAtlas::updateQuad(
cocos2d::CCTextureAtlas *a1,
cocos2d::ccV3F_C4B_T2F_Quad *a2,
unsigned int a3)
{
unsigned int m_uCapacity; // w8
cocos2d::ccV3F_C4B_T2F_Quad *v4; // x8
__int128 v5; // q0
__int128 v6; // q0
__int128 v7; // q1
__int128 v8; // q3
if ( a3 + 1 > a1->m_uCapacity )
m_uCapacity = a3 + 1;
else
m_uCapacity = a1->m_uCapacity;
a1->m_uCapacity = m_uCapacity;
v4 = &a1->m_pQuads[a3];
v5 = *(_OWORD *)&a2->tl.texCoords.u;
*(_OWORD *)&v4->tl.vertices.x = *(_OWORD *)&a2->tl.vertices.x;
*(_OWORD *)&v4->tl.texCoords.u = v5;
v6 = *(_OWORD *)&a2->bl.vertices.z;
v7 = *(_OWORD *)&a2->tr.vertices.x;
v8 = *(_OWORD *)&a2->br.vertices.z;
*(_OWORD *)&v4->tr.texCoords.u = *(_OWORD *)&a2->tr.texCoords.u;
*(_OWORD *)&v4->br.vertices.z = v8;
*(_OWORD *)&v4->bl.vertices.z = v6;
*(_OWORD *)&v4->tr.vertices.x = v7;
LOBYTE(a1->m_uTotalQuads) = 1;
}