//
// sub_10037785C from 0x10037785c to 0x10037790c (176 bytes)
//
// 2 xrefs:
// > ShareCommentLayer::uploadActionFailed @ 0x10026e29c
// > FriendRequestPopup::uploadActionFailed @ 0x100378f48
//
// This function is hookable on this platform (idp: arm, 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:03:26 +0000
//
__int64 __fastcall sub_10037785C(__int64 a1, __int64 a2)
{
__int64 v4; // x19
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
__int64 v7; // [xsp+10h] [xbp-30h]
v4 = sub_1000483A4();
if ( (v4 & 1) != 0 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);
}
else
{
if ( *(char *)(a2 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a2;
v7 = *(_QWORD *)(a2 + 16);
}
UploadActionPopup::showFailMessage(a1, (char *)__p);
if ( SHIBYTE(v7) < 0 )
operator delete(__p[0]);
}
return v4;
}