#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ reduce(unsigned int, unsigned char **, unsigned int,
                          unsigned char **, unsigned int *, unsigned int *,
                          unsigned short);
int /*<<< orphan*/ resolve(unsigned int, unsigned char **, unsigned char **,
                           unsigned int *, unsigned int *, unsigned short);
void fec_decode(unsigned int blockSize, unsigned char **data_blocks,
                unsigned int nr_data_blocks, unsigned char **fec_blocks,
                unsigned int *fec_block_nos, unsigned int *erased_blocks,
                unsigned short nr_fec_blocks) {
  reduce(blockSize, data_blocks, nr_data_blocks, fec_blocks, fec_block_nos,
         erased_blocks, nr_fec_blocks);
  resolve(blockSize, data_blocks, fec_blocks, fec_block_nos, erased_blocks,
          nr_fec_blocks);
}


x86 assembly (clang, -O0):
<fec_decode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x10(%rbp),%ax
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%r9
movzwl 0x10(%rbp),%eax
mov    %eax,(%rsp)
call   1030 <reduce@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    -0x30(%rbp),%r8
movzwl 0x10(%rbp),%r9d
call   1040 <resolve@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fec_decode>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,%r12
mov    %rsi,%rbx
mov    %edi,%ebp
movzwl 0x40(%rsp),%r13d
mov    %r13d,(%rsp)
call   1030 <reduce@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r8
mov    %r13d,%r9d
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <resolve@plt>

LLVM IR (-O0):
define void @fec_decode(i32 %0, i8** %1, i32 %2, i8** %3, i32* %4, i32* %5, i16 zeroext %6) {
%8 = alloca i32
%9 = alloca i8**
%10 = alloca i32
%11 = alloca i8**
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca i16
store i32 %0, i32* %8
store i8** %1, i8*** %9
store i32 %2, i32* %10
store i8** %3, i8*** %11
store i32* %4, i32** %12
store i32* %5, i32** %13
store i16 %6, i16* %14
%15 = load i32, i32* %8
%16 = load i8**, i8*** %9
%17 = load i32, i32* %10
%18 = load i8**, i8*** %11
%19 = load i32*, i32** %12
%20 = load i32*, i32** %13
%21 = load i16, i16* %14
%22 = call i32 @reduce(i32 %15, i8** %16, i32 %17, i8** %18, i32* %19, i32* %20, i16 zeroext %21)
%23 = load i32, i32* %8
%24 = load i8**, i8*** %9
%25 = load i8**, i8*** %11
%26 = load i32*, i32** %12
%27 = load i32*, i32** %13
%28 = load i16, i16* %14
%29 = call i32 @resolve(i32 %23, i8** %24, i8** %25, i32* %26, i32* %27, i16 zeroext %28)
ret void
}

LLVM IR (-O2):
define void @fec_decode(i32 %0, i8** %1, i32 %2, i8** %3, i32* %4, i32* %5, i16 zeroext %6) {
%8 = tail call i32 @reduce(i32 %0, i8** %1, i32 %2, i8** %3, i32* %4, i32* %5, i16 zeroext %6)
%9 = tail call i32 @resolve(i32 %0, i8** %1, i8** %3, i32* %4, i32* %5, i16 zeroext %6)
ret void
}