#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_uxuyrotz(int x, int y) {
  md_draw_line_blue(x - 6, y - 6, x + 6, y - 6, 1);
  md_draw_line_blue(x - 6, y + 6, x + 6, y + 6, 1);
  md_draw_line_blue(x - 6, y - 6, x - 6, y + 6, 1);
  md_draw_line_blue(x + 6, y - 6, x + 6, y + 6, 1);
}


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

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

LLVM IR (-O0):
define void @plot_disp_uxuyrotz(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 = sub nsw i32 %5, 6
%7 = load i32, i32* %4
%8 = sub nsw i32 %7, 6
%9 = load i32, i32* %3
%10 = add nsw i32 %9, 6
%11 = load i32, i32* %4
%12 = sub nsw i32 %11, 6
%13 = call i32 @md_draw_line_blue(i32 %6, i32 %8, i32 %10, i32 %12, i32 1)
%14 = load i32, i32* %3
%15 = sub nsw i32 %14, 6
%16 = load i32, i32* %4
%17 = add nsw i32 %16, 6
%18 = load i32, i32* %3
%19 = add nsw i32 %18, 6
%20 = load i32, i32* %4
%21 = add nsw i32 %20, 6
%22 = call i32 @md_draw_line_blue(i32 %15, i32 %17, i32 %19, i32 %21, i32 1)
%23 = load i32, i32* %3
%24 = sub nsw i32 %23, 6
%25 = load i32, i32* %4
%26 = sub nsw i32 %25, 6
%27 = load i32, i32* %3
%28 = sub nsw i32 %27, 6
%29 = load i32, i32* %4
%30 = add nsw i32 %29, 6
%31 = call i32 @md_draw_line_blue(i32 %24, i32 %26, i32 %28, i32 %30, i32 1)
%32 = load i32, i32* %3
%33 = add nsw i32 %32, 6
%34 = load i32, i32* %4
%35 = sub nsw i32 %34, 6
%36 = load i32, i32* %3
%37 = add nsw i32 %36, 6
%38 = load i32, i32* %4
%39 = add nsw i32 %38, 6
%40 = call i32 @md_draw_line_blue(i32 %33, i32 %35, i32 %37, i32 %39, i32 1)
ret void
}

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