//
// OptionsScrollLayer::setupList from 0x10046b690 to 0x10046b7c4 (308 bytes)
//
// 5 xrefs:
// > OptionsScrollLayer::init @ 0x10046b454
// > sub_10046B5E0 @ 0x10046b680
// > sub_10046B7C4 @ 0x10046b834
// > OptionsScrollLayer::textChanged @ 0x10046b8d4
// > OptionsScrollLayer::cellPerformedAction @ 0x10046bc8c
//
// 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:05:34 +0000
//
__int64 __fastcall OptionsScrollLayer::setupList(__int64 a1, __int64 a2)
{
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
double WinSize; // d0
__int64 v8; // x0
char *v9; // x0
_QWORD *v10; // x0
__int64 v11; // x19
float v13; // [xsp+0h] [xbp-20h] BYREF
__int64 v14; // [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();
WinSize = cocos2d::CCDirector::getWinSize(v6, &v14);
if ( a2 )
{
v8 = sub_10046B920(a1, a2, WinSize);
v9 = CustomListView::create(v8, a1 + 664, 0, 24, 220.0, 340.0, 0.0);
}
else
{
v9 = nullptr;
}
v10 = GJCommentListLayer::create((__int64)v9, 340.0, 220.0);
*(_QWORD *)(a1 + 680) = v10;
(*(void (__fastcall **)(_QWORD, _QWORD *))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v10);
v11 = *(_QWORD *)(a1 + 680);
sub_1000262BC(
&v13,
(float)(*(float *)&v14 + -340.0) * 0.5,
(float)((float)(*((float *)&v14 + 1) + -220.0) * 0.5) + -10.0);
return (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v11 + 184LL))(v11, &v13);
}