//
// sub_1000891AC from 0x1000891ac to 0x1000892b8 (268 bytes)
//
// 1 xrefs:
// > RateStarsLayer::init @ 0x100088de0
//
// 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 10:58:20 +0000
//
__int64 __fastcall sub_1000891AC(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x0
__int64 v3; // x8
__int64 v4; // x0
__int64 (__fastcall ***v5)(_QWORD); // x0
__int64 v6; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v8; // [xsp+1Fh] [xbp-11h]
if ( *(_DWORD *)(result + 708) != -1 )
{
v1 = result;
if ( *(_BYTE *)(result + 681) == 1 )
{
v2 = GameLevelManager::sharedState(result);
result = sub_1000BBA08(
v2,
*(unsigned int *)(v1 + 704),
*(unsigned int *)(v1 + 708),
*(unsigned int *)(v1 + 744),
0,
0);
if ( (_DWORD)result )
{
*(_QWORD *)(GameLevelManager::sharedState(result) + 1360) = v1 + 672;
v3 = *(_QWORD *)(v1 + 728);
if ( v3 )
*(_QWORD *)(v3 + 664) = 0;
sub_100009900(__p, "Sending rating...");
v4 = UploadActionPopup::create(v1 + 664, __p);
*(_QWORD *)(v1 + 728) = v4;
if ( v8 < 0 )
{
operator delete(__p[0]);
v4 = *(_QWORD *)(v1 + 728);
}
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
}
}
else
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 1072LL))(result, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v1 + 528LL))(v1, 1);
v5 = *(__int64 (__fastcall ****)(_QWORD))(v1 + 752);
if ( v5 )
v5 = (__int64 (__fastcall ***)(_QWORD))(**v5)(v5);
v6 = GameLevelManager::sharedState(v5);
return GameLevelManager::rateStars(v6, *(unsigned int *)(v1 + 704), *(unsigned int *)(v1 + 708));
}
}
return result;
}