//
// MDC2_Final from 0xacde94 to 0xacdf28 (148 bytes)
//
// 2 xrefs:
// > sub_ACCD6C @ 0xaccd84
// > ??> @ 0x84b2c
//
// 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 12:09:22 +0000
//
int __fastcall MDC2_Final(char *a1, int *a2)
{
int v2; // r2
_BOOL4 v3; // r3
_BOOL4 v5; // r1
char *v7; // r3
v2 = *a2;
v3 = a2[7] == 2;
if ( *a2 )
v5 = 1;
else
v5 = a2[7] == 2;
if ( v5 )
{
if ( v3 )
{
v7 = (char *)a2 + v2++;
v7[4] = 0x80;
}
memset((char *)a2 + v2 + 4, 0, 8 - v2);
sub_ACDBE8((int)a2, (int)(a2 + 1), 8u);
}
memcpy(a1, a2 + 3, 8u);
memcpy(a1 + 8, a2 + 5, 8u);
return 1;
}