//
// OptionsScrollLayer::create from 0x10046a918 to 0x10046aa4c (308 bytes)
//
// 2 xrefs:
// > sub_100469268 @ 0x1004692a8
// > sub_100469320 @ 0x100469360
//
// 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
//
char *__fastcall OptionsScrollLayer::create(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
char *v8; // x19
int v9; // w0
int v10; // w20
void *__p[2]; // [xsp+0h] [xbp-50h] BYREF
__int64 v13; // [xsp+10h] [xbp-40h]
v8 = (char *)operator new(0x2F8u);
FLAlertLayer::FLAlertLayer((__int64)v8);
*(_QWORD *)v8 = off_10096B718;
*((_QWORD *)v8 + 40) = off_10096BC78;
*((_QWORD *)v8 + 41) = &off_10096BCE8;
*((_QWORD *)v8 + 42) = off_10096BD00;
*((_QWORD *)v8 + 43) = off_10096BD20;
*((_QWORD *)v8 + 44) = off_10096BD48;
*((_QWORD *)v8 + 51) = off_10096BD78;
*((_QWORD *)v8 + 54) = off_10096BDF8;
*((_QWORD *)v8 + 68) = off_10096BE18;
*((_QWORD *)v8 + 83) = off_10096BE60;
*((_OWORD *)v8 + 42) = 0u;
v8[688] = 0;
*(_OWORD *)(v8 + 696) = 0u;
*(_OWORD *)(v8 + 712) = 0u;
*(_OWORD *)(v8 + 728) = 0u;
*(_OWORD *)(v8 + 744) = 0u;
if ( *(char *)(a3 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a3, *(_QWORD *)(a3 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a3;
v13 = *(_QWORD *)(a3 + 16);
}
v9 = OptionsScrollLayer::init(v8, a1, a2, __p, a4);
v10 = v9;
if ( SHIBYTE(v13) < 0 )
{
operator delete(__p[0]);
if ( v10 )
goto LABEL_6;
LABEL_8:
(*(void (__fastcall **)(char *))(*(_QWORD *)v8 + 16LL))(v8);
return nullptr;
}
if ( !v9 )
goto LABEL_8;
LABEL_6:
cocos2d::CCObject::autorelease((__int64)v8);
return v8;
}