#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*/ fill(int, int, int, int, int);
void draw_wing1(int x, int y) {
  fill(0x0000, x, y + 14, 2, 6);
  fill(0x0000, x + 2, y + 20, 8, 2);
  fill(0x0000, x + 2, y + 12, 10, 2);
  fill(0x0000, x + 12, y + 14, 2, 2);
  fill(0x0000, x + 10, y + 16, 2, 2);
  fill(0xFFFF, x + 2, y + 14, 8, 6);
  fill(0x0000, x + 8, y + 18, 2, 2);
  fill(0xFFFF, x + 10, y + 14, 2, 2);
}


x86 assembly (clang, -O0):
<draw_wing1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
add    $0xe,%edx
xor    %edi,%edi
mov    $0x2,%ecx
mov    $0x6,%r8d
call   1030 <fill@plt>
mov    -0x4(%rbp),%esi
add    $0x2,%esi
mov    -0x8(%rbp),%edx
add    $0x14,%edx
xor    %edi,%edi
mov    $0x8,%ecx
mov    $0x2,%r8d
call   1030 <fill@plt>
mov    -0x4(%rbp),%esi
add    $0x2,%esi
mov    -0x8(%rbp),%edx
add    $0xc,%edx
xor    %edi,%edi
mov    $0xa,%ecx
mov    $0x2,%r8d
call   1030 <fill@plt>
mov    -0x4(%rbp),%esi
add    $0xc,%esi
mov    -0x8(%rbp),%edx
add    $0xe,%edx
xor    %edi,%edi
mov    $0x2,%r8d
mov    %r8d,%ecx
call   1030 <fill@plt>
mov    -0x4(%rbp),%esi
add    $0xa,%esi
mov    -0x8(%rbp),%edx
add    $0x10,%edx
xor    %edi,%edi
mov    $0x2,%r8d
mov    %r8d,%ecx
call   1030 <fill@plt>
mov    -0x4(%rbp),%esi
add    $0x2,%esi
mov    -0x8(%rbp),%edx
add    $0xe,%edx
mov    $0xffff,%edi
mov    $0x8,%ecx
mov    $0x6,%r8d
call   1030 <fill@plt>
mov    -0x4(%rbp),%esi
add    $0x8,%esi
mov    -0x8(%rbp),%edx
add    $0x12,%edx
xor    %edi,%edi
mov    $0x2,%r8d
mov    %r8d,%ecx
call   1030 <fill@plt>
mov    -0x4(%rbp),%esi
add    $0xa,%esi
mov    -0x8(%rbp),%edx
add    $0xe,%edx
mov    $0xffff,%edi
mov    $0x2,%r8d
mov    %r8d,%ecx
call   1030 <fill@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw_wing1>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %esi,%ebx
mov    %edi,%ebp
lea    0xe(%rbx),%r14d
xor    %edi,%edi
mov    %ebp,%esi
mov    %r14d,%edx
mov    $0x2,%ecx
mov    $0x6,%r8d
call   1030 <fill@plt>
lea    0x2(%rbp),%r15d
lea    0x14(%rbx),%edx
xor    %edi,%edi
mov    %r15d,%esi
mov    $0x8,%ecx
mov    $0x2,%r8d
call   1030 <fill@plt>
lea    0xc(%rbx),%edx
xor    %edi,%edi
mov    %r15d,%esi
mov    $0xa,%ecx
mov    $0x2,%r8d
call   1030 <fill@plt>
lea    0xc(%rbp),%esi
xor    %edi,%edi
mov    %r14d,%edx
mov    $0x2,%ecx
mov    $0x2,%r8d
call   1030 <fill@plt>
lea    0xa(%rbp),%r12d
lea    0x10(%rbx),%edx
xor    %edi,%edi
mov    %r12d,%esi
mov    $0x2,%ecx
mov    $0x2,%r8d
call   1030 <fill@plt>
mov    $0xffff,%edi
mov    %r15d,%esi
mov    %r14d,%edx
mov    $0x8,%ecx
mov    $0x6,%r8d
call   1030 <fill@plt>
add    $0x8,%ebp
add    $0x12,%ebx
xor    %edi,%edi
mov    %ebp,%esi
mov    %ebx,%edx
mov    $0x2,%ecx
mov    $0x2,%r8d
call   1030 <fill@plt>
mov    $0xffff,%edi
mov    %r12d,%esi
mov    %r14d,%edx
mov    $0x2,%ecx
mov    $0x2,%r8d
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <fill@plt>

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

LLVM IR (-O2):
define void @draw_wing1(i32 %0, i32 %1) {
%3 = add nsw i32 %1, 14
%4 = tail call i32 @fill(i32 0, i32 %0, i32 %3, i32 2, i32 6)
%5 = add nsw i32 %0, 2
%6 = add nsw i32 %1, 20
%7 = tail call i32 @fill(i32 0, i32 %5, i32 %6, i32 8, i32 2)
%8 = add nsw i32 %1, 12
%9 = tail call i32 @fill(i32 0, i32 %5, i32 %8, i32 10, i32 2)
%10 = add nsw i32 %0, 12
%11 = tail call i32 @fill(i32 0, i32 %10, i32 %3, i32 2, i32 2)
%12 = add nsw i32 %0, 10
%13 = add nsw i32 %1, 16
%14 = tail call i32 @fill(i32 0, i32 %12, i32 %13, i32 2, i32 2)
%15 = tail call i32 @fill(i32 65535, i32 %5, i32 %3, i32 8, i32 6)
%16 = add nsw i32 %0, 8
%17 = add nsw i32 %1, 18
%18 = tail call i32 @fill(i32 0, i32 %16, i32 %17, i32 2, i32 2)
%19 = tail call i32 @fill(i32 65535, i32 %12, i32 %3, i32 2, i32 2)
ret void
}