//
// ShareListLayer::onUnlisted from 0xbaa210 to 0xbaa27c (108 bytes)
//
// 4 xrefs:
// > ??> @ 0xac348
// > ShareListLayer::init @ 0xbad5a0
// > ShareListLayer::init @ 0xbad758
// > ??> @ 0x1544e10
//
// 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 13:02:51 +0000
//
__int64 __fastcall ShareListLayer::onUnlisted(ShareListLayer *this, cocos2d::CCObject *a2)
{
int v3; // w0
__int64 v4; // x1
int v5; // w0
__int64 result; // x0
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v4 = *((_QWORD *)this + 83);
if ( v3 == 1 )
{
result = *(unsigned __int8 *)(v4 + 394) ^ 1u;
*(_BYTE *)(v4 + 394) ^= 1u;
}
else
{
v5 = *(unsigned __int8 *)(v4 + 393);
*(_BYTE *)(v4 + 393) = v5 ^ 1;
if ( v5 )
*(_BYTE *)(*((_QWORD *)this + 83) + 394LL) = 0;
return ShareListLayer::updateUnlistedF(this);
}
return result;
}