//
// SupportLayer::sendSupportMail from 0x7ddcbc to 0x7ddf10 (596 bytes)
//
// 2 xrefs:
// > SupportLayer::FLAlert_Clicked @ 0x7ddf1c
// > ??> @ 0x50f58
//
// 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::sendSupportMail(SupportLayer *a1)
{
__int64 v1; // x22
__int64 v2; // x19
AppDelegate *v3; // x0
cocos2d::CCString *v4; // x0
char *CString; // x0
void *v6; // x0
void *v7; // x0
char *v8; // x0
unsigned int *v9; // x1
int v10; // w2
unsigned int *v11; // x1
int v12; // w2
unsigned int *v13; // x1
int v14; // w2
char *v15; // [xsp+40h] [xbp+40h] BYREF
__int64 v16; // [xsp+48h] [xbp+48h] BYREF
__int64 v17; // [xsp+50h] [xbp+50h] BYREF
GameManager::sharedState();
sub_D18D28(&v16);
v1 = v16;
GJAccountManager::sharedState();
sub_D18D28(&v17);
v2 = v17;
v3 = AppDelegate::get();
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"\n"
"\n"
"Game: %s\n"
"\n"
"UserID: %s\n"
"\n"
"Account: %s\n"
"\n"
"Platform: %i\n"
"\n"
"Version: %i - %i",
"Geometry Dash",
v1,
v2,
*((unsigned __int8 *)&v3->m_gamePaused + 1),
22,
48);
CString = (char *)cocos2d::CCString::getCString(v4);
sub_D153B8((int)&v15, CString);
v6 = (void *)(v17 - 24);
if ( (__int64 *)(v17 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v9 = (unsigned int *)(v17 - 8);
do
v10 = __ldaxr(v9);
while ( __stlxr(v10 - 1, v9) );
}
else
{
v10 = *(_DWORD *)(v17 - 8);
*(_DWORD *)(v17 - 8) = v10 - 1;
}
if ( v10 <= 0 )
operator delete(v6);
}
v7 = (void *)(v16 - 24);
if ( (__int64 *)(v16 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v11 = (unsigned int *)(v16 - 8);
do
v12 = __ldaxr(v11);
while ( __stlxr(v12 - 1, v11) );
}
else
{
v12 = *(_DWORD *)(v16 - 8);
*(_DWORD *)(v16 - 8) = v12 - 1;
}
if ( v12 <= 0 )
operator delete(v7);
}
PlatformToolbox::sendMail("Geometry Dash Support", v15, "
[email protected]");
v8 = v15 - 24;
if ( v15 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v13 = (unsigned int *)(v15 - 8);
do
v14 = __ldaxr(v13);
while ( __stlxr(v14 - 1, v13) );
}
else
{
v14 = *((_DWORD *)v15 - 2);
*((_DWORD *)v15 - 2) = v14 - 1;
}
if ( v14 <= 0 )
operator delete(v8);
}
}