//
// InfoLayer::onCopyLevelID from 0x1003528ec to 0x1003529ec (256 bytes)
//
// 1 xrefs:
// > InfoLayer::setupLevelInfo @ 0x1003515e0
//
// 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
//
void __fastcall InfoLayer::onCopyLevelID(InfoLayer *a1, cocos2d::CCObject *a2)
{
GJUserScore *m_score; // x8
int m_userID; // w8
GJLevelList *m_levelList; // x8
GJGameLevel *m_level; // x8
__int64 v7; // x0
cocos2d::CCObject *v8; // x0
void *__p[2]; // [xsp+8h] [xbp-58h] BYREF
char v10; // [xsp+1Fh] [xbp-41h]
void *v11[2]; // [xsp+20h] [xbp-40h] BYREF
char v12; // [xsp+37h] [xbp-29h]
void *v13[2]; // [xsp+38h] [xbp-28h] BYREF
char v14; // [xsp+4Fh] [xbp-11h]
m_score = a1->m_score;
if ( m_score )
{
m_userID = m_score->m_userID;
}
else
{
m_levelList = a1->m_levelList;
if ( m_levelList )
{
m_userID = -m_levelList->m_listID;
}
else
{
m_level = a1->m_level;
if ( !m_level )
{
v7 = 0;
goto LABEL_10;
}
m_userID = m_level->m_levelID.random - m_level->m_levelID.seed;
}
}
if ( m_userID >= 0 )
v7 = (unsigned int)m_userID;
else
v7 = (unsigned int)-m_userID;
LABEL_10:
GameToolbox::intToString(v7, v13);
PlatformToolbox::copyToClipboard((__int64 *)v13);
if ( v14 < 0 )
operator delete(v13[0]);
sub_100009900(v11, "Copied to clipboard");
sub_100009900(__p, "");
v8 = TextAlertPopup::create((__int64)v11, 150, (__int64)__p, 0.5, 0.6);
((void (__fastcall *)(InfoLayer *, cocos2d::CCObject *, __int64))a1->addChild_0)(a1, v8, 100);
if ( v10 < 0 )
operator delete(__p[0]);
if ( v12 < 0 )
operator delete(v11[0]);
}