//
// OptionsScrollLayer::setupList from 0xb84b38 to 0xb84cb4 (380 bytes)
//
// 8 xrefs:
// > OptionsScrollLayer::onMatchToggle @ 0xb84d24
// > OptionsScrollLayer::onMatchToggle @ 0xb84d4c
// > OptionsScrollLayer::onClearAll @ 0xb84e14
// > OptionsScrollLayer::cellPerformedAction @ 0xb84e78
// > OptionsScrollLayer::textChanged @ 0xb87590
// > OptionsScrollLayer::init @ 0xb88af0
// > OptionsScrollLayer::init @ 0xb88b5c
// > ??> @ 0x85198
//
// 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 13:02:30 +0000
//
__int64 __fastcall OptionsScrollLayer::setupList(OptionsScrollLayer *this, cocos2d::CCArray *a2)
{
cocos2d::CCDirector *v4; // x0
__int64 v5; // x0
cocos2d::CCTouchDispatcher *v6; // x0
cocos2d::CCDirector *v7; // x0
cocos2d::CCObject *RelevantObjects; // x0
__int64 v9; // x0
cocos2d::CCLayerColor *v10; // x0
__int64 v11; // x19
void (__fastcall *v12)(__int64, _BYTE *); // x21
__int64 v14; // [xsp+58h] [xbp+58h] BYREF
_BYTE v15[8]; // [xsp+60h] [xbp+60h] BYREF
v4 = *((cocos2d::CCDirector **)this + 85);
if ( v4 )
{
v5 = cocos2d::CCDirector::sharedDirector(v4);
v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, *((cocos2d::CCObject **)this + 85));
v4 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 85) + 536LL))(*((_QWORD *)this + 85));
*((_QWORD *)this + 85) = 0;
}
v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);
cocos2d::CCDirector::getWinSize(&v14, v7);
if ( a2 )
{
RelevantObjects = OptionsScrollLayer::getRelevantObjects(this, a2);
v9 = CustomListView::create(RelevantObjects, (int)this + 664, 0, 24, 220.0, 340.0, 0.0);
}
else
{
v9 = 0;
}
v10 = GJCommentListLayer::create(v9, (__int64)&byte_11B8890, -12684609, 0, 340.0, 220.0);
*((_QWORD *)this + 85) = v10;
(*(void (__fastcall **)(_QWORD, cocos2d::CCLayerColor *))(**((_QWORD **)this + 73) + 456LL))(
*((_QWORD *)this + 73),
v10);
v11 = *((_QWORD *)this + 85);
v12 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v11 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v15,
(float)(*(float *)&v14 - 340.0) * 0.5,
(float)((float)(*((float *)&v14 + 1) - 220.0) * 0.5) + -10.0);
v12(v11, v15);
return _stack_chk_guard;
}