//
// sub_10022B0A0 from 0x10022b0a0 to 0x10022b210 (368 bytes)
//
// 8 xrefs:
// > ProfilePage::init @ 0x10022a6e0
// > ProfilePage::init @ 0x10022a72c
// > ProfilePage::init @ 0x10022a748
// > sub_10022ADF4 @ 0x10022b078
// > ProfilePage::updateUserScoreFinished @ 0x100230304
// > ProfilePage::loadPage @ 0x100230b48
// > ProfilePage::userInfoChanged @ 0x100230c50
// > ProfilePage::loadCommentsFinished @ 0x100230d5c
//
// 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 11:01:13 +0000
//
__int64 __fastcall sub_10022B0A0(__int64 a1, __int64 a2)
{
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
char *v7; // x0
__int64 v8; // x0
__int64 v9; // x20
__int64 v10; // x0
_QWORD *v11; // x0
int v12; // w8
__int64 v13; // x0
int v15; // [xsp+0h] [xbp-20h] BYREF
__int64 v16; // [xsp+8h] [xbp-18h] BYREF
if ( *(_QWORD *)(a1 + 784) )
{
v4 = cocos2d::CCDirector::sharedDirector();
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 160LL))(v4);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, *(_QWORD *)(a1 + 784));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 784) + 536LL))(*(_QWORD *)(a1 + 784));
*(_QWORD *)(a1 + 784) = 0;
}
v6 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v6, &v16);
if ( a2 )
v7 = CustomListView::create(a2, 0, 0, 15, 100.0, 340.0, 0.0);
else
v7 = nullptr;
v8 = GJCommentListLayer::create(v7, "Comments", 4282282687LL, 0, 340.0, 100.0);
*(_QWORD *)(a1 + 784) = v8;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v8);
v9 = *(_QWORD *)(a1 + 784);
sub_1000262BC(
(float *)&v15,
(float)(*(float *)&v16 + -340.0) * 0.5,
(float)((float)(*((float *)&v16 + 1) + -100.0) * 0.5) + -53.0);
(*(void (__fastcall **)(__int64, int *))(*(_QWORD *)v9 + 184LL))(v9, &v15);
v15 = 0;
v10 = cocos2d::CCDirector::sharedDirector();
v11 = (_QWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 160LL))(v10);
v12 = sub_1001CD6DC(v11, *(unsigned int **)(a1 + 784), &v15);
v13 = *(_QWORD *)(a1 + 552);
if ( v12 )
return cocos2d::CCMenu::giveMenuTouchPriority(v13, (unsigned int)(v15 - 1));
else
return sub_1002707E8(v13);
}