#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_wing3(int x, int y) {
  fill(0x0000, x + 2, y + 6, 8, 2);
  fill(0x0000, x, y + 8, 2, 6);
  fill(0x0000, x + 10, y + 8, 2, 2);
  fill(0x0000, x + 12, y + 10, 2, 4);
  fill(0x0000, x + 10, y + 14, 2, 2);
  fill(0x0000, x + 2, y + 14, 2, 2);
  fill(0x0000, x + 4, y + 16, 6, 2);
  fill(0xFFFF, x + 2, y + 8, 8, 6);
  fill(0xFFFF, x + 4, y + 14, 6, 2);
  fill(0xFFFF, x + 10, y + 10, 2, 4);
}


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

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

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

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