//
// sub_10005EE2C from 0x10005ee2c to 0x10005f090 (612 bytes)
//
// 11 xrefs:
// > MoreSearchLayer::init @ 0x10005dff8
// > MoreSearchLayer::init @ 0x10005e070
// > MoreSearchLayer::init @ 0x10005e0e0
// > MoreSearchLayer::init @ 0x10005e150
// > MoreSearchLayer::init @ 0x10005e1bc
// > MoreSearchLayer::init @ 0x10005e228
// > MoreSearchLayer::init @ 0x10005e2a0
// > MoreSearchLayer::init @ 0x10005e30c
// > MoreSearchLayer::init @ 0x10005e378
// > MoreSearchLayer::init @ 0x10005e3f0
// > MoreSearchLayer::init @ 0x10005e45c
//
// 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:57:49 +0000
//
__int64 __fastcall sub_10005EE2C(
__int64 a1,
__int64 *a2,
__int64 a3,
__int64 a4,
__int64 a5,
__int64 a6,
float32x2_t *a7)
{
__int64 v14; // x22
__int64 v15; // x27
__int64 v16; // x19
__n128 v17; // q0
__int64 v18; // x21
float *v19; // x0
double v20; // d0
__n128 v21; // q0
float *v22; // x0
float32x2_t v24; // [xsp+0h] [xbp-70h] BYREF
float32x2_t v25; // [xsp+8h] [xbp-68h] BYREF
v14 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOn_001.png");
v15 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOff_001.png");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v14 + 160LL))(v14, 0.8);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v15 + 160LL))(v15, 0.8);
v16 = CCMenuItemToggler::create(v14, v15, a1, a3, a4);
CCMenuItemToggler::toggle(v16, a5);
v17.n128_f64[0] = (*(double (__fastcall **)(__int64, __int64))(*(_QWORD *)a6 + 456LL))(a6, v16);
cocos2d::CCNode::convertToNodeSpace(&v25, a6, a7, v17);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v16 + 184LL))(v16, &v25);
CCMenuItemToggler::setSizeMult(v16, 1.5);
if ( *((char *)a2 + 23) < 0 )
a2 = (__int64 *)*a2;
v18 = cocos2d::CCLabelBMFont::create_1(a2, "bigFont.fnt");
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v18);
sub_1000262BC((float *)&v25, 0.0, 0.5);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v18 + 296LL))(v18, &v25);
v19 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v14 + 328LL))(v14);
sub_1000262BC((float *)&v24, (float)((float)(*v19 * 0.5) * 0.8) + 8.0, 0.0);
*(float32x2_t *)&v20 = sub_100026318(a7, &v24, &v25);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v18 + 184LL))(v18, &v25, v20);
v21.n128_u32[0] = *(_DWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v18 + 328LL))(v18);
if ( v21.n128_f32[0] > 80.0 )
{
v22 = (float *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v18 + 328LL))(v18, v21.n128_f32[0]);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v18 + 160LL))(v18, 80.0 / *v22);
}
if ( (*(float (__fastcall **)(__int64, __n128))(*(_QWORD *)v18 + 168LL))(v18, v21) <= 0.35 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v18 + 168LL))(v18);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v18 + 160LL))(v18);
return v16;
}