//
// ProfilePage::onModNotes from 0x5f5b04 to 0x5f5b74 (112 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:54:31 +0000
//
GameManager *__fastcall ProfilePage::onModNotes(
GameManager *this,
cocos2d::CCObject *a2,
int a3,
GJEditorSoundConfig *a4)
{
GameManager *v4; // r4
int v5; // r3
cocos2d::CCDirector *v6; // r4
cocos2d::CCScene *v7; // r5
int v8; // r0
int v9; // r3
v4 = this;
v5 = *((_DWORD *)this + 138);
if ( v5 )
{
if ( *(int *)(v5 + 296) > 0 )
{
this = (GameManager *)GameManager::sharedState(this);
if ( *((_DWORD *)this + 205) - *((_DWORD *)this + 206) > 0 )
{
v6 = (cocos2d::CCDirector *)InfoLayer::create(nullptr, *((GJGameLevel **)v4 + 138), nullptr, nullptr, a4);
v7 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(v6) + 220);
if ( (int)cocos2d::CCScene::getHighestChildZ(v7) <= 109 )
v8 = 110;
else
v8 = cocos2d::CCScene::getHighestChildZ(v7) + 1;
v9 = *(_DWORD *)v6;
*((_DWORD *)v6 + 116) = v8;
(*(void (__fastcall **)(cocos2d::CCDirector *))(v9 + 656))(v6);
return (GameManager *)InfoLayer::toggleModRoom(v6, nullptr);
}
}
}
return this;
}