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

    if(count)
    {
        byte = read_ubyte(inptr,offset);
        if(feof(inptr) || ferror(inptr))
        {
            clearerr(inptr);
            setcharsprinted(chpr);
            return;
        }
        chpr += printf("%d",byte);
    }
    if(PRINT_MULTIVAL_ALL)
    {
        for(i = 1; i < count; ++i,offset += 2L)
        {
            byte = read_ubyte(inptr,HERE);
            if(feof(inptr) || ferror(inptr))
            {
                clearerr(inptr);
                setcharsprinted(chpr);
                return;
            }
            chpr += printf(",%d",byte);
        }
    }
    else
    {
#define MAX 10UL
        j = count > MAX + 2 ? MAX : count;
        for(i = 1; i < j; ++i)
        {
            byte = read_ubyte(inptr,HERE);
            if(feof(inptr) || ferror(inptr))
            {
                clearerr(inptr);
                setcharsprinted(chpr);
                return;
            }
            chpr += printf(",%d",byte);
        }
        if((count > j) && (ferror(inptr) == 0))
        {
            chpr += printf(" ... ");
            offset += (unsigned long)(count - 1);
            byte = read_ubyte(inptr,offset);
            if(feof(inptr) || ferror(inptr))
            {
                clearerr(inptr);
                setcharsprinted(chpr);
                return;
            }
            chpr += printf(",%d (%lu)",byte,count);
            if(PRINT_ADDRESS)
                chpr += printf(" -> @%lu",offset);
        }
#undef MAX
    }
    setcharsprinted(chpr);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl $0x0, -0x28(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x943d
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x4f20
movw %ax, -0x22(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
jne 0x940f
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0x9425
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x28(%rbp), %edi
callq 0x1ff00
jmp 0x9654
movswl -0x22(%rbp), %esi
leaq 0x5e8c9(%rip), %rdi     # 0x67cf9
movb $0x0, %al
callq 0x3110
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
leaq 0x6dd3c(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x8000000, %rax        # imm = 0x8000000
cmpq $0x0, %rax
je 0x94e0
movl $0x1, -0x1c(%rbp)
movslq -0x1c(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0x94db
movq -0x8(%rbp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x4f20
movw %ax, -0x22(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
jne 0x9496
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0x94ac
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x28(%rbp), %edi
callq 0x1ff00
jmp 0x9654
movswl -0x22(%rbp), %esi
leaq 0x5b26f(%rip), %rdi     # 0x64726
movb $0x0, %al
callq 0x3110
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x18(%rbp)
jmp 0x945e
jmp 0x964c
cmpq $0xc, -0x10(%rbp)
jbe 0x94f2
movl $0xa, %eax
movq %rax, -0x30(%rbp)
jmp 0x94fa
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movl %eax, -0x20(%rbp)
movl $0x1, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0x20(%rbp), %eax
jge 0x9577
movq -0x8(%rbp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x4f20
movw %ax, -0x22(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
jne 0x953e
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0x9554
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x28(%rbp), %edi
callq 0x1ff00
jmp 0x9654
movswl -0x22(%rbp), %esi
leaq 0x5b1c7(%rip), %rdi     # 0x64726
movb $0x0, %al
callq 0x3110
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x9508
movq -0x10(%rbp), %rax
movslq -0x20(%rbp), %rcx
cmpq %rcx, %rax
jbe 0x964a
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
jne 0x964a
leaq 0x5b16a(%rip), %rdi     # 0x6470b
movb $0x0, %al
callq 0x3110
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x10(%rbp), %rax
subq $0x1, %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x4f20
movw %ax, -0x22(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
jne 0x95eb
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0x95fe
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x28(%rbp), %edi
callq 0x1ff00
jmp 0x9654
movswl -0x22(%rbp), %esi
movq -0x10(%rbp), %rdx
leaq 0x5b11d(%rip), %rdi     # 0x6472a
movb $0x0, %al
callq 0x3110
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
leaq 0x6db5f(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30000, %rax          # imm = 0x30000
cmpq $0x0, %rax
je 0x9648
movq -0x18(%rbp), %rsi
leaq 0x5b0e2(%rip), %rdi     # 0x6471d
movb $0x0, %al
callq 0x3110
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
jmp 0x964a
jmp 0x964c
movl -0x28(%rbp), %edi
callq 0x1ff00
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)