//
// LevelListLayer::onDescription from 0xba9544 to 0xba9684 (320 bytes)
//
// 3 xrefs:
// > ??> @ 0xfbdd0
// > LevelListLayer::init @ 0xbafe24
// > ??> @ 0x1547a88
//
// 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:51 +0000
//
__int64 __fastcall LevelListLayer::onDescription(LevelListLayer *this, cocos2d::CCObject *a2)
{
GJLevelList *v4; // x0
int v5; // w23
__int64 *v6; // x21
__int64 v7; // x1
__int64 v8[3]; // [xsp+48h] [xbp+48h] BYREF
char v9; // [xsp+60h] [xbp+60h] BYREF
char v10[13]; // [xsp+61h] [xbp+61h] BYREF
__int16 v11; // [xsp+6Eh] [xbp+6Eh]
void *v12; // [xsp+70h] [xbp+70h]
if ( !*((_BYTE *)this + 952) )
{
v4 = *((GJLevelList **)this + 114);
v10[12] = 0;
v11 = 0;
v12 = nullptr;
v9 = 22;
strcpy(v10, "Description");
v5 = *((_DWORD *)v4 + 137);
GJLevelList::getUnpackedDescription(v4, v8);
v6 = (__int64 *)ShareCommentLayer::create(&v9, 280, 4u, v5, (char *)v8);
if ( (v8[0] & 1) != 0 )
{
operator delete((void *)v8[2]);
if ( (v9 & 1) == 0 )
goto LABEL_5;
}
else if ( (v9 & 1) == 0 )
{
LABEL_5:
v7 = *v6;
v6[101] = (__int64)this + 584;
(*(void (__fastcall **)(__int64 *))(v7 + 1312))(v6);
return _stack_chk_guard;
}
operator delete(v12);
goto LABEL_5;
}
return _stack_chk_guard;
}