// File: /workspace/github_c_makefile_star2_O3/hfiguiere[P]exifprobe/x3f.c
// Function: print_property
void
print_property(FILE *inptr,unsigned short byteorder,unsigned long name_offset,
                        unsigned long value_offset,unsigned long char_format,
                        char *dirname,int index,int indent)
{
    int chpr = 0;
    int i = 0;
    int ch;

    if(inptr)
    {
        clearerr(inptr);
        if(fseek(inptr,name_offset,SEEK_SET) == 0)
        {
            if((PRINT_SECTION) && (PRINT_VALUE_AT_OFFSET))
            {
                print_tag_address(ENTRY,name_offset,indent + SMALLINDENT,"@");
                if((PRINT_TAGINFO))
                {
                    if((PRINT_LONGNAMES))
                        chpr += printf("%s.Data.",dirname);
                    chpr += printf("Name.%-2d",index);
                    if((PRINT_VALUE))
                    {
                        putindent(X3FTAGWIDTH - 17);
                        chpr += printf(" = ");
                    }
                }
                if((PRINT_VALUE))
                {
                    while((ch = read_ushort(inptr,byteorder,HERE)))
                    {
                        if((PRINT_UNICODE))
                            fwrite((char *)&ch,2,1,stdout);
                        else
                            putchar(ch);
                        ++chpr;
                    }
                }
            }
            else
            {
                print_tag_address(ENTRY,name_offset,indent + SMALLINDENT,"@");
                if((PRINT_TAGINFO))
                {
                    if((PRINT_LONGNAMES))
                        chpr += printf("%s.Data.",dirname);
                    i = 0;
                    while((ch = read_ushort(inptr,byteorder,HERE)))
                    {
                        if((PRINT_UNICODE))
                            fwrite((char *)&ch,2,1,stdout);
                        else
                            putchar(ch);
                        ++chpr;
                        ++i;
                    }
                    if((PRINT_VALUE))
                    {
                        putindent(X3FTAGWIDTH - i - 6);
                        chpr += printf(" = ");
                    }
                }
            }
        }
        if((PRINT_SECTION) && (PRINT_VALUE_AT_OFFSET))
            chpr = newline(chpr);
        if(fseek(inptr,value_offset,SEEK_SET) == 0)
        {
            if((PRINT_SECTION) && (PRINT_VALUE_AT_OFFSET))
            {
                print_tag_address(ENTRY,value_offset,indent + SMALLINDENT,"@");
                if((PRINT_TAGINFO))
                {
                    if((PRINT_LONGNAMES))
                        chpr += printf("%s.",dirname);
                    chpr += printf("Value.%-2d",index);
                    if((PRINT_VALUE))
                    {
                        putindent(X3FTAGWIDTH - 18);
                        chpr += printf(" = ");
                    }
                }
                if((PRINT_VALUE))
                {
                    while((ch = read_ushort(inptr,byteorder,HERE)))
                    {
                        if((PRINT_UNICODE))
                            fwrite((char *)&ch,2,1,stdout);
                        else
                            putchar(ch & 0xff);
                        ++chpr;
                    }
                }
            }
            else if((PRINT_VALUE))
            {
                while((ch = read_ushort(inptr,byteorder,HERE)))
                {
                    if((PRINT_UNICODE))
                        fwrite((char *)&ch,2,1,stdout);
                    else
                        putchar(ch & 0xff);
                    ++chpr;
                }
            }
        }
        chpr = newline(chpr);
    }
}

// Assembly:
testq %rdi, %rdi
je 0x2ba35
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r14
movl %esi, %r12d
movq %rdi, %rbx
movq %rcx, 0x18(%rsp)
movq %r9, 0x10(%rsp)
movl 0x68(%rsp), %r13d
movl 0x60(%rsp), %eax
movl %eax, 0xc(%rsp)
callq 0x31b0
xorl %ebp, %ebp
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3210
testl %eax, %eax
movl %r12d, 0x8(%rsp)
movq %r13, 0x20(%rsp)
je 0x2ba36
leaq 0x2c795(%rip), %r12     # 0x58180
movl (%r12), %eax
notl %eax
testl $0x1040000, %eax        # imm = 0x1040000
jne 0x2ba01
movl %ebp, %edi
callq 0x1707a
movl %eax, %ebp
movq 0x18(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3210
testl %eax, %eax
movq 0x20(%rsp), %rdx
je 0x2badd
movl %ebp, %edi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1707a
retq
leaq 0x2c743(%rip), %rax     # 0x58180
movl (%rax), %r15d
notl %r15d
leal 0x2(%r13), %edx
movq %rax, %r13
leaq 0x1568b(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
callq 0x55eb
movq (%r13), %rax
testl $0x1040000, %r15d       # imm = 0x1040000
jne 0x2bbee
testl $0x3003, %eax           # imm = 0x3003
je 0x2bd1c
xorl %r14d, %r14d
testb $0x40, %al
je 0x2ba97
leaq 0x1e382(%rip), %rdi     # 0x49e0a
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %r14d
leaq 0x1e375(%rip), %rdi     # 0x49e13
movl 0xc(%rsp), %esi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r14d, %ebp
movq (%r13), %rax
testb $0x30, %al
je 0x2bd1e
movl $0x1, %edi
callq 0x5716
leaq 0x1eadd(%rip), %rdi     # 0x4a5a8
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq (%r13), %rax
jmp 0x2bd1e
movq (%r12), %rax
movl %eax, %ecx
notl %ecx
testl $0x1040000, %ecx        # imm = 0x1040000
jne 0x2bc97
addl $0x2, %edx
leaq 0x155e1(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
callq 0x55eb
movq (%r12), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2bb69
testb $0x40, %al
je 0x2bb2c
leaq 0x199cd(%rip), %rdi     # 0x454eb
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %r14d
leaq 0x1e2e7(%rip), %rdi     # 0x49e1d
movl 0xc(%rsp), %esi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r14d, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x2bb69
xorl %edi, %edi
callq 0x5716
leaq 0x1ea4c(%rip), %rdi     # 0x4a5a8
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq (%r12), %rax
testb $0x30, %al
je 0x2ba20
movzwl 0x8(%rsp), %r14d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %rbx, %rdi
movl %r14d, %esi
callq 0x45af
movzwl %ax, %eax
movl %eax, 0x4(%rsp)
testw %ax, %ax
je 0x2ba20
movq 0x2c42a(%rip), %r13     # 0x57fc8
leaq 0x4(%rsp), %r15
testb $0x40, 0x1(%r12)
jne 0x2bbb5
movzbl %al, %edi
callq 0x3060
jmp 0x2bbcb
movq (%r13), %rcx
movl $0x2, %esi
movl $0x1, %edx
movq %r15, %rdi
callq 0x32a0
incl %ebp
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %rbx, %rdi
movl %r14d, %esi
callq 0x45af
movzwl %ax, %eax
movl %eax, 0x4(%rsp)
testw %ax, %ax
jne 0x2bba3
jmp 0x2ba20
testl $0x3003, %eax           # imm = 0x3003
je 0x2b9e4
xorl %ebp, %ebp
testb $0x40, %al
je 0x2bc14
leaq 0x1e204(%rip), %rdi     # 0x49e0a
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
movzwl 0x8(%rsp), %r12d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %rbx, %rdi
movl %r12d, %esi
callq 0x45af
movzwl %ax, %edi
movl %edi, 0x4(%rsp)
testw %di, %di
je 0x2bd9c
xorl %r14d, %r14d
leaq 0x4(%rsp), %r15
testb $0x40, 0x1(%r13)
jne 0x2bc50
callq 0x3060
jmp 0x2bc6c
movq 0x2c371(%rip), %rax     # 0x57fc8
movq (%rax), %rcx
movl $0x2, %esi
movl $0x1, %edx
movq %r15, %rdi
callq 0x32a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %rbx, %rdi
movl %r12d, %esi
callq 0x45af
movzwl %ax, %edi
movl %edi, 0x4(%rsp)
decl %r14d
testw %di, %di
jne 0x2bc42
subl %r14d, %ebp
addl $0xc, %r14d
jmp 0x2bda2
testb $0x30, %al
je 0x2ba20
movzwl 0x8(%rsp), %r14d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %rbx, %rdi
movl %r14d, %esi
callq 0x45af
movzwl %ax, %eax
movl %eax, 0x4(%rsp)
testw %ax, %ax
je 0x2ba20
movq 0x2c2fc(%rip), %r13     # 0x57fc8
leaq 0x4(%rsp), %r15
testb $0x40, 0x1(%r12)
jne 0x2bce3
movzbl %al, %edi
callq 0x3060
jmp 0x2bcf9
movq (%r13), %rcx
movl $0x2, %esi
movl $0x1, %edx
movq %r15, %rdi
callq 0x32a0
incl %ebp
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %rbx, %rdi
movl %r14d, %esi
callq 0x45af
movzwl %ax, %eax
movl %eax, 0x4(%rsp)
testw %ax, %ax
jne 0x2bcd1
jmp 0x2ba20
xorl %ebp, %ebp
testb $0x30, %al
je 0x2b9e4
movzwl %r12w, %r14d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %rbx, %rdi
movl %r14d, %esi
callq 0x45af
movzwl %ax, %edi
movl %edi, 0x4(%rsp)
testw %di, %di
je 0x2b9e4
movq 0x2c277(%rip), %r15     # 0x57fc8
leaq 0x4(%rsp), %r12
testb $0x40, 0x1(%r13)
jne 0x2bd64
callq 0x3060
jmp 0x2bd79
movq (%r15), %rcx
movl $0x2, %esi
movl $0x1, %edx
movq %r12, %rdi
callq 0x32a0
incl %ebp
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %rbx, %rdi
movl %r14d, %esi
callq 0x45af
movzwl %ax, %edi
movl %edi, 0x4(%rsp)
testw %di, %di
jne 0x2bd56
jmp 0x2b9e4
movl $0xc, %r14d
testb $0x30, (%r13)
je 0x2b9e4
movl %r14d, %edi
callq 0x5716
leaq 0x1e7ec(%rip), %rdi     # 0x4a5a8
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
jmp 0x2b9e4
nop