#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*/ VDP_drawText(char *, int /*<<< orphan*/, unsigned short);
int /*<<< orphan*/ addValueU32(char *, char *, unsigned long);
int /*<<< orphan*/ strclr(char *);
unsigned short showValueU32U32U32(char *str1, unsigned long value1, char *str2,
                                  unsigned long value2, char *str3,
                                  unsigned long value3, unsigned short pos) {
  char s[64];
  strclr(s);
  addValueU32(s, str1, value1);
  addValueU32(s, str2, value2);
  addValueU32(s, str3, value3);
  VDP_drawText(s, 0, pos);
  return pos + 1;
}


x86 assembly (clang, -O0):
<showValueU32U32U32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    0x10(%rbp),%ax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
lea    -0x70(%rbp),%rdi
call   1050 <strclr@plt>
lea    -0x70(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1030 <addValueU32@plt>
lea    -0x70(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1030 <addValueU32@plt>
lea    -0x70(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
call   1030 <addValueU32@plt>
lea    -0x70(%rbp),%rdi
xor    %esi,%esi
movzwl 0x10(%rbp),%edx
call   1040 <VDP_drawText@plt>
movzwl 0x10(%rbp),%eax
add    $0x1,%eax
movzwl %ax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<showValueU32U32U32>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %r9,0x8(%rsp)
mov    %r8,(%rsp)
mov    %rcx,%r12
mov    %rdx,%r13
mov    %rsi,%rbp
mov    %rdi,%r14
movzwl 0x90(%rsp),%ebx
lea    0x10(%rsp),%r15
mov    %r15,%rdi
call   1050 <strclr@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbp,%rdx
call   1030 <addValueU32@plt>
mov    %r15,%rdi
mov    %r13,%rsi
mov    %r12,%rdx
call   1030 <addValueU32@plt>
mov    %r15,%rdi
mov    (%rsp),%rsi
mov    0x8(%rsp),%rdx
call   1030 <addValueU32@plt>
mov    %r15,%rdi
xor    %esi,%esi
mov    %ebx,%edx
call   1040 <VDP_drawText@plt>
add    $0x1,%ebx
mov    %ebx,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define zeroext i16 @showValueU32U32U32(i8* %0, i64 %1, i8* %2, i64 %3, i8* %4, i64 %5, i16 zeroext %6) {
%8 = alloca i8*
%9 = alloca i64
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i8*
%13 = alloca i64
%14 = alloca i16
%15 = alloca [64 x i8]
store i8* %0, i8** %8
store i64 %1, i64* %9
store i8* %2, i8** %10
store i64 %3, i64* %11
store i8* %4, i8** %12
store i64 %5, i64* %13
store i16 %6, i16* %14
%16 = getelementptr inbounds [64 x i8], [64 x i8]* %15, i64 0, i64 0
%17 = call i32 @strclr(i8* %16)
%18 = getelementptr inbounds [64 x i8], [64 x i8]* %15, i64 0, i64 0
%19 = load i8*, i8** %8
%20 = load i64, i64* %9
%21 = call i32 @addValueU32(i8* %18, i8* %19, i64 %20)
%22 = getelementptr inbounds [64 x i8], [64 x i8]* %15, i64 0, i64 0
%23 = load i8*, i8** %10
%24 = load i64, i64* %11
%25 = call i32 @addValueU32(i8* %22, i8* %23, i64 %24)
%26 = getelementptr inbounds [64 x i8], [64 x i8]* %15, i64 0, i64 0
%27 = load i8*, i8** %12
%28 = load i64, i64* %13
%29 = call i32 @addValueU32(i8* %26, i8* %27, i64 %28)
%30 = getelementptr inbounds [64 x i8], [64 x i8]* %15, i64 0, i64 0
%31 = load i16, i16* %14
%32 = call i32 @VDP_drawText(i8* %30, i32 0, i16 zeroext %31)
%33 = load i16, i16* %14
%34 = zext i16 %33 to i32
%35 = add nsw i32 %34, 1
%36 = trunc i32 %35 to i16
ret i16 %36
}

LLVM IR (-O2):
define zeroext i16 @showValueU32U32U32(i8* %0, i64 %1, i8* %2, i64 %3, i8* %4, i64 %5, i16 zeroext %6) {
%8 = alloca [64 x i8]
%9 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 0
%10 = call i32 @strclr(i8* %9)
%11 = call i32 @addValueU32(i8* %9, i8* %0, i64 %1)
%12 = call i32 @addValueU32(i8* %9, i8* %2, i64 %3)
%13 = call i32 @addValueU32(i8* %9, i8* %4, i64 %5)
%14 = call i32 @VDP_drawText(i8* %9, i32 0, i16 zeroext %6)
%15 = add i16 %6, 1
ret i16 %15
}