// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/maker_canon.c
// Function: canon1_offset_makervalue
void
canon1_offset_makervalue(FILE *inptr,unsigned short byteorder,
    struct ifd_entry *entry_ptr,unsigned long fileoffset_base,
    struct image_summary *summary_entry,char *parent_name,char*prefix,
    int indent,int make,int model,int at_offset)
{
    unsigned long value_offset;
    unsigned long count;
    unsigned long max_offset = 0;
    unsigned long filesize = 0UL;
    unsigned short marker;
    char *nameoftag,*tagprefix;
    char *fulldirname = NULL;
    int status = 0;
    int chpr = 0;

    if(entry_ptr)
    {
        nameoftag = maker_tagname(entry_ptr->tag,make,model); 
        fulldirname = splice(parent_name,".",nameoftag);
        value_offset = fileoffset_base + entry_ptr->value;
        count = entry_ptr->count;
        filesize = get_filesize(inptr);

        switch(entry_ptr->tag)
        {
            case 0x0001:    /* Camera Settings                        */
                if(at_offset)
                {
                    if((PRINT_SECTION))
                    {
                        print_tag_address(SECTION,value_offset,indent,prefix);
                        chpr += printf("<%s> ",nameoftag);
                        chpr += printf("%lu entries",entry_ptr->count - 1);
                    }
                }
                else if((PRINT_VALUE))
                    chpr += printf("\'%lu entries\'",entry_ptr->count - 1);
                if((PRINT_LONGNAMES))
                    tagprefix = fulldirname;
                else
                    tagprefix = nameoftag;
                setcharsprinted(chpr);
                chpr = 0;
                (void)canon_camera_settings(inptr,byteorder,tagprefix,value_offset,
                                        entry_ptr->count * sizeof(unsigned short),
                                                            indent + MEDIUMINDENT);
                if(PRINT_SECTION)
                {
                    print_tag_address(SECTION,value_offset + (entry_ptr->count * 2) - 1,
                                                            indent,prefix);
                    chpr += printf("</%s> ",nameoftag);
                }
                break;
            case 0x0002:    /* Focus Info                             */
               if(at_offset)
                {
                    if((PRINT_SECTION))
                    {
                        print_tag_address(SECTION,value_offset,indent,prefix);
                        chpr += printf("<%s> ",nameoftag);
                        chpr += printf("%lu entries",entry_ptr->count);
                    }
                }
                else if((PRINT_VALUE))
                    chpr += printf("\'%lu entries\'",entry_ptr->count);
                if((PRINT_LONGNAMES))
                    tagprefix = fulldirname;
                else
                    tagprefix = nameoftag;
                setcharsprinted(chpr);
                chpr = 0;
                (void)canon_focusinfo(inptr,byteorder,tagprefix,value_offset,
                                    entry_ptr->count * sizeof(unsigned short),
                                                            indent + MEDIUMINDENT);
                if(PRINT_SECTION)
                {
                    print_tag_address(SECTION,value_offset + (entry_ptr->count * 2) - 1,
                                                            indent,prefix);
                    chpr += printf("</%s> ",nameoftag);
                }
                break; 
            case 0x0004:    /* Shot Info                              */
                if(at_offset)
                {
                    if((PRINT_SECTION))
                    {
                        print_tag_address(SECTION,value_offset,indent,prefix);
                        chpr += printf("<%s> ",nameoftag);
                        chpr += printf("%lu entries",entry_ptr->count - 1);
                    }
                }
                else if((PRINT_VALUE))
                    chpr += printf("\'%lu entries\'",entry_ptr->count - 1);
                if((PRINT_LONGNAMES))
                    tagprefix = fulldirname;
                else
                    tagprefix = nameoftag;
                setcharsprinted(chpr);
                chpr = 0;
                (void)canon_shotinfo(inptr,byteorder,tagprefix,value_offset,
                                    entry_ptr->count * sizeof(unsigned short),
                                                        indent + MEDIUMINDENT);
                if(PRINT_SECTION)
                {
                    print_tag_address(SECTION,value_offset + (entry_ptr->count * 2) - 1,
                                                            indent,prefix);
                    chpr += printf("</%s> ",nameoftag);
                }
                break;
            case 0x0090:    /* Custom Functions                       */
            case 0x000F:    /* Custom Functions                       */
                if(at_offset)
                {
                    if((PRINT_SECTION))
                    {
                        print_tag_address(SECTION,value_offset,indent,prefix);
                        chpr += printf("<%s> ",nameoftag);
                        chpr += printf("%lu entries",entry_ptr->count - 1);
                    }
                }
                else if((PRINT_VALUE))
                    chpr += printf("\'%lu entries\'",entry_ptr->count - 1);
                if((PRINT_LONGNAMES))
                    tagprefix = fulldirname;
                else
                    tagprefix = nameoftag;
                setcharsprinted(chpr);
                chpr = 0;
                (void)canon_customfunctions(inptr,byteorder,tagprefix,value_offset,
                                        entry_ptr->count * sizeof(unsigned short),
                                        model,indent + MEDIUMINDENT);
                if(PRINT_SECTION)
                {
                    print_tag_address(SECTION,value_offset + (entry_ptr->count * 2) - 1,
                                    indent,prefix);
                    chpr += printf("</%s> ",nameoftag);
                }
                break;
            case 0x00E0:    /* Sensor Info                            */
                if(at_offset)
                {
                    if((PRINT_SECTION))
                    {
                        print_tag_address(SECTION,value_offset,indent,prefix);
                        chpr += printf("<%s> ",nameoftag);
                        chpr += printf("%lu entries",entry_ptr->count - 1);
                    }
                }
                else if((PRINT_VALUE))
                    chpr += printf("\'%lu entries\'",entry_ptr->count - 1);
                if((PRINT_LONGNAMES))
                    tagprefix = fulldirname;
                else
                    tagprefix = nameoftag;
                setcharsprinted(chpr);
                chpr = 0;
                (void)canon_sensorinfo(inptr,byteorder,tagprefix,value_offset,
                                    entry_ptr->count * sizeof(unsigned short),
                                    indent + MEDIUMINDENT);
                if(PRINT_SECTION)
                {
                    print_tag_address(SECTION,value_offset + (entry_ptr->count * 2) - 1,
                                                            indent,prefix);
                    chpr += printf("</%s> ",nameoftag);
                }
                break;
            case 0x0012:    /* Picture Info                           */
                if(at_offset)
                {
                    if((PRINT_SECTION))
                    {
                        print_tag_address(SECTION,value_offset,indent,prefix);
                        chpr += printf("<%s> ",nameoftag);
                        chpr += printf("%lu entries",entry_ptr->count - 1);
                    }
                }
                else if((PRINT_VALUE))
                    chpr += printf("\'%lu entries\'",entry_ptr->count - 1);
                if((PRINT_LONGNAMES))
                    tagprefix = fulldirname;
                else
                    tagprefix = nameoftag;
                setcharsprinted(chpr);
                chpr = 0;
                (void)canon_pictureinfo(inptr,byteorder,tagprefix,value_offset,
                                    entry_ptr->count * sizeof(unsigned short),
                                    indent + MEDIUMINDENT);
                if(PRINT_SECTION)
                {
                    print_tag_address(SECTION,value_offset + (entry_ptr->count * 2) - 1,
                                        indent,prefix);
                    chpr += printf("</%s> ",nameoftag);
                }
                break;
            case 0x0081:    /* JPEG image offset                      */
                if(at_offset && (PRINT_SECTION))
                {
                    print_tag_address(VALUE_AT_OFFSET,value_offset,indent,prefix);
                    chpr += printf("# Start of JPEG image from MakerNote");
                }
                else if(!at_offset && (PRINT_VALUE))
                {
                    if(!(PRINT_OFFSET))
                        chpr += printf("@%lu",value_offset);
                }
                if((PRINT_SECTION) || (PRINT_SEGMENT))
                    chpr = newline(chpr);
                marker = read_ushort(inptr,TIFF_MOTOROLA,value_offset);
                max_offset = process_jpeg_segments(inptr,value_offset,marker,
                                    0,summary_entry,fulldirname,
                                    prefix,indent+SMALLINDENT);
                if(at_offset)
                {
                    if((PRINT_SECTION))
                    {
                        if(max_offset == 0UL)
                            max_offset = filesize;
                        if(max_offset)
                        {
                            if((status = jpeg_status(0)) == JPEG_EARLY_EOI)
                                chpr = newline(chpr);
                            jpeg_status(status);
                            print_tag_address(VALUE_AT_OFFSET,max_offset - 1,indent,"-");
                            chpr += printf("# End of JPEG image from MakerNote");
                            chpr += printf(" length %lu",max_offset - value_offset); 
                        }
                        if(!(PRINT_VALUE) && (status == JPEG_NO_ERROR))
                            chpr = newline(chpr);
                    }
                }
                print_jpeg_status();
                if(marker && summary_entry)
                { 
                    /* The new one is on the end of the chain         */
                    if((summary_entry = last_summary_entry(summary_entry)))
                    {
                        summary_entry->filesubformat |= FILESUBFMT_MNOTE;
                        summary_entry->datatype = MAKER_IFD;
                        if((summary_entry->compression == JPEG_SOF_3) && (max_offset == 0))
                            summary_entry->length = filesize - value_offset;
                    }
                }
                clearerr(inptr);
                break;
            case 0x009a:    /* AspectInfo                      */
                if(at_offset)
                {
                    if((PRINT_SECTION))
                    {
                        print_tag_address(SECTION,value_offset,indent,prefix);
                        chpr += printf("<%s> ",nameoftag);
                        chpr += printf("%lu entries",entry_ptr->count - 1);
                    }
                }
                else if((PRINT_VALUE))
                    chpr += printf("\'%lu entries\'",entry_ptr->count - 1);
                if((PRINT_LONGNAMES))
                    tagprefix = fulldirname;
                else
                    tagprefix = nameoftag;
                setcharsprinted(chpr);
                chpr = 0;
                (void)canon_aspectinfo(inptr,byteorder,tagprefix,value_offset,
                                    entry_ptr->count * sizeof(long),
                                    indent + MEDIUMINDENT);
                if(PRINT_SECTION)
                {
                    print_tag_address(SECTION,value_offset + (entry_ptr->count * 2) - 1,
                                                            indent,prefix);
                    chpr += printf("</%s> ",nameoftag);
                }
                break;

            default:
                print_generic_offset_makervalue(inptr,byteorder,entry_ptr,fileoffset_base,
                                                fulldirname,prefix,indent,
                                                make,model,at_offset);
                break;
        }
        if(fulldirname)
            free(fulldirname);
    }
    setcharsprinted(chpr);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
testq %rdx, %rdx
je 0x359ef
movq %r9, %r14
movq %rcx, %r15
movq %rdx, %r13
movq %r8, 0x38(%rsp)
movl %esi, 0x4(%rsp)
movq %rdi, %rbx
movl 0xa0(%rsp), %eax
movq %rax, 0x28(%rsp)
movl 0x98(%rsp), %ebp
movl 0x90(%rsp), %r12d
movl 0x88(%rsp), %eax
movq %rax, 0x18(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x20(%rsp)
movzwl (%rdx), %edi
movl %r12d, %esi
movl %ebp, %edx
callq 0x1c020
leaq 0xc049(%rip), %rsi      # 0x41997
movq %r14, %rdi
movq %rax, %r14
movq %rax, %rdx
callq 0x17a47
movq %rax, 0x8(%rsp)
movq 0x10(%r13), %rax
addq %r15, %rax
movq %rax, 0x10(%rsp)
movq %rbx, 0x30(%rsp)
movq %rbx, %rdi
callq 0x5131
movzwl (%r13), %ecx
cmpl $0x11, %ecx
jle 0x359f6
cmpl $0x8f, %ecx
jle 0x35a8d
cmpl $0x90, %ecx
movq %r14, %rbx
je 0x35a5d
cmpl $0x9a, %ecx
je 0x35ba3
cmpl $0xe0, %ecx
jne 0x35bd6
leaq 0x227c2(%rip), %rax     # 0x58180
movq (%rax), %rax
cmpl $0x0, 0x28(%rsp)
je 0x35e49
btl $0x12, %eax
movq 0x8(%rsp), %r15
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rbp
jb 0x36167
movq %rbp, %r12
xorl %edi, %edi
jmp 0x361ab
xorl %ebp, %ebp
jmp 0x36373
cmpl $0x3, %ecx
jg 0x35a48
cmpl $0x1, %ecx
movq %r14, %rbx
je 0x35afd
cmpl $0x2, %ecx
jne 0x35bd6
leaq 0x22769(%rip), %rax     # 0x58180
movq (%rax), %rax
cmpl $0x0, 0x28(%rsp)
je 0x35c84
btl $0x12, %eax
movq 0x8(%rsp), %r15
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rbp
jb 0x35ea5
movq %rbp, %r12
xorl %edi, %edi
jmp 0x35ee6
cmpl $0x4, %ecx
movq %r14, %rbx
je 0x35b35
cmpl $0xf, %ecx
jne 0x35bd6
leaq 0x2271c(%rip), %r15     # 0x58180
movq (%r15), %rax
cmpl $0x0, 0x28(%rsp)
je 0x35c0c
btl $0x12, %eax
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rbp
jb 0x35c3a
xorl %edi, %edi
jmp 0x35c7a
cmpl $0x12, %ecx
je 0x35b6d
cmpl $0x81, %ecx
jne 0x35bd6
leaq 0x226d7(%rip), %r13     # 0x58180
movq (%r13), %rdx
cmpl $0x0, 0x28(%rsp)
movq %rax, 0x40(%rsp)
je 0x35caf
btl $0x12, %edx
movq 0x8(%rsp), %r14
movq 0x38(%rsp), %r12
jae 0x35ce3
movl $0x1000000, %edi        # imm = 0x1000000
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %rcx
callq 0x5605
leaq 0x17205(%rip), %rdi     # 0x4ccf6
xorl %eax, %eax
callq 0x3120
jmp 0x35cdf
leaq 0x2267c(%rip), %rax     # 0x58180
movq (%rax), %rax
cmpl $0x0, 0x28(%rsp)
je 0x35dbf
btl $0x12, %eax
movq 0x8(%rsp), %r15
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rbp
jb 0x35fd1
movq %rbp, %r12
xorl %edi, %edi
jmp 0x36015
leaq 0x22644(%rip), %rax     # 0x58180
movq (%rax), %rax
cmpl $0x0, 0x28(%rsp)
je 0x35ded
btl $0x12, %eax
movq 0x8(%rsp), %r15
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rbp
jb 0x3605a
movq %rbp, %r12
xorl %edi, %edi
jmp 0x3609e
movq %r14, %rbx
leaq 0x22609(%rip), %r15     # 0x58180
movq (%r15), %rax
cmpl $0x0, 0x28(%rsp)
je 0x35e1b
btl $0x12, %eax
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rbp
jb 0x360e3
movq %rbp, %r12
xorl %edi, %edi
jmp 0x36127
leaq 0x225d6(%rip), %r15     # 0x58180
movq (%r15), %rax
cmpl $0x0, 0x28(%rsp)
je 0x35e77
btl $0x12, %eax
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rbp
jb 0x36221
movq %rbp, %r12
xorl %edi, %edi
jmp 0x36265
movzwl 0x4(%rsp), %esi
movq 0x30(%rsp), %rdi
movq %r13, %rdx
movq %r15, %rcx
movq 0x8(%rsp), %r14
movq %r14, %r8
movq 0x20(%rsp), %r9
pushq 0x28(%rsp)
pushq %rbp
pushq %r12
pushq 0x30(%rsp)
callq 0x191ac
addq $0x20, %rsp
jmp 0x362a8
testb $0x30, %al
movq 0x8(%rsp), %r14
movq 0x18(%rsp), %rbp
je 0x362e4
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x170bc(%rip), %rdi     # 0x4cce8
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x362e6
movl $0x40000, %edi          # imm = 0x40000
movl %ebp, %edx
movq 0x20(%rsp), %rcx
callq 0x5605
leaq 0x15faa(%rip), %rdi     # 0x4bbfc
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x13d81(%rip), %rdi     # 0x499ed
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addl %ebx, %edi
movq %r14, %rbx
movq 0x8(%rsp), %rax
jmp 0x362e9
testb $0x30, %al
movq 0x8(%rsp), %r14
movq 0x18(%rsp), %r12
je 0x36388
movq 0x8(%r13), %rsi
leaq 0x17047(%rip), %rdi     # 0x4cce8
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x35ee9
testb $0x30, %dl
sete %cl
testl $0x300, %edx            # imm = 0x300
setne %al
orb %cl, %al
movq 0x8(%rsp), %r14
movq 0x38(%rsp), %r12
jne 0x35ce3
leaq 0x12b19(%rip), %rdi     # 0x487ec
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
jmp 0x35ce5
xorl %ebp, %ebp
testb $0xc, 0x2(%r13)
je 0x35cf5
movl %ebp, %edi
callq 0x16b56
movl %eax, %ebp
movq 0x30(%rsp), %rbx
movq %rbx, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq 0x10(%rsp), %r15
movq %r15, %rdx
callq 0x4574
movl %eax, %ecx
movq 0x18(%rsp), %rax
addl $0x2, %eax
movw %cx, 0x4(%rsp)
movzwl %cx, %edx
movq %rbx, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
movq %r12, %r8
movq %r14, %r9
pushq %rax
pushq 0x28(%rsp)
callq 0x112cd
addq $0x10, %rsp
movq %rax, %r15
cmpl $0x0, 0x28(%rsp)
je 0x35d52
testb $0x4, 0x2(%r13)
jne 0x35f2b
movq 0x30(%rsp), %rbx
movzwl 0x4(%rsp), %r13d
xorl %eax, %eax
callq 0x9609
testw %r13w, %r13w
sete %al
testq %r12, %r12
sete %cl
orb %al, %cl
jne 0x35db2
movq %r12, %rdi
callq 0xfdaa
testq %rax, %rax
je 0x35db2
orb $0x1, 0x19(%rax)
movl $0x5, 0x118(%rax)
cmpl $0xffc3, 0xc8(%rax)     # imm = 0xFFC3
jne 0x35db2
testq %r15, %r15
jne 0x35db2
movq 0x40(%rsp), %rcx
subq 0x10(%rsp), %rcx
movq %rcx, 0x98(%rax)
movq %rbx, %rdi
callq 0x31b0
jmp 0x36366
testb $0x30, %al
movq 0x8(%rsp), %r14
movq 0x18(%rsp), %r12
je 0x3638f
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x16f09(%rip), %rdi     # 0x4cce8
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x36018
testb $0x30, %al
movq 0x8(%rsp), %r14
movq 0x18(%rsp), %r12
je 0x36396
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x16edb(%rip), %rdi     # 0x4cce8
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x360a1
testb $0x30, %al
movq 0x8(%rsp), %r14
movq 0x18(%rsp), %r12
je 0x3639d
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x16ead(%rip), %rdi     # 0x4cce8
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x3612c
testb $0x30, %al
movq 0x8(%rsp), %r14
movq 0x18(%rsp), %r12
je 0x363a4
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x16e7f(%rip), %rdi     # 0x4cce8
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x361ae
testb $0x30, %al
movq 0x8(%rsp), %r14
movq 0x18(%rsp), %r12
je 0x363ab
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x16e51(%rip), %rdi     # 0x4cce8
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x3626a
movl $0x40000, %edi          # imm = 0x40000
movq %rbp, %r12
movq %rbp, %rdx
movq 0x20(%rsp), %rcx
callq 0x5605
leaq 0x15d3b(%rip), %rdi     # 0x4bbfc
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
movq 0x8(%r13), %rsi
leaq 0x13b15(%rip), %rdi     # 0x499ed
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addl %ebx, %edi
movq %r14, %rbx
movq %r15, %r14
leaq 0x22290(%rip), %rbp     # 0x58180
testb $0x40, (%rbp)
movq %rbx, %r15
cmovneq %r14, %rbx
callq 0x17530
movq 0x8(%r13), %r8
addq %r8, %r8
leal 0x4(%r12), %r9d
movzwl 0x4(%rsp), %esi
movq 0x30(%rsp), %rdi
movq %rbx, %rdx
movq 0x10(%rsp), %rbx
movq %rbx, %rcx
callq 0x374ec
jmp 0x361eb
testq %r15, %r15
cmoveq 0x40(%rsp), %r15
movq %r15, 0x28(%rsp)
testq %r15, %r15
movq 0x30(%rsp), %rbx
je 0x363b2
xorl %edi, %edi
callq 0x12f15
movl %eax, %r15d
cmpl $0x1, %eax
jne 0x35f5f
movl %ebp, %edi
callq 0x16b56
movl %eax, %ebp
movl %r15d, %edi
callq 0x12f15
movq 0x28(%rsp), %r14
leaq -0x1(%r14), %rsi
leaq 0xb182(%rip), %rcx      # 0x410f9
movl $0x1000000, %edi        # imm = 0x1000000
movq 0x18(%rsp), %rdx
callq 0x5605
leaq 0x16d8e(%rip), %rdi     # 0x4cd1b
xorl %eax, %eax
callq 0x3120
movl %eax, %r12d
addl %ebp, %r12d
movq %r14, %rsi
subq 0x10(%rsp), %rsi
leaq 0x12771(%rip), %rdi     # 0x4871a
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r12d, %ebp
testl %r15d, %r15d
sete %al
movq 0x8(%rsp), %r14
movq 0x38(%rsp), %r12
leaq 0x221b4(%rip), %r13     # 0x58180
jmp 0x363b4
movl $0x40000, %edi          # imm = 0x40000
movq %rbp, %r12
movq %rbp, %rdx
movq 0x20(%rsp), %rcx
callq 0x5605
leaq 0x15c0f(%rip), %rdi     # 0x4bbfc
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x139e6(%rip), %rdi     # 0x499ed
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addl %ebx, %edi
movq %r14, %rbx
movq %r15, %r14
leaq 0x22161(%rip), %rbp     # 0x58180
testb $0x40, (%rbp)
movq %rbx, %r15
cmovneq %r14, %rbx
callq 0x17530
movq 0x8(%r13), %r8
addq %r8, %r8
leal 0x4(%r12), %r9d
movzwl 0x4(%rsp), %esi
movq 0x30(%rsp), %rdi
movq %rbx, %rdx
movq 0x10(%rsp), %rbx
movq %rbx, %rcx
callq 0x363e2
jmp 0x361eb
movl $0x40000, %edi          # imm = 0x40000
movq %rbp, %r12
movq %rbp, %rdx
movq 0x20(%rsp), %rcx
callq 0x5605
leaq 0x15b86(%rip), %rdi     # 0x4bbfc
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x1395d(%rip), %rdi     # 0x499ed
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addl %ebx, %edi
movq %r14, %rbx
movq %r15, %r14
leaq 0x220d8(%rip), %rbp     # 0x58180
testb $0x40, (%rbp)
movq %rbx, %r15
cmovneq %r14, %rbx
callq 0x17530
movq 0x8(%r13), %r8
addq %r8, %r8
leal 0x4(%r12), %r9d
movzwl 0x4(%rsp), %esi
movq 0x30(%rsp), %rdi
movq %rbx, %rdx
movq 0x10(%rsp), %rbx
movq %rbx, %rcx
callq 0x376d4
jmp 0x361eb
movl $0x40000, %edi          # imm = 0x40000
movq %rbp, %r12
movq %rbp, %rdx
movq 0x20(%rsp), %rcx
callq 0x5605
leaq 0x15afd(%rip), %rdi     # 0x4bbfc
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x138d4(%rip), %rdi     # 0x499ed
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addl %ebx, %edi
movq %r14, %rbx
movq 0x8(%rsp), %r14
testb $0x40, (%r15)
movq %rbx, %rbp
cmovneq %r14, %rbx
callq 0x17530
movq 0x8(%r13), %r8
addq %r8, %r8
leal 0x4(%r12), %r9d
movzwl 0x4(%rsp), %esi
movq 0x30(%rsp), %rdi
movq %rbx, %rdx
movq 0x10(%rsp), %rbx
movq %rbx, %rcx
callq 0x38308
jmp 0x362a1
movl $0x40000, %edi          # imm = 0x40000
movq %rbp, %r12
movq %rbp, %rdx
movq 0x20(%rsp), %rcx
callq 0x5605
leaq 0x15a79(%rip), %rdi     # 0x4bbfc
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x13850(%rip), %rdi     # 0x499ed
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addl %ebx, %edi
movq %r14, %rbx
movq %r15, %r14
leaq 0x21fcb(%rip), %rbp     # 0x58180
testb $0x40, (%rbp)
movq %rbx, %r15
cmovneq %r14, %rbx
callq 0x17530
movq 0x8(%r13), %r8
addq %r8, %r8
leal 0x4(%r12), %r9d
movzwl 0x4(%rsp), %esi
movq 0x30(%rsp), %rdi
movq %rbx, %rdx
movq 0x10(%rsp), %rbx
movq %rbx, %rcx
callq 0x37fb6
testb $0x4, 0x2(%rbp)
je 0x362a8
movq 0x8(%r13), %rax
leaq (%rbx,%rax,2), %rsi
decq %rsi
movl $0x40000, %edi          # imm = 0x40000
movl %r12d, %edx
movq 0x20(%rsp), %rcx
callq 0x5605
leaq 0x159e9(%rip), %rdi     # 0x4bc02
movq %r15, %rsi
jmp 0x362d6
movl $0x40000, %edi          # imm = 0x40000
movq %rbp, %r12
movq %rbp, %rdx
movq 0x20(%rsp), %rcx
callq 0x5605
leaq 0x159bf(%rip), %rdi     # 0x4bbfc
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x13796(%rip), %rdi     # 0x499ed
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addl %ebx, %edi
movq %r14, %rbx
movq 0x8(%rsp), %r14
testb $0x40, (%r15)
movq %rbx, %rbp
cmovneq %r14, %rbx
callq 0x17530
movq 0x8(%r13), %r8
shlq $0x3, %r8
leal 0x4(%r12), %r9d
movzwl 0x4(%rsp), %esi
movq 0x30(%rsp), %rdi
movq %rbx, %rdx
movq 0x10(%rsp), %rbx
movq %rbx, %rcx
callq 0x385a6
testb $0x4, 0x2(%r15)
jne 0x362af
xorl %ebp, %ebp
jmp 0x36366
movq 0x8(%r13), %rax
leaq (%rbx,%rax,2), %rsi
decq %rsi
movl $0x40000, %edi          # imm = 0x40000
movl %r12d, %edx
movq 0x20(%rsp), %rcx
callq 0x5605
leaq 0x1592f(%rip), %rdi     # 0x4bc02
movq %rbp, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
jmp 0x36366
xorl %edi, %edi
movq %r14, %rax
testb $0x40, (%r15)
movq %rbx, %r14
movq %rax, %r12
cmovneq %rax, %rbx
callq 0x17530
movq 0x8(%r13), %r8
addq %r8, %r8
leal 0x4(%rbp), %eax
subq $0x8, %rsp
movzwl 0xc(%rsp), %esi
movq 0x38(%rsp), %rdi
movq %rbx, %rdx
movq 0x18(%rsp), %rbx
movq %rbx, %rcx
pushq %rax
callq 0x37eb7
addq $0x10, %rsp
testb $0x4, 0x2(%r15)
jne 0x36334
xorl %ebp, %ebp
jmp 0x36363
movq 0x8(%r13), %rax
leaq (%rbx,%rax,2), %rsi
decq %rsi
movl $0x40000, %edi          # imm = 0x40000
movl %ebp, %edx
movq 0x20(%rsp), %rcx
callq 0x5605
leaq 0x158ab(%rip), %rdi     # 0x4bc02
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
movq %r12, %r14
testq %r14, %r14
je 0x36373
movq %r14, %rdi
callq 0x3050
movl %ebp, %edi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17530
xorl %edi, %edi
jmp 0x35ee9
xorl %edi, %edi
jmp 0x36018
xorl %edi, %edi
jmp 0x360a1
xorl %edi, %edi
jmp 0x3612c
xorl %edi, %edi
jmp 0x361ae
xorl %edi, %edi
jmp 0x3626a
movb $0x1, %al
testb %al, %al
je 0x363d8
movq (%r13), %rax
andl $0x30, %eax
movq 0x28(%rsp), %r15
jne 0x35d57
movl %ebp, %edi
callq 0x16b56
movl %eax, %ebp
jmp 0x35d57
movq 0x28(%rsp), %r15
jmp 0x35d57