//
// sub_782C18 from 0x782c18 to 0x782c44 (44 bytes)
//
// 1 xrefs:
// > sub_78145C @ 0x781876
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_782C18(int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9, int a10, char a11)
{
int v11; // r4
int v12; // r8
int v13; // r9
int v14; // r10
int v15; // r11
int v16; // r0
int v17; // r2
v16 = sub_78145C(v11, v12, *(_DWORD **)(v15 + 4));
v17 = *(_DWORD *)(v11 + v13);
if ( v17 == 255 )
v16 = sub_783974(v16);
*(_DWORD *)(v11 + v13) = v17 + 1;
*(_BYTE *)(v11 + v17) = 41;
*(_BYTE *)(v11 + v14) = 41;
if ( v17 == 254 )
JUMPOUT(0x782CDE);
return sub_782C44(v16, 41, v14, v17 + 1, a5, a6, a7, a8, a9, a10, a11);
}