// File: /workspace/github_c_makefile_star2_O1/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 0x2b292
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 0x2b293
leaq 0x2cf38(%rip), %r12     # 0x58180
movl (%r12), %eax
notl %eax
testl $0x1040000, %eax        # imm = 0x1040000
jne 0x2b25e
movl %ebp, %edi
callq 0x16b56
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 0x2b335
movl %ebp, %edi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x16b56
retq
leaq 0x2cee6(%rip), %rax     # 0x58180
movl (%rax), %r15d
notl %r15d
leal 0x2(%r13), %edx
movq %rax, %r13
leaq 0x15e2e(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
callq 0x5605
movq (%r13), %rax
testl $0x1040000, %r15d       # imm = 0x1040000
jne 0x2b444
testl $0x3003, %eax           # imm = 0x3003
je 0x2b572
xorl %r14d, %r14d
testb $0x40, %al
je 0x2b2f4
leaq 0x1eae5(%rip), %rdi     # 0x49dca
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %r14d
leaq 0x1ead8(%rip), %rdi     # 0x49dd3
movl 0xc(%rsp), %esi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r14d, %ebp
testb $0x30, (%r13)
je 0x2b574
movl $0x1, %edi
callq 0x5730
leaq 0x1f241(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
jmp 0x2b574
movq (%r12), %rax
movl %eax, %ecx
notl %ecx
testl $0x1040000, %ecx        # imm = 0x1040000
jne 0x2b4ed
addl $0x2, %edx
leaq 0x15d89(%rip), %rcx     # 0x410dc
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
callq 0x5605
movq (%r12), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2b3bc
testb $0x40, %al
je 0x2b384
leaq 0x1a131(%rip), %rdi     # 0x454a7
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %r14d
leaq 0x1ea4f(%rip), %rdi     # 0x49ddd
movl 0xc(%rsp), %esi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r14d, %ebp
testb $0x30, (%r12)
je 0x2b3bc
xorl %edi, %edi
callq 0x5730
leaq 0x1f1b5(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
testb $0x30, (%r12)
je 0x2b27d
movzwl 0x8(%rsp), %r14d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %rbx, %rdi
movl %r14d, %esi
callq 0x4574
movzwl %ax, %eax
movl %eax, 0x4(%rsp)
testw %ax, %ax
je 0x2b27d
movq 0x2cbd4(%rip), %r13     # 0x57fc8
leaq 0x4(%rsp), %r15
testb $0x40, 0x1(%r12)
jne 0x2b40b
movzbl %al, %edi
callq 0x3060
jmp 0x2b421
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 0x4574
movzwl %ax, %eax
movl %eax, 0x4(%rsp)
testw %ax, %ax
jne 0x2b3f9
jmp 0x2b27d
testl $0x3003, %eax           # imm = 0x3003
je 0x2b241
xorl %ebp, %ebp
testb $0x40, %al
je 0x2b46a
leaq 0x1e96e(%rip), %rdi     # 0x49dca
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
movzwl 0x8(%rsp), %r14d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %rbx, %rdi
movl %r14d, %esi
callq 0x4574
movzwl %ax, %edi
movl %edi, 0x4(%rsp)
testw %di, %di
je 0x2b5f5
xorl %r12d, %r12d
leaq 0x4(%rsp), %r15
testb $0x40, 0x1(%r13)
jne 0x2b4a6
callq 0x3060
jmp 0x2b4c2
movq 0x2cb1b(%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 %r14d, %esi
callq 0x4574
movzwl %ax, %edi
movl %edi, 0x4(%rsp)
decl %r12d
testw %di, %di
jne 0x2b498
subl %r12d, %ebp
addl $0xc, %r12d
jmp 0x2b5fb
testb $0x30, %al
je 0x2b27d
movzwl 0x8(%rsp), %r14d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %rbx, %rdi
movl %r14d, %esi
callq 0x4574
movzwl %ax, %eax
movl %eax, 0x4(%rsp)
testw %ax, %ax
je 0x2b27d
movq 0x2caa6(%rip), %r13     # 0x57fc8
leaq 0x4(%rsp), %r15
testb $0x40, 0x1(%r12)
jne 0x2b539
movzbl %al, %edi
callq 0x3060
jmp 0x2b54f
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 0x4574
movzwl %ax, %eax
movl %eax, 0x4(%rsp)
testw %ax, %ax
jne 0x2b527
jmp 0x2b27d
xorl %ebp, %ebp
testb $0x30, (%r13)
je 0x2b241
movzwl %r12w, %r14d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %rbx, %rdi
movl %r14d, %esi
callq 0x4574
movzwl %ax, %edi
movl %edi, 0x4(%rsp)
testw %di, %di
je 0x2b241
movq 0x2ca1e(%rip), %r15     # 0x57fc8
leaq 0x4(%rsp), %r12
testb $0x40, 0x1(%r13)
jne 0x2b5bd
callq 0x3060
jmp 0x2b5d2
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 0x4574
movzwl %ax, %edi
movl %edi, 0x4(%rsp)
testw %di, %di
jne 0x2b5af
jmp 0x2b241
movl $0xc, %r12d
testb $0x30, (%r13)
je 0x2b241
movl %r12d, %edi
callq 0x5730
leaq 0x1ef53(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
jmp 0x2b241
nop