//
// SongInfoLayer::onLink from 0x1406366e0 to 0x140636749 (105 bytes)
//
// 2 xrefs:
// > SongInfoLayer::addLinkRows @ 0x14063657e
// > ??> @ 0x140930c44
//
// 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 11:35:30 +0000
//
__int64 __fastcall SongInfoLayer::onLink(__int64 a1, __int64 a2)
{
__int64 result; // rax
__int64 v4; // rcx
__int64 v5; // rdi
__int64 v6; // rax
_QWORD *v7; // rdx
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
v5 = (int)result;
if ( (int)result >= 0 && (int)result < (int)((__int64)(*(_QWORD *)(a1 + 744) - *(_QWORD *)(a1 + 736)) >> 5) )
{
v6 = cocos2d::CCApplication::sharedApplication(v4);
v7 = (_QWORD *)(*(_QWORD *)(a1 + 736) + 32 * v5);
if ( v7[3] > 0xFu )
v7 = (_QWORD *)*v7;
return (*(__int64 (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v6 + 96LL))(v6, v7);
}
return result;
}