//
// ThreadViewPopup::onShareLevel from 0x1400dc8f0 to 0x1400dc942 (82 bytes)
//
// 2 xrefs:
// > ThreadViewPopup::init @ 0x1400d9e90
// > ??> @ 0x140914984
//
// 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:26:29 +0000
//
__int64 __fastcall ThreadViewPopup::onShareLevel(__int64 a1)
{
__int64 v2; // rcx
__int64 result; // rax
__int64 v4; // rcx
__int64 v5; // rax
v2 = *(_QWORD *)(a1 + 904);
if ( !v2 || (result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 928LL))(v2), (_BYTE)result) )
{
v4 = a1 + 680;
if ( !a1 )
v4 = 0;
v5 = LevelPickerPopup::create(v4);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1064LL))(v5);
}
return result;
}