LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/giometti[P]mastering_UNIX_programming/chapter_04/unlink.c
// Function: main
int main(int argc, char *argv[])
{
	int ret;

	if (argc < 2) {
		fprintf(stderr, "usage: %s <file>\n",
			argv[0]);
		return -1;
	}

	printf("unlinking %s\n", argv[1]);
	ret = unlink(argv[1]);
	if (ret < 0) {
		perror("link");
		return -1;
	}

	return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
cmpl $0x1, %edi
jle 0x11c3
movq 0x8(%r14), %rsi
leaq 0xe73(%rip), %rdi       # 0x2016
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x1040
movq 0x8(%r14), %rdi
callq 0x1030
testl %eax, %eax
js 0x11cd
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %r14, %rdi
callq 0x1080
jmp 0x11d9
leaq 0xe50(%rip), %rdi       # 0x2024
callq 0x1060
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x11b9
// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/readfile.c
// Function: read_ushort
unsigned short
read_ushort(FILE *inptr,unsigned short byteorder,unsigned long offset)
{
    unsigned char rbuf[2];
    unsigned long curoffset;
    unsigned short value = 0;
    int chpr = 0;

    if(inptr)
    {
        clearerr(inptr);
        curoffset = ftell(inptr);
        if((offset != HERE) && (fseek(inptr,offset,SEEK_SET) == -1))
        {
            printred(" SEEK FAILED to read unsigned short at offset ");
            printf("%lu",offset);
        }
        else if(fread(rbuf,1,sizeof(unsigned short),inptr) == sizeof(unsigned short))
            value = to_ushort(rbuf,byteorder);
        else
        {
            printred(" FAILED to read unsigned short value at offset ");
            if(offset == HERE)
                offset = curoffset;
            chpr += printf("%lu",offset);
        }
        if(ferror(inptr))
        {
            chpr += printf(" (");
            setcharsprinted(chpr);
            chpr = 0;
            printred(strerror(errno));
            chpr += printf(")");
            chpr = newline(chpr);
        }
        else if(feof(inptr))
        {
            printred(" (EOF)");
            chpr = newline(chpr);
        }
    }
    setcharsprinted(chpr);
    return(value);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
testq %rdi, %rdi
je 0x45f5
movq %rdx, %rbx
movl %esi, %r15d
movq %rdi, %r14
callq 0x31b0
movq %r14, %rdi
callq 0x3190
movq %rax, %r12
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, %rbx
je 0x45bc
xorl %ebp, %ebp
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3210
cmpl $-0x1, %eax
je 0x462d
leaq 0xe(%rsp), %rdi
movl $0x1, %esi
movl $0x2, %edx
movq %r14, %rcx
callq 0x30d0
cmpq $0x2, %rax
jne 0x45fe
movzwl 0xe(%rsp), %eax
movzwl %r15w, %ecx
movl %eax, %ebx
rolw $0x8, %bx
cmpl $0x4d4d, %ecx           # imm = 0x4D4D
cmovnel %eax, %ebx
xorl %ebp, %ebp
jmp 0x464c
xorl %ebx, %ebx
xorl %ebp, %ebp
jmp 0x46b6
leaq 0x3cbd3(%rip), %rdi     # 0x411d8
callq 0x5c33
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, %rbx
cmovneq %rbx, %r12
leaq 0x442d8(%rip), %rdi     # 0x488f5
xorl %ebx, %ebx
movq %r12, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
jmp 0x464c
leaq 0x3cb75(%rip), %rdi     # 0x411a9
callq 0x5c33
leaq 0x442b5(%rip), %rdi     # 0x488f5
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3120
xorl %ebx, %ebx
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
je 0x4695
leaq 0x3cba9(%rip), %rdi     # 0x41208
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %edi
callq 0x17530
callq 0x3070
movl (%rax), %edi
callq 0x32c0
movq %rax, %rdi
callq 0x5c33
leaq 0x444eb(%rip), %rdi     # 0x48b75
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
jmp 0x46ad
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
je 0x46b6
leaq 0x3cb63(%rip), %rdi     # 0x4120b
callq 0x5c33
movl %ebp, %edi
callq 0x16b56
movl %eax, %ebp
movl %ebp, %edi
callq 0x17530
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/readfile.c
// Function: read_ulong
unsigned long
read_ulong(FILE *inptr,unsigned short byteorder,unsigned long offset)
{
    unsigned char rbuf[4];
    unsigned long curoffset;
    unsigned long value = 0;
    int chpr = 0;

    if(inptr)
    {
        clearerr(inptr);
        curoffset = ftell(inptr);
        if((offset != HERE) && (fseek(inptr,offset,SEEK_SET) == -1))
        {
            printred(" SEEK FAILED to read unsigned 32bit integer at offset ");
            printf("%lu",offset);
        }
        else if(fread(rbuf,1,4,inptr) == 4)
            value = to_ulong(rbuf,byteorder);
        else
        {
            printred(" FAILED to read unsigned 32bit integer at offset ");
            if(offset == HERE)
                offset = curoffset;
            chpr += printf("%lu",offset);
        }
        if(ferror(inptr))
        {
            chpr += printf(" (");
            setcharsprinted(chpr);
            chpr = 0;
            printred(strerror(errno));
            chpr += printf(")");
            chpr = newline(chpr);
        }
        else if(feof(inptr))
        {
            printred(" (EOF)");
            chpr = newline(chpr);
        }
    }
    setcharsprinted(chpr);
    return(value);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
testq %rdi, %rdi
je 0x4743
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
callq 0x31b0
movq %rbx, %rdi
callq 0x3190
movq %rax, %r12
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, %r14
je 0x4714
xorl %r15d, %r15d
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3210
cmpl $-0x1, %eax
je 0x478b
leaq 0xc(%rsp), %rdi
movl $0x1, %esi
movl $0x4, %edx
movq %rbx, %rcx
callq 0x30d0
cmpq $0x4, %rax
jne 0x474e
movzwl %bp, %eax
cmpl $0x4d4d, %eax           # imm = 0x4D4D
jne 0x477f
movl 0xc(%rsp), %eax
bswapl %eax
jmp 0x4783
xorl %r14d, %r14d
xorl %r15d, %r15d
jmp 0x481a
leaq 0x3caf0(%rip), %rdi     # 0x41245
callq 0x5c33
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, %r14
cmovneq %r14, %r12
leaq 0x44188(%rip), %rdi     # 0x488f5
xorl %r14d, %r14d
movq %r12, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %r15d
jmp 0x47ab
movl 0xc(%rsp), %eax
movl %eax, %r14d
xorl %r15d, %r15d
jmp 0x47ab
leaq 0x3caae(%rip), %rdi     # 0x41240
callq 0x5c33
leaq 0x44157(%rip), %rdi     # 0x488f5
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x30b0
testl %eax, %eax
je 0x47f7
leaq 0x3ca4a(%rip), %rdi     # 0x41208
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
movl %r15d, %edi
callq 0x17530
callq 0x3070
movl (%rax), %edi
callq 0x32c0
movq %rax, %rdi
callq 0x5c33
leaq 0x4438a(%rip), %rdi     # 0x48b75
xorl %eax, %eax
callq 0x3120
movl %eax, %r15d
jmp 0x480f
movq %rbx, %rdi
callq 0x31a0
testl %eax, %eax
je 0x481a
leaq 0x3ca01(%rip), %rdi     # 0x4120b
callq 0x5c33
movl %r15d, %edi
callq 0x16b56
movl %eax, %r15d
movl %r15d, %edi
callq 0x17530
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/readfile.c
// Function: read_ubyte
unsigned short
read_ubyte(FILE *inptr,unsigned long offset)
{
    unsigned char rbuf[1];
    unsigned long curoffset;
    unsigned short value = 0;
    int chpr = 0;

    if(inptr)
    {
        clearerr(inptr);
        curoffset = ftell(inptr);
        if((offset != HERE) && (fseek(inptr,offset,SEEK_SET) == -1))
        {
            printred(" SEEK FAILED to read unsigned byte at offset ");
            chpr += printf("%lu",offset);
        }
        else if(fread(rbuf,1,1,inptr) == 1)
            value = rbuf[0] & 0xff;
        else
        {
            if(offset == HERE)
                offset = curoffset;
            printred(" FAILED to read unsigned byte at offset ");
            chpr += printf("%lu",offset);
        }
        if(ferror(inptr))
        {
            chpr += printf(" (");
            setcharsprinted(chpr);
            chpr = 0;
            printred(strerror(errno));
            chpr += printf(")");
            chpr = newline(chpr);
        }
        else if(feof(inptr))
        {
            printred(" (EOF)");
            chpr = newline(chpr);
        }
    }
    setcharsprinted(chpr);
    return(value);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
testq %rdi, %rdi
je 0x4dad
movq %rsi, %r15
movq %rdi, %r14
callq 0x31b0
movq %r14, %rdi
callq 0x3190
movq %rax, %r12
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, %r15
je 0x4d87
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x3210
cmpl $-0x1, %eax
je 0x4ddc
leaq 0xf(%rsp), %rdi
movl $0x1, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x30d0
cmpq $0x1, %rax
jne 0x4db6
movzbl 0xf(%rsp), %ebx
xorl %ebp, %ebp
jmp 0x4dfd
xorl %ebx, %ebx
xorl %ebp, %ebp
jmp 0x4e67
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, %r15
cmovneq %r15, %r12
leaq 0x3c44e(%rip), %rdi     # 0x41217
callq 0x5c33
leaq 0x43b20(%rip), %rdi     # 0x488f5
xorl %ebx, %ebx
movq %r12, %rsi
jmp 0x4df4
leaq 0x3c42f(%rip), %rdi     # 0x41212
callq 0x5c33
leaq 0x43b06(%rip), %rdi     # 0x488f5
xorl %ebx, %ebx
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
je 0x4e46
leaq 0x3c3f8(%rip), %rdi     # 0x41208
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %edi
callq 0x17530
callq 0x3070
movl (%rax), %edi
callq 0x32c0
movq %rax, %rdi
callq 0x5c33
leaq 0x43d3a(%rip), %rdi     # 0x48b75
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
jmp 0x4e5e
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
je 0x4e67
leaq 0x3c3b2(%rip), %rdi     # 0x4120b
callq 0x5c33
movl %ebp, %edi
callq 0x16b56
movl %eax, %ebp
movl %ebp, %edi
callq 0x17530
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/readfile.c
// Function: read_ulong64
unsigned long long
read_ulong64(FILE *inptr,unsigned short byteorder,unsigned long offset)
{
    unsigned char rbuf[sizeof(double)];
    unsigned long curoffset;
    unsigned long long value = 0;
    int chpr = 0;

    if(inptr)
    {
        clearerr(inptr);
        curoffset = ftell(inptr);
        if((offset != HERE) && (fseek(inptr,offset,SEEK_SET) == -1))
            chpr += printf(" seek failed to offset %lu to read unsigned long\n",
                    offset);
        else if(fread(rbuf,1,sizeof(long long),inptr) == sizeof(long long))
            value = to_ulong64(rbuf,byteorder);
        else
        {
            printred(" FAILED to read unsigned 64bit integer at offset ");
            if(offset == HERE)
                offset = curoffset;
            chpr += printf("%lu\n",offset);
        }
    }
    setcharsprinted(chpr);
    return(value);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
xorl %ebx, %ebx
testq %rdi, %rdi
je 0x4f29
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r13
callq 0x31b0
movq %r13, %rdi
callq 0x3190
movq %rax, %r15
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, %r14
je 0x4edb
movq %r13, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3210
cmpl $-0x1, %eax
je 0x4f55
leaq 0x8(%rsp), %r12
movl $0x1, %esi
movl $0x8, %edx
movq %r12, %rdi
movq %r13, %rcx
callq 0x30d0
cmpq $0x8, %rax
jne 0x4f2e
movzwl %bp, %eax
cmpl $0x4d4d, %eax           # imm = 0x4D4D
jne 0x4f23
leaq 0xf(%rsp), %rax
xorl %ecx, %ecx
leaq 0x10(%rsp), %r12
movb (%rax), %dl
movb %dl, 0x10(%rsp,%rcx)
incq %rcx
decq %rax
cmpq $0x8, %rcx
jne 0x4f11
movq (%r12), %r12
jmp 0x4f6b
xorl %r12d, %r12d
jmp 0x4f6b
leaq 0x3c374(%rip), %rdi     # 0x412a9
callq 0x5c33
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, %r14
cmovneq %r14, %r15
leaq 0x408bd(%rip), %rdi     # 0x4580a
xorl %r12d, %r12d
movq %r15, %rsi
jmp 0x4f62
leaq 0x3c31b(%rip), %rdi     # 0x41277
xorl %r12d, %r12d
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
movl %ebx, %edi
callq 0x17530
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/readfile.c
// Function: read_double
double
read_double(FILE *inptr,unsigned short byteorder,unsigned long offset)
{
    unsigned char rbuf[sizeof(double)];
    unsigned long curoffset;
    double value = 0.0;
    int chpr = 0;

    if(inptr)
    {
        clearerr(inptr);
        curoffset = ftell(inptr);
        if((offset != HERE) && (fseek(inptr,offset,SEEK_SET) == -1))
            chpr += printf(" seek failed to offset %lu to read unsigned long\n",
                    offset);
        else if(fread(rbuf,1,sizeof(double),inptr) == sizeof(double))
            value = to_double(rbuf,byteorder);
        else
        {
            if(offset == HERE)
                offset = curoffset;
            PUSHCOLOR(RED);
            chpr += printf(" failed to read double value at offset %lu\n",offset);
            POPCOLOR();
        }
    }
    setcharsprinted(chpr);
    return(value);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
xorl %ebx, %ebx
xorps %xmm0, %xmm0
movsd %xmm0, (%rsp)
testq %rdi, %rdi
je 0x508f
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r13
callq 0x31b0
movq %r13, %rdi
callq 0x3190
movq %rax, %r15
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, %r14
je 0x500f
movq %r13, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3210
cmpl $-0x1, %eax
je 0x507c
leaq 0x8(%rsp), %r12
movl $0x1, %esi
movl $0x8, %edx
movq %r12, %rdi
movq %r13, %rcx
callq 0x30d0
cmpq $0x8, %rax
jne 0x5064
movzwl %bp, %eax
cmpl $0x4d4d, %eax           # imm = 0x4D4D
jne 0x5057
leaq 0xf(%rsp), %rax
xorl %ecx, %ecx
leaq 0x10(%rsp), %r12
movb (%rax), %dl
movb %dl, 0x10(%rsp,%rcx)
incq %rcx
decq %rax
cmpq $0x8, %rcx
jne 0x5045
movsd (%r12), %xmm0
movsd %xmm0, (%rsp)
jmp 0x508f
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, %r14
cmovneq %r14, %r15
leaq 0x3c264(%rip), %rdi     # 0x412db
movq %r15, %rsi
jmp 0x5086
leaq 0x3c1f4(%rip), %rdi     # 0x41277
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
movl %ebx, %edi
callq 0x17530
movsd (%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/readfile.c
// Function: get_filesize
unsigned long
get_filesize(FILE *inptr)
{
    unsigned long size = 0L;
    long current_offset;

    if(inptr)
    {
        clearerr(inptr);
        /* move back here after getting the size                      */
        current_offset = ftell(inptr);
        if(fseek(inptr,0L,SEEK_END) == 0)
        {
            size = ftell(inptr);
            if(fseek(inptr,current_offset,SEEK_SET) != 0)
                clearerr(inptr);    /* silently                       */
        }
        else
            size = 0L;
    }
    return(size);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x518a
movq %rdi, %rbx
callq 0x31b0
movq %rbx, %rdi
callq 0x3190
movq %rax, %r15
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x3210
testl %eax, %eax
jne 0x518d
movq %rbx, %rdi
callq 0x3190
movq %rax, %r14
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x3210
testl %eax, %eax
je 0x518d
movq %rbx, %rdi
callq 0x31b0
jmp 0x518d
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/print.c
// Function: print_tiff_header
int
print_tiff_header(unsigned short magic,unsigned short byteorder,unsigned long section_id)
{
    char *name = CNULL;
    int status = -1;
    int chpr = 0;

    if(Print_options & section_id)
    {
        switch(magic)
        {
            case TIFF_MAGIC: name = "TIFF"; break;
            case ORF1_MAGIC: name = "ORF1"; break;
            case ORF2_MAGIC: name = "ORF2"; break;
            case RW2_MAGIC:  name = "RW2"; break;
            default: break;
        }

        if(name)
        {
            chpr += printf("%s",name);
            switch(byteorder)
            {
                case TIFF_INTEL:
                case TIFF_MOTOROLA:
                    print_byteorder(byteorder,1);
                    print_magic((unsigned long)magic,2);
                    status = 0;
                    break;
                default:
                    chpr += printf("INVALID %s BYTEORDER ",name);
                    print_byteorder(byteorder,1);
                    print_magic((unsigned long)magic,2);
                    break;
            }
        }
        else
        {
            chpr += printf("INVALID TIFF IDENTIFIER, byteorder ");
            print_byteorder(byteorder,1);
            print_magic((unsigned long)magic,2);
        }
    }
    else
        status = 0;

    setcharsprinted(chpr);
    return(status);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
leaq 0x52e91(%rip), %rax     # 0x58180
testq %rdx, (%rax)
je 0x5317
movzwl %di, %ebx
movb $0x1, %al
xorl %r14d, %r14d
cmpl $0x4f51, %ebx           # imm = 0x4F51
jg 0x5322
cmpl $0x2a, %ebx
je 0x533b
cmpl $0x55, %ebx
jne 0x534d
leaq 0x4067f(%rip), %r14     # 0x45994
jmp 0x534b
xorl %r12d, %r12d
xorl %r15d, %r15d
jmp 0x53c1
cmpl $0x4f52, %ebx           # imm = 0x4F52
je 0x5344
cmpl $0x5352, %ebx           # imm = 0x5352
jne 0x534d
leaq 0x3bd9e(%rip), %r14     # 0x410d7
jmp 0x534b
leaq 0x3ff9d(%rip), %r14     # 0x452df
jmp 0x534b
leaq 0x3bd87(%rip), %r14     # 0x410d2
xorl %eax, %eax
movzwl %si, %ebp
testb %al, %al
je 0x5367
leaq 0x3c20d(%rip), %rdi     # 0x41568
xorl %eax, %eax
callq 0x3120
movl %eax, %r15d
jmp 0x53a2
leaq 0x3bd29(%rip), %rdi     # 0x41097
xorl %r12d, %r12d
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %r15d
cmpl $0x4949, %ebp           # imm = 0x4949
je 0x53a8
cmpl $0x4d4d, %ebp           # imm = 0x4D4D
je 0x53a8
leaq 0x3c1bd(%rip), %rdi     # 0x41552
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movl %ebp, %edi
movl $0x1, %esi
callq 0x53d5
movq %rbx, %rdi
movl $0x2, %esi
callq 0x546e
movl %r15d, %edi
callq 0x17530
movl %r12d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/print.c
// Function: print_byteorder
void
print_byteorder(unsigned short byteorder,int verbose)
{
    int chpr = 0;

    if(verbose == 1)
        chpr += printf("(");
    else if(verbose == 2)
        chpr += printf("\'");
    (void)show_string((char *)&byteorder,2,1);

    /* Check for a legitimate TIFF byteorder                          */
    if(verbose == 1)
    {
        switch(byteorder)
        {
            case TIFF_INTEL:
            case TIFF_MOTOROLA:
                chpr += printf("=%#06x)",byteorder);
                break;
            default:
                chpr +=printf("=%#06x=unknown)",byteorder);
                break;
        }
    }
    else if(verbose == 2)
        chpr += printf("\'");
    setcharsprinted(chpr);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movw %di, 0x6(%rsp)
cmpl $0x1, %esi
jne 0x53ed
leaq 0x3be1e(%rip), %rdi     # 0x41209
jmp 0x53fb
xorl %ebx, %ebx
cmpl $0x2, %ebp
jne 0x5404
leaq 0x3fb96(%rip), %rdi     # 0x44f91
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
leaq 0x6(%rsp), %rdi
movl $0x2, %esi
movl $0x1, %edx
callq 0x9448
cmpl $0x1, %ebp
jne 0x543b
movzwl 0x6(%rsp), %esi
cmpl $0x4d4d, %esi           # imm = 0x4D4D
je 0x5432
cmpl $0x4949, %esi           # imm = 0x4949
jne 0x5450
leaq 0x3c612(%rip), %rdi     # 0x41a4b
jmp 0x5457
cmpl $0x2, %ebp
jne 0x5460
leaq 0x3fb4a(%rip), %rdi     # 0x44f91
xorl %eax, %eax
callq 0x3120
jmp 0x545e
leaq 0x3c5fc(%rip), %rdi     # 0x41a53
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
movl %ebx, %edi
callq 0x17530
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/print.c
// Function: print_tag_address
void
print_tag_address(unsigned long section_id,unsigned long address,int indent,char *prefix)
{
    int chpr = 0;

    if(Print_options & section_id)
    {
        print_filename();
        if(PRINT_INDENT_BEFORE_ADDRESS)
            putindent(indent);
        if(!prefix)
            prefix = "@";
        if(address == HERE)
        {
            /* special case; bland address field                      */
            if(PRINT_BOTH_ADDRESS)
                chpr += printf("%*s:  ",(ADDRWIDTH * 2) + 3,prefix);
            else if(PRINT_HEX_ADDRESS)
                chpr += printf("%*s:  ",ADDRWIDTH + 1,prefix);
            else if(PRINT_DEC_ADDRESS)
                chpr += printf("%*s:  ",ADDRWIDTH,prefix);
        }
        else
        {
            if(PRINT_BOTH_ADDRESS)
                chpr += printf("%s%#0*lx=%-*lu:  ",prefix,ADDRWIDTH+1,address,ADDRWIDTH,address);
            else if(PRINT_HEX_ADDRESS)
                chpr += printf("%s%#0*lx:  ",prefix,ADDRWIDTH+1,address);
            else if(PRINT_DEC_ADDRESS)
                chpr += printf("%s%-*lu:  ",prefix,ADDRWIDTH,address);
        }
        if(PRINT_INDENT_AFTER_ADDRESS)
            putindent(indent);
        setcharsprinted(chpr);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
leaq 0x52b6c(%rip), %r12     # 0x58180
testq %rdi, (%r12)
je 0x5672
movq %rcx, %r15
movl %edx, %ebx
movq %rsi, %r14
xorl %eax, %eax
callq 0x17aa7
testb $0x20, 0x3(%r12)
je 0x5638
movl %ebx, %edi
callq 0x5730
testq %r15, %r15
leaq 0x3ba9a(%rip), %rdx     # 0x410dc
cmovneq %r15, %rdx
movq (%r12), %rax
movl %eax, %ecx
andl $0x30000, %ecx          # imm = 0x30000
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
cmpq %rsi, %r14
jne 0x567b
cmpl $0x30000, %ecx          # imm = 0x30000
jne 0x56a7
leaq 0x3bf31(%rip), %rdi     # 0x4159c
movl $0x13, %esi
jmp 0x56dd
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x30000, %ecx          # imm = 0x30000
jne 0x56c1
leaq 0x3bf19(%rip), %rdi     # 0x415a3
movq %rdx, %rsi
movl $0x9, %edx
movq %r14, %rcx
movl $0x8, %r8d
movq %r14, %r9
xorl %eax, %eax
callq 0x3120
jmp 0x5710
btl $0x10, %eax
jb 0x56d1
btl $0x11, %eax
jae 0x56cd
leaq 0x3bee2(%rip), %rdi     # 0x4159c
movl $0x8, %esi
jmp 0x56dd
btl $0x10, %eax
jb 0x56e6
btl $0x11, %eax
jb 0x56f7
xorl %ebp, %ebp
jmp 0x5712
leaq 0x3bec4(%rip), %rdi     # 0x4159c
movl $0x9, %esi
xorl %eax, %eax
callq 0x3120
jmp 0x5710
leaq 0x3bec8(%rip), %rdi     # 0x415b5
movq %rdx, %rsi
movl $0x9, %edx
jmp 0x5706
leaq 0x3bec3(%rip), %rdi     # 0x415c1
movq %rdx, %rsi
movl $0x8, %edx
movq %r14, %rcx
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
testb $0x10, 0x3(%r12)
je 0x5721
movl %ebx, %edi
callq 0x5730
movl %ebp, %edi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x17530
// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/print.c
// Function: putindent
void
putindent(int spaces)
{
    int spaces_left;

    if(spaces > MAXINDENT)
        spaces = MAXINDENT;
    spaces_left = spaces;
    while(spaces_left-- > 0)
        (void)putchar(' ');
    setcharsprinted(spaces);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
cmpl $0x50, %edi
movl $0x50, %ebx
cmovll %edi, %ebx
testl %edi, %edi
jle 0x5756
leal 0x1(%rbx), %ebp
movl $0x20, %edi
callq 0x3060
decl %ebp
cmpl $0x1, %ebp
jg 0x5745
movl %ebx, %edi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x17530
// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/print.c
// Function: print_tagid
void
print_tagid(struct ifd_entry *entry_ptr,int indent,int ifdtype)
{
    char *nameoftag;
    int chpr = 0;

    if(entry_ptr && (PRINT_ENTRY))
    {
        if(PRINT_TAGNAME || !(PRINT_TAGNO))
        {
            switch(ifdtype)
            {
                case GPS_IFD:
                    nameoftag = gps_tagname(entry_ptr->tag);
                    break;
                case INTEROP_IFD:
                    nameoftag = interop_tagname(entry_ptr->tag);
                    break;
                case EXIF_IFD:
                case TIFF_IFD:
                case TIFF_SUBIFD:
                default:
                    nameoftag = tagname(entry_ptr->tag);
                    break;
            }
            chpr += printf("%-*.*s",TAGWIDTH,TAGWIDTH,nameoftag);
        }
        else if(PRINT_HEX_TAGNO)
            chpr += printf("<%#06x>",entry_ptr->tag & 0xffff);
        else if(PRINT_DEC_TAGNO)
            chpr += printf("<%5u>",entry_ptr->tag & 0xffff);
    }
    setcharsprinted(chpr);
}

// Assembly:
movq %rdi, %rax
xorl %edi, %edi
testq %rax, %rax
je 0x17530
pushq %rax
leaq 0x51997(%rip), %rcx     # 0x58180
movq (%rcx), %rcx
testl $0x4003333, %ecx        # imm = 0x4003333
je 0x6871
btl $0xc, %ecx
setae %sil
testb $0x3, %cl
setne %r8b
testb %r8b, %sil
jne 0x681f
movzwl (%rax), %eax
movzwl %ax, %edi
cmpl $0x3, %edx
je 0x6848
cmpl $0x4, %edx
jne 0x684f
callq 0xc380
jmp 0x6854
testb $0x1, %cl
jne 0x6835
testb $0x2, %cl
je 0x6871
movzwl (%rax), %esi
leaq 0x3ade8(%rip), %rdi     # 0x4161b
jmp 0x683f
movzwl (%rax), %esi
leaq 0x3add4(%rip), %rdi     # 0x41613
xorl %eax, %eax
callq 0x3120
jmp 0x686f
callq 0xc2ce
jmp 0x6854
callq 0xa958
leaq 0x42296(%rip), %rdi     # 0x48af1
movl $0x1b, %esi
movl $0x1b, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addq $0x8, %rsp
jmp 0x17530
// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/print.c
// Function: print_unicode
int
print_unicode(FILE *inptr,unsigned long count,unsigned long offset,unsigned short byteorder)
{
    int remaining;
    int nread;
    int ch = 0;
    int chpr = 0;

    nread = 0;
    if((offset != HERE) && (fseek(inptr,offset,SEEK_SET) == -1))
    {
        chpr += printf(" seek failed to offset %lu to print unicode",offset);
        chpr = newline(chpr);
    }

    remaining = count / 2;
    putchar('\''); ++chpr;
    while((remaining > 0) && !feof(inptr))
    {
        if(ch == 0)
            chpr += printf("\\0");
        else
            ch = read_ushort(inptr,byteorder,HERE);
        ++nread;
        ++chpr;
        --remaining;
        /* Write both bytes iff requested by user                     */
        if((PRINT_UNICODE))
            (void)fwrite((char *)&ch,2,1,stdout);
        else
            putchar(ch);
    }
    putchar('\''); ++chpr;
    if(ferror(inptr))
        clearerr(inptr);

    setcharsprinted(chpr);
    return(nread);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
movl $0x0, 0x4(%rsp)
movl $0x1, %ebp
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, %rdx
je 0x736b
movq %rdx, %r12
movq %rbx, %rdi
movq %rdx, %rsi
xorl %edx, %edx
callq 0x3210
cmpl $-0x1, %eax
jne 0x736b
leaq 0x3a4fc(%rip), %rdi     # 0x41852
movq %r12, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
callq 0x16b56
movl %eax, %ebp
incl %ebp
shrq %r14
movl $0x27, %edi
callq 0x3060
testl %r14d, %r14d
jle 0x740a
leaq 0x50df8(%rip), %r13     # 0x58180
movzwl %r15w, %r12d
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x740d
cmpl $0x0, 0x4(%rsp)
je 0x73bb
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %rbx, %rdi
movl %r12d, %esi
callq 0x4574
movzwl %ax, %eax
movl %eax, 0x4(%rsp)
jmp 0x73cb
leaq 0x3a487(%rip), %rdi     # 0x41849
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
testb $0x40, 0x1(%r13)
jne 0x73dd
movl 0x4(%rsp), %edi
callq 0x3060
jmp 0x73fb
movq 0x50be4(%rip), %rax     # 0x57fc8
movq (%rax), %rcx
movl $0x2, %esi
movl $0x1, %edx
leaq 0x4(%rsp), %rdi
callq 0x32a0
incl %r15d
incl %ebp
cmpl %r15d, %r14d
jne 0x738f
movl %r14d, %r15d
jmp 0x740d
xorl %r15d, %r15d
movl $0x27, %edi
callq 0x3060
movq %rbx, %rdi
callq 0x30b0
testl %eax, %eax
je 0x742b
movq %rbx, %rdi
callq 0x31b0
incl %ebp
movl %ebp, %edi
callq 0x17530
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/print.c
// Function: show_string
int
show_string(char *string,int maxchars,int noquotes)
{
    int lastch;
    int chpr = 0;
    int indent = 0;
    int printed = 0;
    char *ch;

    if(string)
    {
        indent = charsprinted();
        lastch = 'A';
        if(!noquotes)
        {
            (void)putchar('\'');
            chpr++;
        }
        ch = string;
        while(printed < maxchars)
        {
            if(*ch == '\0')
            {
                printf("\\0");
                break;
            }
            else if(isprint(*ch))
            {
                if(isdigit(*ch) && (lastch == '\0'))
                    chpr += printf("00");
                (void)putchar(*ch);
                chpr++;
            }
            else if(*ch == '\n')
            {
                chpr = newline(chpr);
                putindent(indent);
            }
            else if(*ch == '\011')
            {
                putchar(*ch);
                ++ch;
            }
            else
                chpr += printf("\\%03o",(unsigned int)(*ch & 0xff));
            lastch = *ch;
            ++printed;
            ++ch;
        }
        if(!noquotes)
        {
            (void)putchar('\'');
            chpr++;
        }
    }
    setcharsprinted(chpr);
    return(printed);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, 0xc(%rsp)
testq %rdi, %rdi
je 0x9551
movl %edx, %r14d
movq %rdi, %r12
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x17a98
movl %eax, 0x14(%rsp)
movl $0x0, %ebp
testl %r14d, %r14d
jne 0x948f
movl $0x27, %edi
callq 0x3060
movl $0x1, %ebp
cmpl $0x0, 0xc(%rsp)
jle 0x956a
movl %r14d, 0x10(%rsp)
movl $0x41, %r14d
xorl %ebx, %ebx
movzbl (%r12), %r13d
testl %r13d, %r13d
je 0x9557
movsbq %r13b, %r15
callq 0x32d0
movq (%rax), %rax
movzwl (%rax,%r15,2), %eax
btl $0xe, %eax
jb 0x94ec
cmpl $0x9, %r13d
je 0x9515
cmpl $0xa, %r13d
jne 0x9524
movl %ebp, %edi
callq 0x16b56
movl %eax, %ebp
movl 0x14(%rsp), %edi
callq 0x5730
jmp 0x9537
btl $0xb, %eax
jae 0x9507
testl %r14d, %r14d
jne 0x9507
leaq 0x3f4b9(%rip), %rdi     # 0x489b7
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movsbl (%r12), %edi
callq 0x3060
incl %ebp
jmp 0x9537
movl $0x9, %edi
callq 0x3060
incq %r12
jmp 0x9537
leaq 0x38321(%rip), %rdi     # 0x4184c
movl %r13d, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movsbl (%r12), %r14d
incl %ebx
incq %r12
cmpl %ebx, 0xc(%rsp)
jne 0x94a7
movl 0xc(%rsp), %ebx
jmp 0x9565
xorl %ebp, %ebp
xorl %ebx, %ebx
jmp 0x957b
leaq 0x382eb(%rip), %rdi     # 0x41849
xorl %eax, %eax
callq 0x3120
movl 0x10(%rsp), %r14d
testl %r14d, %r14d
jne 0x957b
movl $0x27, %edi
callq 0x3060
incl %ebp
movl %ebp, %edi
callq 0x17530
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/print.c
// Function: print_jpeg_status
void
print_jpeg_status()
{
    int status = 0;

    /* get and clear the status                                       */
    status = jpeg_status(status);

    if((PRINT_SEGMENT))
    {
        if(status == JPEG_NO_SOI)
            printred(" ### (JPEG_SOI NOT FOUND)");
        if(status == JPEG_HAD_ERROR)
            printred(" ### (INVALID JPEG MARKER)");
        else if(status == JPEG_NO_EOI)
            printred(" ### (JPEG_EOI NOT FOUND)");
        else if(status == JPEG_EARLY_EOI)
            printred(" (JPEG_EOI FOUND EARLY)");
    }
}

// Assembly:
pushq %rax
xorl %edi, %edi
callq 0x12f15
leaq 0x4eb68(%rip), %rcx     # 0x58180
testb $0x8, 0x2(%rcx)
je 0x9655
decl %eax
cmpl $0x7, %eax
ja 0x9655
movl $0x8b, %ecx
btl %eax, %ecx
jae 0x9655
movl %eax, %eax
leaq 0x37e7c(%rip), %rcx     # 0x414b4
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
leaq 0x37a51(%rip), %rdi     # 0x41097
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
popq %rax
jmp 0x17530
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/print.c
// Function: display_end_of_ifd
void
display_end_of_ifd(unsigned long max_ifd_offset,int ifdtype,int ifdnum,int subifdnum,
                                                int indent,char *ifdname,char *prefix)
{
    int chpr = 0;
    print_tag_address(SECTION,max_ifd_offset - 1,indent,prefix);
    switch(ifdtype)
    {
        case TIFF_IFD:
            if(PRINT_SECTION)
                chpr += printf("</IFD %d>",ifdnum);
            break;
        case TIFF_SUBIFD:
            if(PRINT_SECTION)
                chpr += printf("</SubIFD %d of IFD %d>",subifdnum,ifdnum);
            break;
        case INTEROP_IFD:
            if(PRINT_SECTION)
                chpr += printf("</Interoperability SubIFD>");
            break;
        case GPS_IFD:
            if(PRINT_SECTION)
                chpr += printf("</GPS SubIFD>");
            break;
        case EXIF_IFD:
            if(PRINT_SECTION)
                chpr += printf("</EXIF IFD>");
            break;
        case MAKER_SUBIFD:
            if(PRINT_SECTION)
                chpr += printf("</%s>",ifdname);
            break;
        default:
            if(PRINT_SECTION)
                chpr += printf("</UNKNOWN IFD TYPE %d>",ifdtype);
            break;
    }
    chpr = newline(chpr);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %r9, %r14
movl %ecx, %ebp
movl %edx, %ebx
movl %esi, %r15d
movq 0x30(%rsp), %rcx
leaq -0x1(%rdi), %rsi
movl $0x40000, %edi          # imm = 0x40000
movl %r8d, %edx
callq 0x5605
leaq 0x4eafb(%rip), %rax     # 0x58180
movq (%rax), %rax
cmpl $0x6, %r15d
ja 0x96da
movl %r15d, %ecx
leaq 0x37db4(%rip), %rdx     # 0x4144c
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
btl $0x12, %eax
jae 0x9722
leaq 0x3842b(%rip), %rdi     # 0x41ad9
movl %ebx, %esi
jmp 0x96ea
btl $0x12, %eax
jae 0x9722
leaq 0x38464(%rip), %rdi     # 0x41b23
jmp 0x972d
btl $0x12, %eax
jae 0x9722
leaq 0x38461(%rip), %rdi     # 0x41b2f
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
jmp 0x9734
btl $0x12, %eax
jae 0x9722
leaq 0x3844e(%rip), %rdi     # 0x41b35
movl %r15d, %esi
xorl %eax, %eax
callq 0x3120
jmp 0x9734
btl $0x12, %eax
jae 0x9722
leaq 0x383e3(%rip), %rdi     # 0x41ae3
movl %ebp, %esi
movl %ebx, %edx
xorl %eax, %eax
callq 0x3120
jmp 0x9734
btl $0x12, %eax
jae 0x9722
leaq 0x383e0(%rip), %rdi     # 0x41afa
jmp 0x972d
btl $0x12, %eax
jb 0x9726
xorl %edi, %edi
jmp 0x9736
leaq 0x383e8(%rip), %rdi     # 0x41b15
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x16b56
// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/print.c
// Function: dumpsection
void
dumpsection(FILE *inptr,unsigned long offset,unsigned long length,int indent)
{
    unsigned long dumplength;

    if(inptr)
    {
        if(Max_imgdump > 0L)
            dumplength = Max_imgdump;
        else
            dumplength = DEF_DUMPLENGTH;
        if(dumplength > length)
            dumplength = length;
        if(dumplength)
        {
            hexdump(inptr,offset,length,dumplength,16,indent,0);
            (void)newline(1);
        }
    }
}

// Assembly:
movl %ecx, %r9d
testq %rdi, %rdi
sete %al
testq %rdx, %rdx
sete %cl
orb %al, %cl
je 0x9759
retq
pushq %rax
leaq 0x4fcbf(%rip), %rax     # 0x59420
movq (%rax), %rax
testq %rax, %rax
movl $0x40, %ecx
cmovneq %rax, %rcx
cmpq %rdx, %rcx
cmovaeq %rdx, %rcx
movl $0x0, (%rsp)
movl $0x10, %r8d
callq 0x7446
movl $0x1, %edi
popq %rax
jmp 0x16b56
// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/print.c
// Function: print_private_taginfo
void
print_private_taginfo(struct ifd_entry *entry_ptr,unsigned short subifd_ident,
                                        char *parent_name,int make,int indent)
{
    char *nameoftag = CNULL;
    char *nameof_value_type = CNULL;
    int tagwidth = TAGWIDTH;
    int chpr = 0;

    if(entry_ptr && (PRINT_ENTRY))
    {
        extraindent(indent);
        if(PRINT_BOTH_TAGNO)
            chpr += printf("<%#06x=%5u> ",entry_ptr->tag & 0xffff,entry_ptr->tag & 0xffff);
        else if(PRINT_DEC_TAGNO)
            chpr += printf("<%5u> ",entry_ptr->tag & 0xffff);
        else if(PRINT_HEX_TAGNO)
            chpr += printf("<%#06x> ",entry_ptr->tag & 0xffff);
        if((PRINT_TAGNAME))
        {
            nameoftag = private_tagname(make,entry_ptr->tag,subifd_ident);
            if((PRINT_LONGNAMES))
                chpr += printf("%s.",parent_name);
            chpr += printf("%-*.*s",tagwidth,tagwidth,nameoftag ? nameoftag : "NULL");
        }
        if(PRINT_TYPE)
        {
            nameof_value_type = value_type_name(entry_ptr->value_type);
            chpr += printf(" [%-2u=%-9.9s %5lu] ",entry_ptr->value_type,
                                    nameof_value_type,entry_ptr->count);
        }
        if(PRINT_VALUE)
            chpr += printf(" = "); 
    }
    setcharsprinted(chpr);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
xorl %ebp, %ebp
testq %rdi, %rdi
je 0xa48a
leaq 0x4ddfd(%rip), %r13     # 0x58180
movq (%r13), %rax
testl $0x4003333, %eax        # imm = 0x4003333
je 0xa48a
movl %ecx, %r15d
movq %rdx, %r14
movl %esi, %r12d
movq %rdi, %rbx
testl $0x30000000, %eax       # imm = 0x30000000
je 0xa3ad
movl %r8d, %edi
callq 0x5730
movq (%r13), %rax
movl %eax, %ecx
notl %ecx
testb $0x3, %cl
jne 0xa3cf
movzwl (%rbx), %edx
leaq 0x3725d(%rip), %rdi     # 0x41621
movl %edx, %esi
xorl %eax, %eax
callq 0x3120
jmp 0xa3f6
testb $0x2, %al
jne 0xa3e5
xorl %ebp, %ebp
testb $0x1, %al
je 0xa3f8
movzwl (%rbx), %esi
leaq 0x37252(%rip), %rdi     # 0x41635
jmp 0xa3ef
movzwl (%rbx), %esi
leaq 0x3723f(%rip), %rdi     # 0x4162e
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
testb $0x10, 0x1(%r13)
je 0xa448
movzwl (%rbx), %esi
movzwl %r12w, %edx
movl %r15d, %edi
callq 0xa4bb
movq %rax, %r15
testb $0x40, (%r13)
je 0xa42b
leaq 0x3b088(%rip), %rdi     # 0x454a7
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
leaq 0x3e6bf(%rip), %rdi     # 0x48af1
movl $0x1b, %esi
movl $0x1b, %edx
movq %r15, %rcx
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
testb $0x20, 0x1(%r13)
je 0xa473
movzwl 0x2(%rbx), %edi
callq 0x15f38
movzwl 0x2(%rbx), %esi
movq 0x8(%rbx), %rcx
leaq 0x371dc(%rip), %rdi     # 0x41643
movq %rax, %rdx
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
testb $0x30, (%r13)
je 0xa48a
leaq 0x400e7(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17530
// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/print.c
// Function: private_tagname
char *
private_tagname(int make,unsigned short tag,unsigned short subifd_ident)
{
    static char unknown_buf[16];
    char *tagname = CNULL;

    switch(make)
    {
        case MAKER_OLYMPUS:
            tagname = olympus_private_tagname(tag,subifd_ident);
            break;
        default:
            break;
    }
    if(tagname == CNULL)
    {
        unknown_buf[0] = '\0';
        if(snprintf(unknown_buf,11,"TAG_%#06x",(int)tag) > 11)
        {
            printf(" bad tag %#x not converted\n",tag);
            why(stdout);
            tagname = "<BADTAG>";
        }
        else
            tagname = unknown_buf;
    }
    return(tagname);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
cmpl $0xd, %edi
jne 0xa4d5
movzwl %bp, %edi
movzwl %dx, %esi
callq 0x2f0cd
movq %rax, %rbx
jmp 0xa4d7
xorl %ebx, %ebx
testq %rbx, %rbx
jne 0xa530
movb $0x0, 0x52fed(%rip)     # 0x5d4d0
leaq 0x52fe6(%rip), %rbx     # 0x5d4d0
movzwl %bp, %ebp
leaq 0x37795(%rip), %rdx     # 0x41c89
movl $0xb, %esi
movq %rbx, %rdi
movl %ebp, %ecx
xorl %eax, %eax
callq 0x3130
cmpl $0xc, %eax
jl 0xa530
leaq 0x37782(%rip), %rdi     # 0x41c93
movl %ebp, %esi
xorl %eax, %eax
callq 0x3120
movq 0x4daa7(%rip), %rax     # 0x57fc8
movq (%rax), %rdi
callq 0x179a5
leaq 0x3777f(%rip), %rbx     # 0x41caf
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/print.c
// Function: print_private_tagid
void
print_private_tagid(struct ifd_entry *entry_ptr,unsigned short subifd_ident,
                                                        int make,int indent)
{
    char *nameoftag;
    int chpr = 0;

    if(entry_ptr && (PRINT_ENTRY))
    {
        extraindent(indent);
        if(PRINT_TAGNAME || !(PRINT_TAGNO))
        {
            nameoftag = private_tagname(make,entry_ptr->tag,subifd_ident);
            chpr += printf("%-*.*s",TAGWIDTH,TAGWIDTH,nameoftag);
        }
        else if(PRINT_HEX_TAGNO)
            chpr += printf("<%#06x>",entry_ptr->tag & 0xffff);
        else if(PRINT_DEC_TAGNO)
            chpr += printf("<%5u>",entry_ptr->tag & 0xffff);
        /* ###%%% should be done just befor value is printed, not     */
        /* here                                                       */
        if(PRINT_VALUE)
            chpr += printf(" = ");
    }
    setcharsprinted(chpr);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
xorl %ebx, %ebx
testq %rdi, %rdi
je 0xa5fb
leaq 0x4dc2c(%rip), %r12     # 0x58180
movq (%r12), %rax
testl $0x4003333, %eax        # imm = 0x4003333
je 0xa5fb
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %r14
testl $0x30000000, %eax       # imm = 0x30000000
je 0xa579
movl %ecx, %edi
callq 0x5730
movq (%r12), %rax
btl $0xc, %eax
setae %cl
testb $0x3, %al
setne %dl
testb %dl, %cl
jne 0xa5b9
movzwl (%r14), %esi
movzwl %r15w, %edx
movl %ebp, %edi
callq 0xa4bb
leaq 0x3e54e(%rip), %rdi     # 0x48af1
movl $0x1b, %esi
movl $0x1b, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x3120
jmp 0xa5e2
testb $0x1, %al
jne 0xa5d0
xorl %ebx, %ebx
testb $0x2, %al
je 0xa5e4
movzwl (%r14), %esi
leaq 0x3704d(%rip), %rdi     # 0x4161b
jmp 0xa5db
movzwl (%r14), %esi
leaq 0x37038(%rip), %rdi     # 0x41613
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
testb $0x30, (%r12)
je 0xa5fb
leaq 0x3ff76(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
movl %ebx, %edi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x17530
// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/tagnames.c
// Function: interop_tagname
char *
interop_tagname(unsigned short tag)
{
    static char unknown_buf[16];
    char *tagname;

    switch(tag)
    {
        case 0x0001: tagname = "InteroperabilityIndex"; break;   /* EXIF */
        case 0x0002: tagname = "InteroperabilityVersion"; break; /* EXIF */
        case 0x1000: tagname = "RelatedImageFileFormat"; break;  /* EXIF */
        case 0x1001: tagname = "RelatedImageWidth"; break;       /* EXIF */
        case 0x1002: tagname = "RelatedImageLength"; break;      /* EXIF */
        default:
            if(snprintf(unknown_buf,11,"IOP_%#06x",(int)tag) > 11)
            {
                printf(" bad tag %#x not converted\n",tag);
                why(stdout);
                tagname = "<BADTAG>";
            }
            else
                tagname = unknown_buf;
            break;
    }
    return(tagname);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
cmpl $0xfff, %edi            # imm = 0xFFF
jle 0xc2fd
cmpl $0x1000, %ebx           # imm = 0x1000
je 0xc310
cmpl $0x1001, %ebx           # imm = 0x1001
je 0xc319
cmpl $0x1002, %ebx           # imm = 0x1002
jne 0xc32b
leaq 0x37930(%rip), %r14     # 0x43c2b
jmp 0xc375
cmpl $0x1, %ebx
je 0xc322
cmpl $0x2, %ebx
jne 0xc32b
leaq 0x378dc(%rip), %r14     # 0x43bea
jmp 0xc375
leaq 0x378eb(%rip), %r14     # 0x43c02
jmp 0xc375
leaq 0x378f9(%rip), %r14     # 0x43c19
jmp 0xc375
leaq 0x378ab(%rip), %r14     # 0x43bd4
jmp 0xc375
leaq 0x511be(%rip), %r14     # 0x5d4f0
leaq 0x37905(%rip), %rdx     # 0x43c3e
movl $0xb, %esi
movq %r14, %rdi
movl %ebx, %ecx
xorl %eax, %eax
callq 0x3130
cmpl $0xc, %eax
jl 0xc375
leaq 0x3593d(%rip), %rdi     # 0x41c93
movl %ebx, %esi
xorl %eax, %eax
callq 0x3120
movq 0x4bc62(%rip), %rax     # 0x57fc8
movq (%rax), %rdi
callq 0x179a5
leaq 0x3593a(%rip), %r14     # 0x41caf
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/process.c
// Function: last_summary_entry
struct image_summary *
last_summary_entry(struct image_summary *summary_entry)
{
    if(summary_entry)
    {
        while(summary_entry->next_entry)
            summary_entry = summary_entry->next_entry;
    }
    return(summary_entry);
}

// Assembly:
testq %rdi, %rdi
je 0xfdbc
movq %rdi, %rax
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
jne 0xfdaf
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/process.c
// Function: lock_number
int
lock_number(struct image_summary *summary_entry)
{
    int number = 0;
    struct image_summary *prev_entry,*last_entry;

    if(summary_entry)
    {
        if(summary_entry->entry_lock)
            number = summary_entry->entry_lock;  /* don't change it */
        else if((last_entry = last_summary_entry(summary_entry)))
        {
            /* Find the highest existing lock number; go to the end   */
            /* and scan back to the head                              */
            if(last_entry->entry_lock > 0)
                number = last_entry->entry_lock + 1;
            prev_entry = last_entry->prev_entry;
            while(prev_entry)
            {
                if(prev_entry->entry_lock >= number)
                    number = prev_entry->entry_lock + 1;
                prev_entry = prev_entry->prev_entry;
            }
            if(number <= 0)
                number = 1;
        }
        else
            number = 1;
    }
    if(Debug & SCAN_DEBUG)
    {
        (void)newline(1);
        printred("DEBUG: LOCK SUMMARY");
        printf(" %#x ==> %d",(unsigned int)summary_entry,number);
        (void)newline(1);
        (void)newline(1);
    }
    return(number);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdi, %rdi
je 0xfe02
movl 0x10(%rbx), %ebp
testl %ebp, %ebp
jne 0xfe11
movq %rbx, %rax
movq %rax, %rcx
movq 0x8(%rax), %rax
testq %rax, %rax
jne 0xfdd4
movl 0x10(%rcx), %edx
leal 0x1(%rdx), %esi
xorl %eax, %eax
testl %edx, %edx
cmovgl %esi, %eax
movq (%rcx), %rcx
testq %rcx, %rcx
je 0xfe06
movl 0x10(%rcx), %edx
leal 0x1(%rdx), %esi
cmpl %eax, %edx
cmovgel %esi, %eax
jmp 0xfded
xorl %ebp, %ebp
jmp 0xfe11
cmpl $0x2, %eax
movl $0x1, %ebp
cmovgel %eax, %ebp
leaq 0x4d858(%rip), %rax     # 0x5d670
testb $0x4, (%rax)
je 0xfe59
movl $0x1, %edi
callq 0x16b56
leaq 0x34cb4(%rip), %rdi     # 0x44ae2
callq 0x5c33
leaq 0x34cbc(%rip), %rdi     # 0x44af6
movl %ebx, %esi
movl %ebp, %edx
xorl %eax, %eax
callq 0x3120
movl $0x1, %edi
callq 0x16b56
movl $0x1, %edi
callq 0x16b56
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/process.c
// Function: destroy_summary
struct image_summary *
destroy_summary(struct image_summary *summary_entry)
{
    struct image_summary *prev_entry = NULL;

    /* start at the end and work back to the head                     */
    if(Debug & SCAN_DEBUG)
        printred("DEBUG: DESTROY SUMMARY ");
    if(summary_entry)
    {
        while(summary_entry->next_entry)
            summary_entry = summary_entry->next_entry;
        while(summary_entry)
        {
            prev_entry = summary_entry->prev_entry;
            free(summary_entry);
            summary_entry = prev_entry;
        }
    }
    return(prev_entry);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x49f4f(%rip), %rax     # 0x5d670
testb $0x4, (%rax)
je 0x13732
leaq 0x313d5(%rip), %rdi     # 0x44b02
callq 0x5c33
testq %rbx, %rbx
je 0x13755
movq %rbx, %rdi
movq 0x8(%rbx), %rbx
testq %rbx, %rbx
jne 0x13737
movq (%rdi), %rbx
callq 0x3050
movq %rbx, %rdi
testq %rbx, %rbx
jne 0x13743
jmp 0x13757
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
retq