//
// sub_100239D50 from 0x100239d50 to 0x100239e7c (300 bytes)
//
// 3 xrefs:
// > TopArtistsLayer::init @ 0x100239c70
// > TopArtistsLayer::loadListFinished @ 0x100239f68
// > sub_10023A2F8 @ 0x10023a484
//
// 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:20 +0000
//
__int64 __fastcall sub_100239D50(__int64 a1, __int64 a2)
{
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
char *v7; // x0
__int64 v8; // x0
__int64 v9; // x19
float v11; // [xsp+0h] [xbp-20h] BYREF
__int64 v12; // [xsp+8h] [xbp-18h] BYREF
if ( *(_QWORD *)(a1 + 680) )
{
v4 = cocos2d::CCDirector::sharedDirector();
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 160LL))(v4);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, *(_QWORD *)(a1 + 680));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 680) + 536LL))(*(_QWORD *)(a1 + 680));
*(_QWORD *)(a1 + 680) = 0;
}
v6 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v6, &v12);
if ( a2 )
v7 = CustomListView::create(a2, 0, 0, 19, 220.0, 340.0, 0.0);
else
v7 = nullptr;
v8 = GJCommentListLayer::create(v7, "", 4282282687LL, 1, 340.0, 220.0);
*(_QWORD *)(a1 + 680) = v8;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v8);
v9 = *(_QWORD *)(a1 + 680);
sub_1000262BC(
&v11,
(float)(*(float *)&v12 + -340.0) * 0.5,
(float)((float)(*((float *)&v12 + 1) + -220.0) * 0.5) + -10.0);
return (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v9 + 184LL))(v9, &v11);
}