// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
pushq %rbx
subq $0xb8, %rsp
movw %si, %ax
movl 0x30(%rbp), %esi
movl 0x28(%rbp), %esi
movl 0x20(%rbp), %esi
movl 0x18(%rbp), %esi
movq 0x10(%rbp), %rsi
movq %rdi, -0x10(%rbp)
movw %ax, -0x12(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq $0x0, -0x40(%rbp)
movq $0x0, -0x78(%rbp)
movl $0x0, -0x7c(%rbp)
movl $0x0, -0x80(%rbp)
movl $0xffffffff, -0x84(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0x88(%rbp) # imm = 0xFFFFFFFF
cmpq $0x0, -0x20(%rbp)
je 0x400fb
movq -0x20(%rbp), %rax
movzwl (%rax), %edi
movl 0x20(%rbp), %esi
movl 0x28(%rbp), %edx
callq 0x28160
movq %rax, -0x70(%rbp)
movq -0x38(%rbp), %rdi
movq -0x70(%rbp), %rdx
leaq 0x252c9(%rip), %rsi     # 0x64962
callq 0x20960
movq %rax, -0x78(%rbp)
movq -0x28(%rbp), %rax
movq -0x20(%rbp), %rcx
movq 0x10(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movzwl (%rax), %eax
movl %eax, -0x8c(%rbp)
subl $0x10, %eax
je 0x3fcc3
jmp 0x3f6d9
movl -0x8c(%rbp), %eax
subl $0x11, %eax
je 0x3f748
jmp 0x3f6e6
movl -0x8c(%rbp), %eax
subl $0x8c, %eax
je 0x4004b
jmp 0x3f6f9
movl -0x8c(%rbp), %eax
subl $0x96, %eax
je 0x4004b
jmp 0x3f70c
movl -0x8c(%rbp), %eax
subl $0x97, %eax
je 0x3fe75
jmp 0x3f71f
movl -0x8c(%rbp), %eax
subl $0x100, %eax            # imm = 0x100
je 0x3f931
jmp 0x3f732
movl -0x8c(%rbp), %eax
subl $0xe00, %eax            # imm = 0xE00
je 0x3fc01
jmp 0x400aa
cmpl $0x0, 0x30(%rbp)
je 0x3f78f
leaq 0x37a2b(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40000, %rax          # imm = 0x40000
cmpq $0x0, %rax
je 0x3f78f
movq -0x48(%rbp), %rsi
movl 0x18(%rbp), %edx
movq 0x10(%rbp), %rcx
movl $0x1000000, %edi        # imm = 0x1000000
callq 0x5ed0
leaq 0x2d098(%rip), %rdi     # 0x6c818
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
jmp 0x3f7db
cmpl $0x0, 0x30(%rbp)
jne 0x3f7d9
leaq 0x379e4(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3f7d9
leaq 0x379d0(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x300, %rax            # imm = 0x300
cmpq $0x0, %rax
jne 0x3f7d7
movq -0x48(%rbp), %rsi
leaq 0x2b5c1(%rip), %rdi     # 0x6ad8b
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
jmp 0x3f7d9
jmp 0x3f7db
movl -0x80(%rbp), %edi
callq 0x1ef50
movl %eax, -0x80(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x3f80d
movq -0x30(%rbp), %rax
movl 0x11c(%rax), %eax
movl %eax, -0x84(%rbp)
movq -0x30(%rbp), %rax
movl 0x120(%rax), %eax
movl %eax, -0x88(%rbp)
movq -0x10(%rbp), %rdi
movw -0x12(%rbp), %si
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r9
movq -0x78(%rbp), %rbx
movl -0x84(%rbp), %r11d
movl -0x88(%rbp), %r10d
movl 0x18(%rbp), %eax
addl $0x2, %eax
xorl %r8d, %r8d
movzwl %si, %esi
movq %rbx, (%rsp)
movl $0x6, 0x8(%rsp)
movl %r11d, 0x10(%rsp)
movl %r10d, 0x18(%rsp)
movl %eax, 0x20(%rsp)
callq 0x112e0
movq %rax, -0x48(%rbp)
cmpl $0x0, 0x30(%rbp)
je 0x3f8e4
leaq 0x3790d(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40000, %rax          # imm = 0x40000
cmpq $0x0, %rax
je 0x3f8e4
movl -0x80(%rbp), %edi
callq 0x1ef50
movl %eax, -0x80(%rbp)
cmpq $0x0, -0x48(%rbp)
jne 0x3f896
jmp 0x3f896
movq -0x48(%rbp), %rsi
subq $0x1, %rsi
movl 0x18(%rbp), %edx
movl $0x1000000, %edi        # imm = 0x1000000
leaq 0x2484c(%rip), %rcx     # 0x640f9
callq 0x5ed0
cmpq $0x0, -0x48(%rbp)
jne 0x3f8bb
jmp 0x3f8bb
leaq 0x2cf8b(%rip), %rdi     # 0x6c84d
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
cmpq $0x0, -0x48(%rbp)
jne 0x3f8e2
leaq 0x2cfa3(%rip), %rdi     # 0x6c880
callq 0x6860
jmp 0x3f8e4
cmpq $0x0, -0x30(%rbp)
je 0x3f92c
movq -0x30(%rbp), %rdi
callq 0x15780
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0x3f92a
movq -0x30(%rbp), %rax
movl 0x18(%rax), %ecx
orl $0x200, %ecx            # imm = 0x200
movl %ecx, 0x18(%rax)
movq -0x30(%rbp), %rax
movl $0x6, 0x118(%rax)
movq -0x30(%rbp), %rax
movl $0x5, 0xc4(%rax)
jmp 0x3f92c
jmp 0x400e9
cmpl $0x0, 0x30(%rbp)
je 0x3f993
leaq 0x37842(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40000, %rax          # imm = 0x40000
cmpq $0x0, %rax
je 0x3f993
movq -0x48(%rbp), %rsi
movl 0x18(%rbp), %edx
movq 0x10(%rbp), %rcx
movl $0x1000000, %edi        # imm = 0x1000000
callq 0x5ed0
leaq 0x2ce53(%rip), %rdi     # 0x6c7bc
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
movq -0x50(%rbp), %rsi
leaq 0x2b338(%rip), %rdi     # 0x6acb9
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
jmp 0x3fa2b
cmpl $0x0, 0x30(%rbp)
jne 0x3fa29
leaq 0x377dc(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3fa29
leaq 0x377c8(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x300, %rax            # imm = 0x300
cmpq $0x0, %rax
jne 0x3f9e5
movq -0x48(%rbp), %rsi
movq -0x50(%rbp), %rdx
leaq 0x27e5e(%rip), %rdi     # 0x67834
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
jmp 0x3f9fd
movq -0x50(%rbp), %rsi
leaq 0x27e48(%rip), %rdi     # 0x67838
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
leaq 0x3777c(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
jne 0x3fa27
leaq 0x252b7(%rip), %rdi     # 0x64cd1
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
jmp 0x3fa29
jmp 0x3fa2b
leaq 0x3774e(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40000, %rax          # imm = 0x40000
cmpq $0x0, %rax
jne 0x3fa57
leaq 0x37738(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x80000, %rax          # imm = 0x80000
cmpq $0x0, %rax
je 0x3fa62
movl -0x80(%rbp), %edi
callq 0x1ef50
movl %eax, -0x80(%rbp)
movq -0x10(%rbp), %rdi
movq -0x48(%rbp), %rdx
movl $0x4d4d, %esi           # imm = 0x4D4D
callq 0x4480
movw %ax, -0x62(%rbp)
movq -0x10(%rbp), %rdi
movq -0x48(%rbp), %rsi
movw -0x62(%rbp), %dx
movq -0x50(%rbp), %rcx
movq -0x30(%rbp), %r8
movq -0x78(%rbp), %r9
movq 0x10(%rbp), %r10
movl 0x18(%rbp), %eax
addl $0x2, %eax
movzwl %dx, %edx
movq %r10, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x17470
movq %rax, -0x40(%rbp)
cmpl $0x0, 0x30(%rbp)
je 0x3fb88
leaq 0x376c1(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40000, %rax          # imm = 0x40000
cmpq $0x0, %rax
je 0x3fb86
xorl %edi, %edi
callq 0x19930
cmpl $0x1, %eax
sete %al
movb %al, %cl
andb $0x1, %cl
movzbl %cl, %ecx
movl %ecx, -0x7c(%rbp)
testb $0x1, %al
jne 0x3faf0
jmp 0x3fafb
movl -0x80(%rbp), %edi
callq 0x1ef50
movl %eax, -0x80(%rbp)
movl -0x7c(%rbp), %edi
callq 0x19930
movq -0x48(%rbp), %rsi
addq -0x50(%rbp), %rsi
subq $0x1, %rsi
movl 0x18(%rbp), %edx
movl $0x1000000, %edi        # imm = 0x1000000
leaq 0x245db(%rip), %rcx     # 0x640f9
callq 0x5ed0
leaq 0x2ccbb(%rip), %rdi     # 0x6c7e5
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
movq -0x50(%rbp), %rsi
leaq 0x2b177(%rip), %rdi     # 0x6acb9
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
leaq 0x3762a(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x4003333, %rax        # imm = 0x4003333
cmpq $0x0, %rax
je 0x3fb84
leaq 0x37614(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
jne 0x3fb84
movl -0x80(%rbp), %edi
callq 0x1ef50
movl %eax, -0x80(%rbp)
jmp 0x3fb86
jmp 0x3fb88
movb $0x0, %al
callq 0xba00
movzwl -0x62(%rbp), %eax
cmpl $0x0, %eax
je 0x3fbe0
cmpq $0x0, -0x30(%rbp)
je 0x3fbe0
movq -0x30(%rbp), %rdi
callq 0x15780
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0x3fbde
movq -0x30(%rbp), %rax
movl 0x18(%rax), %ecx
orl $0x100, %ecx            # imm = 0x100
movl %ecx, 0x18(%rax)
movq -0x30(%rbp), %rax
movl $0x5, 0x118(%rax)
movq -0x30(%rbp), %rax
movl $0x2, 0xc4(%rax)
jmp 0x3fbe0
movq -0x10(%rbp), %rdi
callq 0x31a0
movq -0x10(%rbp), %rdi
movq -0x48(%rbp), %rsi
addq -0x50(%rbp), %rsi
xorl %edx, %edx
callq 0x3200
jmp 0x400e9
cmpl $0x0, 0x30(%rbp)
jne 0x3fc82
leaq 0x37572(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3fc82
leaq 0x3755e(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x300, %rax            # imm = 0x300
cmpq $0x0, %rax
jne 0x3fc4d
movq -0x48(%rbp), %rsi
movq -0x50(%rbp), %rdx
leaq 0x27bf4(%rip), %rdi     # 0x67834
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
leaq 0x3752c(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
jne 0x3fc77
leaq 0x25064(%rip), %rdi     # 0x64cce
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
movl -0x80(%rbp), %edi
callq 0x1ef50
movl %eax, -0x80(%rbp)
movq -0x10(%rbp), %rdi
movw -0x12(%rbp), %si
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdx
movq -0x28(%rbp), %rcx
movq -0x50(%rbp), %r8
movq -0x70(%rbp), %r9
movq -0x38(%rbp), %r11
movq 0x10(%rbp), %r10
movl 0x18(%rbp), %eax
movzwl %si, %esi
movq %r11, (%rsp)
movq %r10, 0x8(%rsp)
movl %eax, 0x10(%rsp)
callq 0x19950
jmp 0x400e9
cmpl $0x0, 0x30(%rbp)
je 0x3fd2d
leaq 0x374b0(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x4003333, %rax        # imm = 0x4003333
cmpq $0x0, %rax
je 0x3fd2d
movq -0x48(%rbp), %rsi
movl 0x18(%rbp), %edx
movq 0x10(%rbp), %rcx
movl $0x4003333, %edi        # imm = 0x4003333
callq 0x5ed0
movq -0x20(%rbp), %rdi
movl 0x20(%rbp), %ecx
movl 0x28(%rbp), %r8d
movl $0x19, %esi
leaq 0x290d9(%rip), %rdx     # 0x68de4
callq 0x23e20
movq -0x50(%rbp), %rsi
leaq 0x24f95(%rip), %rdi     # 0x64cb0
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
jmp 0x3fdc5
cmpl $0x0, 0x30(%rbp)
jne 0x3fdc3
leaq 0x37442(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3fdc3
leaq 0x3742e(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x300, %rax            # imm = 0x300
cmpq $0x0, %rax
jne 0x3fd7f
movq -0x48(%rbp), %rsi
movq -0x50(%rbp), %rdx
leaq 0x27ac4(%rip), %rdi     # 0x67834
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
jmp 0x3fd97
movq -0x50(%rbp), %rsi
leaq 0x27aae(%rip), %rdi     # 0x67838
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
leaq 0x373e2(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
jne 0x3fdc1
leaq 0x24f1a(%rip), %rdi     # 0x64cce
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
jmp 0x3fdc3
jmp 0x3fdc5
leaq 0x3863c(%rip), %rax     # 0x78408
cmpq $0x0, (%rax)
jne 0x3fde6
cmpl $0x0, -0x80(%rbp)
je 0x3fde4
leaq 0x248a0(%rip), %rdi     # 0x6467f
callq 0x6860
jmp 0x3fe5d
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
leaq 0x38616(%rip), %rax     # 0x78408
cmpq %rcx, (%rax)
je 0x3fe07
leaq 0x3860a(%rip), %rax     # 0x78408
movq (%rax), %rax
cmpq -0x50(%rbp), %rax
jbe 0x3fe11
movq -0x50(%rbp), %rax
movq %rax, -0x58(%rbp)
jmp 0x3fe1f
leaq 0x385f0(%rip), %rax     # 0x78408
movq (%rax), %rax
movq %rax, -0x58(%rbp)
movl -0x80(%rbp), %edi
callq 0x1ef50
movl %eax, -0x80(%rbp)
movq -0x10(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x50(%rbp), %rdx
movq -0x58(%rbp), %rcx
movl 0x18(%rbp), %r9d
movl $0xc, %r8d
movl $0x2, (%rsp)
callq 0x8aa0
movl $0x1, %edi
callq 0x1ef50
movl %eax, -0x80(%rbp)
movq -0x10(%rbp), %rdi
movq -0x48(%rbp), %rsi
addq -0x50(%rbp), %rsi
xorl %edx, %edx
callq 0x3200
jmp 0x400e9
movq -0x20(%rbp), %rax
movzwl 0x2(%rax), %eax
cmpl $0x7, %eax
jne 0x3ffc2
cmpl $0x0, 0x30(%rbp)
je 0x3fed3
leaq 0x372ed(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x4003333, %rax        # imm = 0x4003333
cmpq $0x0, %rax
je 0x3fed3
movq -0x48(%rbp), %rsi
movl 0x18(%rbp), %edx
movq 0x10(%rbp), %rcx
movl $0x4003333, %edi        # imm = 0x4003333
callq 0x5ed0
movq -0x20(%rbp), %rdi
movl 0x20(%rbp), %ecx
movl 0x28(%rbp), %r8d
movl $0x19, %esi
leaq 0x2ce4a(%rip), %rdx     # 0x6cd18
callq 0x23e20
cmpl $0x0, 0x30(%rbp)
je 0x3ff24
leaq 0x372a0(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3ff24
leaq 0x3728c(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
je 0x3ff24
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movw -0x12(%rbp), %ax
movq -0x28(%rbp), %rcx
movl 0x18(%rbp), %r8d
movzwl %ax, %edx
callq 0x40840
jmp 0x3ffbd
cmpl $0x0, 0x30(%rbp)
jne 0x3ffbb
leaq 0x3724b(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x3ffbb
leaq 0x37237(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x300, %rax            # imm = 0x300
cmpq $0x0, %rax
jne 0x3ff76
movq -0x48(%rbp), %rsi
movq -0x50(%rbp), %rdx
leaq 0x27084(%rip), %rdi     # 0x66feb
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
jmp 0x3ff8f
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rsi
leaq 0x2e1ee(%rip), %rdi     # 0x6e173
movb $0x0, %al
callq 0x3110
movl %eax, -0x80(%rbp)
leaq 0x371ea(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
jne 0x3ffb9
leaq 0x24d25(%rip), %rdi     # 0x64cd1
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
jmp 0x3ffbb
jmp 0x3ffbd
jmp 0x40046
leaq 0x371b7(%rip), %rax     # 0x77180
movq (%rax), %rax
movq %rax, -0x60(%rbp)
leaq 0x371a9(%rip), %rax     # 0x77180
movq (%rax), %rcx
andq $0x40000000, %rcx       # imm = 0x40000000
xorq $-0x1, %rcx
leaq 0x37194(%rip), %rax     # 0x77180
andq (%rax), %rcx
leaq 0x3718a(%rip), %rax     # 0x77180
movq %rcx, (%rax)
movq -0x10(%rbp), %rdi
movw -0x12(%rbp), %si
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x78(%rbp), %r8
movq 0x10(%rbp), %r9
movl 0x18(%rbp), %ebx
movl 0x20(%rbp), %r11d
movl 0x28(%rbp), %r10d
movl 0x30(%rbp), %eax
movzwl %si, %esi
movl %ebx, (%rsp)
movl %r11d, 0x8(%rsp)
movl %r10d, 0x10(%rsp)
movl %eax, 0x18(%rsp)
callq 0x23f60
movq -0x60(%rbp), %rcx
leaq 0x3713d(%rip), %rax     # 0x77180
movq %rcx, (%rax)
jmp 0x400e9
cmpq $0x0, -0x30(%rbp)
je 0x40069
movq -0x30(%rbp), %rax
cmpl $0x2a, 0x14(%rax)
jne 0x40069
movq -0x30(%rbp), %rax
movl 0x18(%rax), %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%rax)
movq -0x10(%rbp), %rdi
movw -0x12(%rbp), %si
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x78(%rbp), %r8
movq 0x10(%rbp), %r9
movl 0x18(%rbp), %ebx
movl 0x20(%rbp), %r11d
movl 0x28(%rbp), %r10d
movl 0x30(%rbp), %eax
movzwl %si, %esi
movl %ebx, (%rsp)
movl %r11d, 0x8(%rsp)
movl %r10d, 0x10(%rsp)
movl %eax, 0x18(%rsp)
callq 0x23f60
jmp 0x400e9
movq -0x10(%rbp), %rdi
movw -0x12(%rbp), %si
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x78(%rbp), %r8
movq 0x10(%rbp), %r9
movl 0x18(%rbp), %ebx
movl 0x20(%rbp), %r11d
movl 0x28(%rbp), %r10d
movl 0x30(%rbp), %eax
movzwl %si, %esi
movl %ebx, (%rsp)
movl %r11d, 0x8(%rsp)
movl %r10d, 0x10(%rsp)
movl %eax, 0x18(%rsp)
callq 0x23f60
cmpq $0x0, -0x78(%rbp)
je 0x400f9
movq -0x78(%rbp), %rdi
callq 0x3040
jmp 0x400fb
movl -0x80(%rbp), %edi
callq 0x1ff00
addq $0xb8, %rsp
popq %rbx
popq %rbp
retq
nopl (%rax)