//
// CustomSongWidget::positionInfoObjects from 0x868b90 to 0x869164 (1492 bytes)
//
// 3 xrefs:
// > CustomSongWidget::updateSongInfo @ 0x869cf4
// > CustomSongWidget::init @ 0x86b974
// > ??> @ 0xe84f8
//
// 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 12:55:41 +0000
//
__int64 __fastcall CustomSongWidget::positionInfoObjects(CustomSongWidget *this)
{
__int64 v2; // x0
_BOOL4 v3; // w23
__int64 v4; // x24
void (__fastcall *v5)(__int64, __int64 *); // x25
__int64 v6; // x24
void (__fastcall *v7)(__int64, __int64 *); // x25
__int64 v8; // x24
void (__fastcall *v9)(__int64, __int64 *); // x25
__int64 v10; // x24
void (__fastcall *v11)(__int64, __int64 *); // x25
__int64 v12; // x26
__int64 v13; // x24
void (__fastcall *v14)(__int64, __int64); // x25
__int64 v15; // x0
_BOOL4 v16; // w24
const char *v17; // x1
size_t v18; // x0
char *v19; // x1
const char *v20; // x2
cocos2d::CCString *v21; // x0
size_t v22; // x0
cocos2d::CCSpriteFrameCache **v23; // x25
void (__fastcall *v24)(cocos2d::CCSpriteFrameCache **, __int64); // x26
cocos2d::CCSpriteFrameCache *v25; // x0
char *v26; // x1
__int64 v27; // x0
__int64 v28; // x1
__int64 v29; // x23
void (__fastcall *v30)(__int64, __int64 *); // x25
__int64 v31; // x26
__int64 v32; // x19
void (__fastcall *v33)(__int64, __int64 *); // x23
__int64 v34; // x25
float v35; // s0
void (__fastcall *v36)(__int64, __int64 *); // x25
__int64 v37; // x26
float v38; // s8
__int64 v39; // x23
void (__fastcall *v40)(__int64, __int64 *); // x24
__int64 v41; // x25
__int64 v42; // x24
__int64 v44; // x0
__int64 v45; // x24
void (__fastcall *v46)(__int64, __int64 *); // x25
__int64 v47; // x24
void (__fastcall *v48)(__int64, __int64 *); // x25
__int64 v49; // x26
__int64 v50; // x24
void (__fastcall *v51)(__int64, __int64 *); // x25
__int64 v52; // x26
__int64 v53; // x24
void (__fastcall *v54)(__int64, __int64 *); // x25
float *v55; // x0
__int64 v56; // x24
void (__fastcall *v57)(__int64, __int64 *); // x25
__int64 v58; // x0
char *v59; // [xsp+68h] [xbp+68h]
char *CString; // [xsp+68h] [xbp+68h]
_BYTE v61[8]; // [xsp+78h] [xbp+78h] BYREF
__int64 v62; // [xsp+80h] [xbp+80h] BYREF
__int64 v63[2]; // [xsp+88h] [xbp+88h] BYREF
char *v64; // [xsp+98h] [xbp+98h]
__int64 v65[2]; // [xsp+A0h] [xbp+A0h] BYREF
char *v66; // [xsp+B0h] [xbp+B0h]
if ( *((_BYTE *)this + 501) )
{
v2 = *((_QWORD *)this + 42);
v3 = 0;
if ( v2 )
v3 = *(_DWORD *)(v2 + 400) > 0;
v4 = *((_QWORD *)this + 44);
v5 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v4 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v62, -150.0, 9.0);
v5(v4, &v62);
v6 = *((_QWORD *)this + 46);
v7 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v6 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v62, -149.0, -9.0);
v7(v6, &v62);
v8 = *((_QWORD *)this + 47);
v9 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v8 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v62, 0.0, -22.0);
v9(v8, &v62);
v10 = *((_QWORD *)this + 57);
v11 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v10 + 184LL);
v12 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 47) + 192LL))(*((_QWORD *)this + 47));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, 0.0, -0.5);
cocos2d::CCPoint::operator+(&v62, v12);
v11(v10, &v62);
v13 = *((_QWORD *)this + 60);
v14 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 184LL);
v15 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 57) + 192LL))(*((_QWORD *)this + 57));
v14(v13, v15);
}
else
{
v44 = *((_QWORD *)this + 42);
v3 = 0;
if ( v44 )
v3 = *(_DWORD *)(v44 + 400) > 0;
v45 = *((_QWORD *)this + 44);
v46 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v45 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v62, -140.0, 29.0);
v46(v45, &v62);
v47 = *((_QWORD *)this + 45);
v48 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v47 + 184LL);
v49 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 44) + 192LL))(*((_QWORD *)this + 44));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, 1.0, -24.0);
cocos2d::CCPoint::operator+(&v62, v49);
v48(v47, &v62);
v50 = *((_QWORD *)this + 47);
v51 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v50 + 184LL);
v52 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 45) + 192LL))(*((_QWORD *)this + 45));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, 1.0, -20.0);
cocos2d::CCPoint::operator+(&v62, v52);
v51(v50, &v62);
v53 = *((_QWORD *)this + 46);
v54 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v53 + 184LL);
v55 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 44) + 192LL))(*((_QWORD *)this + 44));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v62, *v55 + 1.0, -31.0);
v54(v53, &v62);
v56 = *((_QWORD *)this + 57);
v57 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v56 + 184LL);
v58 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 47) + 192LL))(*((_QWORD *)this + 47));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v62, -34.0, *(float *)(v58 + 4));
v57(v56, &v62);
}
(*(void (__fastcall **)(_QWORD, _BOOL4))(**((_QWORD **)this + 59) + 344LL))(*((_QWORD *)this + 59), v3);
if ( v3 )
{
v16 = *(_DWORD *)(*((_QWORD *)this + 42) + 400LL) == 2;
if ( *(_DWORD *)(*((_QWORD *)this + 42) + 400LL) == 2 )
v17 = "chompo";
else
v17 = "ncs";
v59 = (char *)v17;
v63[0] = 0;
v63[1] = 0;
v64 = nullptr;
v18 = strlen(v17);
std::string::__init(v63, v59, v18);
v19 = (char *)v63 + 1;
if ( (v63[0] & 1) != 0 )
v19 = v64;
if ( *((_BYTE *)this + 501) )
v20 = "small";
else
v20 = "med";
v21 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_%s_001.png", v19, v20);
CString = (char *)cocos2d::CCString::getCString(v21);
v65[0] = 0;
v65[1] = 0;
v66 = nullptr;
v22 = strlen(CString);
std::string::__init(v65, CString, v22);
v23 = *((cocos2d::CCSpriteFrameCache ***)this + 59);
v24 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v23 + 145);
v25 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v23);
v26 = (char *)v65 + 1;
if ( (v65[0] & 1) != 0 )
v26 = v66;
v27 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v25, v26);
v24(v23, v27);
v28 = *((_QWORD *)this + 44);
v29 = *((_QWORD *)this + 59);
if ( *((_BYTE *)this + 501) )
{
v36 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v29 + 184LL);
v37 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v28 + 192LL))(*((_QWORD *)this + 44));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, 0.0, -1.0);
cocos2d::CCPoint::operator+(&v62, v37);
v36(v29, &v62);
if ( v16 )
v38 = 45.0;
else
v38 = 37.0;
v39 = *((_QWORD *)this + 44);
v40 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v39 + 184LL);
v41 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v39 + 192LL))(v39);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, v38, 0.0);
cocos2d::CCPoint::operator+(&v62, v41);
v40(v39, &v62);
v32 = *((_QWORD *)this + 45);
v33 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v32 + 184LL);
v42 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v32 + 192LL))(v32);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, v38, 0.0);
cocos2d::CCPoint::operator+(&v62, v42);
}
else
{
v30 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v29 + 184LL);
v31 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v28 + 192LL))(*((_QWORD *)this + 44));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, 0.0, -2.0);
cocos2d::CCPoint::operator+(&v62, v31);
v30(v29, &v62);
v32 = *((_QWORD *)this + 44);
v33 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v32 + 184LL);
v34 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v32 + 192LL))(v32);
if ( v16 )
v35 = 61.0;
else
v35 = 53.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, v35, 0.0);
cocos2d::CCPoint::operator+(&v62, v34);
}
v33(v32, &v62);
if ( (v65[0] & 1) != 0 )
operator delete(v66);
if ( (v63[0] & 1) != 0 )
operator delete(v64);
}
return _stack_chk_guard;
}