// File: /workspace/github_c_makefile_star2_O3/hfiguiere[P]exifprobe/maker_nikon.c
// Function: nikon2_offset_makervalue
void
nikon2_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 max_offset = 0;
    unsigned long value_offset;
    unsigned long count;
    unsigned long dumplength;
    unsigned long orig_print_options;
    unsigned short marker;
    char *nameoftag;
    char *fulldirname = NULL;
    int status = 0;
    int chpr = 0;
    int ifdnum = -1;
    int subifdnum = -1;

    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 0x0011: /* "NikonPreviewImage"                       */
                if(at_offset && (PRINT_SECTION))
                {
                    print_tag_address(VALUE_AT_OFFSET,value_offset,indent,prefix);
                    chpr += printf("# Start of Nikon Preview Image SubIFD from MakerNote");
                }
                else if(!at_offset && (PRINT_VALUE))
                {
                    if(!(PRINT_OFFSET))
                        chpr += printf("@%lu",value_offset);
                }
                chpr = newline(chpr);
                if(summary_entry)
                {
                    ifdnum = summary_entry->ifdnum;
                    subifdnum = summary_entry->subifdnum;
                }
                value_offset = process_tiff_ifd(inptr,byteorder,entry_ptr->value,
                                        fileoffset_base,0,summary_entry,fulldirname,
                                        MAKER_SUBIFD,ifdnum,subifdnum,
                                        indent+SMALLINDENT);
                if(at_offset && (PRINT_SECTION))
                {
                    chpr = newline(chpr);
                    if(value_offset == 0)
                        PUSHCOLOR(RED);
                    print_tag_address(VALUE_AT_OFFSET,value_offset - 1,
                                                indent,"-");
                    if(value_offset == 0)
                        POPCOLOR();
                    chpr += printf("# End of Nikon Preview Image SubIFD from MakerNote");
                    if(value_offset == 0)
                        printred(" (INVALID)");
                }
                if(summary_entry)
                { 
                    /* The new one is on the end of the chain         */
                    if((summary_entry = last_summary_entry(summary_entry)))
                    {
                        summary_entry->filesubformat |= FILESUBFMT_MNSUBIFD;
                        summary_entry->datatype = MAKER_SUBIFD;
                        summary_entry->subfiletype = REDUCED_RES_TYPE;
                    }
                }
                break;
            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 %lu",count); 
                }
                else if(!at_offset && (PRINT_VALUE))
                {
                    if(!(PRINT_OFFSET))
                        chpr += printf("@%lu:%lu",value_offset,count);
                    else
                        chpr += printf(":%lu", count);
                    if(!(PRINT_VALUE_AT_OFFSET))
                        chpr += printf(" # UNDEFINED");
                }
                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 0
/* an alternate place to look */
                if((status = jpeg_status(status)) == JPEG_NO_SOI)
                {
                    marker = read_ushort(inptr,TIFF_MOTOROLA,value_offset - fileoffset_base);
                    max_offset = process_jpeg_segments(inptr,value_offset - fileoffset_base,
                                            marker,count,summary_entry,
                                            prefix,indent+SMALLINDENT);
                    if(max_offset)
                        value_offset -= fileoffset_base;
                }
#endif
                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,"-");
                        chpr += printf("# End of JPEG Thumbnail from MakerNote");
                        chpr += printf(" length %lu",count); 
                        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 unless 'inptr' bad   */
                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);
                    if(!(PRINT_VALUE_AT_OFFSET))
                        chpr += printf("    # UNDEFINED");
                    chpr = newline(chpr);
                }
                process_pim(inptr,byteorder,entry_ptr->value,fileoffset_base,
                    count,nameoftag,parent_name,prefix,indent);
                break;
            case 0x0010: /* Data                                      */
                if(at_offset && (PRINT_ENTRY))
                {
                    print_tag_address(ENTRY,value_offset,indent,prefix);
                    print_makertagid(entry_ptr,25," : ",make,model);
                    chpr += printf("length %-9lu # UNDEFINED", count);
                }
                else if(!at_offset && (PRINT_VALUE))
                {
                    if(!(PRINT_OFFSET))
                        chpr += printf("@%lu:%lu",value_offset,count);
                    else
                        chpr += printf(":%lu",count);
                    if(!(PRINT_VALUE_AT_OFFSET))
                        chpr += printf("    # UNDEFINED");
                }
                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);
                }
                /* make certain we're at the end                      */
                fseek(inptr,value_offset + count,SEEK_SET);
                break;
            case 0x0097:    /* Color Balance ????                     */
                /* Most models show this as an UNDEFINED section; the */
                /* SQ provides it as ASCII, with the value an "array" */
                /* of ascii strings (including newlines). Can these   */
                /* both have the same function?                       */
                if(entry_ptr->value_type == UNDEFINED)
                {
#if 1
                    if(at_offset && (PRINT_ENTRY)) /* PRINT_VALUE?    */
                    {
                        print_tag_address(ENTRY,value_offset,indent,prefix);
                        print_makertagid(entry_ptr,MAKERTAGWIDTH," = ",make,model);
                    }
                    if(at_offset && (PRINT_VALUE) && (PRINT_VALUE_AT_OFFSET))
                        nikon_colorbalance(inptr,entry_ptr,byteorder,fileoffset_base,indent);
                    else if(!at_offset && (PRINT_VALUE))
                    {
                        if(!(PRINT_OFFSET))
                            chpr += printf("@%lu:%-9lu",value_offset,count);
                        else
                            chpr = printf("length %-9lu", entry_ptr->count);
                        if(!(PRINT_VALUE_AT_OFFSET))
                            chpr += printf(" # UNDEFINED");
                    }
#else
                    print_generic_offset_makervalue(inptr,byteorder,entry_ptr,
                                        fileoffset_base,fulldirname,prefix,
                                        indent,make,model,at_offset);
#endif
                }
                else
                {
                    /* This is an unpleasant hack to show all of the  */
                    /* null-separated strings, even in LIST mode,     */
                    /* where IGNORE_LENGTH is usually on.             */
                    orig_print_options = Print_options;
                    Print_options &=~(PRINT_ASCII_IGNORE_LENGTH);
                    print_generic_offset_makervalue(inptr,byteorder,entry_ptr,
                                        fileoffset_base,fulldirname,prefix,
                                        indent,make,model,at_offset);
                    Print_options = orig_print_options;
                }
                break;
            case 0x008c:    /* NEFDecodeTable1                        */
            case 0x0096:    /* NEFDecodeTable2                        */
                if((summary_entry) && (summary_entry->fileformat == FILEFMT_TIFF))
                    summary_entry->filesubformat |= FILESUBFMT_NEF;
                print_generic_offset_makervalue(inptr,byteorder,entry_ptr,
                                    fileoffset_base,fulldirname,prefix,
                                    indent,make,model,at_offset);
                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 0x2ca4d
movq %r9, %r15
movq %rcx, %r12
movq %rdx, %r14
movl %esi, 0x4(%rsp)
movq %r8, 0x40(%rsp)
movq %rdi, 0x10(%rsp)
movl 0xa0(%rsp), %eax
movq %rax, 0x20(%rsp)
movl 0x98(%rsp), %ebx
movl 0x90(%rsp), %ebp
movl 0x88(%rsp), %eax
movq %rax, 0x8(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x28(%rsp)
movzwl (%rdx), %edi
movl %ebp, %esi
movl %ebx, %edx
callq 0x1c518
movq %rax, %r13
leaq 0x15023(%rip), %rsi     # 0x41997
movq %r15, %rdi
movq %rax, %rdx
callq 0x17f99
movq %rax, 0x18(%rsp)
movq 0x8(%r14), %r8
movq 0x10(%r14), %rdx
leaq (%rdx,%r12), %rsi
movzwl (%r14), %eax
cmpl $0x95, %eax
jle 0x2ca54
cmpl $0xff, %eax
jg 0x2ca92
cmpl $0x96, %eax
je 0x2ca71
cmpl $0x97, %eax
jne 0x2cb46
cmpw $0x7, 0x2(%r14)
jne 0x2ccbb
leaq 0x2b7ad(%rip), %r15     # 0x58180
movq (%r15), %rax
cmpl $0x0, 0x20(%rsp)
je 0x2ce9b
testl $0x4003333, %eax        # imm = 0x4003333
je 0x2ca18
movl $0x4003333, %edi        # imm = 0x4003333
movq 0x8(%rsp), %rdx
movq 0x28(%rsp), %rcx
callq 0x55eb
leaq 0x1dba5(%rip), %rdx     # 0x4a5a8
movq %r14, %rdi
movl $0x19, %esi
movl %ebp, %ecx
movl %ebx, %r8d
callq 0x19668
movq (%r15), %rax
testb $0x30, %al
sete %cl
btl $0x18, %eax
setae %al
xorl %ebp, %ebp
orb %cl, %al
movq 0x10(%rsp), %rdi
jne 0x2cb3c
movzwl 0x4(%rsp), %edx
movq %r14, %rsi
movq %r12, %rcx
movq 0x8(%rsp), %r8
callq 0x2d730
jmp 0x2cb3c
xorl %ebp, %ebp
jmp 0x2d13b
cmpl $0x10, %eax
je 0x2cb7d
cmpl $0x11, %eax
je 0x2cc70
cmpl $0x8c, %eax
jne 0x2cb46
movq 0x40(%rsp), %rax
testq %rax, %rax
je 0x2cb46
cmpl $0x2a, 0x14(%rax)
jne 0x2cb46
orb $0x20, 0x18(%rax)
jmp 0x2cb46
cmpl $0x100, %eax            # imm = 0x100
je 0x2cbf7
cmpl $0xe00, %eax            # imm = 0xE00
jne 0x2cb46
xorl %ebp, %ebp
cmpl $0x0, 0x20(%rsp)
jne 0x2cb15
leaq 0x2b6c8(%rip), %rcx     # 0x58180
movq (%rcx), %rax
testb $0x30, %al
je 0x2cb15
xorl %ebx, %ebx
testl $0x300, %eax            # imm = 0x300
jne 0x2cae8
leaq 0x186d7(%rip), %rdi     # 0x451a6
movq %r8, %rdx
xorl %eax, %eax
movq %r8, %rbx
movq %rcx, %rbp
callq 0x3120
movq %rbx, %r8
movl %eax, %ebx
movq (%rbp), %rax
movq %r8, 0x38(%rsp)
btl $0x18, %eax
jb 0x2cb03
leaq 0x15209(%rip), %rdi     # 0x41d03
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
movl %ebx, %edi
callq 0x1707a
movl %eax, %ebp
movq 0x10(%r14), %rdx
movq 0x38(%rsp), %r8
subq $0x8, %rsp
movzwl 0xc(%rsp), %esi
movq 0x18(%rsp), %rdi
movq %r12, %rcx
movq %r13, %r9
pushq 0x10(%rsp)
pushq 0x38(%rsp)
pushq %r15
callq 0x1337a
addq $0x20, %rsp
movq 0x18(%rsp), %r12
jmp 0x2d12e
movzwl 0x4(%rsp), %esi
movq 0x10(%rsp), %rdi
movq %r14, %rdx
movq %r12, %rcx
movq 0x18(%rsp), %r12
movq %r12, %r8
movq 0x28(%rsp), %r9
pushq 0x20(%rsp)
pushq %rbx
pushq %rbp
pushq 0x20(%rsp)
callq 0x19706
addq $0x20, %rsp
xorl %ebp, %ebp
jmp 0x2d12e
leaq 0x2b5fc(%rip), %r15     # 0x58180
movq (%r15), %rax
cmpl $0x0, 0x20(%rsp)
movq %rsi, 0x30(%rsp)
je 0x2cd09
testl $0x4003333, %eax        # imm = 0x4003333
movq 0x18(%rsp), %r12
movq 0x10(%rsp), %r13
je 0x2cd3b
movl $0x4003333, %edi        # imm = 0x4003333
movq 0x8(%rsp), %rdx
movq 0x28(%rsp), %rcx
movq %r8, %r15
callq 0x55eb
leaq 0x19cf6(%rip), %rdx     # 0x468c0
movq %r14, %rdi
movl $0x19, %esi
movl %ebp, %ecx
movl %ebx, %r8d
callq 0x19668
leaq 0x15102(%rip), %rdi     # 0x41ce5
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
movq %r15, %r8
movl %eax, %ebp
jmp 0x2cef9
leaq 0x2b582(%rip), %r15     # 0x58180
movq (%r15), %rax
cmpl $0x0, 0x20(%rsp)
je 0x2cd42
btl $0x12, %eax
movq 0x18(%rsp), %r12
movq 0x10(%rsp), %r13
jae 0x2cd77
movl $0x1000000, %edi        # imm = 0x1000000
movq %r15, %rbp
movq %rsi, %r15
movq 0x8(%rsp), %rdx
movq 0x28(%rsp), %rcx
movq %r8, %r14
callq 0x55eb
leaq 0x1d41c(%rip), %rdi     # 0x4a060
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
leaq 0x1bb06(%rip), %rdi     # 0x4875a
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
movq %r15, %rsi
movq %rbp, %r15
movq %r14, %r8
movl %eax, %ebp
addl %ebx, %ebp
jmp 0x2cfc8
leaq 0x2b509(%rip), %r15     # 0x58180
movq (%r15), %rax
cmpl $0x0, 0x20(%rsp)
movq 0x40(%rsp), %r13
je 0x2cd7e
btl $0x12, %eax
jae 0x2cda1
movl $0x1000000, %edi        # imm = 0x1000000
movq 0x8(%rsp), %rdx
movq 0x28(%rsp), %rcx
callq 0x55eb
leaq 0x1d40d(%rip), %rdi     # 0x4a0bc
xorl %eax, %eax
callq 0x3120
jmp 0x2cd9d
leaq 0x2b4be(%rip), %r15     # 0x58180
movq (%r15), %r13
movq %r13, %rax
andq $-0x40000001, %rax      # imm = 0xBFFFFFFF
movq %rax, (%r15)
movzwl 0x4(%rsp), %esi
movq 0x10(%rsp), %rdi
movq %r14, %rdx
movq %r12, %rcx
movq 0x18(%rsp), %r12
movq %r12, %r8
movq 0x28(%rsp), %r9
pushq 0x20(%rsp)
pushq %rbx
pushq %rbp
pushq 0x20(%rsp)
callq 0x19706
addq $0x20, %rsp
movq %r13, (%r15)
jmp 0x2cb76
testb $0x30, %al
movq 0x18(%rsp), %r12
movq 0x10(%rsp), %r13
je 0x2cd3b
testl $0x300, %eax            # imm = 0x300
je 0x2cec9
leaq 0x18481(%rip), %rdi     # 0x451aa
movq %r8, %rbx
movq %r8, %rsi
xorl %eax, %eax
callq 0x3120
jmp 0x2cedd
xorl %ebp, %ebp
jmp 0x2cef9
testb $0x30, %al
movq 0x18(%rsp), %r12
movq 0x10(%rsp), %r13
je 0x2cd77
testl $0x300, %eax            # imm = 0x300
je 0x2cf92
movq %rsi, %r14
leaq 0x18445(%rip), %rdi     # 0x451aa
movq %r8, %rbx
movq %r8, %rsi
xorl %eax, %eax
callq 0x3120
jmp 0x2cfa9
xorl %ebp, %ebp
jmp 0x2cfc8
testb $0x30, %al
sete %cl
testl $0x300, %eax            # imm = 0x300
setne %al
orb %cl, %al
jne 0x2cda1
leaq 0x1ba96(%rip), %rdi     # 0x4882c
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x2cda3
xorl %edi, %edi
movq 0x10(%rsp), %rbx
callq 0x1707a
movl %eax, %ebp
testq %r13, %r13
je 0x2cdc4
movl 0x11c(%r13), %eax
movl 0x120(%r13), %r10d
jmp 0x2cdcf
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl $0xffffffff, %r10d      # imm = 0xFFFFFFFF
movl 0x4(%rsp), %esi
movq 0x10(%r14), %rdx
movq 0x8(%rsp), %rcx
leal 0x2(%rcx), %r11d
subq $0x8, %rsp
movzwl %si, %esi
movq %rbx, %rdi
movq %r12, %rcx
xorl %r8d, %r8d
movq %r13, %r9
pushq %r11
pushq %r10
pushq %rax
pushq $0x6
movq 0x40(%rsp), %r12
pushq %r12
callq 0xcabc
addq $0x30, %rsp
cmpl $0x0, 0x20(%rsp)
je 0x2ce64
testb $0x4, 0x2(%r15)
je 0x2ce64
movq %rax, %rbx
movl %ebp, %edi
callq 0x1707a
movl %eax, %r14d
leaq -0x1(%rbx), %rsi
leaq 0x142c9(%rip), %rcx     # 0x410f9
movl $0x1000000, %edi        # imm = 0x1000000
movq 0x8(%rsp), %rdx
callq 0x55eb
leaq 0x1d2ab(%rip), %rdi     # 0x4a0f1
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r14d, %ebp
cmpq $0x1, %rbx
jae 0x2ce64
leaq 0x1d2c5(%rip), %rdi     # 0x4a124
callq 0x5c26
testq %r13, %r13
je 0x2d12e
movq %r13, %rdi
callq 0xfed1
testq %rax, %rax
je 0x2d12e
orb $0x2, 0x19(%rax)
movl $0x6, 0x118(%rax)
movl $0x5, 0xc4(%rax)
jmp 0x2d12e
testb $0x30, %al
je 0x2d150
testl $0x300, %eax            # imm = 0x300
movq 0x18(%rsp), %r12
je 0x2d157
leaq 0x1edc9(%rip), %rdi     # 0x4bc83
movq %r8, %rsi
xorl %eax, %eax
callq 0x3120
jmp 0x2d168
leaq 0x182d6(%rip), %rdi     # 0x451a6
movq %r8, %rbx
movq %r8, %rdx
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
testb $0x1, 0x3(%r15)
jne 0x2cef6
leaq 0x14e16(%rip), %rdi     # 0x41d03
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq %rbx, %r8
leaq 0x2c508(%rip), %rax     # 0x59408
movq (%rax), %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %r8, %rbx
cmpq %rcx, %rax
je 0x2cf37
testq %rax, %rax
jne 0x2cf2d
testl %ebp, %ebp
je 0x2cf7d
leaq 0x1479f(%rip), %rdi     # 0x416bf
movq %r8, %rbx
callq 0x5c26
movq %rbx, %r8
jmp 0x2cf7f
cmpq %r8, %rax
cmovaeq %r8, %rax
movq %rax, %rbx
movl %ebp, %edi
movq %r8, %r14
callq 0x1707a
subq $0x8, %rsp
movq %r13, %rdi
movq 0x38(%rsp), %r15
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
movl $0xc, %r8d
movq 0x10(%rsp), %r9
pushq $0x2
callq 0x7480
addq $0x10, %rsp
movl $0x1, %edi
callq 0x1707a
movq %r14, %r8
movl %eax, %ebp
jmp 0x2cf84
xorl %ebp, %ebp
movq 0x30(%rsp), %r15
addq %r8, %r15
movq %r13, %rdi
movq %r15, %rsi
jmp 0x2d127
leaq 0x1820d(%rip), %rdi     # 0x451a6
movq %rsi, %r14
movq %r8, %rbx
movq %r8, %rdx
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
testb $0x1, 0x3(%r15)
jne 0x2cfc2
leaq 0x14d4d(%rip), %rdi     # 0x41d06
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq %rbx, %r8
movq %r14, %rsi
movq %rsi, 0x30(%rsp)
movq %r8, 0x38(%rsp)
testb $0xc, 0x2(%r15)
je 0x2cfe2
movl %ebp, %edi
callq 0x1707a
movl %eax, %ebp
movq %r13, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq 0x30(%rsp), %r14
movq %r14, %rdx
callq 0x45af
movl %eax, %ebx
movq 0x8(%rsp), %rax
addl $0x2, %eax
movzwl %bx, %edx
movq %r13, %rdi
movq %r14, %rsi
movq 0x38(%rsp), %rcx
movq 0x40(%rsp), %r8
movq %r12, %r9
pushq %rax
pushq 0x30(%rsp)
callq 0x11455
addq $0x10, %rsp
cmpl $0x0, 0x20(%rsp)
je 0x2d0d4
testb $0x4, 0x2(%r15)
je 0x2d0d4
xorl %edi, %edi
callq 0x1336d
xorl %r14d, %r14d
cmpl $0x1, %eax
sete %r14b
jne 0x2d057
movl %ebp, %edi
callq 0x1707a
movl %eax, %ebp
movl %r14d, %edi
callq 0x1336d
movq 0x38(%rsp), %r15
movq 0x30(%rsp), %rax
leaq (%rax,%r15), %rsi
decq %rsi
leaq 0x14082(%rip), %rcx     # 0x410f9
movl $0x1000000, %edi        # imm = 0x1000000
movq 0x8(%rsp), %rdx
callq 0x55eb
leaq 0x1cffc(%rip), %rdi     # 0x4a089
xorl %eax, %eax
callq 0x3120
movl %eax, %r14d
addl %ebp, %r14d
leaq 0x1b6b9(%rip), %rdi     # 0x4875a
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r14d, %ebp
leaq 0x2b0c9(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x4003333, %eax        # imm = 0x4003333
sete %cl
testb $0x30, %al
setne %al
orb %cl, %al
jne 0x2d0d4
movl %ebp, %edi
callq 0x1707a
movl %eax, %ebp
xorl %eax, %eax
callq 0x9734
testw %bx, %bx
sete %al
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x2d112
callq 0xfed1
testq %rax, %rax
je 0x2d112
orb $0x1, 0x19(%rax)
movl $0x5, 0x118(%rax)
movl $0x2, 0xc4(%rax)
movq %r13, %rdi
callq 0x31b0
movq 0x30(%rsp), %rsi
addq 0x38(%rsp), %rsi
movq %r13, %rdi
xorl %edx, %edx
callq 0x3210
testq %r12, %r12
je 0x2d13b
movq %r12, %rdi
callq 0x3050
movl %ebp, %edi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17a82
xorl %ebp, %ebp
jmp 0x2cb3c
leaq 0x177ff(%rip), %rdi     # 0x4495d
movq %r8, %rdx
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
testb $0x1, 0x3(%r15)
jne 0x2d12e
leaq 0x14b8e(%rip), %rdi     # 0x41d06
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
jmp 0x2d12e