//
// OptionsScrollLayer::setupList from 0x6bde0c to 0x6bdf1a (270 bytes)
//
// 5 xrefs:
// > OptionsScrollLayer::onMatchToggle @ 0x6bdf80
// > OptionsScrollLayer::onClearAll @ 0x6bdfec
// > OptionsScrollLayer::cellPerformedAction @ 0x6be016
// > OptionsScrollLayer::textChanged @ 0x6bfb88
// > OptionsScrollLayer::init @ 0x6c087e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:56:48 +0000
//
int __fastcall OptionsScrollLayer::setupList(OptionsScrollLayer *this, cocos2d::CCArray *a2)
{
OptionsScrollLayer *v2; // r4
int v4; // r0
cocos2d::CCTouchDispatcher *v5; // r0
cocos2d::CCObject *RelevantObjects; // r0
cocos2d::CCLayer *v7; // r0
cocos2d::CCLayerColor *v8; // r0
int v9; // r5
int (__fastcall *v10)(int, _BYTE *); // r7
float v12[2]; // [sp+14h] [bp-18h] BYREF
_BYTE v13[8]; // [sp+1Ch] [bp-10h] BYREF
v2 = this;
if ( *((_DWORD *)this + 132) )
{
v4 = cocos2d::CCDirector::sharedDirector(this);
v5 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 80))(v4);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, *((cocos2d::CCObject **)v2 + 132));
this = (OptionsScrollLayer *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)v2 + 132) + 268))(*((_DWORD *)v2 + 132));
*((_DWORD *)v2 + 132) = 0;
}
cocos2d::CCDirector::sharedDirector(this);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v12);
if ( a2 )
{
RelevantObjects = OptionsScrollLayer::getRelevantObjects(v2, a2);
v7 = CustomListView::create(RelevantObjects, (int)v2 + 520, 1130102784, 1135214592, 0, 24, 0);
}
else
{
v7 = nullptr;
}
v8 = GJCommentListLayer::create((int)v7, (int)&unk_B6B226, -12684609, 340.0, 220.0, 0);
*((_DWORD *)v2 + 132) = v8;
(*(void (__fastcall **)(_DWORD, cocos2d::CCLayerColor *))(**((_DWORD **)v2 + 115) + 228))(*((_DWORD *)v2 + 115), v8);
v9 = *((_DWORD *)v2 + 132);
v10 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v9 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v13,
(float)(v12[0] - 340.0) * 0.5,
(float)((float)(v12[1] - 220.0) * 0.5) - 10.0);
return v10(v9, v13);
}