//
// cocos2d::CCTextureAtlas::insertQuad from 0x1800aa220 to 0x1800aa2d4 (180 bytes)
//
// 5 xrefs:
// > cocos2d::CCSpriteBatchNode::appendChild @ 0x180091266
// > cocos2d::CCSpriteBatchNode::insertChild @ 0x180091ab8
// > cocos2d::CCSpriteBatchNode::insertQuadFromSprite @ 0x180091d96
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c1fe0
//
// 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:17 +0000
//
void __fastcall cocos2d::CCTextureAtlas::insertQuad(
cocos2d::CCTextureAtlas *this,
struct cocos2d::_ccV3F_C4B_T2F_Quad *a2,
unsigned int a3)
{
unsigned int v3; // eax
unsigned int v6; // r9d
__int64 v7; // rbx
__int64 v8; // rax
v3 = *((_DWORD *)this + 26);
v6 = ++*((_DWORD *)this + 19);
if ( v3 <= v6 )
v3 = *((_DWORD *)this + 19);
*((_DWORD *)this + 26) = v3;
v7 = 96LL * a3;
if ( v6 + ~a3 )
memmove(
(void *)(*((_QWORD *)this + 12) + 96LL * (a3 + 1)),
(const void *)(v7 + *((_QWORD *)this + 12)),
96LL * (v6 + ~a3));
v8 = *((_QWORD *)this + 12);
*(_OWORD *)(v8 + v7) = *(_OWORD *)a2;
*(_OWORD *)(v8 + v7 + 16) = *((_OWORD *)a2 + 1);
*(_OWORD *)(v8 + v7 + 32) = *((_OWORD *)a2 + 2);
*(_OWORD *)(v8 + v7 + 48) = *((_OWORD *)a2 + 3);
*(_OWORD *)(v8 + v7 + 64) = *((_OWORD *)a2 + 4);
*(_OWORD *)(v8 + v7 + 80) = *((_OWORD *)a2 + 5);
*((_BYTE *)this + 72) = 1;
}