//
// InfoAlertButton::init from 0xa3f338 to 0xa3f434 (252 bytes)
//
// 2 xrefs:
// > InfoAlertButton::create @ 0xa3f5c4
// > ??> @ 0x779e0
//
// 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:55 +0000
//
__int64 __fastcall InfoAlertButton::init(__int64 a1, __int64 a2, __int64 a3, long double a4)
{
__int64 v7; // x0
long double v8; // q0
unsigned __int8 v9; // w0
unsigned int v10; // w20
__int64 *v12; // x0
__int64 *v13; // x0
v7 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", (const char *)a2);
v8 = a4;
*(_QWORD *)&a4 = v7;
(*(void (__fastcall **)(long double))(*(_QWORD *)v7 + 160LL))(v8);
v9 = CCMenuItemSpriteExtra::init(a1, *(__int64 *)&a4, 0, 0, 0, 0);
v10 = v9;
if ( !v9 )
return v10;
CCMenuItemSpriteExtra::setSizeMult(a1, 1.5);
v12 = (__int64 *)(a1 + 504);
if ( a1 + 504 != a2 )
{
if ( (*(_BYTE *)a2 & 1) != 0 )
std::string::assign(v12, *(const void **)(a2 + 16), *(_QWORD *)(a2 + 8));
else
std::string::assign(v12, (const void *)(a2 + 1), *(_BYTE *)a2 >> 1);
}
v13 = (__int64 *)(a1 + 528);
if ( a1 + 528 == a3 )
return v10;
if ( (*(_BYTE *)a3 & 1) != 0 )
std::string::assign(v13, *(const void **)(a3 + 16), *(_QWORD *)(a3 + 8));
else
std::string::assign(v13, (const void *)(a3 + 1), *(_BYTE *)a3 >> 1);
return v10;
}