//
// sub_77F8AC from 0x77f8ac to 0x77f962 (182 bytes)
//
// 3 xrefs:
// > EditorSFXManager::summarizeBlob @ 0x78044e
// > EditorSFXManager::summarizeBlob @ 0x780460
// > EditorSFXManager::summarizeBlob @ 0x7804cc
//
// 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:27 +0000
//
int __fastcall sub_77F8AC(int a1, int a2)
{
unsigned __int8 *v3; // r7
int v5; // r8
unsigned int v6; // r10
unsigned int v7; // r3
int v8; // r5
bool v9; // zf
int v10; // r5
int v11; // r0
int v12; // r1
int v13; // r2
int v15; // [sp+8h] [bp-14h] BYREF
int v16; // [sp+Ch] [bp-10h]
int v17; // [sp+10h] [bp-Ch]
v3 = *(unsigned __int8 **)(a1 + 4);
v5 = *v3;
v6 = **(_DWORD **)a1;
if ( (v5 & 1) != 0 )
v7 = *((_DWORD *)v3 + 1);
else
v7 = v5 >> 1;
if ( v6 >= v7 )
return 0;
v8 = std::string::find(*(unsigned __int8 **)(a1 + 4), 59, v6);
if ( v8 == -1 )
{
if ( (v5 & 1) != 0 )
v8 = *((_DWORD *)v3 + 1);
else
v8 = v5 >> 1;
}
std::string::basic_string(&v15, v3, v6, v8 - v6);
v9 = (*(_BYTE *)a2 & 1) == 0;
if ( (*(_BYTE *)a2 & 1) == 0 )
{
*(_BYTE *)(a2 + 1) = 0;
*(_BYTE *)a2 = 0;
}
v10 = v8 + 1;
if ( !v9 )
{
**(_BYTE **)(a2 + 8) = 0;
*(_DWORD *)(a2 + 4) = 0;
}
std::string::reserve((int *)a2, 0);
v11 = v15;
v12 = v16;
v13 = v17;
v15 = 0;
v16 = 0;
v17 = 0;
*(_DWORD *)a2 = v11;
*(_DWORD *)(a2 + 4) = v12;
*(_DWORD *)(a2 + 8) = v13;
std::string::~string((int)&v15);
**(_DWORD **)a1 = v10;
return 1;
}