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


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

x86 assembly (clang, -O2):
<showValueU16U32U16>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %r9d,0x4(%rsp)
mov    %r8,0x8(%rsp)
mov    %rcx,%r12
mov    %rdx,%r13
mov    %esi,%ebp
mov    %rdi,%r14
movzwl 0x90(%rsp),%ebx
lea    0x10(%rsp),%r15
mov    %r15,%rdi
call   1060 <strclr@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
call   1030 <addValueU16@plt>
mov    %r15,%rdi
mov    %r13,%rsi
mov    %r12,%rdx
call   1040 <addValueU32@plt>
mov    %r15,%rdi
mov    0x8(%rsp),%rsi
mov    0x4(%rsp),%edx
call   1030 <addValueU16@plt>
mov    %r15,%rdi
xor    %esi,%esi
mov    %ebx,%edx
call   1050 <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 @showValueU16U32U16(i8* %0, i16 zeroext %1, i8* %2, i64 %3, i8* %4, i16 zeroext %5, i16 zeroext %6) {
%8 = alloca i8*
%9 = alloca i16
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i8*
%13 = alloca i16
%14 = alloca i16
%15 = alloca [64 x i8]
store i8* %0, i8** %8
store i16 %1, i16* %9
store i8* %2, i8** %10
store i64 %3, i64* %11
store i8* %4, i8** %12
store i16 %5, i16* %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 i16, i16* %9
%21 = call i32 @addValueU16(i8* %18, i8* %19, i16 zeroext %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 i16, i16* %13
%29 = call i32 @addValueU16(i8* %26, i8* %27, i16 zeroext %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 @showValueU16U32U16(i8* %0, i16 zeroext %1, i8* %2, i64 %3, i8* %4, i16 zeroext %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 @addValueU16(i8* %9, i8* %0, i16 zeroext %1)
%12 = call i32 @addValueU32(i8* %9, i8* %2, i64 %3)
%13 = call i32 @addValueU16(i8* %9, i8* %4, i16 zeroext %5)
%14 = call i32 @VDP_drawText(i8* %9, i32 0, i16 zeroext %6)
%15 = add i16 %6, 1
ret i16 %15
}