//
// GJRateLevelListLayer::onSubmit from 0x5667c0 to 0x5668aa (234 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 GJRateLevelListLayer::onSubmit(GJRateLevelListLayer *this, cocos2d::CCObject *a2)
{
int v3; // s15
float v4; // s16
GameLevelManager *result; // r0
float v6; // s17
GameLevelManager *v7; // r0
int v8; // r3
int v9[3]; // [sp+10h] [bp-14h] BYREF
v3 = (int)COERCE_FLOAT((*(int (__fastcall **)(GJRateLevelListLayer *, int))(*(_DWORD *)this + 732))(this, -10));
v4 = COERCE_FLOAT((*(int (__fastcall **)(GJRateLevelListLayer *, int))(*(_DWORD *)this + 732))(this, -11));
result = (GameLevelManager *)(*(int (__fastcall **)(GJRateLevelListLayer *, int))(*(_DWORD *)this + 732))(this, -12);
v6 = *(float *)&result;
if ( v3 > 0 )
{
v7 = (GameLevelManager *)GameLevelManager::sharedState(result);
result = (GameLevelManager *)GameLevelManager::rateLevelListAdmin(
v7,
*(_DWORD *)(*((_DWORD *)this + 181) + 276),
1,
v3,
(int)v6,
(int)v4,
0);
if ( result )
{
*(_DWORD *)(GameLevelManager::sharedState(result) + 888) = (char *)this + 716;
v8 = *((_DWORD *)this + 183);
if ( v8 )
*(_DWORD *)(v8 + 520) = 0;
memset(v9, 0, sizeof(v9));
std::string::__init(v9, "Featuring list...", 0x11u);
*((_DWORD *)this + 183) = UploadActionPopup::create((char *)this + 712, v9);
std::string::~string((int)v9);
return (GameLevelManager *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 183) + 656))(*((_DWORD *)this + 183));
}
}
return result;
}