#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*/ create_descriptor(int /*<<< orphan*/, int, int);
int main(void) {
  create_descriptor(0, 0, 0);
  create_descriptor(0, 0x000FFFFF,
                    (((1) << 0x04) | ((1) << 0x07) | ((0) << 0x0C) |
                     ((0) << 0x0D) | ((1) << 0x0E) | ((1) << 0x0F) |
                     (((0) & 0x03) << 0x05) | 0x0A));
  create_descriptor(0, 0x000FFFFF,
                    (((1) << 0x04) | ((1) << 0x07) | ((0) << 0x0C) |
                     ((0) << 0x0D) | ((1) << 0x0E) | ((1) << 0x0F) |
                     (((0) & 0x03) << 0x05) | 0x02));
  create_descriptor(0, 0x000FFFFF,
                    (((1) << 0x04) | ((1) << 0x07) | ((0) << 0x0C) |
                     ((0) << 0x0D) | ((1) << 0x0E) | ((1) << 0x0F) |
                     (((3) & 0x03) << 0x05) | 0x0A));
  create_descriptor(0, 0x000FFFFF,
                    (((1) << 0x04) | ((1) << 0x07) | ((0) << 0x0C) |
                     ((0) << 0x0D) | ((1) << 0x0E) | ((1) << 0x0F) |
                     (((3) & 0x03) << 0x05) | 0x02));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xor    %edx,%edx
mov    %edx,%edi
mov    %edx,%esi
call   1030 <create_descriptor@plt>
xor    %edi,%edi
mov    $0xfffff,%esi
mov    $0xc09a,%edx
call   1030 <create_descriptor@plt>
xor    %edi,%edi
mov    $0xfffff,%esi
mov    $0xc092,%edx
call   1030 <create_descriptor@plt>
xor    %edi,%edi
mov    $0xfffff,%esi
mov    $0xc0fa,%edx
call   1030 <create_descriptor@plt>
xor    %edi,%edi
mov    $0xfffff,%esi
mov    $0xc0f2,%edx
call   1030 <create_descriptor@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1030 <create_descriptor@plt>
xor    %edi,%edi
mov    $0xfffff,%esi
mov    $0xc09a,%edx
call   1030 <create_descriptor@plt>
xor    %edi,%edi
mov    $0xfffff,%esi
mov    $0xc092,%edx
call   1030 <create_descriptor@plt>
xor    %edi,%edi
mov    $0xfffff,%esi
mov    $0xc0fa,%edx
call   1030 <create_descriptor@plt>
xor    %edi,%edi
mov    $0xfffff,%esi
mov    $0xc0f2,%edx
call   1030 <create_descriptor@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @create_descriptor(i32 0, i32 0, i32 0)
%3 = call i32 @create_descriptor(i32 0, i32 1048575, i32 49306)
%4 = call i32 @create_descriptor(i32 0, i32 1048575, i32 49298)
%5 = call i32 @create_descriptor(i32 0, i32 1048575, i32 49402)
%6 = call i32 @create_descriptor(i32 0, i32 1048575, i32 49394)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @create_descriptor(i32 0, i32 0, i32 0)
%2 = tail call i32 @create_descriptor(i32 0, i32 1048575, i32 49306)
%3 = tail call i32 @create_descriptor(i32 0, i32 1048575, i32 49298)
%4 = tail call i32 @create_descriptor(i32 0, i32 1048575, i32 49402)
%5 = tail call i32 @create_descriptor(i32 0, i32 1048575, i32 49394)
ret i32 0
}