#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*/ writebyte(int);
int /*<<< orphan*/ writeword(int);
void write_APP0info(void) {
  writeword(0xFFE0);
  writeword(16);
  writebyte('J');
  writebyte('F');
  writebyte('I');
  writebyte('F');
  writebyte(0);
  writebyte(1);
  writebyte(1);
  writebyte(0);
  writeword(1);
  writeword(1);
  writebyte(0);
  writebyte(0);
}


x86 assembly (clang, -O0):
<write_APP0info>:
push   %rbp
mov    %rsp,%rbp
mov    $0xffe0,%edi
call   1030 <writeword@plt>
mov    $0x10,%edi
call   1030 <writeword@plt>
mov    $0x4a,%edi
call   1040 <writebyte@plt>
mov    $0x46,%edi
call   1040 <writebyte@plt>
mov    $0x49,%edi
call   1040 <writebyte@plt>
mov    $0x46,%edi
call   1040 <writebyte@plt>
xor    %edi,%edi
call   1040 <writebyte@plt>
mov    $0x1,%edi
call   1040 <writebyte@plt>
mov    $0x1,%edi
call   1040 <writebyte@plt>
xor    %edi,%edi
call   1040 <writebyte@plt>
mov    $0x1,%edi
call   1030 <writeword@plt>
mov    $0x1,%edi
call   1030 <writeword@plt>
xor    %edi,%edi
call   1040 <writebyte@plt>
xor    %edi,%edi
call   1040 <writebyte@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_APP0info>:
push   %rax
mov    $0xffe0,%edi
call   1030 <writeword@plt>
mov    $0x10,%edi
call   1030 <writeword@plt>
mov    $0x4a,%edi
call   1040 <writebyte@plt>
mov    $0x46,%edi
call   1040 <writebyte@plt>
mov    $0x49,%edi
call   1040 <writebyte@plt>
mov    $0x46,%edi
call   1040 <writebyte@plt>
xor    %edi,%edi
call   1040 <writebyte@plt>
mov    $0x1,%edi
call   1040 <writebyte@plt>
mov    $0x1,%edi
call   1040 <writebyte@plt>
xor    %edi,%edi
call   1040 <writebyte@plt>
mov    $0x1,%edi
call   1030 <writeword@plt>
mov    $0x1,%edi
call   1030 <writeword@plt>
xor    %edi,%edi
call   1040 <writebyte@plt>
xor    %edi,%edi
pop    %rax
jmp    1040 <writebyte@plt>

LLVM IR (-O0):
define void @write_APP0info() {
%1 = call i32 @writeword(i32 65504)
%2 = call i32 @writeword(i32 16)
%3 = call i32 @writebyte(i32 74)
%4 = call i32 @writebyte(i32 70)
%5 = call i32 @writebyte(i32 73)
%6 = call i32 @writebyte(i32 70)
%7 = call i32 @writebyte(i32 0)
%8 = call i32 @writebyte(i32 1)
%9 = call i32 @writebyte(i32 1)
%10 = call i32 @writebyte(i32 0)
%11 = call i32 @writeword(i32 1)
%12 = call i32 @writeword(i32 1)
%13 = call i32 @writebyte(i32 0)
%14 = call i32 @writebyte(i32 0)
ret void
}

LLVM IR (-O2):
define void @write_APP0info() {
%1 = tail call i32 @writeword(i32 65504)
%2 = tail call i32 @writeword(i32 16)
%3 = tail call i32 @writebyte(i32 74)
%4 = tail call i32 @writebyte(i32 70)
%5 = tail call i32 @writebyte(i32 73)
%6 = tail call i32 @writebyte(i32 70)
%7 = tail call i32 @writebyte(i32 0)
%8 = tail call i32 @writebyte(i32 1)
%9 = tail call i32 @writebyte(i32 1)
%10 = tail call i32 @writebyte(i32 0)
%11 = tail call i32 @writeword(i32 1)
%12 = tail call i32 @writeword(i32 1)
%13 = tail call i32 @writebyte(i32 0)
%14 = tail call i32 @writebyte(i32 0)
ret void
}