//
// GJGarageLayer::FLAlert_Clicked from 0x1402784a0 to 0x1402786fd (605 bytes)
//
// 2 xrefs:
// > ??> @ 0x140569e10
// > ??> @ 0x1406d0ff8
//
// 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
//
// Hidden C++ exception states: #wind=9
void GJGarageLayer::FLAlert_Clicked(GJGarageLayer *a1, FLAlertLayer *a2, bool a3)
{
__int64 v5; // rdx
cocos2d::CCCamera **p_m_pCamera; // rax
unsigned int *p_m_uID; // rdi
__int64 v8; // rcx
__int64 v9; // rbx
__int64 v10; // rax
__int64 v11; // rdx
cocos2d::CCCamera **v12; // rax
unsigned int *v13; // rdi
__int64 v14; // rcx
__int64 v15; // rbx
__int64 v16; // rax
__int64 v17; // rdx
cocos2d::CCCamera **v18; // rax
unsigned int *v19; // rdi
__int64 v20; // rcx
__int64 v21; // rax
__int64 v22; // rdx
cocos2d::CCCamera **v23; // rax
unsigned int *v24; // rdi
__int64 v25; // rcx
__int64 v26; // rax
void *v27; // [rsp+20h] [rbp-18h]
void *v28; // [rsp+20h] [rbp-18h]
void *v29; // [rsp+20h] [rbp-18h]
void *v30; // [rsp+20h] [rbp-18h]
if ( a3 )
{
if ( a2->getTag(a2) == 1 )
{
p_m_pCamera = &a1[-1].m_pCamera;
p_m_uID = &a1->m_uID;
v8 = 0;
if ( !p_m_pCamera )
p_m_uID = nullptr;
v9 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v27 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v27);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v9 = qword_1406C2ED8;
}
*(_QWORD *)(v9 + 928) = p_m_uID;
v10 = cocos2d::CCApplication::sharedApplication(v8, v5);
(*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v10 + 88LL))(
v10,
"https://store.steampowered.com/recommended/recommendgame/322170");
*(_BYTE *)(v9 + 676) = 1;
*(_BYTE *)(v9 + 1004) = 1;
}
else
{
if ( a2->getTag(a2) == 2 )
{
v12 = &a1[-1].m_pCamera;
v13 = &a1->m_uID;
v14 = 0;
if ( !v12 )
v13 = nullptr;
v15 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v28 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v28);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v15 = qword_1406C2ED8;
}
*(_QWORD *)(v15 + 928) = v13;
v16 = cocos2d::CCApplication::sharedApplication(v14, v11);
(*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v16 + 88LL))(
v16,
"https://www.facebook.com/geometrydash");
*(_BYTE *)(v15 + 677) = 1;
}
else if ( a2->getTag(a2) == 3 )
{
v18 = &a1[-1].m_pCamera;
v19 = &a1->m_uID;
v20 = 0;
if ( !v18 )
v19 = nullptr;
v15 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v29 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v29);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v15 = qword_1406C2ED8;
}
*(_QWORD *)(v15 + 928) = v19;
v21 = cocos2d::CCApplication::sharedApplication(v20, v17);
(*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v21 + 88LL))(v21, "https://twitter.com/robtopgames");
*(_BYTE *)(v15 + 678) = 1;
}
else
{
if ( a2->getTag(a2) != 4 )
return;
v23 = &a1[-1].m_pCamera;
v24 = &a1->m_uID;
v25 = 0;
if ( !v23 )
v24 = nullptr;
v15 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v30 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v30);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v15 = qword_1406C2ED8;
}
*(_QWORD *)(v15 + 928) = v24;
v26 = cocos2d::CCApplication::sharedApplication(v25, v22);
(*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v26 + 88LL))(
v26,
"https://www.youtube.com/user/RobTopGames");
*(_BYTE *)(v15 + 679) = 1;
}
*(double *)(v15 + 688) = sub_14003CF30();
}
}
}