//
// GJMessagePopup::downloadMessageFinished from 0x5e10a2 to 0x5e10de (60 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'GJMessagePopup::downloadMessageFinished @ 0x5e10e2
//
// 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:54:16 +0000
//
int __fastcall GJMessagePopup::downloadMessageFinished(int this, GJUserMessage *a2)
{
int v2; // r4
v2 = this;
if ( a2 )
{
if ( *(_DWORD *)(*(_DWORD *)(this + 544) + 264) == *((_DWORD *)a2 + 66) )
{
GJMessagePopup::loadFromGJMessage(this, a2);
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(v2 + 548) + 172))(*(_DWORD *)(v2 + 548), 0);
return (*(int (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(v2 + 540) + 172))(*(_DWORD *)(v2 + 540), 0);
}
}
return this;
}