#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*/ DrawCircle(int, int, double, int);
int /*<<< orphan*/ GL_LINE_STRIP;
int /*<<< orphan*/ glBegin(int /*<<< orphan*/);
int /*<<< orphan*/ glColor3f(double, double, double);
int /*<<< orphan*/ glEnd();
int /*<<< orphan*/ glLineWidth(double);
int /*<<< orphan*/ glVertex2i(int, int);
void ButtonRefresh(int bx, int by) {
  int tx = bx + 16;
  int ty = by + 16;
  glLineWidth(1.0);
  glColor3f(1.0, 1.0, 1.0);
  glBegin(GL_LINE_STRIP);
  glVertex2i(tx, ty);
  glVertex2i(tx, by);
  glVertex2i(bx, by);
  glVertex2i(bx, ty);
  glVertex2i(tx, ty);
  glEnd();
  DrawCircle(bx + 8, by + 9, 5.0, 8);
}


x86 assembly (clang, -O0):
<ButtonRefresh>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    $0x10,%eax
mov    %eax,-0x10(%rbp)
movsd  0xe80(%rip),%xmm0
call   1030 <glLineWidth@plt>
movsd  0xe73(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1060 <glColor3f@plt>
mov    0x2e41(%rip),%rax
mov    (%rax),%edi
call   1080 <glBegin@plt>
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1040 <glVertex2i@plt>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1040 <glVertex2i@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1040 <glVertex2i@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1040 <glVertex2i@plt>
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1040 <glVertex2i@plt>
mov    $0x0,%al
call   1050 <glEnd@plt>
mov    -0x4(%rbp),%edi
add    $0x8,%edi
mov    -0x8(%rbp),%esi
add    $0x9,%esi
movsd  0xe00(%rip),%xmm0
mov    $0x8,%edx
call   1070 <DrawCircle@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ButtonRefresh>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %esi,%r14d
mov    %edi,%ebx
lea    0x10(%rbx),%r15d
lea    0x10(%r14),%ebp
movsd  0xe84(%rip),%xmm0
call   1030 <glLineWidth@plt>
movsd  0xe77(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1060 <glColor3f@plt>
mov    0x2e4d(%rip),%rax
mov    (%rax),%edi
call   1080 <glBegin@plt>
mov    %r15d,%edi
mov    %ebp,%esi
call   1040 <glVertex2i@plt>
mov    %r15d,%edi
mov    %r14d,%esi
call   1040 <glVertex2i@plt>
mov    %ebx,%edi
mov    %r14d,%esi
call   1040 <glVertex2i@plt>
mov    %ebx,%edi
mov    %ebp,%esi
call   1040 <glVertex2i@plt>
mov    %r15d,%edi
mov    %ebp,%esi
call   1040 <glVertex2i@plt>
xor    %eax,%eax
call   1050 <glEnd@plt>
add    $0x8,%ebx
add    $0x9,%r14d
movsd  0xe1e(%rip),%xmm0
mov    %ebx,%edi
mov    %r14d,%esi
mov    $0x8,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1070 <DrawCircle@plt>

LLVM IR (-O0):
@GL_LINE_STRIP = global i32 0
define void @ButtonRefresh(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%7 = load i32, i32* %3
%8 = add nsw i32 %7, 16
store i32 %8, i32* %5
%9 = load i32, i32* %4
%10 = add nsw i32 %9, 16
store i32 %10, i32* %6
%11 = call i32 @glLineWidth(double 1.000000e+00)
%12 = call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%13 = load i32, i32* @GL_LINE_STRIP
%14 = call i32 @glBegin(i32 %13)
%15 = load i32, i32* %5
%16 = load i32, i32* %6
%17 = call i32 @glVertex2i(i32 %15, i32 %16)
%18 = load i32, i32* %5
%19 = load i32, i32* %4
%20 = call i32 @glVertex2i(i32 %18, i32 %19)
%21 = load i32, i32* %3
%22 = load i32, i32* %4
%23 = call i32 @glVertex2i(i32 %21, i32 %22)
%24 = load i32, i32* %3
%25 = load i32, i32* %6
%26 = call i32 @glVertex2i(i32 %24, i32 %25)
%27 = load i32, i32* %5
%28 = load i32, i32* %6
%29 = call i32 @glVertex2i(i32 %27, i32 %28)
%30 = call i32 (...) @glEnd()
%31 = load i32, i32* %3
%32 = add nsw i32 %31, 8
%33 = load i32, i32* %4
%34 = add nsw i32 %33, 9
%35 = call i32 @DrawCircle(i32 %32, i32 %34, double 5.000000e+00, i32 8)
ret void
}

LLVM IR (-O2):
@GL_LINE_STRIP = global i32 0
define void @ButtonRefresh(i32 %0, i32 %1) {
%3 = add nsw i32 %0, 16
%4 = add nsw i32 %1, 16
%5 = tail call i32 @glLineWidth(double 1.000000e+00)
%6 = tail call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%7 = load i32, i32* @GL_LINE_STRIP
%8 = tail call i32 @glBegin(i32 %7)
%9 = tail call i32 @glVertex2i(i32 %3, i32 %4)
%10 = tail call i32 @glVertex2i(i32 %3, i32 %1)
%11 = tail call i32 @glVertex2i(i32 %0, i32 %1)
%12 = tail call i32 @glVertex2i(i32 %0, i32 %4)
%13 = tail call i32 @glVertex2i(i32 %3, i32 %4)
%14 = tail call i32 (...) @glEnd()
%15 = add nsw i32 %0, 8
%16 = add nsw i32 %1, 9
%17 = tail call i32 @DrawCircle(i32 %15, i32 %16, double 5.000000e+00, i32 8)
ret void
}