// File: /workspace/github_c_makefile_star2_O3/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 0x3627d
movq %r9, %r14
movq %rcx, %r15
movq %rdx, %r13
movq %r8, 0x38(%rsp)
movl %esi, 0xc(%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 0x1c518
leaq 0xb7b9(%rip), %rsi      # 0x41997
movq %r14, %rdi
movq %rax, %r14
movq %rax, %rdx
callq 0x17f99
movq %rax, (%rsp)
movq 0x10(%r13), %rax
addq %r15, %rax
movq %rax, 0x10(%rsp)
movq %rbx, 0x30(%rsp)
movq %rbx, %rdi
callq 0x50f3
movzwl (%r13), %ecx
cmpl $0x11, %ecx
jle 0x36284
cmpl $0x8f, %ecx
jle 0x3631a
cmpl $0x90, %ecx
movq %r14, %rbx
je 0x362ea
cmpl $0x9a, %ecx
je 0x3642d
cmpl $0xe0, %ecx
jne 0x36460
leaq 0x21f33(%rip), %rax     # 0x58180
movq (%rax), %rax
cmpl $0x0, 0x28(%rsp)
je 0x366ca
btl $0x12, %eax
movq (%rsp), %r15
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rbp
jb 0x369e3
movq %rbp, %r12
xorl %edi, %edi
jmp 0x36a27
xorl %ebp, %ebp
jmp 0x36bee
cmpl $0x3, %ecx
jg 0x362d5
cmpl $0x1, %ecx
movq %r14, %rbx
je 0x36389
cmpl $0x2, %ecx
jne 0x36460
leaq 0x21edb(%rip), %rax     # 0x58180
movq (%rax), %rax
cmpl $0x0, 0x28(%rsp)
je 0x3650b
btl $0x12, %eax
movq (%rsp), %r15
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rbp
jb 0x36724
movq %rbp, %r12
xorl %edi, %edi
jmp 0x36765
cmpl $0x4, %ecx
movq %r14, %rbx
je 0x363c0
cmpl $0xf, %ecx
jne 0x36460
leaq 0x21e8f(%rip), %r15     # 0x58180
movq (%r15), %rax
cmpl $0x0, 0x28(%rsp)
je 0x36495
btl $0x12, %eax
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rbp
jb 0x364c2
xorl %edi, %edi
jmp 0x36502
cmpl $0x12, %ecx
je 0x363f7
cmpl $0x81, %ecx
jne 0x36460
leaq 0x21e4a(%rip), %r13     # 0x58180
movq (%r13), %rdx
cmpl $0x0, 0x28(%rsp)
movq %rax, 0x40(%rsp)
je 0x36535
btl $0x12, %edx
movq (%rsp), %r14
movq 0x38(%rsp), %r12
jae 0x36568
movl $0x1000000, %edi        # imm = 0x1000000
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %rcx
callq 0x55eb
leaq 0x169b9(%rip), %rdi     # 0x4cd36
xorl %eax, %eax
callq 0x3120
jmp 0x36564
leaq 0x21df0(%rip), %rax     # 0x58180
movq (%rax), %rax
cmpl $0x0, 0x28(%rsp)
je 0x36643
btl $0x12, %eax
movq (%rsp), %r15
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rbp
jb 0x3684e
movq %rbp, %r12
xorl %edi, %edi
jmp 0x36892
leaq 0x21db9(%rip), %rax     # 0x58180
movq (%rax), %rax
cmpl $0x0, 0x28(%rsp)
je 0x36670
btl $0x12, %eax
movq (%rsp), %r15
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rbp
jb 0x368d7
movq %rbp, %r12
xorl %edi, %edi
jmp 0x3691b
movq %r14, %rbx
leaq 0x21d7f(%rip), %r15     # 0x58180
movq (%r15), %rax
cmpl $0x0, 0x28(%rsp)
je 0x3669d
btl $0x12, %eax
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rbp
jb 0x36960
movq %rbp, %r12
xorl %edi, %edi
jmp 0x369a4
leaq 0x21d4c(%rip), %r15     # 0x58180
movq (%r15), %rax
cmpl $0x0, 0x28(%rsp)
je 0x366f7
btl $0x12, %eax
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rbp
jb 0x36a9d
movq %rbp, %r12
xorl %edi, %edi
jmp 0x36ae1
movzwl 0xc(%rsp), %esi
movq 0x30(%rsp), %rdi
movq %r13, %rdx
movq %r15, %rcx
movq (%rsp), %r14
movq %r14, %r8
movq 0x20(%rsp), %r9
pushq 0x28(%rsp)
pushq %rbp
pushq %r12
pushq 0x30(%rsp)
callq 0x19706
addq $0x20, %rsp
jmp 0x36b23
testb $0x30, %al
movq (%rsp), %r14
movq 0x18(%rsp), %rbp
je 0x36b5f
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x16874(%rip), %rdi     # 0x4cd28
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x36b61
movl $0x40000, %edi          # imm = 0x40000
movl %ebp, %edx
movq 0x20(%rsp), %rcx
callq 0x55eb
leaq 0x15762(%rip), %rdi     # 0x4bc3c
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x13539(%rip), %rdi     # 0x49a2d
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addl %ebx, %edi
movq %r14, %rbx
movq (%rsp), %rax
jmp 0x36b64
testb $0x30, %al
movq (%rsp), %r14
movq 0x18(%rsp), %r12
je 0x36c03
movq 0x8(%r13), %rsi
leaq 0x16801(%rip), %rdi     # 0x4cd28
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x36768
testb $0x30, %dl
sete %cl
testl $0x300, %edx            # imm = 0x300
setne %al
orb %cl, %al
movq (%rsp), %r14
movq 0x38(%rsp), %r12
jne 0x36568
leaq 0x122d4(%rip), %rdi     # 0x4882c
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
jmp 0x3656a
xorl %ebp, %ebp
testb $0xc, 0x2(%r13)
je 0x3657a
movl %ebp, %edi
callq 0x1707a
movl %eax, %ebp
movq 0x30(%rsp), %rbx
movq %rbx, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq 0x10(%rsp), %r15
movq %r15, %rdx
callq 0x45af
movl %eax, %ecx
movq 0x18(%rsp), %rax
addl $0x2, %eax
movw %cx, 0xc(%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 0x11455
addq $0x10, %rsp
movq %rax, %r15
cmpl $0x0, 0x28(%rsp)
je 0x365da
movq (%r13), %rax
btl $0x12, %eax
jb 0x367aa
movq 0x30(%rsp), %rbx
xorl %eax, %eax
callq 0x9734
cmpw $0x0, 0xc(%rsp)
sete %al
testq %r12, %r12
sete %cl
orb %al, %cl
jne 0x36636
movq %r12, %rdi
callq 0xfed1
testq %rax, %rax
je 0x36636
orb $0x1, 0x19(%rax)
movl $0x5, 0x118(%rax)
cmpl $0xffc3, 0xc8(%rax)     # imm = 0xFFC3
jne 0x36636
testq %r15, %r15
jne 0x36636
movq 0x40(%rsp), %rcx
subq 0x10(%rsp), %rcx
movq %rcx, 0x98(%rax)
movq %rbx, %rdi
callq 0x31b0
jmp 0x36be1
testb $0x30, %al
movq (%rsp), %r14
movq 0x18(%rsp), %r12
je 0x36c0a
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x166c6(%rip), %rdi     # 0x4cd28
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x36895
testb $0x30, %al
movq (%rsp), %r14
movq 0x18(%rsp), %r12
je 0x36c11
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x16699(%rip), %rdi     # 0x4cd28
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x3691e
testb $0x30, %al
movq (%rsp), %r14
movq 0x18(%rsp), %r12
je 0x36c18
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x1666c(%rip), %rdi     # 0x4cd28
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x369a8
testb $0x30, %al
movq (%rsp), %r14
movq 0x18(%rsp), %r12
je 0x36c1f
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x1663f(%rip), %rdi     # 0x4cd28
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x36a2a
testb $0x30, %al
movq (%rsp), %r14
movq 0x18(%rsp), %r12
je 0x36c26
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x16612(%rip), %rdi     # 0x4cd28
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x36ae5
movl $0x40000, %edi          # imm = 0x40000
movq %rbp, %r12
movq %rbp, %rdx
movq 0x20(%rsp), %rcx
callq 0x55eb
leaq 0x154fc(%rip), %rdi     # 0x4bc3c
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
movq 0x8(%r13), %rsi
leaq 0x132d6(%rip), %rdi     # 0x49a2d
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addl %ebx, %edi
movq %r14, %rbx
movq %r15, %r14
leaq 0x21a11(%rip), %rbp     # 0x58180
testb $0x40, (%rbp)
movq %rbx, %r15
cmovneq %r14, %rbx
callq 0x17a82
movq 0x8(%r13), %r8
addq %r8, %r8
leal 0x4(%r12), %r9d
movzwl 0xc(%rsp), %esi
movq 0x30(%rsp), %rdi
movq %rbx, %rdx
movq 0x10(%rsp), %rbx
movq %rbx, %rcx
callq 0x37d79
jmp 0x36a67
testq %r15, %r15
cmoveq 0x40(%rsp), %r15
movq %r15, 0x28(%rsp)
testq %r15, %r15
movq 0x30(%rsp), %rbx
je 0x36c2d
movq %r13, %r14
xorl %edi, %edi
callq 0x1336d
movl %eax, %r15d
cmpl $0x1, %eax
jne 0x367e1
movl %ebp, %edi
callq 0x1707a
movl %eax, %ebp
movl %r15d, %edi
callq 0x1336d
movq 0x28(%rsp), %r13
leaq -0x1(%r13), %rsi
leaq 0xa900(%rip), %rcx      # 0x410f9
movl $0x1000000, %edi        # imm = 0x1000000
movq 0x18(%rsp), %rdx
callq 0x55eb
leaq 0x1654c(%rip), %rdi     # 0x4cd5b
xorl %eax, %eax
callq 0x3120
movl %eax, %r12d
addl %ebp, %r12d
movq %r13, %rsi
subq 0x10(%rsp), %rsi
leaq 0x11f2f(%rip), %rdi     # 0x4875a
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r12d, %ebp
testl %r15d, %r15d
sete %cl
movq (%r14), %rax
movq (%rsp), %r14
movq 0x38(%rsp), %r12
jmp 0x36c2f
movl $0x40000, %edi          # imm = 0x40000
movq %rbp, %r12
movq %rbp, %rdx
movq 0x20(%rsp), %rcx
callq 0x55eb
leaq 0x153d2(%rip), %rdi     # 0x4bc3c
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x131a9(%rip), %rdi     # 0x49a2d
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addl %ebx, %edi
movq %r14, %rbx
movq %r15, %r14
leaq 0x218e4(%rip), %rbp     # 0x58180
testb $0x40, (%rbp)
movq %rbx, %r15
cmovneq %r14, %rbx
callq 0x17a82
movq 0x8(%r13), %r8
addq %r8, %r8
leal 0x4(%r12), %r9d
movzwl 0xc(%rsp), %esi
movq 0x30(%rsp), %rdi
movq %rbx, %rdx
movq 0x10(%rsp), %rbx
movq %rbx, %rcx
callq 0x36c59
jmp 0x36a67
movl $0x40000, %edi          # imm = 0x40000
movq %rbp, %r12
movq %rbp, %rdx
movq 0x20(%rsp), %rcx
callq 0x55eb
leaq 0x15349(%rip), %rdi     # 0x4bc3c
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x13120(%rip), %rdi     # 0x49a2d
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addl %ebx, %edi
movq %r14, %rbx
movq %r15, %r14
leaq 0x2185b(%rip), %rbp     # 0x58180
testb $0x40, (%rbp)
movq %rbx, %r15
cmovneq %r14, %rbx
callq 0x17a82
movq 0x8(%r13), %r8
addq %r8, %r8
leal 0x4(%r12), %r9d
movzwl 0xc(%rsp), %esi
movq 0x30(%rsp), %rdi
movq %rbx, %rdx
movq 0x10(%rsp), %rbx
movq %rbx, %rcx
callq 0x37f63
jmp 0x36a67
movl $0x40000, %edi          # imm = 0x40000
movq %rbp, %r12
movq %rbp, %rdx
movq 0x20(%rsp), %rcx
callq 0x55eb
leaq 0x152c0(%rip), %rdi     # 0x4bc3c
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x13097(%rip), %rdi     # 0x49a2d
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addl %ebx, %edi
movq %r14, %rbx
movq (%rsp), %r14
testb $0x40, (%r15)
movq %rbx, %rbp
cmovneq %r14, %rbx
callq 0x17a82
movq 0x8(%r13), %r8
addq %r8, %r8
leal 0x4(%r12), %r9d
movzwl 0xc(%rsp), %esi
movq 0x30(%rsp), %rdi
movq %rbx, %rdx
movq 0x10(%rsp), %rbx
movq %rbx, %rcx
callq 0x38ba5
jmp 0x36b1c
movl $0x40000, %edi          # imm = 0x40000
movq %rbp, %r12
movq %rbp, %rdx
movq 0x20(%rsp), %rcx
callq 0x55eb
leaq 0x1523d(%rip), %rdi     # 0x4bc3c
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x13014(%rip), %rdi     # 0x49a2d
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addl %ebx, %edi
movq %r14, %rbx
movq %r15, %r14
leaq 0x2174f(%rip), %rbp     # 0x58180
testb $0x40, (%rbp)
movq %rbx, %r15
cmovneq %r14, %rbx
callq 0x17a82
movq 0x8(%r13), %r8
addq %r8, %r8
leal 0x4(%r12), %r9d
movzwl 0xc(%rsp), %esi
movq 0x30(%rsp), %rdi
movq %rbx, %rdx
movq 0x10(%rsp), %rbx
movq %rbx, %rcx
callq 0x38851
testb $0x4, 0x2(%rbp)
je 0x36b23
movq 0x8(%r13), %rax
leaq (%rbx,%rax,2), %rsi
decq %rsi
movl $0x40000, %edi          # imm = 0x40000
movl %r12d, %edx
movq 0x20(%rsp), %rcx
callq 0x55eb
leaq 0x151ad(%rip), %rdi     # 0x4bc42
movq %r15, %rsi
jmp 0x36b51
movl $0x40000, %edi          # imm = 0x40000
movq %rbp, %r12
movq %rbp, %rdx
movq 0x20(%rsp), %rcx
callq 0x55eb
leaq 0x15183(%rip), %rdi     # 0x4bc3c
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x12f5a(%rip), %rdi     # 0x49a2d
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addl %ebx, %edi
movq %r14, %rbx
movq (%rsp), %r14
testb $0x40, (%r15)
movq %rbx, %rbp
cmovneq %r14, %rbx
callq 0x17a82
movq 0x8(%r13), %r8
shlq $0x3, %r8
leal 0x4(%r12), %r9d
movzwl 0xc(%rsp), %esi
movq 0x30(%rsp), %rdi
movq %rbx, %rdx
movq 0x10(%rsp), %rbx
movq %rbx, %rcx
callq 0x38e45
testb $0x4, 0x2(%r15)
jne 0x36b2a
xorl %ebp, %ebp
jmp 0x36be1
movq 0x8(%r13), %rax
leaq (%rbx,%rax,2), %rsi
decq %rsi
movl $0x40000, %edi          # imm = 0x40000
movl %r12d, %edx
movq 0x20(%rsp), %rcx
callq 0x55eb
leaq 0x150f4(%rip), %rdi     # 0x4bc42
movq %rbp, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
jmp 0x36be1
xorl %edi, %edi
movq %r14, %rax
testb $0x40, (%r15)
movq %rbx, %r14
movq %rax, %r12
cmovneq %rax, %rbx
callq 0x17a82
movq 0x8(%r13), %r8
addq %r8, %r8
leal 0x4(%rbp), %eax
subq $0x8, %rsp
movzwl 0x14(%rsp), %esi
movq 0x38(%rsp), %rdi
movq %rbx, %rdx
movq 0x18(%rsp), %rbx
movq %rbx, %rcx
pushq %rax
callq 0x38752
addq $0x10, %rsp
testb $0x4, 0x2(%r15)
jne 0x36baf
xorl %ebp, %ebp
jmp 0x36bde
movq 0x8(%r13), %rax
leaq (%rbx,%rax,2), %rsi
decq %rsi
movl $0x40000, %edi          # imm = 0x40000
movl %ebp, %edx
movq 0x20(%rsp), %rcx
callq 0x55eb
leaq 0x15070(%rip), %rdi     # 0x4bc42
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
movq %r12, %r14
testq %r14, %r14
je 0x36bee
movq %r14, %rdi
callq 0x3050
movl %ebp, %edi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17a82
xorl %edi, %edi
jmp 0x36768
xorl %edi, %edi
jmp 0x36895
xorl %edi, %edi
jmp 0x3691e
xorl %edi, %edi
jmp 0x369a8
xorl %edi, %edi
jmp 0x36a2a
xorl %edi, %edi
jmp 0x36ae5
movb $0x1, %cl
testb %cl, %cl
je 0x36c4f
andl $0x30, %eax
movq 0x28(%rsp), %r15
jne 0x365df
movl %ebp, %edi
callq 0x1707a
movl %eax, %ebp
jmp 0x365df
movq 0x28(%rsp), %r15
jmp 0x365df