// File: /workspace/github_c_makefile_star2_O0/hfiguiere[P]exifprobe/print.c
// Function: print_ulong
void
print_ulong(FILE *inptr,unsigned long count,unsigned short byteorder,
                unsigned long offset)
{
    int i,j;
    unsigned long value;
    int chpr = 0;

    if(count)
    {
        value = read_ulong(inptr,byteorder,offset);
        if(feof(inptr) || ferror(inptr))
        {
            clearerr(inptr);
            setcharsprinted(chpr);
            return;
        }
        if(PRINT_BOTH_VALUE)
            chpr += printf("%#lx/%lu",value,value);
        else if(PRINT_HEX_VALUE)
            chpr += printf("%#lx",value);
        else if(PRINT_DEC_VALUE)
            chpr += printf("%lu",value);
    }
    if(PRINT_MULTIVAL_ALL)
    {
        for(i = 1; i < count; ++i,offset += 4L)
        {
            value = read_ulong(inptr,byteorder,HERE);
            if(feof(inptr) || ferror(inptr))
            {
                clearerr(inptr);
                setcharsprinted(chpr);
                return;
            }
            if(PRINT_BOTH_VALUE)
                chpr += printf(",%#lx/%lu",value,value);
            else if(PRINT_HEX_VALUE)
                chpr += printf(",%#lx",value);
            else if(PRINT_DEC_VALUE)
                chpr += printf(",%lu",value);
        }
    }
    else
    {
#define MAX 3UL
        j = count > MAX + 2 ? MAX : count;
        for(i = 1; i < j; ++i,offset += 4L)
        {
            value = read_ulong(inptr,byteorder,HERE);
            if(feof(inptr) || ferror(inptr))
            {
                clearerr(inptr);
                setcharsprinted(chpr);
                return;
            }
            if(PRINT_BOTH_VALUE)
                chpr += printf(",%#lx/%lu",value,value);
            else if(PRINT_HEX_VALUE)
                chpr += printf(",%#lx",value);
            else if(PRINT_DEC_VALUE)
                chpr += printf(",%lu",value);
        }
        if(count > j)
        {
            chpr += printf(" ... ");
            offset += (unsigned long)(count - j) * 4L;
            value = read_ulong(inptr,byteorder,offset);
            if(feof(inptr) || ferror(inptr))
            {
                clearerr(inptr);
                setcharsprinted(chpr);
                return;
            }
            if(PRINT_BOTH_VALUE)
                chpr += printf(",%#lx/%lu (%lu)",value,value,count);
            else if(PRINT_HEX_VALUE)
                chpr += printf(",%#lx (%lu)",value,count);
            else if(PRINT_DEC_VALUE)
                chpr += printf(",%lu (%lu)",value,count);
            if(PRINT_ADDRESS)
                chpr += printf(" -> @%lu",offset);
        }
#undef MAX
    }
    setcharsprinted(chpr);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movw %dx, %ax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movw %ax, -0x12(%rbp)
movq %rcx, -0x20(%rbp)
movl $0x0, -0x34(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x9ef9
movq -0x8(%rbp), %rdi
movw -0x12(%rbp), %ax
movq -0x20(%rbp), %rdx
movzwl %ax, %esi
callq 0x4610
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
jne 0x9e51
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0x9e67
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x34(%rbp), %edi
callq 0x1ff00
jmp 0xa2a5
leaq 0x6d312(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x30, %rax
jne 0x9e99
movq -0x30(%rbp), %rsi
movq -0x30(%rbp), %rdx
leaq 0x5a262(%rip), %rdi     # 0x640ec
movb $0x0, %al
callq 0x3110
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
jmp 0x9ef7
leaq 0x6d2e0(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x10, %rax
cmpq $0x0, %rax
je 0x9ec7
movq -0x30(%rbp), %rsi
leaq 0x644f8(%rip), %rdi     # 0x6e3b0
movb $0x0, %al
callq 0x3110
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
jmp 0x9ef5
leaq 0x6d2b2(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x20, %rax
cmpq $0x0, %rax
je 0x9ef3
movq -0x30(%rbp), %rsi
leaq 0x60fba(%rip), %rdi     # 0x6aea0
movb $0x0, %al
callq 0x3110
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
jmp 0x9ef5
jmp 0x9ef7
jmp 0x9ef9
leaq 0x6d280(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x8000000, %rax        # imm = 0x8000000
cmpq $0x0, %rax
je 0xa021
movl $0x1, -0x24(%rbp)
movslq -0x24(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0xa01c
movq -0x8(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movzwl -0x12(%rbp), %esi
callq 0x4610
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
jne 0x9f5a
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0x9f70
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x34(%rbp), %edi
callq 0x1ff00
jmp 0xa2a5
leaq 0x6d209(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x30, %rax
jne 0x9fa2
movq -0x30(%rbp), %rsi
movq -0x30(%rbp), %rdx
leaq 0x5a7d0(%rip), %rdi     # 0x64763
movb $0x0, %al
callq 0x3110
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
jmp 0xa000
leaq 0x6d1d7(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x10, %rax
cmpq $0x0, %rax
je 0x9fd0
movq -0x30(%rbp), %rsi
leaq 0x5a7ac(%rip), %rdi     # 0x6476d
movb $0x0, %al
callq 0x3110
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
jmp 0x9ffe
leaq 0x6d1a9(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x20, %rax
cmpq $0x0, %rax
je 0x9ffc
movq -0x30(%rbp), %rsi
leaq 0x5a784(%rip), %rdi     # 0x64773
movb $0x0, %al
callq 0x3110
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
jmp 0x9ffe
jmp 0xa000
jmp 0xa002
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
movq -0x20(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x20(%rbp)
jmp 0x9f1a
jmp 0xa29d
cmpq $0x5, -0x10(%rbp)
jbe 0xa033
movl $0x3, %eax
movq %rax, -0x40(%rbp)
jmp 0xa03b
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movl %eax, -0x28(%rbp)
movl $0x1, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x28(%rbp), %eax
jge 0xa149
movq -0x8(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movzwl -0x12(%rbp), %esi
callq 0x4610
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
jne 0xa087
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xa09d
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x34(%rbp), %edi
callq 0x1ff00
jmp 0xa2a5
leaq 0x6d0dc(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x30, %rax
jne 0xa0cf
movq -0x30(%rbp), %rsi
movq -0x30(%rbp), %rdx
leaq 0x5a6a3(%rip), %rdi     # 0x64763
movb $0x0, %al
callq 0x3110
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
jmp 0xa12d
leaq 0x6d0aa(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x10, %rax
cmpq $0x0, %rax
je 0xa0fd
movq -0x30(%rbp), %rsi
leaq 0x5a67f(%rip), %rdi     # 0x6476d
movb $0x0, %al
callq 0x3110
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
jmp 0xa12b
leaq 0x6d07c(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x20, %rax
cmpq $0x0, %rax
je 0xa129
movq -0x30(%rbp), %rsi
leaq 0x5a657(%rip), %rdi     # 0x64773
movb $0x0, %al
callq 0x3110
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
jmp 0xa12b
jmp 0xa12d
jmp 0xa12f
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
movq -0x20(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x20(%rbp)
jmp 0xa049
movq -0x10(%rbp), %rax
movslq -0x28(%rbp), %rcx
cmpq %rcx, %rax
jbe 0xa29b
leaq 0x5a5aa(%rip), %rdi     # 0x6470b
movb $0x0, %al
callq 0x3110
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
movq -0x10(%rbp), %rax
movslq -0x28(%rbp), %rcx
subq %rcx, %rax
shlq $0x2, %rax
addq -0x20(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movw -0x12(%rbp), %ax
movq -0x20(%rbp), %rdx
movzwl %ax, %esi
callq 0x4610
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
jne 0xa1b9
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xa1cf
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x34(%rbp), %edi
callq 0x1ff00
jmp 0xa2a5
leaq 0x6cfaa(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x30, %rax
jne 0xa205
movq -0x30(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq -0x10(%rbp), %rcx
leaq 0x5a582(%rip), %rdi     # 0x64778
movb $0x0, %al
callq 0x3110
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
jmp 0xa26b
leaq 0x6cf74(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x10, %rax
cmpq $0x0, %rax
je 0xa237
movq -0x30(%rbp), %rsi
movq -0x10(%rbp), %rdx
leaq 0x5a560(%rip), %rdi     # 0x64788
movb $0x0, %al
callq 0x3110
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
jmp 0xa269
leaq 0x6cf42(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x20, %rax
cmpq $0x0, %rax
je 0xa267
movq -0x30(%rbp), %rsi
movq -0x10(%rbp), %rdx
leaq 0x5a53a(%rip), %rdi     # 0x64794
movb $0x0, %al
callq 0x3110
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
jmp 0xa269
jmp 0xa26b
leaq 0x6cf0e(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30000, %rax          # imm = 0x30000
cmpq $0x0, %rax
je 0xa299
movq -0x20(%rbp), %rsi
leaq 0x5a491(%rip), %rdi     # 0x6471d
movb $0x0, %al
callq 0x3110
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
jmp 0xa29b
jmp 0xa29d
movl -0x34(%rbp), %edi
callq 0x1ff00
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)