//
// CreatorLayer::onOnlyFullVersion from 0x6cbb2c to 0x6cbddc (688 bytes)
//
// 1 xrefs:
// > ??> @ 0x72228
//
// 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 CreatorLayer::onOnlyFullVersion(CreatorLayer *a1, cocos2d::CCObject *a2)
{
DialogObject *v4; // x0
DialogLayer *v5; // x22
void *v6; // x0
void *v7; // x0
void *v8; // x0
unsigned int *v9; // x1
int v10; // w2
unsigned int *v11; // x1
int v12; // w2
unsigned int *v13; // x1
int v14; // w2
__int64 v15; // [xsp+50h] [xbp+50h] BYREF
__int64 v16; // [xsp+58h] [xbp+58h] BYREF
__int64 v17; // [xsp+60h] [xbp+60h] BYREF
cocos2d::_ccColor3B v18; // 0:w5.3
sub_D153B8((int)&v15, "That is only available in the full version of Geometry Dash.");
if ( a2->getTag(a2) == 2 )
sub_D1798C(&v15, "That is only available in the full version of Geometry Dash 2.2.", 80);
sub_D153B8((int)&v16, "The Keymaster");
sub_D18D28(&v17, &v15);
v4 = (DialogObject *)DialogObject::create(
(DialogObject *)&v16,
(std::string)&v17,
(std::string)2LL,
0,
1.0,
(bool)&unk_FFFFFF,
v18);
v5 = DialogLayer::create(v4, (int)&dword_0 + 2);
v6 = (void *)(v17 - 24);
if ( (__int64 *)(v17 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v11 = (unsigned int *)(v17 - 8);
do
v12 = __ldaxr(v11);
while ( __stlxr(v12 - 1, v11) );
}
else
{
v12 = *(_DWORD *)(v17 - 8);
*(_DWORD *)(v17 - 8) = v12 - 1;
}
if ( v12 <= 0 )
operator delete(v6);
}
v7 = (void *)(v16 - 24);
if ( (__int64 *)(v16 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v13 = (unsigned int *)(v16 - 8);
do
v14 = __ldaxr(v13);
while ( __stlxr(v14 - 1, v13) );
}
else
{
v14 = *(_DWORD *)(v16 - 8);
*(_DWORD *)(v16 - 8) = v14 - 1;
}
if ( v14 <= 0 )
operator delete(v7);
}
a1->addChild_0(a1, v5, 100);
DialogLayer::updateChatPlacement(v5, Center);
DialogLayer::animateInRandomSide(v5);
v8 = (void *)(v15 - 24);
if ( (__int64 *)(v15 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v9 = (unsigned int *)(v15 - 8);
do
v10 = __ldaxr(v9);
while ( __stlxr(v10 - 1, v9) );
}
else
{
v10 = *(_DWORD *)(v15 - 8);
*(_DWORD *)(v15 - 8) = v10 - 1;
}
if ( v10 <= 0 )
operator delete(v8);
}
}