#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_uxuy(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);
}


x86 assembly (clang, -O0):
<plot_disp_uxuy>:
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>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<plot_disp_uxuy>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %esi,%r14d
mov    %edi,%ebx
lea    -0x6(%rbx),%r15d
lea    0xc(%r14),%ebp
mov    %r15d,%edx
mov    %ebp,%ecx
mov    $0x1,%r8d
call   1030 <md_draw_line_blue@plt>
lea    0x6(%rbx),%r12d
mov    %ebx,%edi
mov    %r14d,%esi
mov    %r12d,%edx
mov    %ebp,%ecx
mov    $0x1,%r8d
call   1030 <md_draw_line_blue@plt>
mov    %r15d,%edi
mov    %ebp,%esi
mov    %r12d,%edx
mov    %ebp,%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_uxuy(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)
ret void
}

LLVM IR (-O2):
define void @plot_disp_uxuy(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)
ret void
}