//
// sub_100114950 from 0x100114950 to 0x100114bac (604 bytes)
//
// 3 xrefs:
// > VideoOptionsLayer::init @ 0x100113fa8
// > VideoOptionsLayer::init @ 0x100114054
// > VideoOptionsLayer::init @ 0x100114108
//
// 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 10:59:10 +0000
//
__int64 __fastcall sub_100114950(
__int64 a1,
__int64 *a2,
__int64 a3,
__int64 a4,
__int64 a5,
__int64 a6,
float32x2_t *a7,
int a8,
float a9,
float a10,
__int64 a11)
{
__int64 v20; // x21
__int64 v21; // x19
__int64 v22; // x20
__n128 v23; // q0
__int64 v24; // x22
float v25; // s1
float v26; // s0
double v27; // d0
float32x2_t v30; // [xsp+10h] [xbp-80h] BYREF
float32x2_t v31; // [xsp+18h] [xbp-78h] BYREF
v20 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOn_001.png");
v21 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOff_001.png");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v20 + 160LL))(v20, a9);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v21 + 160LL))(v21, a9);
v22 = CCMenuItemToggler::create(v21, v20, a1, a3, a4);
CCMenuItemToggler::toggle(v22, a5);
v23.n128_f64[0] = (*(double (__fastcall **)(__int64, __int64))(*(_QWORD *)a6 + 456LL))(a6, v22);
cocos2d::CCNode::convertToNodeSpace(&v31, a6, a7, v23);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v22 + 184LL))(v22, &v31);
CCMenuItemToggler::setSizeMult(v22, 1.5);
if ( *((char *)a2 + 23) < 0 )
a2 = (__int64 *)*a2;
v24 = cocos2d::CCLabelBMFont::create_1(a2, "bigFont.fnt");
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v24);
if ( a11 )
sub_1002E74E0(a11, v24);
if ( a8 )
{
sub_1000262BC((float *)&v31, 0.5, 0.0);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v24 + 296LL))(v24, &v31);
v25 = (float)((float)(*(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v20 + 328LL))(v20) + 4) * 0.5) * a9)
+ 6.0;
v26 = 0.0;
}
else
{
sub_1000262BC((float *)&v31, 0.0, 0.5);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v24 + 296LL))(v24, &v31);
v26 = (float)((float)(*(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v20 + 328LL))(v20) * 0.5) * a9)
+ 8.0;
v25 = 0.0;
}
sub_1000262BC((float *)&v30, v26, v25);
*(float32x2_t *)&v27 = sub_100026318(a7, &v30, &v31);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v24 + 184LL))(v24, &v31, v27);
cocos2d::CCLabelBMFont::limitLabelWidth(v24, a10, 0.0, 0.0);
return v22;
}