//
// ThreadViewPopup::onShareLevel from 0x74adec to 0x74ae26 (58 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:58:46 +0000
//
int __fastcall ThreadViewPopup::onShareLevel(ThreadViewPopup *this, cocos2d::CCObject *a2)
{
int v3; // r0
int result; // r0
int v5; // r0
PagedListPopup *v6; // r0
v3 = *((_DWORD *)this + 169);
if ( !v3 || (result = (*(int (__fastcall **)(int, cocos2d::CCObject *))(*(_DWORD *)v3 + 524))(v3, a2)) != 0 )
{
v5 = *((_DWORD *)this + 171);
if ( v5 )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v5 + 580))(v5, 0);
v6 = LevelPickerPopup::create((ThreadViewPopup *)((char *)this + 528), a2);
return (*(int (__fastcall **)(PagedListPopup *))(*(_DWORD *)v6 + 656))(v6);
}
return result;
}