//
// OptionsScrollLayer::setupList from 0x1006ebb60 to 0x1006ebca1 (321 bytes)
//
// 6 xrefs:
// > OptionsScrollLayer::init @ 0x1006eb91b
// > OptionsScrollLayer::onClearAll @ 0x1006ebb4b
// > OptionsScrollLayer::onMatchToggle @ 0x1006ebd23
// > OptionsScrollLayer::textChanged @ 0x1006ebdeb
// > OptionsScrollLayer::cellPerformedAction @ 0x1006ec3bd
// > sub_1006EC3F0 @ 0x1006ec40e
//
// This function is hookable on this platform (idp: pc, 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 12:35:49 +0000
//
__int64 __fastcall OptionsScrollLayer::setupList(__int64 a1, __int64 a2)
{
__int64 v3; // rax
__int64 v4; // rax
__int64 v5; // rax
__int64 RelevantObjects; // rax
char *v7; // rdi
_QWORD *v8; // rax
__int64 v9; // rbx
float v11; // [rsp+0h] [rbp-20h] BYREF
__int64 v12; // [rsp+8h] [rbp-18h] BYREF
if ( *(_QWORD *)(a1 + 680) )
{
v3 = cocos2d::CCDirector::sharedDirector();
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, *(_QWORD *)(a1 + 680));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 680) + 536LL))(*(_QWORD *)(a1 + 680));
*(_QWORD *)(a1 + 680) = 0;
}
v5 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v12, v5);
if ( a2 )
{
RelevantObjects = OptionsScrollLayer::getRelevantObjects(a1, a2);
v7 = CustomListView::create(RelevantObjects, a1 + 664, 0, 0x18u, 220.0, 340.0, 0.0);
}
else
{
v7 = nullptr;
}
v8 = GJCommentListLayer::create((__int64)v7, 340.0, 220.0, (__int64)"", 0xFF3E72BF, 0);
*(_QWORD *)(a1 + 680) = v8;
(*(void (__fastcall **)(_QWORD, _QWORD *))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v8);
v9 = *(_QWORD *)(a1 + 680);
sub_100278250(
&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);
}