//
// MPLobbyLayer::onClosePopup from 0x66a57a to 0x66a5b8 (62 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'MPLobbyLayer::onClosePopup @ 0x66a5bc
//
// 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:55:45 +0000
//
int __fastcall MPLobbyLayer::onClosePopup(MPLobbyLayer *this, UploadActionPopup *a2)
{
int result; // r0
result = UploadActionPopup::closePopup(a2);
if ( a2 == *((UploadActionPopup **)this + 86) )
{
if ( *((_BYTE *)a2 + 536) )
{
result = (*(int (__fastcall **)(UploadActionPopup *))(*(_DWORD *)a2 + 32))(a2);
if ( result == 1 )
result = MPLobbyLayer::onBack(this, nullptr);
}
*(_DWORD *)(*((_DWORD *)this + 86) + 520) = 0;
*((_DWORD *)this + 86) = 0;
}
return result;
}