//
// MenuLayer::showGCQuestion from 0x6eaa90 to 0x6eab98 (264 bytes)
//
// 2 xrefs:
// > MenuLayer::onGameCenter @ 0x6eabe4
// > ??> @ 0xa75a8
//
// 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:51:45 +0000
//
__int64 __fastcall MenuLayer::showGCQuestion(MenuLayer *this)
{
_QWORD *v2; // x19
AppDelegate *v3; // x0
__int64 v4; // x0
__int64 v5; // x1
_QWORD v7[2]; // [xsp+20h] [xbp+20h] BYREF
void *v8; // [xsp+30h] [xbp+30h]
v8 = (void *)operator new(0x70u);
v7[1] = 99;
v7[0] = 113;
*((_BYTE *)memcpy(
v8,
"Do you want to enable\nGame Center? You can change this anytime in the options menu.",
0x63u)
+ 99) = 0;
v2 = (_QWORD *)FLAlertLayer::create(
(__int64)this + 408,
(cocos2d::CCLabelBMFont *)"Game Center",
(char *)v7,
(ButtonSprite *)"NO",
(ButtonSprite *)"YES",
300.0);
if ( (v7[0] & 1) != 0 )
operator delete(v8);
v3 = (AppDelegate *)(*(__int64 (__fastcall **)(_QWORD *, __int64))(*v2 + 72LL))(v2, 1);
v4 = AppDelegate::get(v3);
v5 = *v2;
v2[71] = *(_QWORD *)(v4 + 24);
(*(void (__fastcall **)(_QWORD *))(v5 + 1312))(v2);
return _stack_chk_guard;
}