//
// EditorSFXManager::summarizeBlob from 0x780388 to 0x7807d4 (1100 bytes)
//
// 2 xrefs:
// > EditorSoundConfigInfoLayer::buildSummary @ 0x785fbe
// > EditorSoundConfigInfoLayer::missingSFXIDs @ 0x7884aa
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:28 +0000
//
int __fastcall EditorSFXManager::summarizeBlob(int a1, unsigned __int8 *a2)
{
int v3; // r6
int v4; // r3
int v5; // r3
size_t v6; // r3
const char *v7; // r0
int v8; // r1
int v9; // r2
int v10; // r3
int v11; // r3
char *v12; // r0
char *v13; // r0
_DWORD *v14; // r6
int v15; // r3
int v16; // r3
const char *v17; // r0
char *v18; // r0
char **v19; // r3
unsigned int v20; // r8
unsigned int v21; // r2
int v22; // r10
_DWORD *v23; // r3
_DWORD *i; // r4
unsigned int v25; // r0
int v26; // r1
int v27; // r3
signed int v28; // r6
char *v29; // r0
const void *v30; // r1
signed int v31; // r4
unsigned int *v32; // r3
unsigned int v33; // r2
char *v35; // [sp+10h] [bp-D4h]
char *v36; // [sp+14h] [bp-D0h]
int v37; // [sp+28h] [bp-BCh] BYREF
int v38; // [sp+2Ch] [bp-B8h] BYREF
unsigned int v39; // [sp+30h] [bp-B4h] BYREF
unsigned int v40; // [sp+34h] [bp-B0h] BYREF
_DWORD v41[2]; // [sp+38h] [bp-ACh] BYREF
unsigned __int8 v42[4]; // [sp+40h] [bp-A4h] BYREF
int v43; // [sp+44h] [bp-A0h]
int v44[3]; // [sp+4Ch] [bp-98h] BYREF
int v45; // [sp+58h] [bp-8Ch] BYREF
int v46; // [sp+5Ch] [bp-88h]
int v47; // [sp+60h] [bp-84h]
int v48; // [sp+64h] [bp-80h] BYREF
int v49; // [sp+68h] [bp-7Ch]
char *v50; // [sp+6Ch] [bp-78h]
_DWORD v51[2]; // [sp+70h] [bp-74h] BYREF
char *v52; // [sp+78h] [bp-6Ch]
_DWORD v53[3]; // [sp+7Ch] [bp-68h] BYREF
int v54; // [sp+88h] [bp-5Ch] BYREF
int v55; // [sp+8Ch] [bp-58h]
int v56; // [sp+90h] [bp-54h]
int v57; // [sp+94h] [bp-50h] BYREF
int v58; // [sp+98h] [bp-4Ch]
char *v59; // [sp+9Ch] [bp-48h]
_DWORD v60[2]; // [sp+A0h] [bp-44h] BYREF
char *v61; // [sp+A8h] [bp-3Ch]
char *v62[3]; // [sp+ACh] [bp-38h] BYREF
unsigned int v63; // [sp+B8h] [bp-2Ch] BYREF
char *v64; // [sp+BCh] [bp-28h] BYREF
char *v65; // [sp+C0h] [bp-24h]
char *v66; // [sp+C4h] [bp-20h]
int v67; // [sp+C8h] [bp-1Ch] BYREF
unsigned int v68; // [sp+CCh] [bp-18h]
int v69; // [sp+D0h] [bp-14h]
int v70; // [sp+D4h] [bp-10h]
int v71; // [sp+D8h] [bp-Ch]
*(_DWORD *)a1 = 0;
*(_DWORD *)(a1 + 4) = 0;
*(_DWORD *)(a1 + 8) = 0;
v3 = *a2;
if ( (v3 & 1) != 0 )
v4 = *((_DWORD *)a2 + 1);
else
v4 = v3 >> 1;
if ( v4 )
{
cocos2d::ZipUtils::decompressString(v42, a2, 0, 0);
if ( (v42[0] & 1) != 0 )
v5 = v43;
else
v5 = (int)v42[0] >> 1;
if ( v5 )
{
v6 = std::string::find(v42, 59, 0);
if ( v6 == -1 )
std::string::basic_string(v44, (int)v42);
else
std::string::basic_string(v44, v42, 0, v6);
if ( (v44[0] & 1) != 0 )
v7 = (const char *)v44[2];
else
v7 = (char *)v44 + 1;
if ( (unsigned int)(atoi(v7) - 1) <= 1 )
{
v71 = 1065353216;
v67 = 0;
v37 = 0;
v68 = 0;
v69 = 0;
v70 = 0;
v45 = 0;
v46 = 0;
v47 = 0;
v41[0] = &v37;
v41[1] = v42;
if ( sub_77F8AC((int)v41, (int)&v45) )
{
while ( sub_77F8AC((int)v41, (int)&v45) )
{
if ( (v45 & 1) != 0 )
v10 = v46;
else
v10 = (int)(unsigned __int8)v45 >> 1;
if ( v10 )
{
v38 = -1;
v39 = 0;
v48 = 0;
v49 = 0;
v50 = nullptr;
v51[0] = 0;
v51[1] = 0;
v52 = nullptr;
while ( sub_77F0C4((unsigned __int8 *)&v45, &v39, &v48, 44) )
{
if ( (v48 & 1) != 0 )
v11 = v49;
else
v11 = (int)(unsigned __int8)v48 >> 1;
if ( v11 )
{
if ( !sub_77F0C4((unsigned __int8 *)&v45, &v39, v51, 44) )
break;
if ( (v48 & 1) != 0 )
v12 = v50;
else
v12 = (char *)&v48 + 1;
if ( atoi(v12) == 1 )
{
if ( (v51[0] & 1) != 0 )
v13 = v52;
else
v13 = (char *)v51 + 1;
v38 = atoi(v13);
}
}
}
memset(v53, 0, sizeof(v53));
if ( !sub_77F8AC((int)v41, (int)v53) )
{
std::string::~string((int)v53);
std::string::~string((int)v51);
std::string::~string((int)&v48);
break;
}
if ( v38 >= 0 )
{
v14 = std::unordered_map>::operator[]((int)&v67, (unsigned int *)&v38);
v40 = 0;
v54 = 0;
v55 = 0;
v56 = 0;
while ( sub_77F0C4((unsigned __int8 *)v53, &v40, &v54, 58) )
{
if ( (v54 & 1) != 0 )
v15 = v55;
else
v15 = (int)(unsigned __int8)v54 >> 1;
if ( v15 )
{
v62[0] = nullptr;
v63 = 0;
v57 = 0;
v58 = 0;
v59 = nullptr;
v60[0] = 0;
v60[1] = 0;
v61 = nullptr;
while ( sub_77F0C4((unsigned __int8 *)&v54, &v63, &v57, 44) )
{
if ( (v57 & 1) != 0 )
v16 = v58;
else
v16 = (int)(unsigned __int8)v57 >> 1;
if ( v16 )
{
if ( !sub_77F0C4((unsigned __int8 *)&v54, &v63, v60, 44) )
break;
v17 = (v57 & 1) != 0 ? v59 : (char *)&v57 + 1;
if ( atoi(v17) == 1 )
{
if ( (v60[0] & 1) != 0 )
v18 = v61;
else
v18 = (char *)v60 + 1;
v62[0] = (char *)atoi(v18);
break;
}
}
}
v19 = (char **)v14[1];
if ( v19 == (char **)v14[2] )
{
std::vector::__push_back_slow_path((int)v14, v62);
}
else
{
if ( v19 )
*v19 = v62[0];
v14[1] += 4;
}
std::string::~string((int)v60);
std::string::~string((int)&v57);
}
}
std::string::~string((int)&v54);
}
std::string::~string((int)v53);
std::string::~string((int)v51);
std::string::~string((int)&v48);
}
}
EditorSFXManager::allActions((EditorSFXManager *)v62, v8, v9);
v36 = v62[1];
v35 = v62[0];
LABEL_70:
while ( v35 != v36 )
{
v20 = *(_DWORD *)v35;
v35 += 4;
if ( v68 )
{
v21 = v68 - 1;
if ( ((v68 - 1) & v68) != 0 )
{
v21 = v68 - 1;
v22 = v20 % v68;
}
else
{
v22 = v20 & v21;
}
v23 = *(_DWORD **)(v67 + 4 * v22);
if ( v23 )
{
for ( i = (_DWORD *)*v23; i; i = (_DWORD *)*i )
{
v25 = i[1];
v26 = ((v68 - 1) & v68) != 0 ? v25 % v68 : v21 & v25;
if ( v26 != v22 )
break;
if ( i[2] == v20 )
{
v27 = i[4];
if ( i[3] != v27 )
{
v63 = v20;
v64 = nullptr;
v65 = nullptr;
v66 = nullptr;
v28 = v27 - i[3];
if ( v28 >> 2 )
{
if ( (unsigned int)(v28 >> 2) >= 0x40000000 )
sub_38AFD8();
v29 = (char *)operator new(v28);
v65 = v29;
v64 = v29;
v66 = &v29[v28];
v30 = (const void *)i[3];
v31 = i[4] - (_DWORD)v30;
if ( v31 > 3 )
{
memcpy(v29, v30, v31);
v65 += v31;
}
}
v32 = *(unsigned int **)(a1 + 4);
if ( (unsigned int)v32 < *(_DWORD *)(a1 + 8) )
{
if ( v32 )
{
v33 = v63;
v32[2] = 0;
v32[3] = 0;
*v32 = v33;
v32[1] = 0;
v32[1] = (unsigned int)v64;
v32[2] = (unsigned int)v65;
v32[3] = (unsigned int)v66;
v66 = nullptr;
v65 = nullptr;
v64 = nullptr;
}
*(_DWORD *)(a1 + 4) += 16;
}
else
{
std::vector>>::__push_back_slow_path>>(
(void **)a1,
&v63);
}
std::__vector_base::~__vector_base(&v64);
}
goto LABEL_70;
}
}
}
}
}
std::__vector_base::~__vector_base(v62);
}
std::string::~string((int)&v45);
std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::~__hash_table((int)&v67);
}
std::string::~string((int)v44);
}
std::string::~string((int)v42);
}
return a1;
}