//
// InfoLayer::getID from 0x42f2cc to 0x42f2f8 (44 bytes)
//
// 14 xrefs:
// > InfoLayer::updateUserScoreFinished @ 0x42f312
// > InfoLayer::onCopyLevelID @ 0x42f362
// > InfoLayer::onComment @ 0x42f454
// > InfoLayer::onComment @ 0x42f4be
// > InfoLayer::FLAlert_Clicked @ 0x42f5ac
// > InfoLayer::commentUploadFailed @ 0x42f622
// > InfoLayer::confirmReport @ 0x42f6ae
// > InfoLayer::loadPage @ 0x42fd8c
// > InfoLayer::loadPage @ 0x42fe94
// > InfoLayer::onRefreshComments @ 0x42ff20
// > InfoLayer::init @ 0x430b1e
// > InfoLayer::init @ 0x431218
// > InfoLayer::toggleSmallCommentMode @ 0x4316d0
// > InfoLayer::commentUploadFinished @ 0x4316fc
//
// 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
//
int InfoLayer::getID(InfoLayer *a1)
{
GJUserScore *m_score; // r3
int result; // r0
GJLevelList *m_levelList; // r3
m_score = a1->m_score;
if ( m_score )
return m_score->m_userID;
m_levelList = a1->m_levelList;
if ( m_levelList )
return -m_levelList->m_listID;
result = (int)a1->m_level;
if ( result )
return *(_DWORD *)(result + 268) - *(_DWORD *)(result + 272);
return result;
}