//
// sub_10051F4A4 from 0x10051f4a4 to 0x10051f560 (188 bytes)
//
// 1 xrefs:
// > sub_10051E954 @ 0x10051f04c
//
// 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:07:11 +0000
//
__int64 __fastcall sub_10051F4A4(__int64 result)
{
int v1; // w8
__int64 v2; // x19
int v3; // w20
__int64 v4; // x0
__int64 v5; // x8
char *v6; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v8; // [xsp+1Fh] [xbp-11h]
v1 = *(_DWORD *)(result + 716);
if ( v1 != -1 )
{
v2 = result;
v3 = v1 == 10 ? *(_DWORD *)(result + 756) : 0;
v4 = GameLevelManager::sharedState();
result = sub_1000BBA08(
v4,
*(_DWORD *)(v2 + 712),
*(_DWORD *)(v2 + 716),
*(_DWORD *)(v2 + 752),
*(unsigned __int8 *)(v2 + 720),
v3);
if ( (_DWORD)result )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1360) = v2 + 672;
v5 = *(_QWORD *)(v2 + 736);
if ( v5 )
*(_QWORD *)(v5 + 664) = 0;
sub_100009900(__p, "Sending rating...");
v6 = UploadActionPopup::create(v2 + 664, (__int64)__p);
*(_QWORD *)(v2 + 736) = v6;
if ( v8 < 0 )
{
operator delete(__p[0]);
v6 = *(char **)(v2 + 736);
}
return (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v6 + 1312LL))(v6);
}
}
return result;
}