//
// SelectEventLayer::onInfo from 0xb81a00 to 0xb81b84 (388 bytes)
//
// 3 xrefs:
// > ??> @ 0xa7380
// > SelectEventLayer::addToggle @ 0xb7f7fc
// > ??> @ 0x1544b28
//
// 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 13:02:28 +0000
//
__int64 __fastcall SelectEventLayer::onInfo(__int64 **this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
const char *v4; // x23
size_t v5; // x0
size_t v6; // x19
unsigned __int64 v7; // x0
__int64 v8; // x22
char *v9; // x0
char *v10; // x3
__int64 v11; // x19
int v13; // [xsp+44h] [xbp+44h] BYREF
int *v14; // [xsp+48h] [xbp+48h] BYREF
__int64 v15; // [xsp+50h] [xbp+50h] BYREF
size_t v16; // [xsp+58h] [xbp+58h]
void *v17; // [xsp+60h] [xbp+60h]
v13 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v14 = &v13;
v3 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>(
this + 130,
&v13,
(__int64)&unk_1192248,
&v14);
v4 = (const char *)(v3 + 41);
if ( (*(_BYTE *)(v3 + 40) & 1) != 0 )
v4 = *(const char **)(v3 + 56);
v15 = 0;
v16 = 0;
v17 = nullptr;
v5 = strlen(v4);
v6 = v5;
if ( v5 > 0xFFFFFFFFFFFFFFEFLL )
sub_62F31C();
if ( v5 > 0x16 )
{
v7 = (v5 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v8 = v7 | 1;
v9 = (char *)operator new(v7);
v15 = v8;
v10 = v9;
v17 = v9;
v16 = v6;
LABEL_6:
v10 = (char *)memcpy(v10, v4, v6);
goto LABEL_7;
}
LOBYTE(v15) = 2 * v5;
v10 = (char *)&v15 + 1;
if ( v5 )
goto LABEL_6;
LABEL_7:
v10[v6] = 0;
v11 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Info", (char *)&v15, (ButtonSprite *)"OK", nullptr, 380.0);
if ( (v15 & 1) != 0 )
operator delete(v17);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v11 + 1312LL))(v11);
return _stack_chk_guard;
}