//
// SupportLayer::onLinks from 0x7dc000 to 0x7dcb70 (2928 bytes)
//
// 3 xrefs:
// > ??> @ 0x2bd10
// > SupportLayer::customSetup @ 0x7dd368
// > ??> @ 0x1229430
//
// 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 SupportLayer::onLinks(SupportLayer *a1, cocos2d::CCObject *a2)
{
std::string v3; // x22
cocos2d::CCObject *v4; // x0
void *v5; // x0
void *v6; // x0
cocos2d::CCObject *v7; // x0
void *v8; // x0
void *v9; // x0
cocos2d::CCObject *v10; // x0
void *v11; // x0
void *v12; // x0
cocos2d::CCObject *v13; // x0
void *v14; // x0
void *v15; // x0
cocos2d::CCObject *v16; // x0
void *v17; // x0
void *v18; // x0
cocos2d::CCObject *v19; // x0
void *v20; // x0
void *v21; // x0
cocos2d::CCObject *v22; // x0
void *v23; // x0
void *v24; // x0
cocos2d::CCObject *v25; // x0
void *v26; // x0
void *v27; // x0
cocos2d::CCObject *v28; // x0
void *v29; // x0
void *v30; // x0
cocos2d::CCObject *v31; // x0
void *v32; // x0
void *v33; // x0
cocos2d::CCArray *v34; // x2
cocos2d::CCNode *v35; // x20
void *v36; // x0
unsigned int *v37; // x1
int v38; // w2
unsigned int *v39; // x1
int v40; // w2
unsigned int *v41; // x1
int v42; // w2
unsigned int *v43; // x1
int v44; // w2
unsigned int *v45; // x1
int v46; // w2
unsigned int *v47; // x1
int v48; // w2
unsigned int *v49; // x1
int v50; // w2
unsigned int *v51; // x1
int v52; // w2
unsigned int *v53; // x1
int v54; // w2
unsigned int *v55; // x1
int v56; // w2
unsigned int *v57; // x1
int v58; // w2
unsigned int *v59; // x1
int v60; // w2
unsigned int *v61; // x1
int v62; // w2
unsigned int *v63; // x1
int v64; // w2
unsigned int *v65; // x1
int v66; // w2
unsigned int *v67; // x1
int v68; // w2
unsigned int *v69; // x1
int v70; // w2
unsigned int *v71; // x1
int v72; // w2
unsigned int *v73; // x1
int v74; // w2
unsigned int *v75; // x1
int v76; // w3
unsigned int *v77; // x1
int v78; // w2
__int64 v79; // [xsp+78h] [xbp+78h] BYREF
__int64 v80; // [xsp+80h] [xbp+80h] BYREF
v3.m_data.m_data = (stl::StringData::Internal *)cocos2d::CCArray::create(_stack_chk_guard);
sub_D153B8((int)&v79, "FAQ");
sub_D153B8((int)&v80, "https://www.boomlings.com/FAQ");
v4 = (cocos2d::CCObject *)CCURLObject::create((__int64)&v79, (__int64)&v80);
cocos2d::CCArray::addObject((cocos2d::CCArray *)v3.m_data.m_data, v4);
v5 = (void *)(v80 - 24);
if ( (__int64 *)(v80 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v37 = (unsigned int *)(v80 - 8);
do
v38 = __ldaxr(v37);
while ( __stlxr(v38 - 1, v37) );
}
else
{
v38 = *(_DWORD *)(v80 - 8);
*(_DWORD *)(v80 - 8) = v38 - 1;
}
if ( v38 <= 0 )
operator delete(v5);
}
v6 = (void *)(v79 - 24);
if ( (__int64 *)(v79 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v39 = (unsigned int *)(v79 - 8);
do
v40 = __ldaxr(v39);
while ( __stlxr(v40 - 1, v39) );
}
else
{
v40 = *(_DWORD *)(v79 - 8);
*(_DWORD *)(v79 - 8) = v40 - 1;
}
if ( v40 <= 0 )
operator delete(v6);
}
sub_D153B8((int)&v79, "Editor Guide");
sub_D153B8((int)&v80, "https://www.boomlings.com/GDEditor");
v7 = (cocos2d::CCObject *)CCURLObject::create((__int64)&v79, (__int64)&v80);
cocos2d::CCArray::addObject((cocos2d::CCArray *)v3.m_data.m_data, v7);
v8 = (void *)(v80 - 24);
if ( (__int64 *)(v80 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v41 = (unsigned int *)(v80 - 8);
do
v42 = __ldaxr(v41);
while ( __stlxr(v42 - 1, v41) );
}
else
{
v42 = *(_DWORD *)(v80 - 8);
*(_DWORD *)(v80 - 8) = v42 - 1;
}
if ( v42 <= 0 )
operator delete(v8);
}
v9 = (void *)(v79 - 24);
if ( (__int64 *)(v79 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v43 = (unsigned int *)(v79 - 8);
do
v44 = __ldaxr(v43);
while ( __stlxr(v44 - 1, v43) );
}
else
{
v44 = *(_DWORD *)(v79 - 8);
*(_DWORD *)(v79 - 8) = v44 - 1;
}
if ( v44 <= 0 )
operator delete(v9);
}
sub_D153B8((int)&v79, "Rating System");
sub_D153B8((int)&v80, "https://www.boomlings.com/GDRating");
v10 = (cocos2d::CCObject *)CCURLObject::create((__int64)&v79, (__int64)&v80);
cocos2d::CCArray::addObject((cocos2d::CCArray *)v3.m_data.m_data, v10);
v11 = (void *)(v80 - 24);
if ( (__int64 *)(v80 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v45 = (unsigned int *)(v80 - 8);
do
v46 = __ldaxr(v45);
while ( __stlxr(v46 - 1, v45) );
}
else
{
v46 = *(_DWORD *)(v80 - 8);
*(_DWORD *)(v80 - 8) = v46 - 1;
}
if ( v46 <= 0 )
operator delete(v11);
}
v12 = (void *)(v79 - 24);
if ( (__int64 *)(v79 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v47 = (unsigned int *)(v79 - 8);
do
v48 = __ldaxr(v47);
while ( __stlxr(v48 - 1, v47) );
}
else
{
v48 = *(_DWORD *)(v79 - 8);
*(_DWORD *)(v79 - 8) = v48 - 1;
}
if ( v48 <= 0 )
operator delete(v12);
}
sub_D153B8((int)&v79, "Leaderboards");
sub_D153B8((int)&v80, "https://www.boomlings.com/GDLeaderboards");
v13 = (cocos2d::CCObject *)CCURLObject::create((__int64)&v79, (__int64)&v80);
cocos2d::CCArray::addObject((cocos2d::CCArray *)v3.m_data.m_data, v13);
v14 = (void *)(v80 - 24);
if ( (__int64 *)(v80 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v49 = (unsigned int *)(v80 - 8);
do
v50 = __ldaxr(v49);
while ( __stlxr(v50 - 1, v49) );
}
else
{
v50 = *(_DWORD *)(v80 - 8);
*(_DWORD *)(v80 - 8) = v50 - 1;
}
if ( v50 <= 0 )
operator delete(v14);
}
v15 = (void *)(v79 - 24);
if ( (__int64 *)(v79 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v51 = (unsigned int *)(v79 - 8);
do
v52 = __ldaxr(v51);
while ( __stlxr(v52 - 1, v51) );
}
else
{
v52 = *(_DWORD *)(v79 - 8);
*(_DWORD *)(v79 - 8) = v52 - 1;
}
if ( v52 <= 0 )
operator delete(v15);
}
sub_D153B8((int)&v79, "Editor Guide (Spanish)");
sub_D153B8((int)&v80, "https://www.boomlings.com/GDEditor-ES");
v16 = (cocos2d::CCObject *)CCURLObject::create((__int64)&v79, (__int64)&v80);
cocos2d::CCArray::addObject((cocos2d::CCArray *)v3.m_data.m_data, v16);
v17 = (void *)(v80 - 24);
if ( (__int64 *)(v80 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v53 = (unsigned int *)(v80 - 8);
do
v54 = __ldaxr(v53);
while ( __stlxr(v54 - 1, v53) );
}
else
{
v54 = *(_DWORD *)(v80 - 8);
*(_DWORD *)(v80 - 8) = v54 - 1;
}
if ( v54 <= 0 )
operator delete(v17);
}
v18 = (void *)(v79 - 24);
if ( (__int64 *)(v79 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v55 = (unsigned int *)(v79 - 8);
do
v56 = __ldaxr(v55);
while ( __stlxr(v56 - 1, v55) );
}
else
{
v56 = *(_DWORD *)(v79 - 8);
*(_DWORD *)(v79 - 8) = v56 - 1;
}
if ( v56 <= 0 )
operator delete(v18);
}
sub_D153B8((int)&v79, "Rating System (Spanish)");
sub_D153B8((int)&v80, "https://www.boomlings.com/GDRating-ES");
v19 = (cocos2d::CCObject *)CCURLObject::create((__int64)&v79, (__int64)&v80);
cocos2d::CCArray::addObject((cocos2d::CCArray *)v3.m_data.m_data, v19);
v20 = (void *)(v80 - 24);
if ( (__int64 *)(v80 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v57 = (unsigned int *)(v80 - 8);
do
v58 = __ldaxr(v57);
while ( __stlxr(v58 - 1, v57) );
}
else
{
v58 = *(_DWORD *)(v80 - 8);
*(_DWORD *)(v80 - 8) = v58 - 1;
}
if ( v58 <= 0 )
operator delete(v20);
}
v21 = (void *)(v79 - 24);
if ( (__int64 *)(v79 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v59 = (unsigned int *)(v79 - 8);
do
v60 = __ldaxr(v59);
while ( __stlxr(v60 - 1, v59) );
}
else
{
v60 = *(_DWORD *)(v79 - 8);
*(_DWORD *)(v79 - 8) = v60 - 1;
}
if ( v60 <= 0 )
operator delete(v21);
}
sub_D153B8((int)&v79, "Leaderboards (Spanish)");
sub_D153B8((int)&v80, "https://www.boomlings.com/GDLeaderboards-ES");
v22 = (cocos2d::CCObject *)CCURLObject::create((__int64)&v79, (__int64)&v80);
cocos2d::CCArray::addObject((cocos2d::CCArray *)v3.m_data.m_data, v22);
v23 = (void *)(v80 - 24);
if ( (__int64 *)(v80 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v61 = (unsigned int *)(v80 - 8);
do
v62 = __ldaxr(v61);
while ( __stlxr(v62 - 1, v61) );
}
else
{
v62 = *(_DWORD *)(v80 - 8);
*(_DWORD *)(v80 - 8) = v62 - 1;
}
if ( v62 <= 0 )
operator delete(v23);
}
v24 = (void *)(v79 - 24);
if ( (__int64 *)(v79 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v63 = (unsigned int *)(v79 - 8);
do
v64 = __ldaxr(v63);
while ( __stlxr(v64 - 1, v63) );
}
else
{
v64 = *(_DWORD *)(v79 - 8);
*(_DWORD *)(v79 - 8) = v64 - 1;
}
if ( v64 <= 0 )
operator delete(v24);
}
sub_D153B8((int)&v79, "Editor Guide (Russian)");
sub_D153B8((int)&v80, "https://www.boomlings.com/GDEditor-RU");
v25 = (cocos2d::CCObject *)CCURLObject::create((__int64)&v79, (__int64)&v80);
cocos2d::CCArray::addObject((cocos2d::CCArray *)v3.m_data.m_data, v25);
v26 = (void *)(v80 - 24);
if ( (__int64 *)(v80 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v65 = (unsigned int *)(v80 - 8);
do
v66 = __ldaxr(v65);
while ( __stlxr(v66 - 1, v65) );
}
else
{
v66 = *(_DWORD *)(v80 - 8);
*(_DWORD *)(v80 - 8) = v66 - 1;
}
if ( v66 <= 0 )
operator delete(v26);
}
v27 = (void *)(v79 - 24);
if ( (__int64 *)(v79 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v67 = (unsigned int *)(v79 - 8);
do
v68 = __ldaxr(v67);
while ( __stlxr(v68 - 1, v67) );
}
else
{
v68 = *(_DWORD *)(v79 - 8);
*(_DWORD *)(v79 - 8) = v68 - 1;
}
if ( v68 <= 0 )
operator delete(v27);
}
sub_D153B8((int)&v79, "Rating System (Russian)");
sub_D153B8((int)&v80, "https://www.boomlings.com/GDRating-RU");
v28 = (cocos2d::CCObject *)CCURLObject::create((__int64)&v79, (__int64)&v80);
cocos2d::CCArray::addObject((cocos2d::CCArray *)v3.m_data.m_data, v28);
v29 = (void *)(v80 - 24);
if ( (__int64 *)(v80 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v69 = (unsigned int *)(v80 - 8);
do
v70 = __ldaxr(v69);
while ( __stlxr(v70 - 1, v69) );
}
else
{
v70 = *(_DWORD *)(v80 - 8);
*(_DWORD *)(v80 - 8) = v70 - 1;
}
if ( v70 <= 0 )
operator delete(v29);
}
v30 = (void *)(v79 - 24);
if ( (__int64 *)(v79 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v71 = (unsigned int *)(v79 - 8);
do
v72 = __ldaxr(v71);
while ( __stlxr(v72 - 1, v71) );
}
else
{
v72 = *(_DWORD *)(v79 - 8);
*(_DWORD *)(v79 - 8) = v72 - 1;
}
if ( v72 <= 0 )
operator delete(v30);
}
sub_D153B8((int)&v79, "Leaderboards (Russian)");
sub_D153B8((int)&v80, "https://www.boomlings.com/GDLeaderboards-RU");
v31 = (cocos2d::CCObject *)CCURLObject::create((__int64)&v79, (__int64)&v80);
cocos2d::CCArray::addObject((cocos2d::CCArray *)v3.m_data.m_data, v31);
v32 = (void *)(v80 - 24);
if ( (__int64 *)(v80 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v73 = (unsigned int *)(v80 - 8);
do
v74 = __ldaxr(v73);
while ( __stlxr(v74 - 1, v73) );
}
else
{
v74 = *(_DWORD *)(v80 - 8);
*(_DWORD *)(v80 - 8) = v74 - 1;
}
if ( v74 <= 0 )
operator delete(v32);
}
v33 = (void *)(v79 - 24);
if ( (__int64 *)(v79 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v75 = (unsigned int *)(v79 - 8);
do
v76 = __ldaxr(v75);
while ( __stlxr(v76 - 1, v75) );
}
else
{
v76 = *(_DWORD *)(v79 - 8);
*(_DWORD *)(v79 - 8) = v76 - 1;
}
if ( v76 <= 0 )
operator delete(v33);
}
sub_D153B8((int)&v80, "Support Links");
v35 = (cocos2d::CCNode *)URLViewLayer::create((URLViewLayer *)&v80, v3, v34);
v36 = (void *)(v80 - 24);
if ( (__int64 *)(v80 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v77 = (unsigned int *)(v80 - 8);
do
v78 = __ldaxr(v77);
while ( __stlxr(v78 - 1, v77) );
}
else
{
v78 = *(_DWORD *)(v80 - 8);
*(_DWORD *)(v80 - 8) = v78 - 1;
}
if ( v78 <= 0 )
operator delete(v36);
}
a1->addChild_0(a1, v35, 100);
((void (__fastcall *)(cocos2d::CCNode *, _QWORD))v35->__vftable[1].isIgnoreAnchorPointForPosition)(v35, 0);
}