// File: /workspace/github_c_makefile_star2_O1/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 0x2c2a6
movq %r9, %rbx
movq %rcx, %r14
movq %rdx, %r13
movl %esi, 0xc(%rsp)
movq %r8, 0x38(%rsp)
movq %rdi, 0x18(%rsp)
movl 0xa0(%rsp), %eax
movq %rax, 0x20(%rsp)
movl 0x98(%rsp), %r15d
movl 0x90(%rsp), %ebp
movl 0x88(%rsp), %eax
movq %rax, 0x10(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x28(%rsp)
movzwl (%rdx), %edi
movl %ebp, %esi
movl %r15d, %edx
callq 0x1c020
movq %rax, %r12
leaq 0x157c9(%rip), %rsi     # 0x41997
movq %rbx, %rdi
movq %rax, %rdx
callq 0x17a47
movq %rax, (%rsp)
movq 0x10(%r13), %rsi
addq %r14, %rsi
movq 0x8(%r13), %r8
movzwl (%r13), %eax
cmpl $0x95, %eax
jle 0x2c2ad
cmpl $0xff, %eax
jg 0x2c2eb
cmpl $0x96, %eax
je 0x2c2ca
cmpl $0x97, %eax
jne 0x2c397
cmpw $0x7, 0x2(%r13)
jne 0x2c504
leaq 0x2bf54(%rip), %rbx     # 0x58180
movq (%rbx), %rax
cmpl $0x0, 0x20(%rsp)
je 0x2c6ee
testl $0x4003333, %eax        # imm = 0x4003333
je 0x2c26e
movl $0x4003333, %edi        # imm = 0x4003333
movq 0x10(%rsp), %rdx
movq 0x28(%rsp), %rcx
callq 0x5605
leaq 0x1e30c(%rip), %rdx     # 0x4a568
movq %r13, %rdi
movl $0x19, %esi
movl %ebp, %ecx
movl %r15d, %r8d
callq 0x1910e
movq (%rbx), %rax
testb $0x30, %al
sete %cl
btl $0x18, %eax
setae %al
xorl %ebp, %ebp
orb %cl, %al
movq 0x18(%rsp), %rdi
jne 0x2c38e
movzwl 0xc(%rsp), %edx
movq %r13, %rsi
movq %r14, %rcx
movq 0x10(%rsp), %r8
callq 0x2cf7a
jmp 0x2c38e
xorl %ebp, %ebp
jmp 0x2c988
cmpl $0x10, %eax
je 0x2c3ce
cmpl $0x11, %eax
je 0x2c4b9
cmpl $0x8c, %eax
jne 0x2c397
movq 0x38(%rsp), %rax
testq %rax, %rax
je 0x2c397
cmpl $0x2a, 0x14(%rax)
jne 0x2c397
orb $0x20, 0x18(%rax)
jmp 0x2c397
cmpl $0x100, %eax            # imm = 0x100
je 0x2c441
cmpl $0xe00, %eax            # imm = 0xE00
jne 0x2c397
xorl %ebp, %ebp
cmpl $0x0, 0x20(%rsp)
jne 0x2c364
leaq 0x2be6f(%rip), %r15     # 0x58180
movq (%r15), %rax
testb $0x30, %al
je 0x2c364
xorl %ebp, %ebp
testl $0x300, %eax            # imm = 0x300
jne 0x2c33a
leaq 0x18e3a(%rip), %rdi     # 0x45162
movq %r8, %rdx
xorl %eax, %eax
movq %r8, %rbp
callq 0x3120
movq %rbp, %r8
movl %eax, %ebp
movq %r8, 0x30(%rsp)
testb $0x1, 0x3(%r15)
jne 0x2c356
leaq 0x159b6(%rip), %rdi     # 0x41d03
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movl %ebp, %edi
callq 0x16b56
movl %eax, %ebp
movq 0x30(%rsp), %r8
movq 0x10(%r13), %rdx
subq $0x8, %rsp
movzwl 0x14(%rsp), %esi
movq 0x20(%rsp), %rdi
movq %r14, %rcx
movq %r12, %r9
pushq 0x18(%rsp)
pushq 0x38(%rsp)
pushq %rbx
callq 0x12f22
addq $0x20, %rsp
movq (%rsp), %r13
jmp 0x2c97b
movzwl 0xc(%rsp), %esi
movq 0x18(%rsp), %rdi
movq %r13, %rdx
movq %r14, %rcx
movq (%rsp), %r13
movq %r13, %r8
movq 0x28(%rsp), %r9
pushq 0x20(%rsp)
pushq %r15
pushq %rbp
pushq 0x28(%rsp)
callq 0x191ac
addq $0x20, %rsp
xorl %ebp, %ebp
jmp 0x2c97b
leaq 0x2bdab(%rip), %rbx     # 0x58180
movq (%rbx), %rax
cmpl $0x0, 0x20(%rsp)
je 0x2c552
testl $0x4003333, %eax        # imm = 0x4003333
movq 0x18(%rsp), %r14
je 0x2c586
movl $0x4003333, %edi        # imm = 0x4003333
movq %rsi, %r12
movq 0x10(%rsp), %rdx
movq 0x28(%rsp), %rcx
movq %r8, %rbx
callq 0x5605
leaq 0x1a46c(%rip), %rdx     # 0x46880
movq %r13, %rdi
movl $0x19, %esi
movl %ebp, %ecx
movl %r15d, %r8d
callq 0x1910e
leaq 0x158b8(%rip), %rdi     # 0x41ce5
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3120
movq %rbx, %r8
movl %eax, %ebp
jmp 0x2c58b
leaq 0x2bd38(%rip), %r15     # 0x58180
movq (%r15), %rax
cmpl $0x0, 0x20(%rsp)
je 0x2c594
btl $0x12, %eax
movq (%rsp), %r13
movq 0x18(%rsp), %r12
jae 0x2c5c8
movl $0x1000000, %edi        # imm = 0x1000000
movq %rsi, %r14
movq 0x10(%rsp), %rdx
movq 0x28(%rsp), %rcx
movq %r15, %rbp
movq %r8, %r15
callq 0x5605
leaq 0x1db93(%rip), %rdi     # 0x4a020
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
leaq 0x1c27d(%rip), %rdi     # 0x4871a
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
movq %r15, %r8
movq %rbp, %r15
movq %r14, %rsi
movl %eax, %ebp
addl %ebx, %ebp
jmp 0x2c815
leaq 0x2bcc0(%rip), %r15     # 0x58180
movq (%r15), %rax
cmpl $0x0, 0x20(%rsp)
movq 0x38(%rsp), %r12
je 0x2c5cf
btl $0x12, %eax
jae 0x2c5f2
movl $0x1000000, %edi        # imm = 0x1000000
movq 0x10(%rsp), %rdx
movq 0x28(%rsp), %rcx
callq 0x5605
leaq 0x1db84(%rip), %rdi     # 0x4a07c
xorl %eax, %eax
callq 0x3120
jmp 0x2c5ee
leaq 0x2bc75(%rip), %rbx     # 0x58180
movq (%rbx), %r12
movq %r12, %rax
andq $-0x40000001, %rax      # imm = 0xBFFFFFFF
movq %rax, (%rbx)
movzwl 0xc(%rsp), %esi
movq 0x18(%rsp), %rdi
movq %r13, %rdx
movq %r14, %rcx
movq (%rsp), %r13
movq %r13, %r8
movq 0x28(%rsp), %r9
pushq 0x20(%rsp)
pushq %r15
pushq %rbp
pushq 0x28(%rsp)
callq 0x191ac
addq $0x20, %rsp
movq %r12, (%rbx)
jmp 0x2c3c7
testb $0x30, %al
movq 0x18(%rsp), %r14
je 0x2c586
testl $0x300, %eax            # imm = 0x300
movq (%rsp), %r13
je 0x2c718
movq %rsi, %r12
leaq 0x18bf2(%rip), %rdi     # 0x45166
movq %r8, %r15
movq %r8, %rsi
xorl %eax, %eax
callq 0x3120
jmp 0x2c72f
movq %rsi, %r12
xorl %ebp, %ebp
movq (%rsp), %r13
jmp 0x2c74a
testb $0x30, %al
movq (%rsp), %r13
movq 0x18(%rsp), %r12
je 0x2c5c8
testl $0x300, %eax            # imm = 0x300
je 0x2c7df
movq %rsi, %rbx
leaq 0x18bb0(%rip), %rdi     # 0x45166
movq %r8, %r14
movq %r8, %rsi
xorl %eax, %eax
callq 0x3120
jmp 0x2c7f6
xorl %ebp, %ebp
jmp 0x2c815
testb $0x30, %al
sete %cl
testl $0x300, %eax            # imm = 0x300
setne %al
orb %cl, %al
jne 0x2c5f2
leaq 0x1c205(%rip), %rdi     # 0x487ec
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
jmp 0x2c5f4
xorl %edi, %edi
movq 0x18(%rsp), %rbx
callq 0x16b56
movl %eax, %ebp
testq %r12, %r12
je 0x2c617
movl 0x11c(%r12), %eax
movl 0x120(%r12), %r10d
jmp 0x2c622
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl $0xffffffff, %r10d      # imm = 0xFFFFFFFF
movl 0xc(%rsp), %esi
movq 0x10(%r13), %rdx
movq 0x10(%rsp), %rcx
leal 0x2(%rcx), %r11d
subq $0x8, %rsp
movzwl %si, %esi
movq %rbx, %rdi
movq %r14, %rcx
xorl %r8d, %r8d
movq %r12, %r9
pushq %r11
pushq %r10
pushq %rax
pushq $0x6
movq 0x28(%rsp), %r13
pushq %r13
callq 0xc93c
addq $0x30, %rsp
cmpl $0x0, 0x20(%rsp)
je 0x2c6b7
testb $0x4, 0x2(%r15)
je 0x2c6b7
movq %rax, %rbx
movl %ebp, %edi
callq 0x16b56
movl %eax, %r14d
leaq -0x1(%rbx), %rsi
leaq 0x14a76(%rip), %rcx     # 0x410f9
movl $0x1000000, %edi        # imm = 0x1000000
movq 0x10(%rsp), %rdx
callq 0x5605
leaq 0x1da18(%rip), %rdi     # 0x4a0b1
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r14d, %ebp
cmpq $0x1, %rbx
jae 0x2c6b7
leaq 0x1da32(%rip), %rdi     # 0x4a0e4
callq 0x5c33
testq %r12, %r12
je 0x2c97b
movq %r12, %rdi
callq 0xfdaa
testq %rax, %rax
je 0x2c97b
orb $0x2, 0x19(%rax)
movl $0x6, 0x118(%rax)
movl $0x5, 0xc4(%rax)
jmp 0x2c97b
testb $0x30, %al
je 0x2c99d
testl $0x300, %eax            # imm = 0x300
je 0x2c9a4
movq 0x8(%r13), %rsi
leaq 0x1f537(%rip), %rdi     # 0x4bc43
xorl %eax, %eax
callq 0x3120
jmp 0x2c9b5
leaq 0x18a43(%rip), %rdi     # 0x45162
movq %rsi, %r12
movq %r8, %r15
movq %r8, %rdx
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
testb $0x1, 0x3(%rbx)
jne 0x2c747
leaq 0x155c5(%rip), %rdi     # 0x41d03
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq %r15, %r8
leaq 0x2ccb7(%rip), %rax     # 0x59408
movq (%rax), %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %r8, %rbx
cmpq %rcx, %rax
je 0x2c788
testq %rax, %rax
jne 0x2c77e
testl %ebp, %ebp
je 0x2c7cc
leaq 0x14f4e(%rip), %rdi     # 0x416bf
movq %r8, %rbx
callq 0x5c33
movq %rbx, %r8
jmp 0x2c7ce
cmpq %r8, %rax
cmovaeq %r8, %rax
movq %rax, %rbx
movl %ebp, %edi
movq %r8, %rbp
callq 0x16b56
subq $0x8, %rsp
movq %r14, %rdi
movq %r12, %r15
movq %r12, %rsi
movq %rbp, %rdx
movq %rbx, %rcx
movl $0xc, %r8d
movq 0x18(%rsp), %r9
pushq $0x2
callq 0x7446
addq $0x10, %rsp
movl $0x1, %edi
callq 0x16b56
movq %rbp, %r8
movl %eax, %ebp
jmp 0x2c7d1
xorl %ebp, %ebp
movq %r12, %r15
addq %r8, %r15
movq %r14, %rdi
movq %r15, %rsi
jmp 0x2c974
leaq 0x1897c(%rip), %rdi     # 0x45162
movq %rsi, %rbx
movq %r8, %r14
movq %r8, %rdx
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
testb $0x1, 0x3(%r15)
jne 0x2c80f
leaq 0x15500(%rip), %rdi     # 0x41d06
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq %rbx, %rsi
movq %r14, %r8
movq %rsi, 0x40(%rsp)
movq %r8, 0x30(%rsp)
testb $0xc, 0x2(%r15)
je 0x2c82f
movl %ebp, %edi
callq 0x16b56
movl %eax, %ebp
movq %r12, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq 0x40(%rsp), %r14
movq %r14, %rdx
callq 0x4574
movl %eax, %ebx
movq 0x10(%rsp), %rax
addl $0x2, %eax
movzwl %bx, %edx
movq %r12, %rdi
movq %r14, %rsi
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %r8
movq %r13, %r9
pushq %rax
pushq 0x30(%rsp)
callq 0x112cd
addq $0x10, %rsp
cmpl $0x0, 0x20(%rsp)
je 0x2c921
testb $0x4, 0x2(%r15)
je 0x2c921
xorl %edi, %edi
callq 0x12f15
xorl %r14d, %r14d
cmpl $0x1, %eax
sete %r14b
jne 0x2c8a4
movl %ebp, %edi
callq 0x16b56
movl %eax, %ebp
movl %r14d, %edi
callq 0x12f15
movq 0x30(%rsp), %r15
movq 0x40(%rsp), %rax
leaq (%rax,%r15), %rsi
decq %rsi
leaq 0x14835(%rip), %rcx     # 0x410f9
movl $0x1000000, %edi        # imm = 0x1000000
movq 0x10(%rsp), %rdx
callq 0x5605
leaq 0x1d76f(%rip), %rdi     # 0x4a049
xorl %eax, %eax
callq 0x3120
movl %eax, %r14d
addl %ebp, %r14d
leaq 0x1be2c(%rip), %rdi     # 0x4871a
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r14d, %ebp
leaq 0x2b87c(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x4003333, %eax        # imm = 0x4003333
sete %cl
testb $0x30, %al
setne %al
orb %cl, %al
jne 0x2c921
movl %ebp, %edi
callq 0x16b56
movl %eax, %ebp
xorl %eax, %eax
callq 0x9609
testw %bx, %bx
sete %al
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x2c95f
callq 0xfdaa
testq %rax, %rax
je 0x2c95f
orb $0x1, 0x19(%rax)
movl $0x5, 0x118(%rax)
movl $0x2, 0xc4(%rax)
movq %r12, %rdi
callq 0x31b0
movq 0x40(%rsp), %rsi
addq 0x30(%rsp), %rsi
movq %r12, %rdi
xorl %edx, %edx
callq 0x3210
testq %r13, %r13
je 0x2c988
movq %r13, %rdi
callq 0x3050
movl %ebp, %edi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17530
xorl %ebp, %ebp
jmp 0x2c38e
leaq 0x17f6e(%rip), %rdi     # 0x44919
movq %r8, %rdx
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
testb $0x1, 0x3(%rbx)
movq (%rsp), %r13
jne 0x2c97b
leaq 0x1533e(%rip), %rdi     # 0x41d06
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
jmp 0x2c97b