//
// AccountReviewPopup::openUserComments from 0xc40514 to 0xc405b0 (156 bytes)
//
// 3 xrefs:
// > AccountReviewPopup::onNotes @ 0xc405b4
// > AccountReviewPopup::onCommentHistory @ 0xc405cc
// > ??> @ 0x57f28
//
// 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 13:04:57 +0000
//
__int64 __fastcall AccountReviewPopup::openUserComments(GJGameLevel **this, unsigned __int8 a2)
{
int v2; // w21
cocos2d::CCDirector *v3; // x19
cocos2d::CCScene *v4; // x20
int HighestChildZ; // w0
int v6; // w1
__int64 v7; // x2
__int64 result; // x0
v2 = a2;
v3 = (cocos2d::CCDirector *)InfoLayer::create(nullptr, *(this + 109), nullptr, nullptr, *(this + 109));
v4 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(v3) + 272);
HighestChildZ = cocos2d::CCScene::getHighestChildZ(v4);
v6 = 110;
if ( HighestChildZ > 109 )
v6 = cocos2d::CCScene::getHighestChildZ(v4) + 1;
v7 = *(_QWORD *)v3;
*((_DWORD *)v3 + 148) = v6;
result = (*(__int64 (__fastcall **)(cocos2d::CCDirector *))(v7 + 1312))(v3);
if ( v2 )
return InfoLayer::toggleModRoom(v3, nullptr);
return result;
}