// File: /workspace/github_c_makefile_star2_O0/hfiguiere[P]exifprobe/misc.c
// Function: print_location
void
print_location(struct image_summary *entry)
{
    char *space = NULL;
    int chpr = 0;

    if(entry)
    {
        space = " (";
        if((entry->fileformat == FILEFMT_TIFF) || 
                    entry->filesubformat & FILESUBFMT_TIFFUSED ||
                                            entry->filesubformatAPPN[1])
        {
            if(entry->ifdnum >= 0)
                chpr += printf("%sIFD %d",space,entry->ifdnum),space = " ";
            if(entry->subifdnum >= 0)
                chpr += printf("%sSubIFD %d",space,entry->subifdnum),space = " ";
            /* could use filesubformat here?                          */
            if(entry->datatype == MAKER_IFD)
                chpr += printf("%sMakerNote",space),space = " ";
            if(entry->datatype == MAKER_SUBIFD)
                chpr += printf("%sMakerNote SubIFD",space),space = " ";
        }
        else if(entry->fileformat == FILEFMT_JPEG)
        {
            if(entry->filesubformatAPPN[0])
            {
                chpr += printf("%sAPP0",space),space = " ";
                if(entry->filesubformat & FILESUBFMT_JFXX)
                    chpr += printf("%sJFXX",space),space = " ";
            }
        }
        if(chpr)
            chpr += printf(")");
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq $0x0, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x1f820
leaq 0x44b5c(%rip), %rax     # 0x641e9
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x2a, 0x14(%rax)
je 0x1f6ba
movq -0x8(%rbp), %rax
movl 0x18(%rax), %eax
andl $0x3ff, %eax            # imm = 0x3FF
cmpl $0x0, %eax
jne 0x1f6ba
movq -0x8(%rbp), %rax
cmpl $0x0, 0x20(%rax)
je 0x1f790
movq -0x8(%rbp), %rax
cmpl $0x0, 0x11c(%rax)
jl 0x1f6f4
movq -0x10(%rbp), %rsi
movq -0x8(%rbp), %rax
movl 0x11c(%rax), %edx
leaq 0x48e5b(%rip), %rdi     # 0x68537
movb $0x0, %al
callq 0x3110
addl -0x14(%rbp), %eax
movl %eax, -0x14(%rbp)
leaq 0x44a87(%rip), %rax     # 0x64177
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x120(%rax)
jl 0x1f72e
movq -0x10(%rbp), %rsi
movq -0x8(%rbp), %rax
movl 0x120(%rax), %edx
leaq 0x48e2a(%rip), %rdi     # 0x68540
movb $0x0, %al
callq 0x3110
addl -0x14(%rbp), %eax
movl %eax, -0x14(%rbp)
leaq 0x44a4d(%rip), %rax     # 0x64177
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x5, 0x118(%rax)
jne 0x1f75e
movq -0x10(%rbp), %rsi
leaq 0x48e06(%rip), %rdi     # 0x6854c
movb $0x0, %al
callq 0x3110
addl -0x14(%rbp), %eax
movl %eax, -0x14(%rbp)
leaq 0x44a1d(%rip), %rax     # 0x64177
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x6, 0x118(%rax)
jne 0x1f78e
movq -0x10(%rbp), %rsi
leaq 0x48de2(%rip), %rdi     # 0x68558
movb $0x0, %al
callq 0x3110
addl -0x14(%rbp), %eax
movl %eax, -0x14(%rbp)
leaq 0x449ed(%rip), %rax     # 0x64177
movq %rax, -0x10(%rbp)
jmp 0x1f804
movq -0x8(%rbp), %rax
cmpl $0xffd8, 0x14(%rax)     # imm = 0xFFD8
jne 0x1f802
movq -0x8(%rbp), %rax
cmpl $0x0, 0x1c(%rax)
je 0x1f800
movq -0x10(%rbp), %rsi
leaq 0x48782(%rip), %rdi     # 0x67f34
movb $0x0, %al
callq 0x3110
addl -0x14(%rbp), %eax
movl %eax, -0x14(%rbp)
leaq 0x449b1(%rip), %rax     # 0x64177
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movl 0x18(%rax), %eax
andl $0x2000, %eax           # imm = 0x2000
cmpl $0x0, %eax
je 0x1f7fe
movq -0x10(%rbp), %rsi
leaq 0x4875c(%rip), %rdi     # 0x67f42
movb $0x0, %al
callq 0x3110
addl -0x14(%rbp), %eax
movl %eax, -0x14(%rbp)
leaq 0x4497d(%rip), %rax     # 0x64177
movq %rax, -0x10(%rbp)
jmp 0x1f800
jmp 0x1f802
jmp 0x1f804
cmpl $0x0, -0x14(%rbp)
je 0x1f81e
leaq 0x4b90f(%rip), %rdi     # 0x6b120
movb $0x0, %al
callq 0x3110
addl -0x14(%rbp), %eax
movl %eax, -0x14(%rbp)
jmp 0x1f820
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)