//
// GJGarageLayer::onInfo from 0x100355590 to 0x100355730 (416 bytes)
//
// 1 xrefs:
// > GJGarageLayer::init @ 0x100353f3f
//
// This function is hookable on this platform (idp: pc, 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:28:51 +0000
//
void __fastcall GJGarageLayer::onInfo(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v3; // rax
const char *CString; // r14
size_t v5; // rax
size_t v6; // rbx
char *v7; // r15
char *v8; // rbx
size_t v9; // r12
size_t v10; // rax
size_t v11; // r14
char *v12; // r15
size_t v13; // r12
__int64 v14; // rbx
_QWORD v15[2]; // [rsp+0h] [rbp-50h] BYREF
void *__p; // [rsp+10h] [rbp-40h]
_QWORD __dst[2]; // [rsp+18h] [rbp-38h] BYREF
char *__s; // [rsp+28h] [rbp-28h]
GameManager::sharedState(a1, a2, a3);
v3 = sub_10088E820("UserID: %i", v15[0]);
CString = (const char *)cocos2d::CCString::getCString(v3);
v5 = strlen(CString);
if ( v5 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v6 = v5;
if ( v5 >= 0x17 )
{
v9 = 26;
if ( (v5 | 7) != 0x17 )
v9 = (v5 | 7) + 1;
v7 = (char *)operator new(v9);
__s = v7;
__dst[0] = v9 + 1;
__dst[1] = v6;
LABEL_9:
memmove(v7, CString, v6);
v7[v6] = 0;
if ( (__dst[0] & 1) != 0 )
goto LABEL_5;
goto LABEL_10;
}
LOBYTE(__dst[0]) = 2 * v5;
v7 = (char *)__dst + 1;
if ( v5 )
goto LABEL_9;
BYTE1(__dst[0]) = 0;
if ( (__dst[0] & 1) != 0 )
{
LABEL_5:
v8 = __s;
goto LABEL_11;
}
LABEL_10:
v8 = (char *)__dst + 1;
LABEL_11:
v10 = strlen(v8);
if ( v10 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v11 = v10;
if ( v10 >= 0x17 )
{
v13 = 26;
if ( (v10 | 7) != 0x17 )
v13 = (v10 | 7) + 1;
v12 = (char *)operator new(v13);
__p = v12;
v15[0] = v13 | 1;
v15[1] = v11;
goto LABEL_18;
}
LOBYTE(v15[0]) = 2 * v10;
v12 = (char *)v15 + 1;
if ( v10 )
LABEL_18:
memmove(v12, v8, v11);
v12[v11] = 0;
v14 = FLAlertLayer::create_1(0, "User Info", v15, "OK", 0, 300.0);
if ( (v15[0] & 1) != 0 )
operator delete(__p);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v14 + 1312LL))(v14);
if ( (__dst[0] & 1) != 0 )
operator delete(__s);
}