//
// sub_140485FC0 from 0x140485fc0 to 0x140486182 (450 bytes)
//
// 2 xrefs:
// > SFXBrowser::setupList @ 0x140619dbe
// > ??> @ 0x140928c10
//
// This function is hookable on this platform (idp: pc, 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 11:32:46 +0000
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall sub_140485FC0(__int64 a1, _QWORD *a2, int a3)
{
int v5; // edi
cocos2d::CCDictionary *v6; // rcx
struct cocos2d::CCObject *v7; // rax
__int64 v8; // rdx
cocos2d::CCDictionary *v9; // rcx
__int64 v10; // rdx
cocos2d::CCDictionary *v11; // rcx
struct cocos2d::CCObject *v12; // rax
struct cocos2d::CCObject *v13; // rbx
__int64 v14; // rax
cocos2d::CCDictionary *v15; // rcx
struct cocos2d::CCObject *v16; // rax
char *v17; // r8
cocos2d::CCDictionary *v18; // rcx
struct cocos2d::CCObject *v19; // rax
__int64 v20; // rax
cocos2d::CCDictionary *v21; // rcx
struct cocos2d::CCObject *v22; // rax
v5 = 0;
*(_OWORD *)a2 = 0;
a2[2] = 0;
a2[3] = 15;
*(_BYTE *)a2 = 0;
v6 = *(cocos2d::CCDictionary **)(a1 + 920);
if ( v6 )
{
if ( a3 > 0 )
{
v7 = cocos2d::CCDictionary::objectForKey(v6, a3);
if ( v7 )
{
if ( *((_BYTE *)v7 + 72)
|| (v8 = *((int *)v7 + 15), (v9 = *(cocos2d::CCDictionary **)(a1 + 920)) != nullptr)
&& (int)v8 > 0
&& (v7 = cocos2d::CCDictionary::objectForKey(v9, v8)) != nullptr
&& *((_BYTE *)v7 + 72) )
{
v10 = *((int *)v7 + 15);
v11 = *(cocos2d::CCDictionary **)(a1 + 920);
if ( !v11
|| (int)v10 <= 0
|| (v12 = cocos2d::CCDictionary::objectForKey(v11, v10), (v13 = v12) == nullptr)
|| !*((_BYTE *)v12 + 72)
&& ((v14 = *((int *)v12 + 15), (v15 = *(cocos2d::CCDictionary **)(a1 + 920)) == nullptr)
|| (int)v14 <= 0
|| (v16 = cocos2d::CCDictionary::objectForKey(v15, v14), (v13 = v16) == nullptr)
|| !*((_BYTE *)v16 + 72)) )
{
v13 = nullptr;
}
if ( v13 )
{
while ( v5 < 10 )
{
++v5;
sub_140059D70(a2, 0, " \\ ", 3u);
v17 = (char *)v13 + 80;
if ( *((_QWORD *)v13 + 13) > 0xFu )
v17 = *(char **)v17;
sub_140059D70(a2, 0, v17, *((_QWORD *)v13 + 12));
v18 = *(cocos2d::CCDictionary **)(a1 + 920);
if ( !v18 )
break;
if ( *((int *)v13 + 15) <= 0 )
break;
v19 = cocos2d::CCDictionary::objectForKey(v18, *((int *)v13 + 15));
v13 = v19;
if ( !v19 )
break;
if ( !*((_BYTE *)v19 + 72) )
{
v20 = *((int *)v19 + 15);
v21 = *(cocos2d::CCDictionary **)(a1 + 920);
if ( !v21 )
break;
if ( (int)v20 <= 0 )
break;
v22 = cocos2d::CCDictionary::objectForKey(v21, v20);
v13 = v22;
if ( !v22 || !*((_BYTE *)v22 + 72) )
break;
}
}
}
}
}
}
}
return a2;
}