//
// sub_100139B88 from 0x100139b88 to 0x100139e00 (632 bytes)
//
// 4 xrefs:
// > sub_100139ABC @ 0x100139b04
// > sub_100139ABC @ 0x100139b24
// > sub_100139ABC @ 0x100139b44
// > sub_100139ABC @ 0x100139b6c
//
// 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:28 +0000
//
float __fastcall sub_100139B88(__int64 a1, const char *a2, __int64 a3, float *a4, int a5, float a6)
{
void **v11; // x0
__int64 v12; // x21
__int64 v13; // x24
float32x2_t *v14; // x25
float v15; // s8
float v16; // s8
float v17; // s1
double v18; // d0
float v19; // s8
float v20; // s10
float result; // s0
float32x2_t v22; // [xsp+0h] [xbp-80h] BYREF
void *__p[2]; // [xsp+8h] [xbp-78h] BYREF
char v24; // [xsp+1Fh] [xbp-61h]
GameToolbox::intToShortString(a1, __p);
if ( v24 >= 0 )
v11 = __p;
else
v11 = (void **)__p[0];
v12 = cocos2d::CCLabelBMFont::create_1(v11, "bigFont.fnt");
if ( v24 < 0 )
operator delete(__p[0]);
sub_1000262BC((float *)__p, 0.0, 0.5);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v12 + 296LL))(v12, __p);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v12 + 160LL))(v12, 0.4);
sub_1000262BC((float *)__p, *a4, a6);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v12 + 184LL))(v12, __p);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a3 + 464LL))(a3, v12, 2);
v13 = cocos2d::CCSprite::createWithSpriteFrameName(a2);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 160LL))(v13, 0.5);
v14 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 192LL))(v12);
v15 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 328LL))(v12);
v16 = (float)(v15 * (*(float (__fastcall **)(__int64))(*(_QWORD *)v12 + 168LL))(v12)) + 7.0;
if ( !strcmp(a2, "GJ_starsIcon_001.png") )
v17 = -1.0;
else
v17 = 0.0;
sub_1000262BC((float *)&v22, v16, v17);
*(float32x2_t *)&v18 = sub_100026318(v14, &v22, (float32x2_t *)__p);
(*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v13 + 184LL))(v13, __p, v18);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a3 + 464LL))(a3, v13, 2);
if ( a5 )
{
BYTE2(__p[0]) = -126;
LOWORD(__p[0]) = -32126;
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v12 + 1072LL))(v12, __p);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 1024LL))(v12, 150);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 912LL))(v13, 110);
}
v19 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v13 + 224LL))(v13);
v20 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 328LL))(v13);
result = (float)(v19 + (float)((float)(v20 * (*(float (__fastcall **)(__int64))(*(_QWORD *)v13 + 168LL))(v13)) * 0.5))
+ 8.0;
*a4 = result;
return result;
}