#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*/ Iterac1(int, int, int, int, int *, int *, int *, int *);
int /*<<< orphan*/ Iterac2(int, int, int *, int *, int *, int *);
void Iteracao(int Ka, int Kb, int Kc, int Kd, int Ke, int Kf, int *Xa, int *Xb,
              int *Xc, int *Xd) {
  Iterac1(Ka, Kb, Kc, Kd, Xa, Xb, Xc, Xd);
  Iterac2(Ke, Kf, Xa, Xb, Xc, Xd);
}


x86 assembly (clang, -O0):
<Iteracao>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    0x10(%rbp),%r8
mov    0x18(%rbp),%r9
mov    0x20(%rbp),%r10
mov    0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <Iterac1@plt>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
mov    0x10(%rbp),%rdx
mov    0x18(%rbp),%rcx
mov    0x20(%rbp),%r8
mov    0x28(%rbp),%r9
call   1040 <Iterac2@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Iteracao>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9d,%r14d
mov    %r8d,%r15d
mov    0x40(%rsp),%rbx
mov    0x48(%rsp),%rbp
mov    0x50(%rsp),%r12
mov    0x58(%rsp),%r13
mov    %rbx,%r8
mov    %rbp,%r9
push   %r13
push   %r12
call   1030 <Iterac1@plt>
add    $0x10,%rsp
mov    %r15d,%edi
mov    %r14d,%esi
mov    %rbx,%rdx
mov    %rbp,%rcx
mov    %r12,%r8
mov    %r13,%r9
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <Iterac2@plt>

LLVM IR (-O0):
define void @Iteracao(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32* %6, i32* %7, i32* %8, i32* %9) {
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32*
%18 = alloca i32*
%19 = alloca i32*
%20 = alloca i32*
store i32 %0, i32* %11
store i32 %1, i32* %12
store i32 %2, i32* %13
store i32 %3, i32* %14
store i32 %4, i32* %15
store i32 %5, i32* %16
store i32* %6, i32** %17
store i32* %7, i32** %18
store i32* %8, i32** %19
store i32* %9, i32** %20
%21 = load i32, i32* %11
%22 = load i32, i32* %12
%23 = load i32, i32* %13
%24 = load i32, i32* %14
%25 = load i32*, i32** %17
%26 = load i32*, i32** %18
%27 = load i32*, i32** %19
%28 = load i32*, i32** %20
%29 = call i32 @Iterac1(i32 %21, i32 %22, i32 %23, i32 %24, i32* %25, i32* %26, i32* %27, i32* %28)
%30 = load i32, i32* %15
%31 = load i32, i32* %16
%32 = load i32*, i32** %17
%33 = load i32*, i32** %18
%34 = load i32*, i32** %19
%35 = load i32*, i32** %20
%36 = call i32 @Iterac2(i32 %30, i32 %31, i32* %32, i32* %33, i32* %34, i32* %35)
ret void
}

LLVM IR (-O2):
define void @Iteracao(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32* %6, i32* %7, i32* %8, i32* %9) {
%11 = tail call i32 @Iterac1(i32 %0, i32 %1, i32 %2, i32 %3, i32* %6, i32* %7, i32* %8, i32* %9)
%12 = tail call i32 @Iterac2(i32 %4, i32 %5, i32* %6, i32* %7, i32* %8, i32* %9)
ret void
}