//
// SongInfoLayer::onLink from 0x53a9a8 to 0x53a9f4 (76 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:14 +0000
//
int __fastcall SongInfoLayer::onLink(SongInfoLayer *this, cocos2d::CCObject *a2)
{
int result; // r0
int v4; // r5
int v5; // r0
int v6; // r1
int v7; // r1
result = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
v4 = result;
if ( result >= 0 && result < -1431655765 * ((*((_DWORD *)this + 139) - *((_DWORD *)this + 138)) >> 2) )
{
v5 = cocos2d::CCApplication::sharedApplication((cocos2d::CCApplication *)result);
v6 = *((_DWORD *)this + 138) + 12 * v4;
if ( (*(_BYTE *)v6 & 1) != 0 )
v7 = *(_DWORD *)(v6 + 8);
else
v7 = v6 + 1;
return (*(int (__fastcall **)(int, int))(*(_DWORD *)v5 + 52))(v5, v7);
}
return result;
}