//
// ThreadViewPopup::onShareLevel from 0xc6abac to 0xc6ac1c (112 bytes)
//
// 3 xrefs:
// > ??> @ 0x66da8
// > ThreadViewPopup::init @ 0xc872dc
// > ??> @ 0x1542818
//
// 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:05:27 +0000
//
__int64 __fastcall ThreadViewPopup::onShareLevel(ThreadViewPopup *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
__int64 result; // x0
__int64 v5; // x0
__int64 v6; // x0
v3 = *((_QWORD *)this + 114);
if ( !v3 || (result = (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1048LL))(v3), (_BYTE)result) )
{
v5 = *((_QWORD *)this + 116);
if ( v5 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 1160LL))(v5, 0);
v6 = LevelPickerPopup::create((ThreadViewPopup *)((char *)this + 680), a2);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
}
return result;
}