#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*/ debug(char *, char, char, char, char, char, char, ...);
void xixi_funcao(int i, unsigned int ui, short s, unsigned short us, char c,
                 unsigned char uc) {
  char *ptc;
  int indice;
  debug("%d %d %d %d %d %d", i, ui, s, us, c, uc);
  ptc = (char *)&i;
  for (indice = 0; indice < 48; indice += 8)
    debug("%d %d %d %d %d %d %d %d", ptc[indice], ptc[indice + 1],
          ptc[indice + 2], ptc[indice + 3], ptc[indice + 4], ptc[indice + 5],
          ptc[indice + 6], ptc[indice + 7]);
  return;
}


x86 assembly (clang, -O0):
<xixi_funcao>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %r8d,-0x2c(%rbp)
mov    %ecx,%eax
mov    -0x2c(%rbp),%ecx
mov    %eax,-0x28(%rbp)
mov    %edx,%eax
mov    -0x28(%rbp),%edx
mov    %eax,-0x24(%rbp)
mov    %esi,%eax
mov    -0x24(%rbp),%esi
mov    %eax,-0x20(%rbp)
mov    %edi,%r8d
mov    -0x20(%rbp),%edi
mov    %r9b,%al
mov    %r8d,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %si,-0xa(%rbp)
mov    %dx,-0xc(%rbp)
mov    %cl,-0xd(%rbp)
mov    %al,-0xe(%rbp)
mov    -0x4(%rbp),%eax
mov    %al,%sil
mov    -0x8(%rbp),%eax
mov    %al,%dl
mov    -0xa(%rbp),%ax
mov    %al,%cl
mov    -0xc(%rbp),%ax
mov    %al,%r8b
mov    -0xd(%rbp),%al
lea    0xe92(%rip),%rdi
movsbl %sil,%esi
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %r8b,%r8d
movsbl %al,%r9d
movsbl -0xe(%rbp),%eax
mov    %eax,(%rsp)
mov    $0x0,%al
call   1030 <debug@plt>
lea    -0x4(%rbp),%rax
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x30,-0x1c(%rbp)
jge    126e <xixi_funcao+0x15e>
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,1),%sil
mov    -0x18(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x18(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%cl
mov    -0x18(%rbp),%rax
mov    -0x1c(%rbp),%edi
add    $0x3,%edi
movslq %edi,%rdi
mov    (%rax,%rdi,1),%r8b
mov    -0x18(%rbp),%rax
mov    -0x1c(%rbp),%edi
add    $0x4,%edi
movslq %edi,%rdi
mov    (%rax,%rdi,1),%r9b
mov    -0x18(%rbp),%rax
mov    -0x1c(%rbp),%edi
add    $0x5,%edi
movslq %edi,%rdi
mov    (%rax,%rdi,1),%r11b
mov    -0x18(%rbp),%rax
mov    -0x1c(%rbp),%edi
add    $0x6,%edi
movslq %edi,%rdi
movsbl (%rax,%rdi,1),%r10d
mov    -0x18(%rbp),%rax
mov    -0x1c(%rbp),%edi
add    $0x7,%edi
movslq %edi,%rdi
movsbl (%rax,%rdi,1),%eax
lea    0xdca(%rip),%rdi
movsbl %sil,%esi
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %r8b,%r8d
movsbl %r9b,%r9d
movsbl %r11b,%r11d
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1030 <debug@plt>
mov    -0x1c(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x1c(%rbp)
jmp    11a3 <xixi_funcao+0x93>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xixi_funcao>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    %r8d,%r10d
mov    %edi,%ebp
mov    %edi,%ebx
shr    $0x8,%ebx
mov    %edi,%r14d
shr    $0x10,%r14d
movsbl %r9b,%eax
mov    %eax,(%rsp)
movsbl %bpl,%r15d
movsbl %sil,%r9d
movsbl %dl,%eax
movsbl %cl,%r8d
lea    0xebe(%rip),%rdi
mov    %r15d,%esi
mov    %r9d,%edx
mov    %eax,%ecx
mov    %r10d,%r9d
xor    %eax,%eax
call   1030 <debug@plt>
movl   $0x0,(%rsp)
sar    $0x18,%ebp
movsbl %bl,%edx
movsbl %r14b,%ecx
lea    0xe8e(%rip),%r14
mov    %r14,%rdi
mov    %r15d,%esi
mov    %ebp,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
call   1030 <debug@plt>
movl   $0x0,(%rsp)
mov    %r14,%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
call   1030 <debug@plt>
movl   $0x0,(%rsp)
mov    %r14,%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
call   1030 <debug@plt>
movl   $0x0,(%rsp)
mov    %r14,%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
call   1030 <debug@plt>
movl   $0x0,(%rsp)
mov    %r14,%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
call   1030 <debug@plt>
movl   $0x0,(%rsp)
mov    %r14,%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
call   1030 <debug@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [18 x i8] c"%d %d %d %d %d %d\00"
@.str.1 = [24 x i8] c"%d %d %d %d %d %d %d %d\00"
define void @xixi_funcao(i32 %0, i32 %1, i16 signext %2, i16 zeroext %3, i8 signext %4, i8 zeroext %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i16
%10 = alloca i16
%11 = alloca i8
%12 = alloca i8
%13 = alloca i8*
%14 = alloca i32
store i32 %0, i32* %7
store i32 %1, i32* %8
store i16 %2, i16* %9
store i16 %3, i16* %10
store i8 %4, i8* %11
store i8 %5, i8* %12
%15 = load i32, i32* %7
%16 = trunc i32 %15 to i8
%17 = load i32, i32* %8
%18 = trunc i32 %17 to i8
%19 = load i16, i16* %9
%20 = trunc i16 %19 to i8
%21 = load i16, i16* %10
%22 = trunc i16 %21 to i8
%23 = load i8, i8* %11
%24 = load i8, i8* %12
%25 = call i32 (i8*, i8, i8, i8, i8, i8, i8, ...) @debug(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8 signext %16, i8 signext %18, i8 signext %20, i8 signext %22, i8 signext %23, i8 signext %24)
%26 = bitcast i32* %7 to i8*
store i8* %26, i8** %13
store i32 0, i32* %14
br label %27
27: ; preds = %81, %6
%28 = load i32, i32* %14
%29 = icmp slt i32 %28, 48
br i1 %29, label %30, label %84
30: ; preds = %27
%31 = load i8*, i8** %13
%32 = load i32, i32* %14
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, i8* %31, i64 %33
%35 = load i8, i8* %34
%36 = load i8*, i8** %13
%37 = load i32, i32* %14
%38 = add nsw i32 %37, 1
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, i8* %36, i64 %39
%41 = load i8, i8* %40
%42 = load i8*, i8** %13
%43 = load i32, i32* %14
%44 = add nsw i32 %43, 2
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, i8* %42, i64 %45
%47 = load i8, i8* %46
%48 = load i8*, i8** %13
%49 = load i32, i32* %14
%50 = add nsw i32 %49, 3
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8, i8* %48, i64 %51
%53 = load i8, i8* %52
%54 = load i8*, i8** %13
%55 = load i32, i32* %14
%56 = add nsw i32 %55, 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, i8* %54, i64 %57
%59 = load i8, i8* %58
%60 = load i8*, i8** %13
%61 = load i32, i32* %14
%62 = add nsw i32 %61, 5
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8, i8* %60, i64 %63
%65 = load i8, i8* %64
%66 = load i8*, i8** %13
%67 = load i32, i32* %14
%68 = add nsw i32 %67, 6
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, i8* %66, i64 %69
%71 = load i8, i8* %70
%72 = sext i8 %71 to i32
%73 = load i8*, i8** %13
%74 = load i32, i32* %14
%75 = add nsw i32 %74, 7
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, i8* %73, i64 %76
%78 = load i8, i8* %77
%79 = sext i8 %78 to i32
%80 = call i32 (i8*, i8, i8, i8, i8, i8, i8, ...) @debug(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8 signext %35, i8 signext %41, i8 signext %47, i8 signext %53, i8 signext %59, i8 signext %65, i32 %72, i32 %79)
br label %81
81: ; preds = %30
%82 = load i32, i32* %14
%83 = add nsw i32 %82, 8
store i32 %83, i32* %14
br label %27
84: ; preds = %27
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"%d %d %d %d %d %d\00"
@.str.1 = [24 x i8] c"%d %d %d %d %d %d %d %d\00"
define void @xixi_funcao(i32 %0, i32 %1, i16 signext %2, i16 zeroext %3, i8 signext %4, i8 zeroext %5) {
%7 = trunc i32 %0 to i8
%8 = lshr i32 %0, 8
%9 = trunc i32 %8 to i8
%10 = lshr i32 %0, 16
%11 = trunc i32 %10 to i8
%12 = lshr i32 %0, 24
%13 = trunc i32 %12 to i8
%14 = trunc i32 %1 to i8
%15 = trunc i16 %2 to i8
%16 = trunc i16 %3 to i8
%17 = tail call i32 (i8*, i8, i8, i8, i8, i8, i8, ...) @debug(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8 signext %7, i8 signext %14, i8 signext %15, i8 signext %16, i8 signext %4, i8 signext %5)
%18 = tail call i32 (i8*, i8, i8, i8, i8, i8, i8, ...) @debug(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8 signext %7, i8 signext %9, i8 signext %11, i8 signext %13, i8 signext poison, i8 signext poison, i32 poison, i32 poison)
%19 = tail call i32 (i8*, i8, i8, i8, i8, i8, i8, ...) @debug(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8 signext poison, i8 signext poison, i8 signext poison, i8 signext poison, i8 signext poison, i8 signext poison, i32 poison, i32 poison)
%20 = tail call i32 (i8*, i8, i8, i8, i8, i8, i8, ...) @debug(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8 signext poison, i8 signext poison, i8 signext poison, i8 signext poison, i8 signext poison, i8 signext poison, i32 poison, i32 poison)
%21 = tail call i32 (i8*, i8, i8, i8, i8, i8, i8, ...) @debug(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8 signext poison, i8 signext poison, i8 signext poison, i8 signext poison, i8 signext poison, i8 signext poison, i32 poison, i32 poison)
%22 = tail call i32 (i8*, i8, i8, i8, i8, i8, i8, ...) @debug(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8 signext poison, i8 signext poison, i8 signext poison, i8 signext poison, i8 signext poison, i8 signext poison, i32 poison, i32 poison)
%23 = tail call i32 (i8*, i8, i8, i8, i8, i8, i8, ...) @debug(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8 signext poison, i8 signext poison, i8 signext poison, i8 signext poison, i8 signext poison, i8 signext poison, i32 poison, i32 poison)
ret void
}