//
// sub_10022E6B8 from 0x10022e6b8 to 0x10022e748 (144 bytes)
//
// 1 xrefs:
// > ProfilePage::loadPageFromUserInfo @ 0x10022c28c
//
// 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:16 +0000
//
void __fastcall sub_10022E6B8(__int64 a1, __int64 a2)
{
__int64 v2; // x19
__int64 v3; // x0
_QWORD *v4; // x0
unsigned __int64 v5; // x9
unsigned __int8 v6; // w8
__int64 v7; // x0
void **v8; // x1
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
unsigned __int8 v10; // [xsp+1Fh] [xbp-11h]
v2 = *(_QWORD *)(a1 + 728);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v4 = sub_10023051C(__p, v2, v3);
v5 = v10;
v6 = v10;
if ( (v10 & 0x80u) != 0 )
v5 = (unsigned __int64)__p[1];
if ( v5 )
{
v7 = cocos2d::CCApplication::sharedApplication(v4);
if ( (v10 & 0x80u) == 0 )
v8 = __p;
else
v8 = (void **)__p[0];
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v7 + 104LL))(v7, v8);
v6 = v10;
}
if ( (v6 & 0x80) != 0 )
operator delete(__p[0]);
}