// File: /workspace/github_c_makefile_star2_O2/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 0x725b
movq %rbx, %rdi
callq 0x31d0
cmpl $0xd8, %eax
jne 0x725b
pushq $-0x1
popq %rbp
movl $0xff, %r14d
xorl %r12d, %r12d
xorl %r15d, %r15d
xorl %r13d, %r13d
movq %r12, 0x10(%rsp)
movl %r15d, 0x4(%rsp)
movl %ebp, %r12d
xorl %ebp, %ebp
movl %ebp, %r15d
movq %rbx, %rdi
callq 0x31d0
movl %eax, %ebp
cmpl %r14d, %eax
setne %al
cmpl %r14d, %r15d
sete %cl
testb %al, %cl
jne 0x709a
cmpl $-0x1, %ebp
je 0x723f
incl %r12d
jmp 0x706f
leal 0x1(%r12), %eax
cmpl $0xb, %eax
jae 0x7274
movq %rbx, %rdi
callq 0x31d0
movl %eax, %r15d
movq %rbx, %rdi
callq 0x31d0
cmpl $-0x1, %r15d
je 0x7293
movl %eax, %r12d
cmpl $-0x1, %eax
je 0x7293
movl %r13d, (%rsp)
movl %r15d, %r13d
shll $0x8, %r13d
orl %r12d, %r13d
cmpl $0x1, %r13d
jle 0x72bb
movl %r13d, %edi
callq 0x3340
testq %rax, %rax
je 0x72d0
movb %r15b, (%rax)
movb %r12b, 0x1(%rax)
movq %rax, 0x8(%rsp)
movq %rax, %r15
addq $0x2, %r15
leal -0x2(%r13), %r12d
movq %r15, %rdi
pushq $0x1
popq %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x30e0
cmpl %eax, %r12d
jne 0x72e8
movq 0x10(%rsp), %rax
leal 0x1(%rax), %r12d
movl %ebp, %eax
addl $0xffffff40, %eax       # imm = 0xFFFFFF40
cmpl $0x21, %eax
ja 0x7211
movl $0xeeef, %ecx           # imm = 0xEEEF
btq %rax, %rcx
movq 0x8(%rsp), %rdi
jae 0x71e3
movzwl 0x3(%rdi), %eax
rolw $0x8, %ax
movzbl 0x2(%rdi), %r8d
movzwl %ax, %edx
movl %edx, 0xd35e(%rip)      # 0x144cc
movzwl 0x5(%rdi), %eax
rolw $0x8, %ax
movzwl %ax, %esi
movl %esi, 0xd351(%rip)      # 0x144d0
movzbl 0x7(%rdi), %ecx
xorl %eax, %eax
cmpl $0x3, %ecx
sete %al
movl %eax, 0xd347(%rip)      # 0x144d8
movl %ebp, 0xd345(%rip)      # 0x144dc
cmpl $0x0, 0xc2c2(%rip)      # 0x13460
pushq $-0x1
popq %rbp
movl (%rsp), %r13d
je 0x71ba
leaq 0x5a3a(%rip), %rdi      # 0xcbe8
xorl %eax, %eax
callq 0x3170
movq 0x8(%rsp), %rdi
pushq $0x1
popq %r15
callq 0x3040
testl %r13d, %r13d
setne %al
testl %r15d, %r15d
setne %cl
testb %cl, %al
jne 0x725b
cmpl $0x5, %r12d
jl 0x7060
jmp 0x725b
cmpq $0x1a, %rax
je 0x71fa
cmpq $0x21, %rax
jne 0x71f8
cmpl $0x66697845, (%r15)     # imm = 0x66697845
je 0x7224
jmp 0x7203
movq 0x10(%rsp), %r12
addl $0x65, %r12d
pushq $-0x1
popq %rbp
movl (%rsp), %r13d
movl 0x4(%rsp), %r15d
jmp 0x71be
pushq $-0x1
popq %rbp
movl (%rsp), %r13d
movl 0x4(%rsp), %r15d
movq 0x8(%rsp), %rdi
jmp 0x71be
movq 0x8(%rsp), %rdi
movl %r13d, %esi
callq 0x7613
movq 0x8(%rsp), %rdi
pushq $0x1
popq %r13
pushq $-0x1
popq %rbp
jmp 0x720a
leaq 0xbd82(%rip), %rax      # 0x12fc8
movq (%rax), %rcx
leaq 0x58ef(%rip), %rdi      # 0xcb3f
pushq $0x16
popq %rsi
pushq $0x1
popq %rdx
callq 0x34b0
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 0xbd4d(%rip), %rax      # 0x12fc8
movq (%rax), %rdi
leaq 0x58d1(%rip), %rsi      # 0xcb56
movl %r12d, %edx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x32a0
jmp 0x725b
leaq 0xbd2e(%rip), %rax      # 0x12fc8
movq (%rax), %r14
movq %rbx, %rdi
callq 0x32b0
leaq 0x58da(%rip), %rsi      # 0xcb86
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x32a0
jmp 0x725b
leaq 0xbd06(%rip), %rax      # 0x12fc8
movq (%rax), %rcx
leaq 0x58d8(%rip), %rdi      # 0xcba4
pushq $0x12
jmp 0x7252
leaq 0xbcf1(%rip), %rax      # 0x12fc8
movq (%rax), %rcx
leaq 0x58d6(%rip), %rdi      # 0xcbb7
pushq $0x19
jmp 0x7252
leaq 0xbcd9(%rip), %rax      # 0x12fc8
movq (%rax), %rcx
leaq 0x58d8(%rip), %rdi      # 0xcbd1
jmp 0x7250
nop