// File: /workspace/github_c_makefile_star2_O2/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 0x2a4d1
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %r12
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
movq %rcx, 0x18(%rsp)
movl 0x68(%rsp), %r13d
movl 0x60(%rsp), %eax
movl %eax, 0x14(%rsp)
callq 0x31b0
xorl %r14d, %r14d
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x3210
movzwl %bp, %ebp
testl %eax, %eax
movq %r13, 0x20(%rsp)
jne 0x2a5d6
movq %r12, 0x8(%rsp)
leaq 0x2cd4d(%rip), %rax     # 0x57180
movl (%rax), %r12d
notl %r12d
leal 0x2(%r13), %edx
movq %rax, %r13
leaq 0x14c95(%rip), %rcx     # 0x3f0dc
movl $0x4003333, %edi        # imm = 0x4003333
movq %r15, %rsi
callq 0x5100
movq (%r13), %rax
testl $0x1040000, %r12d       # imm = 0x1040000
jne 0x2a4d2
testw $0x3003, %ax            # imm = 0x3003
movq 0x8(%rsp), %r12
je 0x2a577
xorl %r15d, %r15d
testb $0x40, %al
je 0x2a48b
leaq 0x1d93c(%rip), %rdi     # 0x47dba
movq %r12, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %r15d
leaq 0x1d931(%rip), %rdi     # 0x47dc3
movl 0x14(%rsp), %esi
xorl %eax, %eax
callq 0x3120
movl %eax, %r14d
addl %r15d, %r14d
movq (%r13), %rax
testb $0x30, %al
je 0x2a57a
pushq $0x1
popq %rdi
callq 0x521b
leaq 0x1e09a(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movq (%r13), %rax
jmp 0x2a57a
retq
testw $0x3003, %ax            # imm = 0x3003
movq 0x8(%rsp), %r12
je 0x2a5d6
xorl %r14d, %r14d
testb $0x40, %al
je 0x2a4fc
leaq 0x1d8cb(%rip), %rdi     # 0x47dba
movq %r12, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %r14d
negl %r14d
pushq $0xc
popq %r12
pushq $0x1
popq %r15
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %rbx, %rdi
movl %ebp, %esi
callq 0x416a
movzwl %ax, %edi
movl %edi, 0x4(%rsp)
movq (%r13), %rax
testw %di, %di
je 0x2a555
btl $0xe, %eax
jb 0x2a533
callq 0x3060
jmp 0x2a54d
movq 0x2ca8e(%rip), %rax     # 0x56fc8
movq (%rax), %rcx
leaq 0x4(%rsp), %rdi
pushq $0x2
popq %rsi
movq %r15, %rdx
callq 0x32a0
decl %r14d
decl %r12d
jmp 0x2a507
testb $0x30, %al
je 0x2a5ce
movl %r12d, %edi
callq 0x521b
leaq 0x1dff0(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
subl %r14d, %eax
movl %eax, %r14d
jmp 0x2a5d1
xorl %r14d, %r14d
testb $0x30, %al
je 0x2a5d6
pushq $0x2
popq %r12
pushq $0x1
popq %r15
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %rbx, %rdi
movl %ebp, %esi
callq 0x416a
movzwl %ax, %edi
movl %edi, 0x4(%rsp)
testw %di, %di
je 0x2a5d1
testb $0x40, 0x1(%r13)
jne 0x2a5af
callq 0x3060
jmp 0x2a5c9
movq 0x2ca12(%rip), %rax     # 0x56fc8
movq (%rax), %rcx
leaq 0x4(%rsp), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x32a0
incl %r14d
jmp 0x2a586
negl %r14d
movq 0x8(%rsp), %r12
leaq 0x2cba3(%rip), %r15     # 0x57180
movl (%r15), %eax
notl %eax
testl $0x1040000, %eax        # imm = 0x1040000
jne 0x2a5f4
movl %r14d, %edi
callq 0x160f7
movl %eax, %r14d
movq 0x18(%rsp), %r13
movq %rbx, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x3210
testl %eax, %eax
je 0x2a620
movl %r14d, %edi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x160f7
movq (%r15), %rax
movl %eax, %ecx
notl %ecx
testl $0x1040000, %ecx        # imm = 0x1040000
jne 0x2a70c
movq 0x20(%rsp), %rdx
addl $0x2, %edx
leaq 0x14a9a(%rip), %rcx     # 0x3f0dc
movl $0x4003333, %edi        # imm = 0x4003333
movq %r13, %rsi
callq 0x5100
movq (%r15), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x2a6ad
testb $0x40, %al
je 0x2a670
leaq 0x18e44(%rip), %rdi     # 0x434a7
movq %r12, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movl %r14d, %r12d
leaq 0x1d753(%rip), %rdi     # 0x47dcd
movl 0x14(%rsp), %esi
xorl %eax, %eax
callq 0x3120
movl %eax, %r14d
addl %r12d, %r14d
movq (%r15), %rax
testb $0x30, %al
je 0x2a6ad
xorl %edi, %edi
callq 0x521b
leaq 0x1deb8(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movq (%r15), %rax
testb $0x30, %al
je 0x2a60a
pushq $0x2
popq %r12
pushq $0x1
popq %r13
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %rbx, %rdi
movl %ebp, %esi
callq 0x416a
movzwl %ax, %eax
movl %eax, 0x4(%rsp)
testw %ax, %ax
je 0x2a60a
testb $0x40, 0x1(%r15)
jne 0x2a6ed
movzbl %al, %edi
callq 0x3060
jmp 0x2a707
movq 0x2c8d4(%rip), %rax     # 0x56fc8
movq (%rax), %rcx
leaq 0x4(%rsp), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x32a0
incl %r14d
jmp 0x2a6bd
testb $0x30, %al
je 0x2a60a
pushq $0x2
popq %r12
pushq $0x1
popq %r13
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %rbx, %rdi
movl %ebp, %esi
callq 0x416a
movzwl %ax, %eax
movl %eax, 0x4(%rsp)
testw %ax, %ax
je 0x2a60a
testb $0x40, 0x1(%r15)
jne 0x2a74c
movzbl %al, %edi
callq 0x3060
jmp 0x2a766
movq 0x2c875(%rip), %rax     # 0x56fc8
movq (%rax), %rcx
leaq 0x4(%rsp), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x32a0
incl %r14d
jmp 0x2a71c
nop