//
// sub_77EB20 from 0x77eb20 to 0x77eb74 (84 bytes)
//
// 10 xrefs:
// > EditorSFXManager::encodeSound @ 0x77ec16
// > EditorSFXManager::encodeSound @ 0x77ec44
// > EditorSFXManager::encodeSound @ 0x77ec5c
// > EditorSFXManager::encodeSound @ 0x77ec68
// > EditorSFXManager::encodeSound @ 0x77ec74
// > EditorSFXManager::encodeSound @ 0x77ec80
// > EditorSFXManager::encodeSound @ 0x77ec8c
// > EditorSFXManager::encodeSound @ 0x77ecae
// > EditorSFXManager::encodeSound @ 0x77ecc6
// > EditorSFXManager::encodeSound @ 0x77ed0c
//
// 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_77EB20(int *result, int a2, int a3)
{
int *v4; // r6
int v6; // r1
int v7; // r1
char v8[32]; // [sp+Ch] [bp-28h] BYREF
v4 = result;
if ( a3 )
{
v6 = *(unsigned __int8 *)result;
if ( (v6 & 1) != 0 )
v7 = result[1];
else
v7 = v6 >> 1;
if ( v7 )
std::string::push_back(result, 44);
sub_993B88(v8, 32, "%d,%d", a2, a3);
return std::string::append(v4, v8);
}
return result;
}