// File: /workspace/github_c_makefile_star2_O2/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 0x2ca6a
movq %r9, %r14
movq %rcx, %rbx
movq %rdx, %r13
movl %esi, %r15d
movq %r8, 0x30(%rsp)
movq %rdi, 0x20(%rsp)
movl 0x90(%rsp), %r12d
movl 0x88(%rsp), %edx
movl 0x80(%rsp), %esi
movl 0x78(%rsp), %eax
movq %rax, 0x8(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x18(%rsp)
movzwl (%r13), %edi
movq %rsi, 0x28(%rsp)
movq %rdx, 0x10(%rsp)
callq 0x1b2e4
movq %rax, %rbp
leaq 0x13028(%rip), %rsi     # 0x3f997
movq %r14, %rdi
movq %rax, %rdx
callq 0x16f1d
movq %rax, (%rsp)
movq 0x8(%r13), %rsi
movq 0x10(%r13), %rdx
leaq (%rdx,%rbx), %r8
movzwl (%r13), %eax
cmpl $0x100, %eax            # imm = 0x100
je 0x2cc45
cmpl $0x209, %eax            # imm = 0x209
je 0x2cbc6
cmpl $0xf00, %eax            # imm = 0xF00
je 0x2ca71
movzwl %r15w, %r9d
cmpl $0x301, %eax            # imm = 0x301
je 0x2cb3f
cmpl $0xe00, %eax            # imm = 0xE00
je 0x2cb21
cmpl $0x20a, %eax            # imm = 0x20A
jne 0x2cb8e
movq %r8, %r15
testl %r12d, %r12d
je 0x2ca16
movl $0x4003333, %edi        # imm = 0x4003333
movq %r15, %rsi
movq 0x8(%rsp), %rdx
movq 0x18(%rsp), %rcx
movl %r9d, %ebx
callq 0x5100
leaq 0x1bb5a(%rip), %rdx     # 0x48558
pushq $0x17
popq %rsi
movq %r13, %rdi
movq 0x28(%rsp), %rcx
movq 0x10(%rsp), %r8
callq 0x1850a
movl %ebx, %r9d
leaq 0x2a763(%rip), %rax     # 0x57180
movq (%rax), %rax
testb $0x30, %al
je 0x2cc5b
testl %r12d, %r12d
setne %cl
testw $0x300, %ax             # imm = 0x300
sete %al
xorl %ebp, %ebp
orb %cl, %al
jne 0x2ca51
leaq 0x1bb16(%rip), %rdi     # 0x48558
xorl %eax, %eax
movl %r9d, %ebx
callq 0x3120
movl %ebx, %r9d
movl %eax, %ebp
movq 0x8(%r13), %rsi
movq 0x20(%rsp), %rdi
movq %r15, %rdx
movl %r9d, %ecx
callq 0x6903
jmp 0x2cc5d
xorl %ebp, %ebp
jmp 0x2d1af
leaq 0x2a708(%rip), %rbx     # 0x57180
movq (%rbx), %rax
testl %r12d, %r12d
je 0x2cc66
testl $0x4003333, %eax        # imm = 0x4003333
movq 0x20(%rsp), %r14
movq %r8, %r15
movq %rsi, %r12
je 0x2cd91
movl $0x4003333, %edi        # imm = 0x4003333
movq %r15, %rsi
movq 0x8(%rsp), %rdx
movq 0x18(%rsp), %rcx
callq 0x5100
leaq 0x17db8(%rip), %rdx     # 0x44870
pushq $0x17
popq %rsi
movq %r13, %rdi
movq 0x28(%rsp), %rcx
movq 0x10(%rsp), %r8
callq 0x1850a
leaq 0x19c37(%rip), %rdi     # 0x4670b
movq %r12, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
leaq 0x2b921(%rip), %rax     # 0x58408
movq (%rax), %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %r12, %rbx
cmpq %rcx, %rax
movq (%rsp), %r13
je 0x2ce71
testq %rax, %rax
jne 0x2ce67
testl %ebp, %ebp
je 0x2cd9c
leaq 0x12ba8(%rip), %rdi     # 0x3f6bf
callq 0x56e2
jmp 0x2cf4d
movl $0x0, 0x30(%rsp)
testl %r12d, %r12d
je 0x2cc9d
movq 0x20(%rsp), %r15
movq %rsi, %r12
jmp 0x2ccec
movq 0x20(%rsp), %r14
movq %r14, %rdi
movl %r9d, %esi
movq %r8, %rdx
movl %r9d, %ebp
callq 0x42ba
movq %rax, %r15
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %ebp, %esi
callq 0x42ba
movq %rax, %rbp
leaq 0x2a60f(%rip), %r14     # 0x57180
movq (%r14), %rax
testl %r12d, %r12d
je 0x2cd1f
btl $0x12, %eax
jb 0x2cd35
xorl %ebx, %ebx
jmp 0x2ceb2
movq 0x20(%rsp), %rdi
movl %r9d, %esi
movq %r13, %rdx
movq %rbx, %rcx
movq (%rsp), %r13
movq %r13, %r8
movq 0x18(%rsp), %r9
pushq %r12
pushq 0x18(%rsp)
pushq 0x38(%rsp)
pushq 0x20(%rsp)
callq 0x185a8
addq $0x20, %rsp
xorl %ebp, %ebp
jmp 0x2d1a7
testl %r12d, %r12d
movq %r8, %rbx
je 0x2cc01
movl $0x4003333, %edi        # imm = 0x4003333
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
movq 0x18(%rsp), %rcx
callq 0x5100
leaq 0x1b96c(%rip), %rdx     # 0x48558
pushq $0x17
popq %rsi
movq %r13, %rdi
movq 0x28(%rsp), %rcx
movq 0x10(%rsp), %r8
callq 0x1850a
leaq 0x2a578(%rip), %rax     # 0x57180
movq (%rax), %rax
testb $0x30, %al
je 0x2cc5b
testl %r12d, %r12d
setne %cl
testw $0x300, %ax             # imm = 0x300
sete %al
xorl %ebp, %ebp
orb %cl, %al
jne 0x2cc32
leaq 0x1b92f(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
movq 0x8(%r13), %rsi
movq 0x20(%rsp), %rdi
movq %rbx, %rdx
callq 0x71a9
jmp 0x2cc5d
xorl %ebx, %ebx
testl %r12d, %r12d
movq %r8, %r15
movq %rsi, %rbp
jne 0x2ceb2
jmp 0x2cffa
xorl %ebp, %ebp
movq (%rsp), %r13
jmp 0x2d1a7
testb $0x30, %al
movq (%rsp), %r13
movq 0x20(%rsp), %r14
movq %r8, %r15
movq %rsi, %r12
je 0x2cd9c
testw $0x300, %ax             # imm = 0x300
je 0x2cf21
leaq 0x19a7d(%rip), %rdi     # 0x4670b
movq %r12, %rsi
xorl %eax, %eax
callq 0x3120
jmp 0x2cf35
leaq 0x2a4dc(%rip), %rax     # 0x57180
movq (%rax), %rax
testb $0x30, %al
sete %cl
testw $0x300, %ax             # imm = 0x300
setne %al
orb %cl, %al
movq 0x20(%rsp), %r15
movq %rsi, %r12
jne 0x2ccec
leaq 0x1649c(%rip), %rdi     # 0x43162
movq %r8, %rsi
movq %r12, %rdx
xorl %eax, %eax
movl %r9d, 0x10(%rsp)
callq 0x3120
movl %eax, %edi
callq 0x160f7
movl 0x10(%rsp), %r9d
movl %eax, 0x30(%rsp)
movq 0x10(%r13), %rdx
subq $0x8, %rsp
movq %r15, %rdi
movl %r9d, %esi
movq %rbx, %rcx
movq %r12, %r8
movq %rbp, %r9
pushq 0x10(%rsp)
pushq 0x28(%rsp)
pushq %r14
callq 0x125a8
addq $0x20, %rsp
movq (%rsp), %r13
movl 0x30(%rsp), %ebp
jmp 0x2d1a7
setne %cl
testl $0x1040000, %eax        # imm = 0x1040000
setne %dl
orb %cl, %dl
je 0x2cda3
xorl %ebx, %ebx
jmp 0x2cffa
addq 0x10(%r13), %rbx
movl $0x40000, %edi          # imm = 0x40000
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
movq 0x18(%rsp), %rcx
callq 0x5100
leaq 0x1b801(%rip), %rdx     # 0x48558
pushq $0x17
popq %rsi
movq %r13, %rdi
movq 0x28(%rsp), %rcx
movq 0x10(%rsp), %r8
callq 0x1850a
testb $0x30, (%r14)
je 0x2cea9
leaq 0x163e5(%rip), %rdi     # 0x43162
movq %r15, %rsi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x2ceab
xorl %ebp, %ebp
movq (%rsp), %r13
jmp 0x2cf4d
xorl %ebp, %ebp
jmp 0x2cf4d
testb $0x30, %al
sete %cl
testw $0x300, %ax             # imm = 0x300
setne %al
xorl %edi, %edi
orb %cl, %al
jne 0x2cdcc
addq 0x10(%r13), %rbx
leaq 0x19a1c(%rip), %rdi     # 0x467dc
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
callq 0x160f7
movl %eax, %ebx
movl $0x4003333, %edi        # imm = 0x4003333
movq %r15, %rsi
movq 0x8(%rsp), %rdx
movq 0x18(%rsp), %rcx
callq 0x5100
movq (%r14), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x2ce2a
testb $0x40, %al
je 0x2ce0b
leaq 0x166a9(%rip), %rdi     # 0x434a7
movq (%rsp), %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x19ccf(%rip), %rdi     # 0x46ae1
leaq 0x1a891(%rip), %rcx     # 0x476aa
pushq $0x9
popq %rdx
movl %edx, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
movq (%r14), %rax
testb $0x30, %al
je 0x2cf83
movq %rax, %rcx
andq $0x300, %rcx            # imm = 0x300
je 0x2cf67
cmpl $0x300, %ecx            # imm = 0x300
jne 0x2cf5b
leaq 0x163b5(%rip), %rdi     # 0x4320a
movq %r15, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x3120
jmp 0x2cf81
cmpq %r12, %rax
cmovaeq %r12, %rax
movq %rax, %rbx
movl %ebp, %edi
callq 0x160f7
subq $0x8, %rsp
pushq $0xc
popq %r8
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %rbx, %rcx
movq 0x10(%rsp), %r9
pushq $0x2
callq 0x6e93
popq %rax
popq %rcx
pushq $0x1
popq %rdi
callq 0x160f7
movl %eax, %ebp
jmp 0x2cf4d
xorl %edi, %edi
callq 0x160f7
movl %eax, %ebx
movl %ebx, %r14d
leaq 0x2a2c4(%rip), %rax     # 0x57180
testb $0x4, 0x2(%rax)
movq (%rsp), %r13
jne 0x2ced3
movl $0x0, 0x10(%rsp)
jmp 0x2d052
movl $0x1000000, %edi        # imm = 0x1000000
movq %r15, %rsi
movq 0x8(%rsp), %rdx
movq 0x18(%rsp), %rcx
callq 0x5100
leaq 0x1b11f(%rip), %rdi     # 0x48010
movl $0x0, 0x10(%rsp)
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
addl %r14d, %ebx
leaq 0x1b154(%rip), %rdi     # 0x48060
movq %rbp, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %r14d
addl %ebx, %r14d
jmp 0x2d052
leaq 0x1623a(%rip), %rdi     # 0x43162
movq %r15, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
testb $0x1, 0x3(%rbx)
jne 0x2cf4d
leaq 0x12dc2(%rip), %rdi     # 0x3fd06
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
addq %r12, %r15
movq %r14, %rdi
movq %r15, %rsi
jmp 0x2d1a0
btl $0x8, %eax
jb 0x2cf70
btl $0x9, %eax
jae 0x2cf83
leaq 0x1986b(%rip), %rdi     # 0x467d9
jmp 0x2cf77
leaq 0x162a0(%rip), %rdi     # 0x43217
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
movl %ebx, %edi
callq 0x160f7
movl %eax, %ebx
movl $0x4003333, %edi        # imm = 0x4003333
movq %r15, %rsi
movq 0x8(%rsp), %rdx
movq 0x18(%rsp), %rcx
callq 0x5100
movq (%r14), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x2cfe3
testb $0x40, %al
je 0x2cfc4
leaq 0x164f0(%rip), %rdi     # 0x434a7
movq (%rsp), %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x19b16(%rip), %rdi     # 0x46ae1
leaq 0x1a6e5(%rip), %rcx     # 0x476b7
pushq $0x9
popq %rdx
movl %edx, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
movq (%r14), %rax
testb $0x30, %al
je 0x2cffa
leaq 0x120dd(%rip), %rdi     # 0x3f0cb
movq %rbp, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
movl %ebx, %r14d
leaq 0x2a17c(%rip), %rax     # 0x57180
movq (%rax), %rax
movb $0x1, %cl
movl %ecx, 0x10(%rsp)
testb $0x30, %al
je 0x2d04e
cmpw $0x100, (%r13)          # imm = 0x100
jne 0x2d04e
movq 0x8(%r13), %rdx
testw $0x300, %ax             # imm = 0x300
je 0x2d03a
leaq 0x196e0(%rip), %rdi     # 0x4670b
movq %rdx, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %r14d
jmp 0x2d04e
leaq 0x16121(%rip), %rdi     # 0x43162
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movq (%rsp), %r13
leaq 0x2a127(%rip), %rax     # 0x57180
testb $0xc, 0x2(%rax)
je 0x2d06a
movl %r14d, %edi
callq 0x160f7
movl %eax, %r14d
movq 0x20(%rsp), %r12
movq %r12, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r15, %rdx
callq 0x416a
movl %eax, %ebx
movq 0x8(%rsp), %rax
addl $0x2, %eax
movzwl %bx, %edx
movq %r12, %rdi
movq %r15, %rsi
movq %rbp, %r12
movq %rbp, %rcx
movq 0x30(%rsp), %r8
movq %r13, %r9
pushq %rax
pushq 0x20(%rsp)
callq 0x105af
addq $0x10, %rsp
cmpb $0x0, 0x10(%rsp)
jne 0x2d0c2
leaq 0x2a0c4(%rip), %rax     # 0x57180
testb $0x4, 0x2(%rax)
jne 0x2d0ca
movl %r14d, %ebp
jmp 0x2d152
movq %r12, (%rsp)
xorl %edi, %edi
callq 0x1259b
xorl %ebp, %ebp
cmpl $0x1, %eax
sete %bpl
movq %r15, %r12
jne 0x2d0ee
movl %r14d, %edi
callq 0x160f7
movl %eax, %r14d
movl %ebp, %edi
callq 0x1259b
movq (%rsp), %rax
leaq (%rax,%r12), %rsi
decq %rsi
movl $0x1000000, %edi        # imm = 0x1000000
movq 0x8(%rsp), %rdx
movq 0x18(%rsp), %rcx
callq 0x5100
leaq 0x1af1e(%rip), %rdi     # 0x48039
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r14d, %ebp
leaq 0x2a052(%rip), %rax     # 0x57180
movq (%rax), %rax
testl $0x4003333, %eax        # imm = 0x4003333
sete %cl
testb $0x30, %al
setne %al
orb %cl, %al
jne 0x2d14b
movl %ebp, %edi
callq 0x160f7
movl %eax, %ebp
movq %r12, %r15
movq (%rsp), %r12
xorl %eax, %eax
callq 0x8fb2
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x2d18a
testw %bx, %bx
je 0x2d18a
callq 0xf111
testq %rax, %rax
je 0x2d18a
orb $0x1, 0x19(%rax)
movl $0x5, 0x118(%rax)
movl $0x2, 0xc4(%rax)
movq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0x31b0
addq %r15, %r12
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x3210
movq %r13, %rdi
callq 0x3050
movl %ebp, %edi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x16a4f