//
// LevelInfoLayer::onRate from 0x49ac14 to 0x49acc8 (180 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::FLAlert_Clicked @ 0x49bbd8
//
// 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:49:45 +0000
//
GameManager *__fastcall LevelInfoLayer::onRate(GameManager *this, cocos2d::CCObject *a2)
{
GameManager *v2; // r4
unsigned __int8 *v3; // r0
int v4; // r1
int v5; // r5
int *v6; // r5
int *v7; // r0
int v8; // r3
int v9[3]; // [sp+8h] [bp-14h] BYREF
v2 = this;
if ( !*((_BYTE *)this + 356) )
{
v3 = (unsigned __int8 *)GameManager::sharedState(this);
v5 = v3[732];
if ( v3[732] )
{
v7 = (int *)RateLevelLayer::create(
(RateLevelLayer *)(*(_DWORD *)(*((_DWORD *)v2 + 91) + 268) - *(_DWORD *)(*((_DWORD *)v2 + 91) + 272)),
v4);
v8 = *v7;
v7[134] = (int)v2 + 324;
return (GameManager *)(*(int (__fastcall **)(int *))(v8 + 656))(v7);
}
else
{
v9[0] = v3[732];
v9[1] = v5;
v9[2] = v5;
*(_BYTE *)(GameManager::sharedState((GameManager *)v3) + 732) = 1;
std::string::__init(
v9,
"Please rate the difficulty as fairly as possible. \n"
"(Demon and Auto levels are manually verified before accepted)",
0x88u);
v6 = FLAlertLayer::create(
(int)v2 + 332,
(cocos2d::CCLabelBMFont *)"Rate Difficulty",
(int)v9,
(ButtonSprite *)"OK",
(ButtonSprite *)v5,
300.0);
std::string::~string((int)v9);
(*(void (__fastcall **)(int *, int))(*v6 + 36))(v6, 7);
return (GameManager *)(*(int (__fastcall **)(int *))(*v6 + 656))(v6);
}
}
return this;
}