//
// SongInfoLayer::onLink from 0x9032f8 to 0x903390 (152 bytes)
//
// 3 xrefs:
// > ??> @ 0xaa3b0
// > SongInfoLayer::addLinkRows @ 0x903858
// > ??> @ 0x1544ce0
//
// 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 12:57:07 +0000
//
unsigned __int64 __fastcall SongInfoLayer::onLink(SongInfoLayer *this, cocos2d::CCObject *a2)
{
unsigned __int64 result; // x0
int v4; // w19
__int64 v5; // x0
result = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v4 = result;
if ( (result & 0x80000000) == 0 )
{
result = 0xAAAAAAAAAAAAAAABLL * ((__int64)(*((_QWORD *)this + 91) - *((_QWORD *)this + 90)) >> 3);
if ( v4 < (int)result )
{
v5 = cocos2d::CCApplication::sharedApplication((cocos2d::CCApplication *)result);
return (*(__int64 (**)(void))(*(_QWORD *)v5 + 104LL))();
}
}
return result;
}