// File: /workspace/github_c_makefile_star2_O0/hfiguiere[P]exifprobe/maker_canon.c
// Function: canon_focusinfo
unsigned long
canon_focusinfo(FILE *inptr,unsigned short byteorder,char *tagprefix,
                            unsigned long offset,unsigned long dirlength,int indent)
{
    unsigned long count;
    unsigned long end_offset;
    unsigned short value;
    int i;
    int chpr = 0;

    if(PRINT_SECTION)
        chpr += printf(" length %lu",dirlength);
    chpr = newline(chpr);

    /* NOTE that focallength is not treated as a directory; there is  */
    /* no 2-byte count at the beginning.                              */

    end_offset = offset + dirlength;
    count = (dirlength / sizeof(unsigned short));

    for(i = 0; i < count; ++i)
    {
        value = read_ushort(inptr,byteorder,offset);
        print_tag_address(ENTRY,offset,indent,"@");
        if((PRINT_ENTRY))
        {
            if((PRINT_TAGINFO))
                chpr += printf("%s",tagprefix);
        }
        offset += 2;
        switch(i)
        {
            case 0:
                if((PRINT_TAGINFO))
                    chpr += printf(".%02d_%-22.22s",i,"unknown");
                if((PRINT_VALUE))
                    chpr += printf(" = %u",value);
                break;
            case 1:
                if((PRINT_TAGINFO))
                    chpr += printf(".%02d_%-22.22s",i,"FocalLength");
                if((PRINT_VALUE))
                    chpr += printf(" = %u",value);
                break;
            case 2:
                if((PRINT_TAGINFO))
                    chpr += printf(".%02d_%-22.22s",i,"FocalPlaneXSize");
                if((PRINT_VALUE))
                    chpr += printf(" = %u",value);
                break;
            case 3:
                if((PRINT_TAGINFO))
                    chpr += printf(".%02d_%-22.22s",i,"FocalPlaneYSize");
                if((PRINT_VALUE))
                    chpr += printf(" = %u",value);
                break;
            default:
                if((PRINT_TAGINFO))
                    chpr += printf(".%02d_%-22.22s",i,"Undefined");
                if((PRINT_VALUE))
                    chpr += printf(" = %#x%u",value,value);
                break;
        }
        chpr = newline(chpr);
    }
    setcharsprinted(chpr);
    return(end_offset);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movw %si, %ax
movq %rdi, -0x8(%rbp)
movw %ax, -0xa(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
movl $0x0, -0x4c(%rbp)
leaq 0x23f8f(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40000, %rax          # imm = 0x40000
cmpq $0x0, %rax
je 0x53218
movq -0x28(%rbp), %rsi
leaq 0x17aae(%rip), %rdi     # 0x6acb9
movb $0x0, %al
callq 0x3110
addl -0x4c(%rbp), %eax
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %edi
callq 0x1ef50
movl %eax, -0x4c(%rbp)
movq -0x20(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x28(%rbp), %rax
shrq %rax
movq %rax, -0x38(%rbp)
movl $0x0, -0x48(%rbp)
movslq -0x48(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0x53506
movq -0x8(%rbp), %rdi
movw -0xa(%rbp), %ax
movq -0x20(%rbp), %rdx
movzwl %ax, %esi
callq 0x4480
movw %ax, -0x42(%rbp)
movq -0x20(%rbp), %rsi
movl -0x2c(%rbp), %edx
movl $0x4003333, %edi        # imm = 0x4003333
leaq 0x10e62(%rip), %rcx     # 0x640dc
callq 0x5ed0
leaq 0x23efa(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x4003333, %rax        # imm = 0x4003333
cmpq $0x0, %rax
je 0x532c5
leaq 0x23ee4(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x532c3
movq -0x18(%rbp), %rsi
leaq 0x10de1(%rip), %rdi     # 0x64097
movb $0x0, %al
callq 0x3110
addl -0x4c(%rbp), %eax
movl %eax, -0x4c(%rbp)
jmp 0x532c5
movq -0x20(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x20(%rbp)
movl -0x48(%rbp), %eax
movq %rax, -0x58(%rbp)
subq $0x3, %rax
ja 0x53487
movq -0x58(%rbp), %rax
leaq 0x1b94b(%rip), %rcx     # 0x6ec38
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x23e83(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x5332a
movl -0x48(%rbp), %esi
leaq 0x1d34d(%rip), %rdi     # 0x70663
leaq 0x14cc1(%rip), %rdx     # 0x67fde
movb $0x0, %al
callq 0x3110
addl -0x4c(%rbp), %eax
movl %eax, -0x4c(%rbp)
leaq 0x23e4f(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x53356
movzwl -0x42(%rbp), %esi
leaq 0x142e3(%rip), %rdi     # 0x6762c
movb $0x0, %al
callq 0x3110
addl -0x4c(%rbp), %eax
movl %eax, -0x4c(%rbp)
jmp 0x534ed
leaq 0x23e1e(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x5338f
movl -0x48(%rbp), %esi
leaq 0x1d2e8(%rip), %rdi     # 0x70663
leaq 0x19939(%rip), %rdx     # 0x6ccbb
movb $0x0, %al
callq 0x3110
addl -0x4c(%rbp), %eax
movl %eax, -0x4c(%rbp)
leaq 0x23dea(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x533bb
movzwl -0x42(%rbp), %esi
leaq 0x1427e(%rip), %rdi     # 0x6762c
movb $0x0, %al
callq 0x3110
addl -0x4c(%rbp), %eax
movl %eax, -0x4c(%rbp)
jmp 0x534ed
leaq 0x23db9(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x533f4
movl -0x48(%rbp), %esi
leaq 0x1d283(%rip), %rdi     # 0x70663
leaq 0x1d45b(%rip), %rdx     # 0x70842
movb $0x0, %al
callq 0x3110
addl -0x4c(%rbp), %eax
movl %eax, -0x4c(%rbp)
leaq 0x23d85(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x53420
movzwl -0x42(%rbp), %esi
leaq 0x14219(%rip), %rdi     # 0x6762c
movb $0x0, %al
callq 0x3110
addl -0x4c(%rbp), %eax
movl %eax, -0x4c(%rbp)
jmp 0x534ed
leaq 0x23d54(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x53459
movl -0x48(%rbp), %esi
leaq 0x1d21e(%rip), %rdi     # 0x70663
leaq 0x1d406(%rip), %rdx     # 0x70852
movb $0x0, %al
callq 0x3110
addl -0x4c(%rbp), %eax
movl %eax, -0x4c(%rbp)
leaq 0x23d20(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x53485
movzwl -0x42(%rbp), %esi
leaq 0x141b4(%rip), %rdi     # 0x6762c
movb $0x0, %al
callq 0x3110
addl -0x4c(%rbp), %eax
movl %eax, -0x4c(%rbp)
jmp 0x534ed
leaq 0x23cf2(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x534bb
movl -0x48(%rbp), %esi
leaq 0x1d1bc(%rip), %rdi     # 0x70663
leaq 0x17a83(%rip), %rdx     # 0x6af31
movb $0x0, %al
callq 0x3110
addl -0x4c(%rbp), %eax
movl %eax, -0x4c(%rbp)
leaq 0x23cbe(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x534eb
movzwl -0x42(%rbp), %esi
movzwl -0x42(%rbp), %edx
leaq 0x1c448(%rip), %rdi     # 0x6f926
movb $0x0, %al
callq 0x3110
addl -0x4c(%rbp), %eax
movl %eax, -0x4c(%rbp)
jmp 0x534ed
movl -0x4c(%rbp), %edi
callq 0x1ef50
movl %eax, -0x4c(%rbp)
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x53241
movl -0x4c(%rbp), %edi
callq 0x1ff00
movq -0x40(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax,%rax)