//
// SupportLayer::onEmail from 0x9012c4 to 0x9013ec (296 bytes)
//
// 3 xrefs:
// > ??> @ 0x4e418
// > SupportLayer::customSetup @ 0x9027a0
// > ??> @ 0x15419c8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:57:06 +0000
//
__int64 __fastcall SupportLayer::onEmail(SupportLayer *this, cocos2d::CCObject *a2)
{
__int64 v4; // x20
_QWORD v5[2]; // [xsp+20h] [xbp+20h] BYREF
void *v6; // [xsp+30h] [xbp+30h]
if ( (unsigned __int8)GameToolbox::doWeHaveInternet(_stack_chk_guard) )
{
v6 = (void *)operator new(0x50u);
v5[0] = 81;
v5[1] = 69;
strcpy((char *)v6, "Do you want to send an email to RobTop Games support?");
v4 = FLAlertLayer::create(
(__int64)this + 608,
(cocos2d::CCLabelBMFont *)"Send Email",
(char *)v5,
(ButtonSprite *)"Cancel",
(ButtonSprite *)"Email",
300.0);
if ( (v5[0] & 1) != 0 )
operator delete(v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
}
return _stack_chk_guard;
}