//
// sub_77EB7C from 0x77eb7c to 0x77ebd2 (86 bytes)
//
// 3 xrefs:
// > EditorSFXManager::encodeSound @ 0x77ece8
// > EditorSFXManager::encodeSound @ 0x77ed00
// > EditorSFXManager::encodeSound @ 0x77ed18
//
// 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:26 +0000
//
int *__fastcall sub_77EB7C(int *result, int a2, int a3)
{
int *v4; // r5
int v5; // r2
int v6; // r2
char v7[16]; // [sp+Ch] [bp-18h] BYREF
v4 = result;
if ( a3 )
{
v5 = *(unsigned __int8 *)result;
if ( (v5 & 1) != 0 )
v6 = result[1];
else
v6 = v5 >> 1;
if ( v6 )
std::string::push_back(result, 44);
sub_993B88(v7, 16, "%d,%d", a2, 1);
return std::string::append(v4, v7);
}
return result;
}