//
// cocos2d::CCTextureAtlas::updateQuad from 0x800256 to 0x80027c (38 bytes)
//
// 2 xrefs:
// > cocos2d::CCSprite::updateColor @ 0x7f175a
// > cocos2d::CCSprite::updateTransform @ 0x7f1c5c
//
// 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:19 +0000
//
void *__fastcall cocos2d::CCTextureAtlas::updateQuad(int a1, const void *a2, int a3)
{
unsigned int v4; // r0
void *result; // r0
v4 = *(_DWORD *)(a1 + 68);
if ( v4 < a3 + 1 )
*(_DWORD *)(a1 + 68) = a3 + 1;
else
*(_DWORD *)(a1 + 68) = v4;
result = memcpy((void *)(*(_DWORD *)(a1 + 80) + 96 * a3), a2, 0x60u);
*(_BYTE *)(a1 + 64) = 1;
return result;
}