#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*/ zlBeginQuads();
int /*<<< orphan*/ zlEndQuads();
int /*<<< orphan*/ zlTexCoord2x(int, int);
int /*<<< orphan*/ zlVertex3x(int, int, int /*<<< orphan*/);
void zlRenderQuad(void) {
  zlBeginQuads();
  zlTexCoord2x(0, 0);
  zlVertex3x(-65536, 65536, 0);
  zlTexCoord2x(65535, 0);
  zlVertex3x(65536, 65536, 0);
  zlTexCoord2x(65535, 65535);
  zlVertex3x(65536, -65536, 0);
  zlTexCoord2x(0, 65535);
  zlVertex3x(-65536, -65536, 0);
  zlEndQuads();
}


x86 assembly (clang, -O0):
<zlRenderQuad>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <zlBeginQuads@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1060 <zlTexCoord2x@plt>
mov    $0xffff0000,%edi
mov    $0x10000,%esi
xor    %edx,%edx
call   1050 <zlVertex3x@plt>
mov    $0xffff,%edi
xor    %esi,%esi
call   1060 <zlTexCoord2x@plt>
mov    $0x10000,%esi
xor    %edx,%edx
mov    %esi,%edi
call   1050 <zlVertex3x@plt>
mov    $0xffff,%esi
mov    %esi,%edi
call   1060 <zlTexCoord2x@plt>
mov    $0x10000,%edi
mov    $0xffff0000,%esi
xor    %edx,%edx
call   1050 <zlVertex3x@plt>
xor    %edi,%edi
mov    $0xffff,%esi
call   1060 <zlTexCoord2x@plt>
mov    $0xffff0000,%esi
xor    %edx,%edx
mov    %esi,%edi
call   1050 <zlVertex3x@plt>
mov    $0x0,%al
call   1040 <zlEndQuads@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<zlRenderQuad>:
push   %rax
xor    %eax,%eax
call   1030 <zlBeginQuads@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1060 <zlTexCoord2x@plt>
mov    $0xffff0000,%edi
mov    $0x10000,%esi
xor    %edx,%edx
call   1050 <zlVertex3x@plt>
mov    $0xffff,%edi
xor    %esi,%esi
call   1060 <zlTexCoord2x@plt>
mov    $0x10000,%edi
mov    $0x10000,%esi
xor    %edx,%edx
call   1050 <zlVertex3x@plt>
mov    $0xffff,%edi
mov    $0xffff,%esi
call   1060 <zlTexCoord2x@plt>
mov    $0x10000,%edi
mov    $0xffff0000,%esi
xor    %edx,%edx
call   1050 <zlVertex3x@plt>
xor    %edi,%edi
mov    $0xffff,%esi
call   1060 <zlTexCoord2x@plt>
mov    $0xffff0000,%edi
mov    $0xffff0000,%esi
xor    %edx,%edx
call   1050 <zlVertex3x@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <zlEndQuads@plt>

LLVM IR (-O0):
define void @zlRenderQuad() {
%1 = call i32 (...) @zlBeginQuads()
%2 = call i32 @zlTexCoord2x(i32 0, i32 0)
%3 = call i32 @zlVertex3x(i32 -65536, i32 65536, i32 0)
%4 = call i32 @zlTexCoord2x(i32 65535, i32 0)
%5 = call i32 @zlVertex3x(i32 65536, i32 65536, i32 0)
%6 = call i32 @zlTexCoord2x(i32 65535, i32 65535)
%7 = call i32 @zlVertex3x(i32 65536, i32 -65536, i32 0)
%8 = call i32 @zlTexCoord2x(i32 0, i32 65535)
%9 = call i32 @zlVertex3x(i32 -65536, i32 -65536, i32 0)
%10 = call i32 (...) @zlEndQuads()
ret void
}

LLVM IR (-O2):
define void @zlRenderQuad() {
%1 = tail call i32 (...) @zlBeginQuads()
%2 = tail call i32 @zlTexCoord2x(i32 0, i32 0)
%3 = tail call i32 @zlVertex3x(i32 -65536, i32 65536, i32 0)
%4 = tail call i32 @zlTexCoord2x(i32 65535, i32 0)
%5 = tail call i32 @zlVertex3x(i32 65536, i32 65536, i32 0)
%6 = tail call i32 @zlTexCoord2x(i32 65535, i32 65535)
%7 = tail call i32 @zlVertex3x(i32 65536, i32 -65536, i32 0)
%8 = tail call i32 @zlTexCoord2x(i32 0, i32 65535)
%9 = tail call i32 @zlVertex3x(i32 -65536, i32 -65536, i32 0)
%10 = tail call i32 (...) @zlEndQuads()
ret void
}