#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*/ draw_line(int, int, int, int, int);
void playicon(int x, int y, int color) {
  int i;
  for (i = 7; i < 32 - 7; i++) {
    draw_line(x + 9, y + i, x + 23, y + 16, color);
    draw_line(x + 9, y + i, x + 23, y + 16, color);
  }
}


x86 assembly (clang, -O0):
<playicon>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
movl   $0x7,-0x10(%rbp)
cmpl   $0x19,-0x10(%rbp)
jge    1182 <playicon+0x72>
mov    -0x4(%rbp),%edi
add    $0x9,%edi
mov    -0x8(%rbp),%esi
add    -0x10(%rbp),%esi
mov    -0x4(%rbp),%edx
add    $0x17,%edx
mov    -0x8(%rbp),%ecx
add    $0x10,%ecx
mov    -0xc(%rbp),%r8d
call   1030 <draw_line@plt>
mov    -0x4(%rbp),%edi
add    $0x9,%edi
mov    -0x8(%rbp),%esi
add    -0x10(%rbp),%esi
mov    -0x4(%rbp),%edx
add    $0x17,%edx
mov    -0x8(%rbp),%ecx
add    $0x10,%ecx
mov    -0xc(%rbp),%r8d
call   1030 <draw_line@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1128 <playicon+0x18>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<playicon>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %edx,%r15d
mov    %edi,%r13d
lea    0x9(%r13),%r12d
add    $0x17,%r13d
mov    %rsi,(%rsp)
lea    0x10(%rsi),%ebp
mov    $0x7,%r14d
cs nopw 0x0(%rax,%rax,1)
mov    (%rsp),%rax
lea    (%rax,%r14,1),%ebx
mov    %r12d,%edi
mov    %ebx,%esi
mov    %r13d,%edx
mov    %ebp,%ecx
mov    %r15d,%r8d
call   1030 <draw_line@plt>
mov    %r12d,%edi
mov    %ebx,%esi
mov    %r13d,%edx
mov    %ebp,%ecx
mov    %r15d,%r8d
call   1030 <draw_line@plt>
add    $0x1,%r14d
cmp    $0x19,%r14d
jne    1140 <playicon+0x30>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @playicon(i32 %0, i32 %1, i32 %2) {
%4 = add nsw i32 %0, 9
%5 = add nsw i32 %0, 23
%6 = add nsw i32 %1, 16
br label %7
7: ; preds = %3, %7
%8 = phi i32 [ 7, %3 ], [ %12, %7 ]
%9 = add nsw i32 %8, %1
%10 = tail call i32 @draw_line(i32 %4, i32 %9, i32 %5, i32 %6, i32 %2)
%11 = tail call i32 @draw_line(i32 %4, i32 %9, i32 %5, i32 %6, i32 %2)
%12 = add nuw nsw i32 %8, 1
%13 = icmp eq i32 %12, 25
br i1 %13, label %14, label %7
14: ; preds = %7
ret void
}