//
// GJGarageLayer::onInfo from 0x140274a70 to 0x140274c5a (490 bytes)
//
// 2 xrefs:
// > GJGarageLayer::init @ 0x140274955
// > ??> @ 0x1406d0efc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=3
void GJGarageLayer::onInfo(GJGarageLayer *a1, cocos2d::CCObject *a2)
{
__int64 v2; // rax
cocos2d::CCString *v3; // rax
const char *CString; // rax
size_t v5; // rbx
size_t v6; // r8
void **v7; // rdx
__int64 v8; // rax
FLAlertLayer *v9; // rbx
void *v10; // rcx
void *v11; // [rsp+50h] [rbp-88h]
__int128 v12; // [rsp+58h] [rbp-80h] BYREF
__int64 v13; // [rsp+68h] [rbp-70h]
__int64 v14; // [rsp+70h] [rbp-68h]
_BYTE v15[32]; // [rsp+80h] [rbp-58h] BYREF
void *Block[2]; // [rsp+A0h] [rbp-38h] BYREF
__int64 v17; // [rsp+B0h] [rbp-28h]
unsigned __int64 v18; // [rsp+B8h] [rbp-20h]
v2 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v11 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v2 = qword_1406C2ED8;
}
v3 = cocos2d::CCString::createWithFormat("UserID: %i", *(_DWORD *)(v2 + 652) - *(_DWORD *)(v2 + 656));
CString = cocos2d::CCString::getCString(v3);
*(_OWORD *)Block = 0;
v17 = 0;
v18 = 0;
v5 = -1;
v6 = -1;
do
++v6;
while ( CString[v6] );
sub_14003A930(Block, CString, v6);
v7 = Block;
if ( v18 > 0xF )
v7 = (void **)Block[0];
v12 = 0;
v13 = 0;
v14 = 0;
do
++v5;
while ( *((_BYTE *)v7 + v5) );
sub_14003A930(&v12, v7, v5);
v8 = sub_14003BDB0((__int64)v15, (__int64)&v12);
v9 = FLAlertLayer::create(0, (int)"User Info", v8, (__int64)"OK", 0, 1133903872, 0, 0, 1065353216);
sub_14003A830((__int64)&v12);
v9->show(v9);
if ( v18 > 0xF )
{
v10 = Block[0];
if ( v18 + 1 >= 0x1000 )
{
v10 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v10);
}
}