// File: /workspace/github_c_makefile_star2_O3/Matthias-Wandel[P]imgcomp/src/jpgfile.c
// Function: ReadExifPart
int ReadExifPart(FILE * infile)
{
    int a;
    a = FindExifInFile(infile);
    rewind(infile); // go back to start for libexif to read the image.
    return a;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
callq 0x31d0
cmpl $0xff, %eax
jne 0x7ac8
movq %rbx, %rdi
callq 0x31d0
cmpl $0xd8, %eax
jne 0x7ac8
movl $0xff, %r12d
xorl %r14d, %r14d
xorl %ebp, %ebp
xorl %r13d, %r13d
movq %r14, 0x10(%rsp)
movl %ebp, 0xc(%rsp)
movq %rbx, %rdi
callq 0x31d0
movl %eax, %r14d
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
cmpl $-0x1, %r14d
je 0x7aa8
movq %rbx, %rdi
callq 0x31d0
movl %eax, %ebp
cmpl %r12d, %eax
sete %al
cmpl %r12d, %r14d
setne %cl
incl %r15d
orb %al, %cl
movl %ebp, %r14d
jne 0x78d8
cmpl $0xa, %r15d
jae 0x7ae1
movl %r13d, 0x8(%rsp)
movq %rbx, %rdi
callq 0x31d0
movl %eax, %r13d
movq %rbx, %rdi
callq 0x31d0
cmpl $-0x1, %r13d
je 0x7b00
movl %eax, %r14d
cmpl $-0x1, %eax
je 0x7b00
movl %r13d, %r12d
shll $0x8, %r12d
orl %r14d, %r12d
cmpl $0x1, %r12d
jle 0x7b28
movl %r12d, %edi
callq 0x3340
testq %rax, %rax
je 0x7b43
movq %rax, %r15
movb %r13b, (%rax)
movb %r14b, 0x1(%rax)
movq %rax, %r13
addq $0x2, %r13
leal -0x2(%r12), %r14d
movl $0x1, %esi
movq %r13, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x30e0
cmpl %eax, %r14d
jne 0x7b5e
movq 0x10(%rsp), %rax
leal 0x1(%rax), %r14d
movl %ebp, %eax
addl $0xffffff40, %eax       # imm = 0xFFFFFF40
cmpl $0x21, %eax
ja 0x7a7b
movl $0xeeef, %ecx           # imm = 0xEEEF
btq %rax, %rcx
jae 0x7a49
movzbl 0x2(%r15), %r8d
movzwl 0x3(%r15), %eax
rolw $0x8, %ax
movzwl %ax, %edx
movzwl 0x5(%r15), %eax
rolw $0x8, %ax
movl %edx, 0xcae3(%rip)      # 0x144bc
movzwl %ax, %esi
movl %esi, 0xcade(%rip)      # 0x144c0
movzbl 0x7(%r15), %ecx
xorl %eax, %eax
cmpl $0x3, %ecx
sete %al
movl %eax, 0xcad3(%rip)      # 0x144c8
movl %ebp, 0xcad1(%rip)      # 0x144cc
movl $0x1, %ebp
cmpl $0x0, 0xba49(%rip)      # 0x13450
movl $0xff, %r12d
movl 0x8(%rsp), %r13d
je 0x7a22
leaq 0x51fd(%rip), %rdi      # 0xcc18
xorl %eax, %eax
callq 0x3170
movq %r15, %rdi
callq 0x3040
testl %r13d, %r13d
setne %al
testl %ebp, %ebp
setne %cl
testb %cl, %al
jne 0x7ac8
cmpl $0x5, %r14d
jl 0x78be
jmp 0x7ac8
cmpq $0x1a, %rax
movl 0xc(%rsp), %ebp
je 0x7a65
cmpq $0x21, %rax
jne 0x7a63
cmpl $0x66697845, (%r13)     # imm = 0x66697845
je 0x7a8c
jmp 0x7a6e
movq 0x10(%rsp), %r14
addl $0x65, %r14d
movl $0xff, %r12d
movl 0x8(%rsp), %r13d
jmp 0x7a22
movl $0xff, %r12d
movl 0x8(%rsp), %r13d
movl 0xc(%rsp), %ebp
jmp 0x7a22
movq %r15, %rdi
movl %r12d, %esi
callq 0x7ea9
movl $0x1, %r13d
movl $0xff, %r12d
jmp 0x7a22
leaq 0xb509(%rip), %rax      # 0x12fb8
movq (%rax), %rcx
leaq 0x50b6(%rip), %rdi      # 0xcb6f
movl $0x16, %esi
movl $0x1, %edx
callq 0x34a0
movq %rbx, %rdi
callq 0x3180
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb4d0(%rip), %rax      # 0x12fb8
movq (%rax), %rdi
leaq 0x5094(%rip), %rsi      # 0xcb86
movl %r15d, %edx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x32a0
jmp 0x7ac8
leaq 0xb4b1(%rip), %rax      # 0x12fb8
movq (%rax), %r14
movq %rbx, %rdi
callq 0x32b0
leaq 0x509d(%rip), %rsi      # 0xcbb6
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x32a0
jmp 0x7ac8
leaq 0xb489(%rip), %rax      # 0x12fb8
movq (%rax), %rcx
leaq 0x509b(%rip), %rdi      # 0xcbd4
movl $0x12, %esi
jmp 0x7abe
leaq 0xb46e(%rip), %rax      # 0x12fb8
movq (%rax), %rcx
leaq 0x5093(%rip), %rdi      # 0xcbe7
movl $0x19, %esi
jmp 0x7abe
leaq 0xb453(%rip), %rax      # 0x12fb8
movq (%rax), %rcx
leaq 0x5092(%rip), %rdi      # 0xcc01
jmp 0x7ab9