// File: /workspace/github_c_makefile_star2_O1/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 0x7a48
movq %rbx, %rdi
callq 0x31d0
cmpl $0xd8, %eax
jne 0x7a48
movl $0xff, %r12d
movq $0x0, 0x10(%rsp)
movl $0x0, 0x4(%rsp)
movl $0x0, (%rsp)
movq %rbx, %rdi
callq 0x31d0
movl %eax, %r14d
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpl $-0x1, %r14d
je 0x77ef
movq %rbx, %rdi
callq 0x31d0
movl %eax, %r13d
cmpl %r12d, %eax
sete %al
cmpl %r12d, %r14d
setne %cl
incl %ebp
orb %al, %cl
movl %r13d, %r14d
jne 0x77a2
cmpl $0xa, %ebp
jb 0x7820
leaq 0xb7e4(%rip), %rax      # 0x12fb8
movq (%rax), %rdi
xorl %r15d, %r15d
leaq 0x5335(%rip), %rsi      # 0xcb16
movl %ebp, %edx
movl %r13d, %ecx
xorl %eax, %eax
callq 0x3290
jmp 0x7812
leaq 0xb7c2(%rip), %rax      # 0x12fb8
movq (%rax), %rcx
movl $0x16, %esi
movl $0x1, %edx
leaq 0x52f5(%rip), %rdi      # 0xcaff
callq 0x3490
xorl %r15d, %r15d
testb %r15b, %r15b
jne 0x7792
jmp 0x7a48
movq %rbx, %rdi
callq 0x31d0
movl %eax, %r15d
movq %rbx, %rdi
callq 0x31d0
movl %eax, %r14d
cmpl $-0x1, %r15d
setne %al
cmpl $-0x1, %r14d
setne %cl
testb %cl, %al
jne 0x7873
leaq 0xb769(%rip), %rax      # 0x12fb8
movq (%rax), %r14
movq %rbx, %rdi
callq 0x32a0
xorl %r15d, %r15d
movq %r14, %rdi
leaq 0x52df(%rip), %rsi      # 0xcb46
movq %rax, %rdx
xorl %eax, %eax
callq 0x3290
jmp 0x7812
movl %r15d, %ebp
shll $0x8, %ebp
orl %r14d, %ebp
cmpl $0x1, %ebp
jg 0x78a1
leaq 0xb730(%rip), %rax      # 0x12fb8
movq (%rax), %rcx
movl $0x12, %esi
movl $0x1, %edx
leaq 0x52c8(%rip), %rdi      # 0xcb64
jmp 0x780a
movl %ebp, %edi
callq 0x3330
testq %rax, %rax
je 0x79a9
movb %r15b, (%rax)
movb %r14b, 0x1(%rax)
movq %rax, 0x8(%rsp)
movq %rax, %r15
addq $0x2, %r15
leal -0x2(%rbp), %r14d
movl $0x1, %esi
movq %r15, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x30e0
cmpl %eax, %r14d
jne 0x79c9
movq 0x10(%rsp), %rax
leal 0x1(%rax), %r14d
movl %r13d, %eax
addl $0xffffff40, %eax       # imm = 0xFFFFFF40
cmpl $0x21, %eax
ja 0x796d
movl $0xeeef, %ecx           # imm = 0xEEEF
btq %rax, %rcx
movq 0x8(%rsp), %rdi
jae 0x79fe
movzbl 0x2(%rdi), %r8d
movzwl 0x3(%rdi), %eax
rolw $0x8, %ax
movzwl %ax, %edx
movzwl 0x5(%rdi), %eax
rolw $0x8, %ax
movl %edx, 0xcb90(%rip)      # 0x144bc
movzwl %ax, %esi
movl %esi, 0xcb8b(%rip)      # 0x144c0
movzbl 0x7(%rdi), %ecx
xorl %eax, %eax
cmpl $0x3, %ecx
sete %al
movl %eax, 0xcb81(%rip)      # 0x144c8
movl %r13d, 0xcb7e(%rip)     # 0x144cc
movl $0x1, 0x4(%rsp)
cmpl $0x0, 0xbaf3(%rip)      # 0x13450
je 0x7972
leaq 0x5242(%rip), %rdi      # 0xcba8
xorl %eax, %eax
callq 0x3170
movq 0x8(%rsp), %rdi
callq 0x3040
cmpl $0x0, (%rsp)
setne %al
cmpl $0x0, 0x4(%rsp)
setne %cl
testb %cl, %al
je 0x79e9
movl $0x1, 0x4(%rsp)
xorl %r15d, %r15d
movl %r14d, %eax
movq %rax, 0x10(%rsp)
movl $0x1, (%rsp)
jmp 0x7812
leaq 0xb608(%rip), %rax      # 0x12fb8
movq (%rax), %rcx
movl $0x19, %esi
movl $0x1, %edx
leaq 0x51b3(%rip), %rdi      # 0xcb77
jmp 0x780a
leaq 0xb5e8(%rip), %rax      # 0x12fb8
movq (%rax), %rcx
movl $0x16, %esi
movl $0x1, %edx
leaq 0x51ad(%rip), %rdi      # 0xcb91
jmp 0x780a
cmpl $0x5, %r14d
setl %r15b
movl %r14d, %eax
movq %rax, 0x10(%rsp)
jmp 0x7812
cmpq $0x1a, %rax
je 0x7a38
cmpq $0x21, %rax
jne 0x7972
cmpl $0x66697845, (%r15)     # imm = 0x66697845
jne 0x7972
movq 0x8(%rsp), %rdi
movl %ebp, %esi
callq 0x7dd7
movq 0x8(%rsp), %rdi
movl $0x1, (%rsp)
jmp 0x7972
movq 0x10(%rsp), %rax
addl $0x65, %eax
movl %eax, %r14d
jmp 0x7972
movq %rbx, %rdi
callq 0x3180
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)