//
// GJMessagePopup::downloadMessageFinished from 0x1403a4b50 to 0x1403a4ba0 (80 bytes)
//
// 2 xrefs:
// > ??> @ 0x14077b4a0
// > ??> @ 0x1409236f0
//
// 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:31:18 +0000
//
__int64 __fastcall GJMessagePopup::downloadMessageFinished(__int64 a1, unsigned int *a2, __int64 a3, double a4)
{
__int64 v4; // r8
__int64 result; // rax
__int64 v7; // rcx
if ( a2 )
{
v4 = *(_QWORD *)(a1 + 24);
result = a2[80];
v7 = a1 - 688;
if ( *(_DWORD *)(v4 + 320) == (_DWORD)result )
{
GJMessagePopup::loadFromGJMessage(v7, (cocos2d::CCObject *)a2, v4, a4);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 32) + 336LL))(*(_QWORD *)(a1 + 32), 0);
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 16) + 336LL))(*(_QWORD *)(a1 + 16), 0);
}
}
return result;
}