//
// sub_100246740 from 0x100246740 to 0x1002467f8 (184 bytes)
//
// 1 xrefs:
// > sub_100245DF0 @ 0x100246364
//
// 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:01:26 +0000
//
__int64 __fastcall sub_100246740(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x0
__int64 v3; // x8
__int64 v4; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v6; // [xsp+1Fh] [xbp-11h]
if ( *(_DWORD *)(result + 1080) != -1 )
{
v1 = result;
v2 = GameLevelManager::sharedState();
result = sub_1000BBA08(
v2,
*(_DWORD *)(*(_QWORD *)(v1 + 1048) + 328LL) - *(_DWORD *)(*(_QWORD *)(v1 + 1048) + 332LL),
*(_DWORD *)(v1 + 1080),
*(_DWORD *)(*(_QWORD *)(v1 + 1104) + 596LL),
*(unsigned __int8 *)(v1 + 1084),
0);
if ( (_DWORD)result )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1360) = v1 + 1024;
v3 = *(_QWORD *)(v1 + 1096);
if ( v3 )
*(_QWORD *)(v3 + 664) = 0;
sub_100009900(__p, "Sending rating...");
v4 = UploadActionPopup::create(v1 + 1016, __p);
*(_QWORD *)(v1 + 1096) = v4;
if ( v6 < 0 )
{
operator delete(__p[0]);
v4 = *(_QWORD *)(v1 + 1096);
}
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
}
}
return result;
}