#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*/ bzero(char *, int);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
void unirMsg(char mensagem[32], char *vez, char *rodada, char *placarJogo,
             char *placarRodada, char *valorRodada, char *question,
             char *eqQuestion, char *respQuestion, char *mesa, char *virada) {
  bzero(mensagem, 32);
  strcpy(mensagem, "00");
  strcat(mensagem, vez);
  strcat(mensagem, rodada);
  strcat(mensagem, "000000");
  strcat(mensagem, placarJogo);
  strcat(mensagem, placarRodada);
  strcat(mensagem, valorRodada);
  strcat(mensagem, question);
  strcat(mensagem, eqQuestion);
  strcat(mensagem, respQuestion);
  strcat(mensagem, mesa);
  strcat(mensagem, "\n");
}


x86 assembly (clang, -O0):
<unirMsg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x20,%esi
call   1040 <bzero@plt>
mov    -0x8(%rbp),%rdi
lea    0xe87(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rdi
lea    0xe59(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rdi
mov    0x10(%rbp),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rdi
mov    0x18(%rbp),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rdi
mov    0x20(%rbp),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rdi
mov    0x28(%rbp),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rdi
lea    0xdf5(%rip),%rsi
call   1050 <strcat@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<unirMsg>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r9,0x8(%rsp)
mov    %r8,%r14
mov    %rcx,%r15
mov    %rdx,%r12
mov    %rsi,%r13
mov    %rdi,%rbx
mov    0x78(%rsp),%rax
mov    %rax,0x20(%rsp)
mov    0x70(%rsp),%rax
mov    %rax,0x18(%rsp)
mov    0x68(%rsp),%rax
mov    %rax,0x10(%rsp)
mov    0x60(%rsp),%rbp
mov    $0x20,%esi
call   1040 <bzero@plt>
lea    0xe7e(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1050 <strcat@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1050 <strcat@plt>
lea    0xe55(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcat@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strcat@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <strcat@plt>
mov    %rbx,%rdi
mov    0x8(%rsp),%rsi
call   1050 <strcat@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1050 <strcat@plt>
mov    %rbx,%rdi
mov    0x10(%rsp),%rsi
call   1050 <strcat@plt>
mov    %rbx,%rdi
mov    0x18(%rsp),%rsi
call   1050 <strcat@plt>
mov    %rbx,%rdi
mov    0x20(%rsp),%rsi
call   1050 <strcat@plt>
lea    0xdf8(%rip),%rsi
mov    %rbx,%rdi
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <strcat@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"00\00"
@.str.1 = [7 x i8] c"000000\00"
@.str.2 = [2 x i8] c"\0A\00"
define void @unirMsg(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i8* %7, i8* %8, i8* %9, i8* %10) {
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca i8*
%20 = alloca i8*
%21 = alloca i8*
%22 = alloca i8*
store i8* %0, i8** %12
store i8* %1, i8** %13
store i8* %2, i8** %14
store i8* %3, i8** %15
store i8* %4, i8** %16
store i8* %5, i8** %17
store i8* %6, i8** %18
store i8* %7, i8** %19
store i8* %8, i8** %20
store i8* %9, i8** %21
store i8* %10, i8** %22
%23 = load i8*, i8** %12
%24 = call i32 @bzero(i8* %23, i32 32)
%25 = load i8*, i8** %12
%26 = call i32 @strcpy(i8* %25, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%27 = load i8*, i8** %12
%28 = load i8*, i8** %13
%29 = call i32 @strcat(i8* %27, i8* %28)
%30 = load i8*, i8** %12
%31 = load i8*, i8** %14
%32 = call i32 @strcat(i8* %30, i8* %31)
%33 = load i8*, i8** %12
%34 = call i32 @strcat(i8* %33, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%35 = load i8*, i8** %12
%36 = load i8*, i8** %15
%37 = call i32 @strcat(i8* %35, i8* %36)
%38 = load i8*, i8** %12
%39 = load i8*, i8** %16
%40 = call i32 @strcat(i8* %38, i8* %39)
%41 = load i8*, i8** %12
%42 = load i8*, i8** %17
%43 = call i32 @strcat(i8* %41, i8* %42)
%44 = load i8*, i8** %12
%45 = load i8*, i8** %18
%46 = call i32 @strcat(i8* %44, i8* %45)
%47 = load i8*, i8** %12
%48 = load i8*, i8** %19
%49 = call i32 @strcat(i8* %47, i8* %48)
%50 = load i8*, i8** %12
%51 = load i8*, i8** %20
%52 = call i32 @strcat(i8* %50, i8* %51)
%53 = load i8*, i8** %12
%54 = load i8*, i8** %21
%55 = call i32 @strcat(i8* %53, i8* %54)
%56 = load i8*, i8** %12
%57 = call i32 @strcat(i8* %56, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"00\00"
@.str.1 = [7 x i8] c"000000\00"
@.str.2 = [2 x i8] c"\0A\00"
define void @unirMsg(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i8* %7, i8* %8, i8* %9, i8* nocapture readnone %10) {
%12 = tail call i32 @bzero(i8* %0, i32 32)
%13 = tail call i32 @strcpy(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%14 = tail call i32 @strcat(i8* %0, i8* %1)
%15 = tail call i32 @strcat(i8* %0, i8* %2)
%16 = tail call i32 @strcat(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%17 = tail call i32 @strcat(i8* %0, i8* %3)
%18 = tail call i32 @strcat(i8* %0, i8* %4)
%19 = tail call i32 @strcat(i8* %0, i8* %5)
%20 = tail call i32 @strcat(i8* %0, i8* %6)
%21 = tail call i32 @strcat(i8* %0, i8* %7)
%22 = tail call i32 @strcat(i8* %0, i8* %8)
%23 = tail call i32 @strcat(i8* %0, i8* %9)
%24 = tail call i32 @strcat(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
ret void
}