//
// cocos2d::CCConfiguration::dumpInfo from 0xaaf5e8 to 0xaaf720 (312 bytes)
//
// 2 xrefs:
// > cocos2d::CCDirector::setOpenGLView @ 0xad7864
// > ??> @ 0x38640
//
// 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 cocos2d::CCConfiguration::dumpInfo(cocos2d::CCConfiguration *a1)
{
void *v2; // x0
void *v3; // x0
unsigned int *v4; // x2
int v5; // w1
unsigned int *v6; // x1
int v7; // w2
cocos2d::CCPrettyPrinter v8[2]; // [xsp+38h] [xbp+38h] BYREF
__int64 v9; // [xsp+48h] [xbp+48h]
__int64 v10; // [xsp+50h] [xbp+50h]
cocos2d::CCPrettyPrinter::CCPrettyPrinter(v8, 0);
(*(void (__fastcall **)(_QWORD, cocos2d::CCPrettyPrinter *))(**(_QWORD **)&a1[1].m_uIndexInArray + 32LL))(
*(_QWORD *)&a1[1].m_uIndexInArray,
v8);
v2 = (void *)(v10 - 24);
v8[0].__vftable = (cocos2d::CCPrettyPrinter_vtbl *)off_1200CF0;
if ( (__int64 *)(v10 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v4 = (unsigned int *)(v10 - 8);
do
v5 = __ldaxr(v4);
while ( __stlxr(v5 - 1, v4) );
}
else
{
v5 = *(_DWORD *)(v10 - 8);
*(_DWORD *)(v10 - 8) = v5 - 1;
}
if ( v5 <= 0 )
operator delete(v2);
}
v3 = (void *)(v9 - 24);
if ( (__int64 *)(v9 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v6 = (unsigned int *)(v9 - 8);
do
v7 = __ldaxr(v6);
while ( __stlxr(v7 - 1, v6) );
}
else
{
v7 = *(_DWORD *)(v9 - 8);
*(_DWORD *)(v9 - 8) = v7 - 1;
}
if ( v7 <= 0 )
operator delete(v3);
}
}