// File: /workspace/github_c_makefile_star2_O3/hfiguiere[P]exifprobe/maker_epson.c
// Function: epson1_offset_makervalue
void
epson1_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,count;
    unsigned long dumplength;
    unsigned long max_offset = 0;
    unsigned short marker;
    char *nameoftag;
    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;

        switch(entry_ptr->tag)
        {
            case 0x020a:    /* MakerNote version of UserComment   */
                if(at_offset)
                {
                    print_tag_address(ENTRY,value_offset,indent,prefix);
                    print_makertagid(entry_ptr,23," = ",make,model);
                }
                if((PRINT_VALUE))
                {
                    if((PRINT_OFFSET) && !at_offset)
                            chpr += printf(" = ");
                    print_user_comment(inptr,entry_ptr->count,value_offset,byteorder);
                }
                break;
            case 0x0209:    /* CameraId                           */
                if(at_offset)
                {
                    print_tag_address(ENTRY,value_offset,indent,prefix);
                    print_makertagid(entry_ptr,23," = ",make,model);
                }
                if((PRINT_VALUE))
                {
                    if((PRINT_OFFSET) && !at_offset)
                        chpr += printf(" = ");
                    print_ascii(inptr,entry_ptr->count,value_offset);
                }
                break;
            case 0x0301:
                /* This is an odd one. Overwrite the values for       */
                /* offset and length, then fall through and display   */
                /* the thumbnail.                                     */
                /* Why didn't they just do this as an UNDEFINED       */
                /* section?                                           */
                value_offset = read_ulong(inptr,byteorder,value_offset);
                count = read_ulong(inptr,byteorder,HERE);
                if(at_offset && (PRINT_SECTION))
                {
                    print_tag_address(SECTION,fileoffset_base + entry_ptr->value,
                                                            indent,prefix);
                    print_makertagid(entry_ptr,23," = ",make,model);
                    if((PRINT_VALUE))
                        chpr += printf("@%lu:%lu",value_offset,count);
                    chpr = newline(chpr);
                }
                else if((LIST_MODE) && !at_offset)
                {
                    if((PRINT_VALUE))
                    {
                        if(!(PRINT_OFFSET))
                            chpr += printf("@%lu",fileoffset_base + entry_ptr->value);
                    }
                    chpr = newline(chpr);
                    /* In list mode, when SECTIONS are not printed,   */
                    /* provide these items as "pseudotags".           */
                    print_tag_address(ENTRY,value_offset,indent,prefix);
                    if((PRINT_TAGINFO))
                    {
                        if((PRINT_LONGNAMES))
                            chpr += printf("%s.",fulldirname);
                        chpr += printf("%-*.*s",9,9,"Offset");
                    }
                    if((PRINT_VALUE))
                    {
                        if((PRINT_OFFSET))
                        {
                            if(PRINT_BOTH_OFFSET)
                                chpr += printf(" = @%#lx=%lu",value_offset,value_offset);
                            else if(PRINT_HEX_OFFSET)
                                chpr += printf(" = @%#lx",value_offset);
                            else if(PRINT_DEC_OFFSET)
                                chpr += printf(" = @%lu",value_offset);
                        }
                        else
                            chpr += printf(" = @%lu",value_offset);
                    }

                    chpr = newline(chpr);
                    print_tag_address(ENTRY,value_offset,indent,prefix);
                    if((PRINT_TAGINFO))
                    {
                        if((PRINT_LONGNAMES))
                            chpr += printf("%s.",fulldirname);
                        chpr += printf("%-*.*s",9,9,"Length");
                    }
                    if((PRINT_VALUE))
                        chpr += printf(" = %lu",count);
                }
                /* fall through and process the thumbnail             */
            case 0x0100: /* Jpeg Thumbnail                            */
                if(at_offset && (PRINT_SECTION))
                {
                    print_tag_address(VALUE_AT_OFFSET,value_offset,indent,prefix);
                    chpr += printf("# Start of JPEG Thumbnail from MakerNote");
                    chpr += printf(" length %ld",count); 
                }
                else if(!at_offset && (PRINT_VALUE) && (entry_ptr->tag == 0x0100))
                {
                    if(!(PRINT_OFFSET))
                        chpr += printf("@%lu:%lu",value_offset,entry_ptr->count);
                    else
                        chpr = printf("length %lu", entry_ptr->count);
                }
                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,
                                    count,summary_entry,fulldirname,
                                    prefix,indent+SMALLINDENT);
                if(at_offset)
                {
                    if((PRINT_SECTION))
                    {
                        if((status = jpeg_status(0) == JPEG_EARLY_EOI))
                            chpr = newline(chpr);
                        jpeg_status(status);
                        print_tag_address(VALUE_AT_OFFSET,value_offset + count - 1,
                                                    indent,prefix);
                        chpr += printf("# End of JPEG Thumbnail from MakerNote");
                        if((PRINT_ENTRY) && !(PRINT_VALUE))
                            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;
                        summary_entry->subfiletype = THUMBNAIL_TYPE;
                    }
                }
                /* make certain we're at the end                      */
                clearerr(inptr);
                fseek(inptr,value_offset + count,SEEK_SET);
                break;
            case 0x0e00: /* PrintIM (Epson Print Image matching)  */
                if(!at_offset && (PRINT_VALUE))
                {
                    if(!(PRINT_OFFSET))
                    {
                        chpr += printf("@%lu:%lu",value_offset,count);
                        chpr = newline(chpr);
                    }
                }
                process_pim(inptr,byteorder,entry_ptr->value,fileoffset_base,
                    count,nameoftag,parent_name,prefix,indent);
                break;
            case 0x0f00:    /* Data                               */
                if(at_offset && (PRINT_ENTRY))
                {
                    print_tag_address(ENTRY,value_offset,indent,prefix);
                    print_makertagid(entry_ptr,23," : ",make,model);
                    chpr += printf("length %lu", count);
                    if(Max_undefined == 0)
                    {
                        if(chpr)
                            printred(" (not dumped, use -U)");
                    }
                    else
                    {
                        if((Max_undefined == DUMPALL) || (Max_undefined > count))
                            dumplength = count;
                        else 
                            dumplength = Max_undefined;
                        chpr = newline(chpr);
                        hexdump(inptr,value_offset,count,dumplength,12,
                                    indent,SUBINDENT);
                        chpr = newline(1);
                    }
                }
                else if(!at_offset && (PRINT_VALUE))
                {
                    if(!(PRINT_OFFSET))
                        chpr += printf("@%lu:%lu",value_offset,entry_ptr->count);
                    else
                        chpr = printf("length %lu", entry_ptr->count);
                    if(!(PRINT_VALUE_AT_OFFSET))
                        chpr += printf(" # UNDEFINED");
                }
                /* make certain we're at the end                      */
                fseek(inptr,value_offset + count,SEEK_SET);
                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 $0x38, %rsp
testq %rdx, %rdx
je 0x2e15c
movq %r9, %rbx
movq %rcx, %r13
movq %rdx, %rbp
movl %esi, 0x8(%rsp)
movq %r8, 0x30(%rsp)
movq %rdi, (%rsp)
movl 0x90(%rsp), %r14d
movl 0x88(%rsp), %edx
movl 0x80(%rsp), %r12d
movl 0x78(%rsp), %eax
movq %rax, 0x18(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x20(%rsp)
movzwl (%rbp), %edi
movl %r12d, %esi
movq %rdx, 0x28(%rsp)
callq 0x1c518
movq %rax, %r15
leaq 0x13922(%rip), %rsi     # 0x41997
movq %rbx, %rdi
movq %rax, %rdx
callq 0x17f99
movq %rax, 0x10(%rsp)
movq 0x8(%rbp), %r9
movq 0x10(%rbp), %rdx
leaq (%rdx,%r13), %r8
movzwl (%rbp), %eax
cmpl $0x300, %eax            # imm = 0x300
jg 0x2e164
cmpl $0x100, %eax            # imm = 0x100
je 0x2e23f
cmpl $0x209, %eax            # imm = 0x209
je 0x2e2ef
cmpl $0x20a, %eax            # imm = 0x20A
jne 0x2e2b9
testl %r14d, %r14d
je 0x2e0ff
movl $0x4003333, %edi        # imm = 0x4003333
movq %r8, %rsi
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %rcx
movq %r8, %rbx
callq 0x55eb
leaq 0x1c4c1(%rip), %rdx     # 0x4a5a8
movq %rbp, %rdi
movl $0x17, %esi
movl %r12d, %ecx
movq 0x28(%rsp), %r8
callq 0x19668
movq %rbx, %r8
leaq 0x2a07a(%rip), %rax     # 0x58180
movq (%rax), %rax
testb $0x30, %al
movq 0x10(%rsp), %r13
je 0x2e381
testl %r14d, %r14d
setne %cl
testl $0x300, %eax            # imm = 0x300
sete %al
xorl %r15d, %r15d
orb %cl, %al
jne 0x2e142
leaq 0x1c476(%rip), %rdi     # 0x4a5a8
xorl %eax, %eax
movq %r8, %rbx
callq 0x3120
movq %rbx, %r8
movl %eax, %r15d
movq 0x8(%rbp), %rsi
movzwl 0x8(%rsp), %ecx
movq (%rsp), %rdi
movq %r8, %rdx
callq 0x6f0c
jmp 0x2e961
xorl %r15d, %r15d
jmp 0x2e96e
cmpl $0x301, %eax            # imm = 0x301
je 0x2e259
cmpl $0xe00, %eax            # imm = 0xE00
je 0x2e389
cmpl $0xf00, %eax            # imm = 0xF00
jne 0x2e2b9
leaq 0x29ff4(%rip), %rbx     # 0x58180
movq (%rbx), %rax
testl %r14d, %r14d
je 0x2e3be
testl $0x4003333, %eax        # imm = 0x4003333
movq 0x10(%rsp), %r13
je 0x2e3f2
movl $0x4003333, %edi        # imm = 0x4003333
movq %r8, 0x8(%rsp)
movq %r8, %rsi
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %rcx
movq %r9, %r14
callq 0x55eb
leaq 0x186f2(%rip), %rdx     # 0x468c0
movq %rbp, %rdi
movl $0x17, %esi
movl %r12d, %ecx
movq 0x28(%rsp), %r8
callq 0x19668
leaq 0x1a571(%rip), %rdi     # 0x4875b
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %r15d
leaq 0x2b20a(%rip), %rax     # 0x59408
movq (%rax), %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %r14, %rbx
cmpq %rcx, %rax
movq (%rsp), %r12
je 0x2e587
movq %r14, %r9
testq %rax, %rax
jne 0x2e57d
testl %r15d, %r15d
je 0x2e6e2
leaq 0x1348d(%rip), %rdi     # 0x416bf
callq 0x5c26
movq %r14, %r9
jmp 0x2e6e5
xorl %r15d, %r15d
testl %r14d, %r14d
movq 0x10(%rsp), %r13
movq (%rsp), %r12
jne 0x2e5ed
jmp 0x2e7b6
movzwl 0x8(%rsp), %ebx
movq (%rsp), %r15
movq %r15, %rdi
movl %ebx, %esi
movq %r8, %rdx
callq 0x4707
movq %rax, 0x8(%rsp)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r15, %rdi
movl %ebx, %esi
callq 0x4707
movq %rax, %r9
leaq 0x29ef3(%rip), %r15     # 0x58180
movq (%r15), %rax
testl %r14d, %r14d
je 0x2e39a
btl $0x12, %eax
jb 0x2e479
movq 0x10(%rsp), %r13
movq (%rsp), %r12
movq 0x8(%rsp), %r8
xorl %r15d, %r15d
jmp 0x2e5ed
movzwl 0x8(%rsp), %esi
movq (%rsp), %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x10(%rsp), %r13
movq %r13, %r8
movq 0x20(%rsp), %r9
pushq %r14
pushq 0x30(%rsp)
pushq %r12
pushq 0x30(%rsp)
callq 0x19706
addq $0x20, %rsp
jmp 0x2e381
testl %r14d, %r14d
je 0x2e32d
movl $0x4003333, %edi        # imm = 0x4003333
movq %r8, %rsi
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %rcx
movq %r8, %rbx
callq 0x55eb
leaq 0x1c293(%rip), %rdx     # 0x4a5a8
movq %rbp, %rdi
movl $0x17, %esi
movl %r12d, %ecx
movq 0x28(%rsp), %r8
callq 0x19668
movq %rbx, %r8
leaq 0x29e4c(%rip), %rax     # 0x58180
movq (%rax), %rax
testb $0x30, %al
movq 0x10(%rsp), %r13
je 0x2e381
testl %r14d, %r14d
setne %cl
testl $0x300, %eax            # imm = 0x300
sete %al
xorl %r15d, %r15d
orb %cl, %al
jne 0x2e36c
leaq 0x1c24c(%rip), %rdi     # 0x4a5a8
xorl %eax, %eax
movq %r8, %rbx
callq 0x3120
movq %rbx, %r8
movl %eax, %r15d
movq 0x8(%rbp), %rsi
movq (%rsp), %rdi
movq %r8, %rdx
callq 0x77d6
jmp 0x2e961
xorl %r15d, %r15d
jmp 0x2e961
xorl %r12d, %r12d
testl %r14d, %r14d
je 0x2e3fe
movq (%rsp), %r14
jmp 0x2e445
movq %r15, %r14
xorl %r15d, %r15d
testl $0x1040000, %eax        # imm = 0x1040000
je 0x2e4da
movq 0x10(%rsp), %r13
movq (%rsp), %r12
movq 0x8(%rsp), %r8
jmp 0x2e7b6
testb $0x30, %al
movq 0x10(%rsp), %r13
je 0x2e3f2
testl $0x300, %eax            # imm = 0x300
movq (%rsp), %r12
je 0x2e662
movq %r8, %r15
leaq 0x1a37b(%rip), %rdi     # 0x4875b
movq %r9, %r14
movq %r9, %rsi
xorl %eax, %eax
callq 0x3120
jmp 0x2e67c
xorl %r15d, %r15d
movq (%rsp), %r12
jmp 0x2e6ea
leaq 0x29d7b(%rip), %rax     # 0x58180
movq (%rax), %rax
testb $0x30, %al
sete %cl
testl $0x300, %eax            # imm = 0x300
setne %al
orb %cl, %al
movq (%rsp), %r14
jne 0x2e445
leaq 0x16d82(%rip), %rdi     # 0x451a6
movq %r8, %rsi
movq %r9, %rdx
xorl %eax, %eax
movq %r9, %r12
callq 0x3120
movl %eax, %edi
callq 0x1707a
movq %r12, %r9
movl %eax, %r12d
movq 0x10(%rbp), %rdx
subq $0x8, %rsp
movzwl 0x10(%rsp), %esi
movq %r14, %rdi
movq %r13, %rcx
movq %r9, %r8
movq %r15, %r9
pushq 0x20(%rsp)
pushq 0x30(%rsp)
pushq %rbx
callq 0x1337a
addq $0x20, %rsp
movq 0x10(%rsp), %r13
movl %r12d, %r15d
jmp 0x2e961
movq %r9, %rbx
addq 0x10(%rbp), %r13
movl $0x40000, %edi          # imm = 0x40000
movq %r13, %rsi
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %rcx
callq 0x55eb
leaq 0x1c10a(%rip), %rdx     # 0x4a5a8
movq %rbp, %rdi
movl $0x17, %esi
movl %r12d, %ecx
movq 0x28(%rsp), %r8
callq 0x19668
testb $0x30, (%r15)
je 0x2e5d2
leaq 0x16ce2(%rip), %rdi     # 0x451a6
movq 0x8(%rsp), %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x2e5d4
movq %r9, %r12
testb $0x30, %al
sete %cl
testl $0x300, %eax            # imm = 0x300
setne %al
xorl %edi, %edi
orb %cl, %al
jne 0x2e507
addq 0x10(%rbp), %r13
leaq 0x1a331(%rip), %rdi     # 0x4882c
movq %r13, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
callq 0x1707a
movl %eax, %ebx
movl $0x4003333, %edi        # imm = 0x4003333
movq 0x8(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %rcx
callq 0x55eb
movq (%r14), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2e6aa
movq %r14, %r15
testb $0x40, %al
movq 0x10(%rsp), %r13
je 0x2e554
leaq 0x16fa3(%rip), %rdi     # 0x454eb
movq %r13, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x1a5d6(%rip), %rdi     # 0x48b31
leaq 0x1b198(%rip), %rcx     # 0x496fa
movl $0x9, %esi
movl $0x9, %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
movq (%r15), %rax
jmp 0x2e6af
cmpq %r9, %rax
cmovaeq %r9, %rax
movq %rax, %rbx
movl %r15d, %edi
callq 0x1707a
subq $0x8, %rsp
movq %r12, %rdi
movq 0x10(%rsp), %r15
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
movl $0xc, %r8d
movq 0x20(%rsp), %r9
pushq $0x2
callq 0x7480
addq $0x10, %rsp
movl $0x1, %edi
callq 0x1707a
movq %r14, %r9
movq %r15, %r8
movl %eax, %r15d
jmp 0x2e6ea
xorl %edi, %edi
movq 0x10(%rsp), %r13
movq (%rsp), %r12
callq 0x1707a
movl %eax, %r15d
movq 0x8(%rsp), %r8
movq %rbx, %r9
movq %r9, (%rsp)
leaq 0x29b88(%rip), %rax     # 0x58180
testb $0x4, 0x2(%rax)
jne 0x2e60b
movl $0x0, 0x10(%rsp)
jmp 0x2e817
movl $0x1000000, %edi        # imm = 0x1000000
movq %r8, %rsi
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %rcx
movl %r15d, %ebp
movq %r8, %r15
callq 0x55eb
leaq 0x1ba31(%rip), %rdi     # 0x4a060
movl $0x0, 0x10(%rsp)
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
addl %ebp, %ebx
leaq 0x1ba67(%rip), %rdi     # 0x4a0b0
movq (%rsp), %rsi
xorl %eax, %eax
callq 0x3120
movq %r15, %r8
movl %eax, %r15d
addl %ebx, %r15d
jmp 0x2e817
leaq 0x16b3d(%rip), %rdi     # 0x451a6
movq %r8, %r15
movq %r8, %rsi
movq %r9, %r14
movq %r9, %rdx
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
testb $0x1, 0x3(%rbx)
jne 0x2e69f
leaq 0x1367b(%rip), %rdi     # 0x41d06
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq %r15, %r8
movl %ebp, %r15d
movq %r14, %r9
jmp 0x2e6ea
movq %r15, %r8
movq %r14, %r9
movl %ebp, %r15d
jmp 0x2e6ea
movq 0x10(%rsp), %r13
testb $0x30, %al
movq 0x8(%rsp), %r15
je 0x2e720
movq %rax, %rcx
andq $0x300, %rcx            # imm = 0x300
je 0x2e704
cmpl $0x300, %ecx            # imm = 0x300
jne 0x2e6f8
leaq 0x16b7b(%rip), %rdi     # 0x4524e
movq %r15, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x3120
jmp 0x2e71e
xorl %r15d, %r15d
movq 0x8(%rsp), %r8
addq %r9, %r8
movq %r12, %rdi
movq %r8, %rsi
jmp 0x2e95a
btl $0x8, %eax
jb 0x2e70d
btl $0x9, %eax
jae 0x2e720
leaq 0x1a11e(%rip), %rdi     # 0x48829
jmp 0x2e714
leaq 0x16b47(%rip), %rdi     # 0x4525b
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
movl %ebx, %edi
callq 0x1707a
movl %eax, %ebx
movl $0x4003333, %edi        # imm = 0x4003333
movq %r15, %rsi
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %rcx
callq 0x55eb
movq (%r14), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2e78c
testb $0x40, %al
movl %ebx, %r15d
je 0x2e765
leaq 0x16d93(%rip), %rdi     # 0x454eb
movq %r13, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
leaq 0x1a3c5(%rip), %rdi     # 0x48b31
leaq 0x1af94(%rip), %rcx     # 0x49707
movl $0x9, %esi
movl $0x9, %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
movq (%r14), %rax
jmp 0x2e78f
movl %ebx, %r15d
testb $0x30, %al
movq %r12, %r9
je 0x2e7ad
leaq 0x1292e(%rip), %rdi     # 0x410cb
movq %r9, %rsi
xorl %eax, %eax
callq 0x3120
movq %r12, %r9
addl %eax, %r15d
movq 0x8(%rsp), %r8
movq (%rsp), %r12
leaq 0x299c3(%rip), %rax     # 0x58180
movq (%rax), %rax
movb $0x1, %cl
movl %ecx, 0x10(%rsp)
testb $0x30, %al
movq %r9, (%rsp)
je 0x2e817
cmpw $0x100, (%rbp)          # imm = 0x100
jne 0x2e817
movq 0x8(%rbp), %rdx
testl $0x300, %eax            # imm = 0x300
je 0x2e7fd
leaq 0x19f73(%rip), %rdi     # 0x4875b
movq %rdx, %rsi
xorl %eax, %eax
movq %r8, %rbx
callq 0x3120
movq %rbx, %r8
movl %eax, %r15d
jmp 0x2e817
leaq 0x169a2(%rip), %rdi     # 0x451a6
movq %r8, %rsi
xorl %eax, %eax
movq %r8, %rbx
callq 0x3120
movq %rbx, %r8
addl %eax, %r15d
leaq 0x29962(%rip), %rax     # 0x58180
testb $0xc, 0x2(%rax)
je 0x2e835
movl %r15d, %edi
movq %r8, %rbx
callq 0x1707a
movq %rbx, %r8
movl %eax, %r15d
movq %r12, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r8, %rdx
movq %r8, %rbx
callq 0x45af
movl %eax, %ebp
movq 0x18(%rsp), %rax
addl $0x2, %eax
movzwl %bp, %edx
movq %r12, %r14
movq %r12, %rdi
movq %rbx, %r12
movq %rbx, %rsi
movq (%rsp), %rcx
movq 0x30(%rsp), %r8
movq %r13, %r9
pushq %rax
pushq 0x28(%rsp)
callq 0x11455
addq $0x10, %rsp
cmpb $0x0, 0x10(%rsp)
jne 0x2e910
leaq 0x298f3(%rip), %rax     # 0x58180
testb $0x4, 0x2(%rax)
je 0x2e910
xorl %edi, %edi
callq 0x1336d
xorl %ebx, %ebx
cmpl $0x1, %eax
sete %bl
jne 0x2e8af
movl %r15d, %edi
callq 0x1707a
movl %eax, %r15d
movl %ebx, %edi
callq 0x1336d
movq (%rsp), %rax
leaq (%rax,%r12), %rsi
decq %rsi
movl $0x1000000, %edi        # imm = 0x1000000
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %rcx
callq 0x55eb
leaq 0x1b7ad(%rip), %rdi     # 0x4a089
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
addl %r15d, %edi
leaq 0x29891(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x4003333, %eax        # imm = 0x4003333
sete %cl
testb $0x30, %al
setne %al
orb %cl, %al
jne 0x2e90d
callq 0x1707a
movl %eax, %r15d
jmp 0x2e910
movl %edi, %r15d
xorl %eax, %eax
callq 0x9734
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x2e948
testw %bp, %bp
je 0x2e948
callq 0xfed1
testq %rax, %rax
je 0x2e948
orb $0x1, 0x19(%rax)
movl $0x5, 0x118(%rax)
movl $0x2, 0xc4(%rax)
movq %r14, %rdi
callq 0x31b0
movq (%rsp), %rsi
addq %r12, %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x3210
testq %r13, %r13
je 0x2e96e
movq %r13, %rdi
callq 0x3050
movl %r15d, %edi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17a82