#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_pixel(int /*<<< orphan*/, int /*<<< orphan*/, char,
                              char, char, int);
int /*<<< orphan*/ pXleft(int, int);
int /*<<< orphan*/ pXright(int, int);
int /*<<< orphan*/ pY(int, int);
void psdraw_pixel(int x, int y, int z, char r, char g, char b) {
  if ((z >= -64) & (z <= 63)) {
    draw_pixel(pXleft(x, z), pY(y, z), r, g, b, 0x20184E60);
    draw_pixel(pXright(x, z), pY(y, z), r, g, b, 0x201CB370);
  }
}


x86 assembly (clang, -O0):
<psdraw_pixel>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %r8d,-0x20(%rbp)
mov    %ecx,%eax
mov    -0x20(%rbp),%ecx
mov    %eax,-0x1c(%rbp)
mov    %edx,%eax
mov    -0x1c(%rbp),%edx
mov    %eax,-0x18(%rbp)
mov    %esi,%eax
mov    -0x18(%rbp),%esi
mov    %eax,-0x14(%rbp)
mov    %edi,%r8d
mov    -0x14(%rbp),%edi
mov    %r9b,%al
mov    %r8d,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %dl,-0xd(%rbp)
mov    %cl,-0xe(%rbp)
mov    %al,-0xf(%rbp)
cmpl   $0xffffffc0,-0xc(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%eax
cmpl   $0x3f,-0xc(%rbp)
setle  %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1218 <psdraw_pixel+0xd8>
mov    -0x4(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <pXleft@plt>
mov    %eax,-0x28(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1060 <pY@plt>
mov    -0x28(%rbp),%edi
mov    %eax,%esi
mov    -0xd(%rbp),%cl
mov    -0xe(%rbp),%al
mov    $0x20184e60,%r9d
movsbl %cl,%edx
movsbl %al,%ecx
movsbl -0xf(%rbp),%r8d
call   1050 <draw_pixel@plt>
mov    -0x4(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1040 <pXright@plt>
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1060 <pY@plt>
mov    -0x24(%rbp),%edi
mov    %eax,%esi
mov    -0xd(%rbp),%cl
mov    -0xe(%rbp),%al
mov    $0x201cb370,%r9d
movsbl %cl,%edx
movsbl %al,%ecx
movsbl -0xf(%rbp),%r8d
call   1050 <draw_pixel@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<psdraw_pixel>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %edx,%ebx
lea    0x40(%rbx),%eax
cmp    $0x7f,%eax
ja     11dd <psdraw_pixel+0x9d>
mov    %r9d,%r15d
mov    %r8d,%r12d
mov    %ecx,%r13d
mov    %esi,%r14d
mov    %edi,%ebp
mov    %ebx,%esi
call   1030 <pXleft@plt>
mov    %eax,0x4(%rsp)
mov    %r14d,%edi
mov    %ebx,%esi
call   1060 <pY@plt>
movsbl %r13b,%r13d
movsbl %r12b,%r12d
movsbl %r15b,%r15d
mov    0x4(%rsp),%edi
mov    %eax,%esi
mov    %r13d,%edx
mov    %r12d,%ecx
mov    %r15d,%r8d
mov    $0x20184e60,%r9d
call   1050 <draw_pixel@plt>
mov    %ebp,%edi
mov    %ebx,%esi
call   1040 <pXright@plt>
mov    %eax,%ebp
mov    %r14d,%edi
mov    %ebx,%esi
call   1060 <pY@plt>
mov    %ebp,%edi
mov    %eax,%esi
mov    %r13d,%edx
mov    %r12d,%ecx
mov    %r15d,%r8d
mov    $0x201cb370,%r9d
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <draw_pixel@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @psdraw_pixel(i32 %0, i32 %1, i32 %2, i8 signext %3, i8 signext %4, i8 signext %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8
%11 = alloca i8
%12 = alloca i8
store i32 %0, i32* %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i8 %3, i8* %10
store i8 %4, i8* %11
store i8 %5, i8* %12
%13 = load i32, i32* %9
%14 = icmp sge i32 %13, -64
%15 = zext i1 %14 to i32
%16 = load i32, i32* %9
%17 = icmp sle i32 %16, 63
%18 = zext i1 %17 to i32
%19 = and i32 %15, %18
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %42
21: ; preds = %6
%22 = load i32, i32* %7
%23 = load i32, i32* %9
%24 = call i32 @pXleft(i32 %22, i32 %23)
%25 = load i32, i32* %8
%26 = load i32, i32* %9
%27 = call i32 @pY(i32 %25, i32 %26)
%28 = load i8, i8* %10
%29 = load i8, i8* %11
%30 = load i8, i8* %12
%31 = call i32 @draw_pixel(i32 %24, i32 %27, i8 signext %28, i8 signext %29, i8 signext %30, i32 538463840)
%32 = load i32, i32* %7
%33 = load i32, i32* %9
%34 = call i32 @pXright(i32 %32, i32 %33)
%35 = load i32, i32* %8
%36 = load i32, i32* %9
%37 = call i32 @pY(i32 %35, i32 %36)
%38 = load i8, i8* %10
%39 = load i8, i8* %11
%40 = load i8, i8* %12
%41 = call i32 @draw_pixel(i32 %34, i32 %37, i8 signext %38, i8 signext %39, i8 signext %40, i32 538751856)
br label %42
42: ; preds = %21, %6
ret void
}

LLVM IR (-O2):
define void @psdraw_pixel(i32 %0, i32 %1, i32 %2, i8 signext %3, i8 signext %4, i8 signext %5) {
%7 = add i32 %2, 64
%8 = icmp ult i32 %7, 128
br i1 %8, label %9, label %16
9: ; preds = %6
%10 = tail call i32 @pXleft(i32 %0, i32 %2)
%11 = tail call i32 @pY(i32 %1, i32 %2)
%12 = tail call i32 @draw_pixel(i32 %10, i32 %11, i8 signext %3, i8 signext %4, i8 signext %5, i32 538463840)
%13 = tail call i32 @pXright(i32 %0, i32 %2)
%14 = tail call i32 @pY(i32 %1, i32 %2)
%15 = tail call i32 @draw_pixel(i32 %13, i32 %14, i8 signext %3, i8 signext %4, i8 signext %5, i32 538751856)
br label %16
16: ; preds = %9, %6
ret void
}