#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*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stdout;
void tek_vector(int x, int y) {
  char c[5];
  c[0] = (y >> 5) + 0x20;
  c[1] = (y & 0x1f) + 0x60;
  c[2] = (x >> 5) + 0x20;
  c[3] = (x & 0x1f) + 0x40;
  c[4] = '\0';
  fprintf(stdout, "%s", c);
}


x86 assembly (clang, -O0):
<tek_vector>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
sar    $0x5,%eax
add    $0x20,%eax
mov    %al,-0xd(%rbp)
mov    -0x8(%rbp),%eax
and    $0x1f,%eax
add    $0x60,%eax
mov    %al,-0xc(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x5,%eax
add    $0x20,%eax
mov    %al,-0xb(%rbp)
mov    -0x4(%rbp),%eax
and    $0x1f,%eax
add    $0x40,%eax
mov    %al,-0xa(%rbp)
movb   $0x0,-0x9(%rbp)
mov    0x2e87(%rip),%rax
mov    (%rax),%edi
lea    -0xd(%rbp),%rdx
lea    0xe9a(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tek_vector>:
push   %rax
mov    %esi,%eax
shr    $0x5,%eax
add    $0x20,%al
mov    %al,0x3(%rsp)
and    $0x1f,%sil
or     $0x60,%sil
mov    %sil,0x4(%rsp)
mov    %edi,%eax
shr    $0x5,%eax
add    $0x20,%al
mov    %al,0x5(%rsp)
and    $0x1f,%dil
or     $0x40,%dil
mov    %dil,0x6(%rsp)
movb   $0x0,0x7(%rsp)
mov    0x2e93(%rip),%rax
mov    (%rax),%edi
lea    0xeaa(%rip),%rsi
lea    0x3(%rsp),%rdx
call   1030 <fprintf@plt>
pop    %rax
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [3 x i8] c"%s\00"
define void @tek_vector(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca [5 x i8]
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %4
%7 = ashr i32 %6, 5
%8 = add nsw i32 %7, 32
%9 = trunc i32 %8 to i8
%10 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 0
store i8 %9, i8* %10
%11 = load i32, i32* %4
%12 = and i32 %11, 31
%13 = add nsw i32 %12, 96
%14 = trunc i32 %13 to i8
%15 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 1
store i8 %14, i8* %15
%16 = load i32, i32* %3
%17 = ashr i32 %16, 5
%18 = add nsw i32 %17, 32
%19 = trunc i32 %18 to i8
%20 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 2
store i8 %19, i8* %20
%21 = load i32, i32* %3
%22 = and i32 %21, 31
%23 = add nsw i32 %22, 64
%24 = trunc i32 %23 to i8
%25 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 3
store i8 %24, i8* %25
%26 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 4
store i8 0, i8* %26
%27 = load i32, i32* @stdout
%28 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 0
%29 = call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %28)
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [3 x i8] c"%s\00"
define void @tek_vector(i32 %0, i32 %1) {
%3 = alloca [5 x i8]
%4 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%5 = lshr i32 %1, 5
%6 = trunc i32 %5 to i8
%7 = add i8 %6, 32
store i8 %7, i8* %4
%8 = trunc i32 %1 to i8
%9 = and i8 %8, 31
%10 = or i8 %9, 96
%11 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 1
store i8 %10, i8* %11
%12 = lshr i32 %0, 5
%13 = trunc i32 %12 to i8
%14 = add i8 %13, 32
%15 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 2
store i8 %14, i8* %15
%16 = trunc i32 %0 to i8
%17 = and i8 %16, 31
%18 = or i8 %17, 64
%19 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 3
store i8 %18, i8* %19
%20 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 4
store i8 0, i8* %20
%21 = load i32, i32* @stdout
%22 = call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %4)
ret void
}