//
// sub_10053B858 from 0x10053b858 to 0x10053b9bc (356 bytes)
//
// 3 xrefs:
// > sub_10053B684 @ 0x10053b70c
// > NotificationsPage::loadNotificationsFinished @ 0x10053ba54
// > NotificationsPage::loadNotificationsFinished @ 0x10053ba68
//
// 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:07:40 +0000
//
__int64 __fastcall sub_10053B858(__int64 a1, __int64 a2)
{
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
char *v7; // x0
_QWORD *v8; // x0
__int64 v9; // x20
__int64 result; // x0
__int64 v11; // x19
int v12; // w0
float v13; // [xsp+0h] [xbp-20h] BYREF
__int64 v14; // [xsp+8h] [xbp-18h] BYREF
if ( *(_QWORD *)(a1 + 688) )
{
v4 = cocos2d::CCDirector::sharedDirector();
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 160LL))(v4);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, *(_QWORD *)(a1 + 688));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 688) + 536LL))(*(_QWORD *)(a1 + 688));
*(_QWORD *)(a1 + 688) = 0;
}
v6 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v6, &v14);
if ( a2 )
v7 = CustomListView::create(a2, 0, 0, 40, 196.0, 340.0, 0.0);
else
v7 = nullptr;
v8 = GJCommentListLayer::create((__int64)v7, 340.0, 196.0);
*(_QWORD *)(a1 + 688) = v8;
(*(void (__fastcall **)(_QWORD, _QWORD *))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v8);
v9 = *(_QWORD *)(a1 + 688);
sub_1000262BC(
&v13,
(float)(*(float *)&v14 + -340.0) * 0.5,
(float)((float)((float)(*((float *)&v14 + 1) + -196.0) * 0.5) + -10.0) + 5.0);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v9 + 184LL))(v9, &v13);
result = *(_QWORD *)(*(_QWORD *)(a1 + 688) + 544LL);
if ( result )
{
v11 = *(_QWORD *)(a1 + 552);
v12 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 1032LL))(result);
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v11 + 1024LL))(v11, (unsigned int)(v12 - 2));
}
return result;
}