//
// cocos2d::CCTextureAtlas::insertQuads from 0x1800aa3f0 to 0x1800aa4fd (269 bytes)
//
// 3 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c1fec
// > ??> @ 0x1801c1ff8
//
// 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::insertQuads(
cocos2d::CCTextureAtlas *this,
struct cocos2d::_ccV3F_C4B_T2F_Quad *a2,
unsigned int a3,
int a4)
{
unsigned int v5; // eax
unsigned int v7; // r10d
__int64 v8; // rbx
__int64 v9; // rbp
int v10; // ecx
__int64 i; // r8
__int64 v12; // rax
__int64 v13; // rdx
__int64 v14; // rcx
*((_DWORD *)this + 19) += a4;
v5 = *((_DWORD *)this + 26);
v7 = *((_DWORD *)this + 19);
v8 = a3;
if ( v5 <= v7 )
v5 = *((_DWORD *)this + 19);
*((_DWORD *)this + 26) = v5;
v9 = a3 + a4;
v10 = v7 + ~a3 - a4;
if ( v10 > 0 )
memmove((void *)(*((_QWORD *)this + 12) + 96 * v9), (const void *)(*((_QWORD *)this + 12) + 96LL * a3), 96LL * v10);
for ( i = 0; (unsigned int)v8 < (unsigned int)v9; *(_OWORD *)(v14 + v12 + 80) = *(_OWORD *)((char *)a2 + v13 + 80) )
{
v12 = *((_QWORD *)this + 12);
v13 = 96 * i;
v14 = 96 * v8;
i = (unsigned int)(i + 1);
v8 = (unsigned int)(v8 + 1);
*(_OWORD *)(v14 + v12) = *(_OWORD *)((char *)a2 + v13);
*(_OWORD *)(v14 + v12 + 16) = *(_OWORD *)((char *)a2 + v13 + 16);
*(_OWORD *)(v14 + v12 + 32) = *(_OWORD *)((char *)a2 + v13 + 32);
*(_OWORD *)(v14 + v12 + 48) = *(_OWORD *)((char *)a2 + v13 + 48);
*(_OWORD *)(v14 + v12 + 64) = *(_OWORD *)((char *)a2 + v13 + 64);
}
*((_BYTE *)this + 72) = 1;
}