//
// GJOptionsLayer::onInfo from 0xa24584 to 0xa246cc (328 bytes)
//
// 3 xrefs:
// > ??> @ 0xe6128
// > GJOptionsLayer::addToggleInternal @ 0xa350d4
// > ??> @ 0x1546ed8
//
// 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:59:41 +0000
//
__int64 __fastcall GJOptionsLayer::onInfo(GJOptionsLayer *this, cocos2d::CCObject *a2)
{
const char *v3; // x1
GJOptionsLayer *v4; // x0
__int64 v5; // x21
size_t v6; // x0
cocos2d::CCString *v7; // x0
char *CString; // x21
size_t v9; // x0
__int64 v10; // x20
char *v12; // [xsp+38h] [xbp+38h]
__int64 v13; // [xsp+40h] [xbp+40h] BYREF
__int64 v14; // [xsp+48h] [xbp+48h]
void *v15; // [xsp+50h] [xbp+50h]
v3 = (const char *)(*(unsigned int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v4 = this;
v5 = *((_QWORD *)this + 130);
v13 = 0;
v12 = (char *)GJOptionsLayer::infoKey(v4, v3);
v14 = 0;
v15 = nullptr;
v6 = strlen(v12);
std::string::__init(&v13, v12, v6);
v7 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v5, &v13);
CString = (char *)cocos2d::CCString::getCString(v7);
if ( (v13 & 1) != 0 )
operator delete(v15);
v13 = 0;
v14 = 0;
v15 = nullptr;
v9 = strlen(CString);
std::string::__init(&v13, CString, v9);
v10 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Info", (char *)&v13, (ButtonSprite *)"OK", nullptr, 300.0);
if ( (v13 & 1) != 0 )
operator delete(v15);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 1312LL))(v10);
return _stack_chk_guard;
}