//
// cocos2d::CCTextureAtlas::updateQuad from 0x100307fb8 to 0x100307ffc (68 bytes)
//
// 2 xrefs:
// > cocos2d::CCSprite::updateTransform @ 0x1002d4f2c
// > cocos2d::CCSprite::updateColor @ 0x1002d5c10
//
// 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 11:03:09 +0000
//
__n128 __fastcall cocos2d::CCTextureAtlas::updateQuad(__int64 a1, __int64 a2, unsigned int a3)
{
unsigned int v3; // w8
__int64 v4; // x8
__int128 v5; // q0
__n128 result; // q0
__int128 v7; // q1
__int128 v8; // q3
if ( a3 + 1 > *(_DWORD *)(a1 + 80) )
v3 = a3 + 1;
else
v3 = *(_DWORD *)(a1 + 80);
*(_DWORD *)(a1 + 80) = v3;
v4 = *(_QWORD *)(a1 + 96) + 96LL * a3;
v5 = *(_OWORD *)(a2 + 16);
*(_OWORD *)v4 = *(_OWORD *)a2;
*(_OWORD *)(v4 + 16) = v5;
result = *(__n128 *)(a2 + 32);
v7 = *(_OWORD *)(a2 + 48);
v8 = *(_OWORD *)(a2 + 80);
*(_OWORD *)(v4 + 64) = *(_OWORD *)(a2 + 64);
*(_OWORD *)(v4 + 80) = v8;
*(__n128 *)(v4 + 32) = result;
*(_OWORD *)(v4 + 48) = v7;
*(_BYTE *)(a1 + 76) = 1;
return result;
}