//
// SFXBrowser::updateSelectionUI from 0xb91b54 to 0xb91f4c (1016 bytes)
//
// 5 xrefs:
// > SFXBrowser::onBatchDelete @ 0xb92118
// > SFXBrowser::setupList @ 0xb9266c
// > SFXBrowser::onSelectAll @ 0xb97414
// > SFXBrowser::cellPerformedAction @ 0xb97d54
// > ??> @ 0xf7678
//
// 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 13:02:39 +0000
//
__int64 __fastcall SFXBrowser::updateSelectionUI(SFXBrowser *this)
{
__int64 v2; // x1
__int64 v3; // x0
_BOOL4 v4; // w23
__int64 v5; // x0
int v6; // w25
__int64 v7; // x0
unsigned int *v8; // x1
cocos2d::CCDirector *v9; // x0
float v10; // s0
float v11; // s9
float v12; // s8
float v13; // s13
float v14; // s10
float v15; // s12
float v16; // s11
float v17; // s1
__int64 v18; // x20
__int64 v19; // x24
void (__fastcall *v20)(__int64, __int64 *); // x28
float v21; // s8
__int64 v22; // x1
__int64 v23; // x0
float *v24; // x20
float v25; // s0
__int64 v26; // x2
cocos2d::CCNode *v27; // x22
void (__fastcall *v28)(float *, __int64 *); // x28
__int64 v29; // x20
void (__fastcall *v30)(__int64, __int64 *); // x24
__int64 v31; // x1
__int64 *v33; // x20
char *v34; // x24
__int64 v35; // x20
void (__fastcall *v36)(__int64, __int64); // x22
cocos2d::CCString *v37; // x0
__int64 CString; // x0
cocos2d::CCNode *v39; // [xsp+90h] [xbp+90h]
_BOOL4 v40; // [xsp+9Ch] [xbp+9Ch]
__int64 v41; // [xsp+A8h] [xbp+A8h] BYREF
char v42[8]; // [xsp+B0h] [xbp+B0h] BYREF
__int64 v43; // [xsp+B8h] [xbp+B8h] BYREF
_QWORD v44[3]; // [xsp+C0h] [xbp+C0h]
v2 = *((_QWORD *)this + 89);
if ( v2 )
{
v3 = *((_QWORD *)this + 114);
if ( v3 )
{
v4 = *(_DWORD *)(v2 + 140) == 4;
v40 = *((_QWORD *)this + 127) != 0;
(*(void (**)(void))(*(_QWORD *)v3 + 344LL))();
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 119) + 344LL))(*((_QWORD *)this + 119), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 120) + 344LL))(*((_QWORD *)this + 120), 0);
v5 = *((_QWORD *)this + 117);
if ( v5 )
{
(*(void (__fastcall **)(__int64, _BOOL4))(*(_QWORD *)v5 + 344LL))(v5, v4);
SFXBrowser::updateShareItem(this);
}
v6 = 0;
if ( v4 )
v6 = *((unsigned __int8 *)this + 872);
v7 = *((_QWORD *)this + 108);
if ( v7 )
{
v8 = *(unsigned int **)(v7 + 56);
v7 = *v8;
if ( (_DWORD)v7 )
{
v33 = *((__int64 **)v8 + 2);
v7 = 8LL * (unsigned int)v7 - 8;
v34 = (char *)v33 + v7;
if ( v33 <= (__int64 *)((char *)v33 + v7) )
{
do
{
v7 = *v33;
if ( !*v33 )
break;
if ( *((_QWORD *)this + 107) != v7 )
v7 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 344LL))(
v7,
(v6 | *((unsigned __int8 *)this + 872) ^ 1) ^ 1u);
++v33;
}
while ( v34 >= (char *)v33 );
}
}
}
v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v7);
cocos2d::CCDirector::getWinSize(&v41, v9);
v10 = (float)(*((float *)&v41 + 1) * 0.5) + 110.0;
v11 = v10 + 6.0;
v12 = (float)((float)(*(float *)&v41 * 0.5) + -170.0) + 2.0;
if ( *((_BYTE *)this + 872) )
{
v13 = v11 - 2.0;
v14 = 0.7;
v15 = 21.6;
v16 = 265.0;
v17 = v11 - 2.0;
}
else
{
v17 = v11 - 2.0;
v13 = v10 + 6.0;
v15 = 32.0;
v16 = 48.0;
v14 = 1.0;
}
v18 = *((_QWORD *)this + 94);
v39 = *((cocos2d::CCNode **)this + 69);
v19 = 0;
v20 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v42, v12 + 328.0, v17);
cocos2d::CCNode::convertToNodeSpace(&v43, v39, (const cocos2d::CCPoint *)v42);
v20(v18, &v43);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 94) + 344LL))(
*((_QWORD *)this + 94),
*((unsigned __int8 *)this + 872));
v21 = v16 + v12;
v22 = *((_QWORD *)this + 122);
v23 = *((_QWORD *)this + 123);
v44[0] = *((_QWORD *)this + 121);
v44[1] = v22;
v44[2] = v23;
do
{
v24 = (float *)v44[v19];
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v24 + 160LL))(v24, v14);
v25 = (float)(int)v19;
v26 = *(_QWORD *)v24;
v24[101] = v14;
v27 = *((cocos2d::CCNode **)this + 69);
v28 = *(void (__fastcall **)(float *, __int64 *))(v26 + 184);
++v19;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v42, v21 + (float)(v15 * v25), v13);
cocos2d::CCNode::convertToNodeSpace(&v43, v27, (const cocos2d::CCPoint *)v42);
v28(v24, &v43);
}
while ( v19 != 3 );
v29 = *((_QWORD *)this + 124);
v30 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v29 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v43, (float)(v21 + (float)(v15 * 2.0)) + 18.0, v11);
v30(v29, &v43);
(*(void (__fastcall **)(_QWORD, _BOOL4))(**((_QWORD **)this + 121) + 344LL))(*((_QWORD *)this + 121), v4);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 122) + 344LL))(
*((_QWORD *)this + 122),
v40 & (unsigned int)v4);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 123) + 344LL))(
*((_QWORD *)this + 123),
v40 & (unsigned int)v4);
v31 = 0;
if ( v40 && v4 )
v31 = *((unsigned __int8 *)this + 872) ^ 1u;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 124) + 344LL))(*((_QWORD *)this + 124), v31);
if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**((_QWORD **)this + 124) + 352LL))(*((_QWORD *)this + 124)) )
{
v35 = *((_QWORD *)this + 124);
v36 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v35 + 928LL);
v37 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"(%i)",
(const char *)*((unsigned int *)this + 254));
CString = cocos2d::CCString::getCString(v37);
v36(v35, CString);
cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 124), 40.0, 0.4, 0.0);
}
SFXBrowser::fitFolderPath(this);
}
}
return _stack_chk_guard;
}