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

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

    if((PRINT_ENTRY))
    {
        count = (dirlength / sizeof(long));

        for(i = 0; i <= count; ++i)
        {
            value = read_ulong(inptr,byteorder,offset);
            print_tag_address(ENTRY,offset,indent,"@");
            if((PRINT_TAGINFO))
                chpr += printf("%s",tagprefix);
            offset += 4;
            switch(i)
            {
                case 0:
                    if((PRINT_TAGINFO))
                        chpr += printf(".%02d_%-26.26s",i,"AspectRatio");
                    if((PRINT_VALUE))
                        chpr += printf(" = %#lx",value);

                        print_startvalue();
                        switch(value)
                        {
                        case 0:
                            chpr += printf("3:2");
                            break;
                        case 1:
                            chpr += printf("1:1");
                            break;
                        case 2:
                            chpr += printf("4:3");
                            break;
                        case 7:
                            chpr += printf("16:9");
                            break;
                        case 8:
                            chpr += printf("4:5");
                            break;
                        default:
                            printred("undefined");
                            break;
                        }
                        print_endvalue();

                    break;
                case 1:
                    if((PRINT_TAGINFO))
                        chpr += printf(".%02d_%-26.26s",i,"CroppedImageWidth");
                    if((PRINT_VALUE))
                        chpr += printf(" = %lu",value);
                    break;
                case 2:
                    if((PRINT_TAGINFO))
                        chpr += printf(".%02d_%-26.26s",i,"CroppedImageHeight");
                    if((PRINT_VALUE))
                        chpr += printf(" = %lu",value);
                    break;
                case 3:
                    if((PRINT_TAGINFO))
                        chpr += printf(".%02d_%-26.26s",i,"CroppedImageLeft");
                    if((PRINT_VALUE))
                        chpr += printf(" = %lu",value);
                    break;
                case 4:
                    if((PRINT_TAGINFO))
                        chpr += printf(".%02d_%-26.26s",i,"CroppedImageRight");
                    if((PRINT_VALUE))
                        chpr += printf(" = %lu",value);
                    break;
                default:
                    if((PRINT_TAGINFO))
                        chpr += printf(".%02d_%-26.26s",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, -0x50(%rbp)
movq -0x20(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
leaq 0x21e13(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40000, %rax          # imm = 0x40000
cmpq $0x0, %rax
je 0x55394
movq -0x28(%rbp), %rsi
leaq 0x15932(%rip), %rdi     # 0x6acb9
movb $0x0, %al
callq 0x3110
addl -0x50(%rbp), %eax
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %edi
callq 0x1ef50
movl %eax, -0x50(%rbp)
leaq 0x21dda(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x4003333, %rax        # imm = 0x4003333
cmpq $0x0, %rax
je 0x5578e
movq -0x28(%rbp), %rax
shrq $0x3, %rax
movq %rax, -0x38(%rbp)
movl $0x0, -0x4c(%rbp)
movslq -0x4c(%rbp), %rax
cmpq -0x38(%rbp), %rax
ja 0x5578c
movq -0x8(%rbp), %rdi
movw -0xa(%rbp), %ax
movq -0x20(%rbp), %rdx
movzwl %ax, %esi
callq 0x4610
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rsi
movl -0x2c(%rbp), %edx
movl $0x4003333, %edi        # imm = 0x4003333
leaq 0xecd7(%rip), %rcx      # 0x640dc
callq 0x5ed0
leaq 0x21d6f(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x55438
movq -0x18(%rbp), %rsi
leaq 0xec6c(%rip), %rdi      # 0x64097
movb $0x0, %al
callq 0x3110
addl -0x50(%rbp), %eax
movl %eax, -0x50(%rbp)
movq -0x20(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x20(%rbp)
movl -0x4c(%rbp), %eax
movq %rax, -0x58(%rbp)
subq $0x4, %rax
ja 0x5570d
movq -0x58(%rbp), %rax
leaq 0x19934(%rip), %rcx     # 0x6ed94
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x21d10(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x5549d
movl -0x4c(%rbp), %esi
leaq 0x1b0f7(%rip), %rdi     # 0x70580
leaq 0x1b356(%rip), %rdx     # 0x707e6
movb $0x0, %al
callq 0x3110
addl -0x50(%rbp), %eax
movl %eax, -0x50(%rbp)
leaq 0x21cdc(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x554c9
movq -0x48(%rbp), %rsi
leaq 0x18ef1(%rip), %rdi     # 0x6e3ad
movb $0x0, %al
callq 0x3110
addl -0x50(%rbp), %eax
movl %eax, -0x50(%rbp)
xorl %eax, %eax
callq 0xb9a0
movq -0x48(%rbp), %rax
movq %rax, -0x60(%rbp)
subq $0x8, %rax
ja 0x55564
movq -0x60(%rbp), %rax
leaq 0x198bb(%rip), %rcx     # 0x6eda8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x1b109(%rip), %rdi     # 0x70606
movb $0x0, %al
callq 0x3110
addl -0x50(%rbp), %eax
movl %eax, -0x50(%rbp)
jmp 0x55570
leaq 0x1b0f7(%rip), %rdi     # 0x7060a
movb $0x0, %al
callq 0x3110
addl -0x50(%rbp), %eax
movl %eax, -0x50(%rbp)
jmp 0x55570
leaq 0x1b0e5(%rip), %rdi     # 0x7060e
movb $0x0, %al
callq 0x3110
addl -0x50(%rbp), %eax
movl %eax, -0x50(%rbp)
jmp 0x55570
leaq 0x1b0d3(%rip), %rdi     # 0x70612
movb $0x0, %al
callq 0x3110
addl -0x50(%rbp), %eax
movl %eax, -0x50(%rbp)
jmp 0x55570
leaq 0x1b0c2(%rip), %rdi     # 0x70617
movb $0x0, %al
callq 0x3110
addl -0x50(%rbp), %eax
movl %eax, -0x50(%rbp)
jmp 0x55570
leaq 0x160a0(%rip), %rdi     # 0x6b60b
callq 0x6860
movb $0x0, %al
callq 0xb9d0
jmp 0x55773
leaq 0x21bfd(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x555b0
movl -0x4c(%rbp), %esi
leaq 0x1afe4(%rip), %rdi     # 0x70580
leaq 0x1b078(%rip), %rdx     # 0x7061b
movb $0x0, %al
callq 0x3110
addl -0x50(%rbp), %eax
movl %eax, -0x50(%rbp)
leaq 0x21bc9(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x555dc
movq -0x48(%rbp), %rsi
leaq 0xeafc(%rip), %rdi      # 0x640cb
movb $0x0, %al
callq 0x3110
addl -0x50(%rbp), %eax
movl %eax, -0x50(%rbp)
jmp 0x55773
leaq 0x21b98(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x55615
movl -0x4c(%rbp), %esi
leaq 0x1af7f(%rip), %rdi     # 0x70580
leaq 0x1b025(%rip), %rdx     # 0x7062d
movb $0x0, %al
callq 0x3110
addl -0x50(%rbp), %eax
movl %eax, -0x50(%rbp)
leaq 0x21b64(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x55641
movq -0x48(%rbp), %rsi
leaq 0xea97(%rip), %rdi      # 0x640cb
movb $0x0, %al
callq 0x3110
addl -0x50(%rbp), %eax
movl %eax, -0x50(%rbp)
jmp 0x55773
leaq 0x21b33(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x5567a
movl -0x4c(%rbp), %esi
leaq 0x1af1a(%rip), %rdi     # 0x70580
leaq 0x1afd3(%rip), %rdx     # 0x70640
movb $0x0, %al
callq 0x3110
addl -0x50(%rbp), %eax
movl %eax, -0x50(%rbp)
leaq 0x21aff(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x556a6
movq -0x48(%rbp), %rsi
leaq 0xea32(%rip), %rdi      # 0x640cb
movb $0x0, %al
callq 0x3110
addl -0x50(%rbp), %eax
movl %eax, -0x50(%rbp)
jmp 0x55773
leaq 0x21ace(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x556df
movl -0x4c(%rbp), %esi
leaq 0x1aeb5(%rip), %rdi     # 0x70580
leaq 0x1af7f(%rip), %rdx     # 0x70651
movb $0x0, %al
callq 0x3110
addl -0x50(%rbp), %eax
movl %eax, -0x50(%rbp)
leaq 0x21a9a(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x5570b
movq -0x48(%rbp), %rsi
leaq 0xe9cd(%rip), %rdi      # 0x640cb
movb $0x0, %al
callq 0x3110
addl -0x50(%rbp), %eax
movl %eax, -0x50(%rbp)
jmp 0x55773
leaq 0x21a6c(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x3003, %rax           # imm = 0x3003
cmpq $0x0, %rax
je 0x55741
movl -0x4c(%rbp), %esi
leaq 0x1ae53(%rip), %rdi     # 0x70580
leaq 0x157fd(%rip), %rdx     # 0x6af31
movb $0x0, %al
callq 0x3110
addl -0x50(%rbp), %eax
movl %eax, -0x50(%rbp)
leaq 0x21a38(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x55771
movq -0x48(%rbp), %rsi
movq -0x48(%rbp), %rdx
leaq 0x1a1c2(%rip), %rdi     # 0x6f926
movb $0x0, %al
callq 0x3110
addl -0x50(%rbp), %eax
movl %eax, -0x50(%rbp)
jmp 0x55773
movl -0x50(%rbp), %edi
callq 0x1ef50
movl %eax, -0x50(%rbp)
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x553cc
jmp 0x5578e
movl -0x50(%rbp), %edi
callq 0x1ff00
movq -0x40(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq