//
// GJRateLevelLayer::onRate from 0x566410 to 0x5664c0 (176 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:28 +0000
//
GameLevelManager *__fastcall GJRateLevelLayer::onRate(GameLevelManager *this, cocos2d::CCObject *a2)
{
GameLevelManager *v2; // r4
GameLevelManager *v3; // r0
int v4; // r3
int v5[3]; // [sp+8h] [bp-10h] BYREF
v2 = this;
if ( *((_DWORD *)this + 186) != -1 )
{
v3 = (GameLevelManager *)GameLevelManager::sharedState(this);
this = (GameLevelManager *)GameLevelManager::suggestLevelStars(
v3,
(const char *)(*(_DWORD *)(*((_DWORD *)v2 + 182) + 268)
- *(_DWORD *)(*((_DWORD *)v2 + 182) + 272)),
*((_DWORD *)v2 + 186),
*(_DWORD *)(*((_DWORD *)v2 + 190) + 508),
*((_BYTE *)v2 + 748),
0);
if ( this )
{
*(_DWORD *)(GameLevelManager::sharedState(this) + 888) = (char *)v2 + 716;
v4 = *((_DWORD *)v2 + 189);
if ( v4 )
*(_DWORD *)(v4 + 520) = 0;
memset(v5, 0, sizeof(v5));
std::string::__init(v5, "Sending rating...", 0x11u);
*((_DWORD *)v2 + 189) = UploadActionPopup::create((char *)v2 + 712, v5);
std::string::~string((int)v5);
return (GameLevelManager *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)v2 + 189) + 656))(*((_DWORD *)v2 + 189));
}
}
return this;
}