//
// sub_10011FDF4 from 0x10011fdf4 to 0x10012035c (1384 bytes)
//
// 2 xrefs:
// > CustomSongWidget::init @ 0x10011f428
// > CustomSongWidget::updateSongInfo @ 0x1001204c4
//
// 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:15 +0000
//
void __fastcall sub_10011FDF4(__int64 a1)
{
__int64 v2; // x9
_BOOL8 v3; // x20
__int64 v4; // x21
__int64 v5; // x21
__int64 v6; // x21
__int64 v7; // x21
float32x2_t *v8; // x22
double v9; // d0
__int64 v10; // x21
__int64 v11; // x1
__int64 v12; // x21
float32x2_t *v13; // x22
double v14; // d0
__int64 v15; // x21
float32x2_t *v16; // x22
double v17; // d0
__int64 v18; // x21
float *v19; // x0
__int64 v20; // x0
__int64 v21; // x21
float32x2_t *v22; // x22
double v23; // d0
__int64 v24; // x21
__int64 v25; // x0
int v26; // w22
char *v27; // x1
void **v28; // x8
const char *v29; // x9
__int64 v30; // x0
char *CString; // x0
_QWORD *v32; // x0
__int64 v33; // x20
__int64 v34; // x0
void **v35; // x1
__int64 v36; // x0
__int64 v37; // x20
float32x2_t *v38; // x21
double v39; // d0
unsigned int v40; // w22
__int64 v41; // x20
float32x2_t *v42; // x21
double v43; // d0
__int64 v44; // x19
float32x2_t *v45; // x20
double v46; // d0
float32x2_t *v47; // x21
double v48; // d0
__int64 v49; // x19
float32x2_t *v50; // x20
unsigned int v51; // w8
double v52; // d0
float32x2_t v53; // [xsp+10h] [xbp-70h] BYREF
float32x2_t v54; // [xsp+18h] [xbp-68h] BYREF
void *__p[2]; // [xsp+20h] [xbp-60h] BYREF
char v56; // [xsp+37h] [xbp-49h]
void *v57[2]; // [xsp+38h] [xbp-48h] BYREF
char v58; // [xsp+4Fh] [xbp-31h]
v2 = *(_QWORD *)(a1 + 336);
if ( v2 )
v3 = *(_DWORD *)(v2 + 400) > 0;
else
v3 = 0;
v4 = *(_QWORD *)(a1 + 352);
if ( (*(_BYTE *)(a1 + 501) & 1) != 0 )
{
sub_1000262BC((float *)v57, -150.0, 9.0);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v4 + 184LL))(v4, v57);
v5 = *(_QWORD *)(a1 + 368);
sub_1000262BC((float *)v57, -149.0, -9.0);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v5 + 184LL))(v5, v57);
v6 = *(_QWORD *)(a1 + 376);
sub_1000262BC((float *)v57, 0.0, -22.0);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v6 + 184LL))(v6, v57);
v7 = *(_QWORD *)(a1 + 456);
v8 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 376) + 192LL))(*(_QWORD *)(a1 + 376));
sub_1000262BC((float *)__p, 0.0, -0.5);
*(float32x2_t *)&v9 = sub_100026318(v8, (float32x2_t *)__p, (float32x2_t *)v57);
(*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v7 + 184LL))(v7, v57, v9);
v10 = *(_QWORD *)(a1 + 480);
v11 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 456) + 192LL))(*(_QWORD *)(a1 + 456));
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 184LL))(v10, v11);
}
else
{
sub_1000262BC((float *)v57, -140.0, 29.0);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v4 + 184LL))(v4, v57);
v12 = *(_QWORD *)(a1 + 360);
v13 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 352) + 192LL))(*(_QWORD *)(a1 + 352));
sub_1000262BC((float *)__p, 1.0, -24.0);
*(float32x2_t *)&v14 = sub_100026318(v13, (float32x2_t *)__p, (float32x2_t *)v57);
(*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v12 + 184LL))(v12, v57, v14);
v15 = *(_QWORD *)(a1 + 376);
v16 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 360) + 192LL))(*(_QWORD *)(a1 + 360));
sub_1000262BC((float *)__p, 1.0, -20.0);
*(float32x2_t *)&v17 = sub_100026318(v16, (float32x2_t *)__p, (float32x2_t *)v57);
(*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v15 + 184LL))(v15, v57, v17);
v18 = *(_QWORD *)(a1 + 368);
v19 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 352) + 192LL))(*(_QWORD *)(a1 + 352));
sub_1000262BC((float *)v57, *v19 + 1.0, -31.0);
v20 = (*(__int64 (__fastcall **)(__int64, void **))(*(_QWORD *)v18 + 184LL))(v18, v57);
if ( *(_BYTE *)(AppDelegate::get(v20) + 37) == 1 )
{
v21 = *(_QWORD *)(a1 + 368);
v22 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v21 + 192LL))(v21);
sub_1000262BC((float *)__p, 0.0, 4.0);
*(float32x2_t *)&v23 = sub_100026318(v22, (float32x2_t *)__p, (float32x2_t *)v57);
(*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v21 + 184LL))(v21, v57, v23);
}
v24 = *(_QWORD *)(a1 + 456);
v25 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 376) + 192LL))(*(_QWORD *)(a1 + 376));
sub_1000262BC((float *)v57, -34.0, *(float *)(v25 + 4));
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v24 + 184LL))(v24, v57);
}
(*(void (__fastcall **)(_QWORD, _BOOL8))(**(_QWORD **)(a1 + 472) + 344LL))(*(_QWORD *)(a1 + 472), v3);
if ( v3 )
{
v26 = *(_DWORD *)(*(_QWORD *)(a1 + 336) + 400LL);
if ( v26 == 2 )
v27 = "chompo";
else
v27 = "ncs";
sub_100009900(v57, v27);
if ( v58 >= 0 )
v28 = v57;
else
v28 = (void **)v57[0];
if ( *(_BYTE *)(a1 + 501) )
v29 = "small";
else
v29 = "med";
v30 = sub_1003065B0("%s_%s_001.png", (const char *)v28, v29);
CString = (char *)cocos2d::CCString::getCString(v30);
v32 = sub_100009900(__p, CString);
v33 = *(_QWORD *)(a1 + 472);
v34 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v32);
if ( v56 >= 0 )
v35 = __p;
else
v35 = (void **)__p[0];
v36 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v34, v35);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v33 + 1160LL))(v33, v36);
v37 = *(_QWORD *)(a1 + 472);
if ( (*(_BYTE *)(a1 + 501) & 1) != 0 )
{
v38 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 352) + 192LL))(*(_QWORD *)(a1 + 352));
sub_1000262BC((float *)&v53, 0.0, -1.0);
*(float32x2_t *)&v39 = sub_100026318(v38, &v53, &v54);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v37 + 184LL))(v37, &v54, v39);
if ( v26 == 2 )
v40 = 45;
else
v40 = 37;
v41 = *(_QWORD *)(a1 + 352);
v42 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v41 + 192LL))(v41);
sub_1000262BC((float *)&v53, (float)v40, 0.0);
*(float32x2_t *)&v43 = sub_100026318(v42, &v53, &v54);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v41 + 184LL))(v41, &v54, v43);
v44 = *(_QWORD *)(a1 + 360);
v45 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v44 + 192LL))(v44);
sub_1000262BC((float *)&v53, (float)v40, 0.0);
*(float32x2_t *)&v46 = sub_100026318(v45, &v53, &v54);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v44 + 184LL))(v44, &v54, v46);
}
else
{
v47 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 352) + 192LL))(*(_QWORD *)(a1 + 352));
sub_1000262BC((float *)&v53, 0.0, -2.0);
*(float32x2_t *)&v48 = sub_100026318(v47, &v53, &v54);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v37 + 184LL))(v37, &v54, v48);
v49 = *(_QWORD *)(a1 + 352);
v50 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v49 + 192LL))(v49);
if ( v26 == 2 )
v51 = 61;
else
v51 = 53;
sub_1000262BC((float *)&v53, (float)v51, 0.0);
*(float32x2_t *)&v52 = sub_100026318(v50, &v53, &v54);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v49 + 184LL))(v49, &v54, v52);
}
if ( v56 < 0 )
operator delete(__p[0]);
if ( v58 < 0 )
operator delete(v57[0]);
}
}