// File: /workspace/github_c_makefile_star2_O2/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 0x34811
movq %r9, %r14
movq %rcx, %rbx
movq %rdx, %r13
movq %r8, 0x40(%rsp)
movl %esi, 0x1c(%rsp)
movl 0xa0(%rsp), %eax
movq %rax, 0x28(%rsp)
movl 0x98(%rsp), %ebp
movq %rdi, %r15
movl 0x90(%rsp), %r12d
movl 0x88(%rsp), %eax
movq %rax, (%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x10(%rsp)
movzwl (%rdx), %edi
movl %r12d, %esi
movl %ebp, %edx
callq 0x1b2e4
leaq 0xb23b(%rip), %rsi      # 0x3f997
movq %r14, %rdi
movq %rax, 0x20(%rsp)
movq %rax, %rdx
callq 0x16f1d
movq %rax, %r14
movq 0x10(%r13), %rax
addq %rbx, %rax
movq %rax, 0x8(%rsp)
movq %r15, 0x30(%rsp)
movq %r15, %rdi
callq 0x4c6d
movzwl (%r13), %ecx
cmpl $0xe0, %ecx
je 0x348b1
cmpl $0x2, %ecx
je 0x34969
cmpl $0x4, %ecx
je 0x34936
cmpl $0xf, %ecx
je 0x34818
cmpl $0x12, %ecx
je 0x3487e
cmpl $0x81, %ecx
je 0x348e4
cmpl $0x90, %ecx
je 0x34818
cmpl $0x9a, %ecx
je 0x3484b
cmpl $0x1, %ecx
jne 0x3499c
leaq 0x2299b(%rip), %rbx     # 0x57180
movq (%rbx), %rax
cmpl $0x0, 0x28(%rsp)
je 0x34ae6
btl $0x12, %eax
movq %r14, %r15
movq 0x8(%rsp), %rsi
movq (%rsp), %rbp
jb 0x34df6
movq %rbp, %r12
jmp 0x34b0d
xorl %ebx, %ebx
jmp 0x35068
leaq 0x22961(%rip), %rbx     # 0x57180
movq (%rbx), %rax
cmpl $0x0, 0x28(%rsp)
je 0x349cd
btl $0x12, %eax
movq %r14, %r15
movq 0x8(%rsp), %rsi
movq (%rsp), %rbp
jb 0x349f5
movq %rbp, %r12
jmp 0x349f1
leaq 0x2292e(%rip), %rbx     # 0x57180
movq (%rbx), %rax
cmpl $0x0, 0x28(%rsp)
je 0x34a8a
btl $0x12, %eax
movq %r14, %r15
movq 0x8(%rsp), %rsi
movq (%rsp), %rbp
jb 0x34cd9
movq %rbp, %r12
jmp 0x34ab1
leaq 0x228fb(%rip), %rbx     # 0x57180
movq (%rbx), %rax
cmpl $0x0, 0x28(%rsp)
je 0x34ab8
btl $0x12, %eax
movq %r14, %r15
movq 0x8(%rsp), %rsi
movq (%rsp), %rbp
jb 0x34d68
movq %rbp, %r12
jmp 0x34adf
leaq 0x228c8(%rip), %rbx     # 0x57180
movq (%rbx), %rax
cmpl $0x0, 0x28(%rsp)
je 0x34b14
btl $0x12, %eax
movq %r14, %r15
movq 0x8(%rsp), %rsi
movq (%rsp), %rbp
jb 0x34e84
movq %rbp, %r12
jmp 0x34b3b
leaq 0x22895(%rip), %r15     # 0x57180
movq (%r15), %rdx
cmpl $0x0, 0x28(%rsp)
movq %rax, 0x38(%rsp)
je 0x34b42
btl $0x12, %edx
movq 0x8(%rsp), %r12
movq (%rsp), %rdx
jae 0x34b6e
movl $0x1000000, %edi        # imm = 0x1000000
movq %r12, %rsi
movq 0x10(%rsp), %rcx
callq 0x5100
leaq 0x163bc(%rip), %rdi     # 0x4ace6
xorl %eax, %eax
callq 0x3120
jmp 0x34b6a
leaq 0x22843(%rip), %rbx     # 0x57180
movq (%rbx), %rax
cmpl $0x0, 0x28(%rsp)
je 0x34c80
btl $0x12, %eax
movq %r14, %r15
movq 0x8(%rsp), %rsi
movq (%rsp), %rbp
jb 0x34f12
movq %rbp, %r12
jmp 0x34ca7
leaq 0x22810(%rip), %rbx     # 0x57180
movq (%rbx), %rax
cmpl $0x0, 0x28(%rsp)
je 0x34cae
btl $0x12, %eax
movq %r14, %r15
movq 0x8(%rsp), %rsi
movq (%rsp), %rbp
jb 0x34fa0
movq %rbp, %r12
jmp 0x34cd2
movzwl 0x1c(%rsp), %esi
movq 0x30(%rsp), %rdi
movq %r13, %rdx
movq %rbx, %rcx
movq %r14, %r8
movq 0x10(%rsp), %r9
pushq 0x28(%rsp)
pushq %rbp
pushq %r12
pushq 0x18(%rsp)
callq 0x185a8
addq $0x20, %rsp
jmp 0x3502c
testb $0x30, %al
movq %r14, %r15
movq (%rsp), %r12
je 0x349f1
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x162f2(%rip), %rdi     # 0x4acd8
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x34a3e
xorl %edi, %edi
jmp 0x34a3e
movl $0x40000, %edi          # imm = 0x40000
movq %rbp, %r12
movq %rbp, %rdx
movq 0x10(%rsp), %rcx
callq 0x5100
leaq 0x151db(%rip), %rdi     # 0x49bec
movq 0x20(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
movq %rbx, %r14
movl %eax, %ebx
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x12fad(%rip), %rdi     # 0x479dd
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addl %ebx, %edi
movq %r14, %rbx
testb $0x40, (%rbx)
movq %r15, %r14
movq %rbx, %rbp
movq %r15, %rbx
movq 0x20(%rsp), %r15
cmoveq %r15, %rbx
callq 0x16a4f
movq 0x8(%r13), %r8
addq %r8, %r8
leal 0x4(%r12), %eax
subq $0x8, %rsp
movzwl 0x24(%rsp), %esi
movq 0x38(%rsp), %rdi
movq %rbx, %rdx
movq 0x10(%rsp), %rbx
movq %rbx, %rcx
pushq %rax
callq 0x36a7a
popq %rcx
popq %rdx
jmp 0x35026
testb $0x30, %al
movq %r14, %r15
movq (%rsp), %r12
je 0x34ab1
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x16235(%rip), %rdi     # 0x4acd8
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x34d22
xorl %edi, %edi
jmp 0x34d22
testb $0x30, %al
movq %r14, %r15
movq (%rsp), %r12
je 0x34adf
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x16207(%rip), %rdi     # 0x4acd8
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x34db1
xorl %edi, %edi
jmp 0x34db1
testb $0x30, %al
movq %r14, %r15
movq (%rsp), %r12
je 0x34b0d
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x161d9(%rip), %rdi     # 0x4acd8
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x34e3f
xorl %edi, %edi
jmp 0x34e3f
testb $0x30, %al
movq %r14, %r15
movq (%rsp), %r12
je 0x34b3b
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x161ab(%rip), %rdi     # 0x4acd8
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x34ecd
xorl %edi, %edi
jmp 0x34ecd
testb $0x30, %dl
sete %cl
testw $0x300, %dx             # imm = 0x300
setne %al
orb %cl, %al
movq 0x8(%rsp), %r12
jne 0x34b6e
leaq 0x11c7c(%rip), %rdi     # 0x467dc
movq %r12, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
jmp 0x34b70
xorl %ebx, %ebx
testb $0xc, 0x2(%r15)
je 0x34b80
movl %ebx, %edi
callq 0x160f7
movl %eax, %ebx
movq 0x30(%rsp), %r15
movq %r15, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r12, %rdx
callq 0x416a
movq %r12, %rsi
movq %r15, %r12
movl %eax, %ebp
movq (%rsp), %rax
addl $0x2, %eax
movzwl %bp, %edx
movq %r15, %rdi
xorl %ecx, %ecx
movq 0x40(%rsp), %r15
movq %r15, %r8
movq %r14, %r9
pushq %rax
pushq 0x18(%rsp)
callq 0x105af
popq %rcx
popq %rdx
movq %rax, %r13
cmpl $0x0, 0x28(%rsp)
je 0x35091
leaq 0x225a8(%rip), %rax     # 0x57180
movq (%rax), %rax
btl $0x12, %eax
jae 0x35091
testq %r13, %r13
cmoveq 0x38(%rsp), %r13
testq %r13, %r13
je 0x3507d
xorl %edi, %edi
callq 0x1259b
movl %eax, %r12d
cmpl $0x1, %eax
jne 0x34c0f
movl %ebx, %edi
callq 0x160f7
movl %eax, %ebx
movl %r12d, %edi
callq 0x1259b
leaq -0x1(%r13), %rsi
leaq 0xa4d7(%rip), %rcx      # 0x3f0f9
movl $0x1000000, %edi        # imm = 0x1000000
movq (%rsp), %rdx
callq 0x5100
leaq 0x160d4(%rip), %rdi     # 0x4ad0b
xorl %eax, %eax
callq 0x3120
movl %r12d, 0x28(%rsp)
movl %eax, %r12d
addl %ebx, %r12d
movq %r13, %rsi
subq 0x8(%rsp), %rsi
leaq 0x11ab2(%rip), %rdi     # 0x4670a
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
addl %r12d, %ebx
cmpl $0x0, 0x28(%rsp)
sete %cl
leaq 0x2250d(%rip), %rax     # 0x57180
movq (%rax), %rax
movq 0x30(%rsp), %r12
jmp 0x3507f
testb $0x30, %al
movq %r14, %r15
movq (%rsp), %r12
je 0x34ca7
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x1603f(%rip), %rdi     # 0x4acd8
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x34f5b
xorl %edi, %edi
jmp 0x34f5b
testb $0x30, %al
movq %r14, %r15
movq (%rsp), %r12
je 0x34cd2
movq 0x8(%r13), %rsi
leaq 0x16014(%rip), %rdi     # 0x4acd8
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x34fe6
xorl %edi, %edi
jmp 0x34fe6
movl $0x40000, %edi          # imm = 0x40000
movq %rbp, %r12
movq %rbp, %rdx
movq 0x10(%rsp), %rcx
callq 0x5100
leaq 0x14ef7(%rip), %rdi     # 0x49bec
movq 0x20(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
movq %rbx, %r14
movl %eax, %ebx
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x12cc9(%rip), %rdi     # 0x479dd
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addl %ebx, %edi
movq %r14, %rbx
testb $0x40, (%rbx)
movq %r15, %r14
movq %rbx, %rbp
movq %r15, %rbx
movq 0x20(%rsp), %r15
cmoveq %r15, %rbx
callq 0x16a4f
movq 0x8(%r13), %r8
shlq $0x3, %r8
leal 0x4(%r12), %r9d
movzwl 0x1c(%rsp), %esi
movq 0x30(%rsp), %rdi
movq %rbx, %rdx
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
callq 0x37130
jmp 0x35026
movl $0x40000, %edi          # imm = 0x40000
movq %rbp, %r12
movq %rbp, %rdx
movq 0x10(%rsp), %rcx
callq 0x5100
leaq 0x14e68(%rip), %rdi     # 0x49bec
movq 0x20(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
movq %rbx, %r14
movl %eax, %ebx
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x12c3a(%rip), %rdi     # 0x479dd
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addl %ebx, %edi
movq %r14, %rbx
testb $0x40, (%rbx)
movq %r15, %r14
movq %rbx, %rbp
movq %r15, %rbx
movq 0x20(%rsp), %r15
cmoveq %r15, %rbx
callq 0x16a4f
movq 0x8(%r13), %r8
addq %r8, %r8
leal 0x4(%r12), %r9d
movzwl 0x1c(%rsp), %esi
movq 0x30(%rsp), %rdi
movq %rbx, %rdx
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
callq 0x36ea8
jmp 0x35026
movl $0x40000, %edi          # imm = 0x40000
movq %rbp, %r12
movq %rbp, %rdx
movq 0x10(%rsp), %rcx
callq 0x5100
leaq 0x14dda(%rip), %rdi     # 0x49bec
movq 0x20(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
movq %rbx, %r14
movl %eax, %ebx
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x12bac(%rip), %rdi     # 0x479dd
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addl %ebx, %edi
movq %r14, %rbx
testb $0x40, (%rbx)
movq %r15, %r14
movq %rbx, %rbp
movq %r15, %rbx
movq 0x20(%rsp), %r15
cmoveq %r15, %rbx
callq 0x16a4f
movq 0x8(%r13), %r8
addq %r8, %r8
leal 0x4(%r12), %r9d
movzwl 0x1c(%rsp), %esi
movq 0x30(%rsp), %rdi
movq %rbx, %rdx
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
callq 0x350f2
jmp 0x35026
movl $0x40000, %edi          # imm = 0x40000
movq %rbp, %r12
movq %rbp, %rdx
movq 0x10(%rsp), %rcx
callq 0x5100
leaq 0x14d4c(%rip), %rdi     # 0x49bec
movq 0x20(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
movq %rbx, %r14
movl %eax, %ebx
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x12b1e(%rip), %rdi     # 0x479dd
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addl %ebx, %edi
movq %r14, %rbx
testb $0x40, (%rbx)
movq %r15, %r14
movq %rbx, %rbp
movq %r15, %rbx
movq 0x20(%rsp), %r15
cmoveq %r15, %rbx
callq 0x16a4f
movq 0x8(%r13), %r8
addq %r8, %r8
leal 0x4(%r12), %r9d
movzwl 0x1c(%rsp), %esi
movq 0x30(%rsp), %rdi
movq %rbx, %rdx
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
callq 0x36b79
jmp 0x35026
movl $0x40000, %edi          # imm = 0x40000
movq %rbp, %r12
movq %rbp, %rdx
movq 0x10(%rsp), %rcx
callq 0x5100
leaq 0x14cbe(%rip), %rdi     # 0x49bec
movq 0x20(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
movq %rbx, %r14
movl %eax, %ebx
movq 0x8(%r13), %rsi
decq %rsi
leaq 0x12a90(%rip), %rdi     # 0x479dd
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addl %ebx, %edi
movq %r14, %rbx
testb $0x40, (%rbx)
movq %r15, %r14
movq %rbx, %rbp
movq %r15, %rbx
movq 0x20(%rsp), %r15
cmoveq %r15, %rbx
callq 0x16a4f
movq 0x8(%r13), %r8
addq %r8, %r8
leal 0x4(%r12), %r9d
movzwl 0x1c(%rsp), %esi
movq 0x30(%rsp), %rdi
movq %rbx, %rdx
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
callq 0x36346
jmp 0x35026
movl $0x40000, %edi          # imm = 0x40000
movq %rbp, %r12
movq %rbp, %rdx
movq 0x10(%rsp), %rcx
callq 0x5100
leaq 0x14c30(%rip), %rdi     # 0x49bec
movq 0x20(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
movq %rbx, %r14
movl %eax, %ebx
movq 0x8(%r13), %rsi
leaq 0x12a05(%rip), %rdi     # 0x479dd
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addl %ebx, %edi
movq %r14, %rbx
testb $0x40, (%rbx)
movq %r15, %r14
movq %rbx, %rbp
movq %r15, %rbx
movq 0x20(%rsp), %r15
cmoveq %r15, %rbx
callq 0x16a4f
movq 0x8(%r13), %r8
addq %r8, %r8
leal 0x4(%r12), %r9d
movzwl 0x1c(%rsp), %esi
movq 0x30(%rsp), %rdi
movq %rbx, %rdx
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
callq 0x3616d
testb $0x4, 0x2(%rbp)
jne 0x35030
xorl %ebx, %ebx
jmp 0x35060
movq 0x8(%r13), %rax
leaq (%rbx,%rax,2), %rsi
decq %rsi
movl $0x40000, %edi          # imm = 0x40000
movl %r12d, %edx
movq 0x10(%rsp), %rcx
callq 0x5100
leaq 0x14b9e(%rip), %rdi     # 0x49bf2
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
movq %r14, %rdi
callq 0x3050
movl %ebx, %edi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x16a4f
movb $0x1, %cl
testb %cl, %cl
je 0x35091
andl $0x30, %eax
jne 0x35091
movl %ebx, %edi
callq 0x160f7
movl %eax, %ebx
xorl %eax, %eax
callq 0x8fb2
testw %bp, %bp
sete %al
testq %r15, %r15
sete %cl
orb %al, %cl
jne 0x350e5
movq %r15, %rdi
callq 0xf111
testq %rax, %rax
je 0x350e5
orb $0x1, 0x19(%rax)
movl $0x5, 0x118(%rax)
cmpl $0xffc3, 0xc8(%rax)     # imm = 0xFFC3
jne 0x350e5
testq %r13, %r13
jne 0x350e5
movq 0x38(%rsp), %rcx
subq 0x8(%rsp), %rcx
movq %rcx, 0x98(%rax)
movq %r12, %rdi
callq 0x31b0
jmp 0x35060