#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*/ md_draw_line_blue(int, int, int, int, int);
void plot_disp_uy(int x, int y) {
  md_draw_line_blue(x, y, x - 6, y + 12, 1);
  md_draw_line_blue(x, y, x + 6, y + 12, 1);
  md_draw_line_blue(x - 6, y + 12, x + 6, y + 12, 1);
  md_draw_line_blue(x - 6, y + 14, x + 6, y + 14, 1);
}


x86 assembly (clang, -O0):
<plot_disp_uy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x4(%rbp),%edx
sub    $0x6,%edx
mov    -0x8(%rbp),%ecx
add    $0xc,%ecx
mov    $0x1,%r8d
call   1030 <md_draw_line_blue@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x4(%rbp),%edx
add    $0x6,%edx
mov    -0x8(%rbp),%ecx
add    $0xc,%ecx
mov    $0x1,%r8d
call   1030 <md_draw_line_blue@plt>
mov    -0x4(%rbp),%edi
sub    $0x6,%edi
mov    -0x8(%rbp),%esi
add    $0xc,%esi
mov    -0x4(%rbp),%edx
add    $0x6,%edx
mov    -0x8(%rbp),%ecx
add    $0xc,%ecx
mov    $0x1,%r8d
call   1030 <md_draw_line_blue@plt>
mov    -0x4(%rbp),%edi
sub    $0x6,%edi
mov    -0x8(%rbp),%esi
add    $0xe,%esi
mov    -0x4(%rbp),%edx
add    $0x6,%edx
mov    -0x8(%rbp),%ecx
add    $0xe,%ecx
mov    $0x1,%r8d
call   1030 <md_draw_line_blue@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<plot_disp_uy>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %esi,%ebx
mov    %edi,%ebp
lea    -0x6(%rbp),%r14d
lea    0xc(%rbx),%r15d
mov    %r14d,%edx
mov    %r15d,%ecx
mov    $0x1,%r8d
call   1030 <md_draw_line_blue@plt>
lea    0x6(%rbp),%r12d
mov    %ebp,%edi
mov    %ebx,%esi
mov    %r12d,%edx
mov    %r15d,%ecx
mov    $0x1,%r8d
call   1030 <md_draw_line_blue@plt>
mov    %r14d,%edi
mov    %r15d,%esi
mov    %r12d,%edx
mov    %r15d,%ecx
mov    $0x1,%r8d
call   1030 <md_draw_line_blue@plt>
add    $0xe,%ebx
mov    %r14d,%edi
mov    %ebx,%esi
mov    %r12d,%edx
mov    %ebx,%ecx
mov    $0x1,%r8d
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <md_draw_line_blue@plt>

LLVM IR (-O0):
define void @plot_disp_uy(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = load i32, i32* %3
%8 = sub nsw i32 %7, 6
%9 = load i32, i32* %4
%10 = add nsw i32 %9, 12
%11 = call i32 @md_draw_line_blue(i32 %5, i32 %6, i32 %8, i32 %10, i32 1)
%12 = load i32, i32* %3
%13 = load i32, i32* %4
%14 = load i32, i32* %3
%15 = add nsw i32 %14, 6
%16 = load i32, i32* %4
%17 = add nsw i32 %16, 12
%18 = call i32 @md_draw_line_blue(i32 %12, i32 %13, i32 %15, i32 %17, i32 1)
%19 = load i32, i32* %3
%20 = sub nsw i32 %19, 6
%21 = load i32, i32* %4
%22 = add nsw i32 %21, 12
%23 = load i32, i32* %3
%24 = add nsw i32 %23, 6
%25 = load i32, i32* %4
%26 = add nsw i32 %25, 12
%27 = call i32 @md_draw_line_blue(i32 %20, i32 %22, i32 %24, i32 %26, i32 1)
%28 = load i32, i32* %3
%29 = sub nsw i32 %28, 6
%30 = load i32, i32* %4
%31 = add nsw i32 %30, 14
%32 = load i32, i32* %3
%33 = add nsw i32 %32, 6
%34 = load i32, i32* %4
%35 = add nsw i32 %34, 14
%36 = call i32 @md_draw_line_blue(i32 %29, i32 %31, i32 %33, i32 %35, i32 1)
ret void
}

LLVM IR (-O2):
define void @plot_disp_uy(i32 %0, i32 %1) {
%3 = add nsw i32 %0, -6
%4 = add nsw i32 %1, 12
%5 = tail call i32 @md_draw_line_blue(i32 %0, i32 %1, i32 %3, i32 %4, i32 1)
%6 = add nsw i32 %0, 6
%7 = tail call i32 @md_draw_line_blue(i32 %0, i32 %1, i32 %6, i32 %4, i32 1)
%8 = tail call i32 @md_draw_line_blue(i32 %3, i32 %4, i32 %6, i32 %4, i32 1)
%9 = add nsw i32 %1, 14
%10 = tail call i32 @md_draw_line_blue(i32 %3, i32 %9, i32 %6, i32 %9, i32 1)
ret void
}