// File: /workspace/github_c_makefile_star2_O0/hfiguiere[P]exifprobe/maker_minolta.c
// Function: minolta1_offset_makervalue
void
minolta1_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)
{
    static unsigned long jpegthumbnailoffset = 0UL;
    unsigned long value_offset;
    unsigned long dumplength;
    unsigned long count;
    unsigned long max_offset = 0;
    unsigned short marker;
    char *nameoftag,*tagprefix;
    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 0x0001:    /* Camera Settings, old                   */
            case 0x0003:    /* Camera Settings, new                   */
                if(at_offset)
                {
                    if((PRINT_SECTION))
                    {
                        print_tag_address(SECTION,value_offset,indent,prefix);
                        chpr += printf("<%s> ",nameoftag);
                        chpr += printf("%lu entries",count / 4);
                    }
                }
                else if(!at_offset && (PRINT_VALUE))
                {
                    if(!(PRINT_OFFSET))
                        chpr += printf("@%lu",value_offset);
                }
                if((PRINT_LONGNAMES))
                    tagprefix = fulldirname;
                else
                    tagprefix = nameoftag;
                max_offset = minolta_camerasetting(inptr,byteorder,model,tagprefix,
                                    entry_ptr,value_offset,indent + MEDIUMINDENT);
                if(PRINT_SECTION)
                {
                    chpr = newline(0);
                    print_tag_address(SECTION,max_offset - 1,indent,prefix);
                    chpr += printf("</%s> ",nameoftag);
                }
                setcharsprinted(chpr);
                break;
            case 0x0040:    /* ImageByteSize                      */
                break;      /* should have a count of 1               */
            case 0x0088:    /* JpegThumbnailOffset                    */
                /* It's not magic, there's a trick to it. The offset  */
                /* length will normally be the next entry tag in the  */
                /* IFD, and this will work iff it is. Remember the    */
                /* offset and handle it when the length tag is seen.  */
                /* This is necessary because we do not save entries.  */
                jpegthumbnailoffset = value_offset;
                if(!at_offset && (PRINT_VALUE))
                {
                    if(!(PRINT_OFFSET))
                        chpr += printf("@%lu",jpegthumbnailoffset);
                }
                break;
            case 0x0089:    /* JpegThumbnailLength                    */
                if(jpegthumbnailoffset == 0UL)
                {
                    printred("# WARNING: JpegThumbnailLength encountered with 0 offset");
                    break;  /* must have the offset.                  */
                }
                value_offset = jpegthumbnailoffset;
                count = entry_ptr->value;
                jpegthumbnailoffset = 0L;
                /* fall through                                       */
            case 0x0081:    /* Jpeg Thumbnail                         */
                /* Minolta seems to use EITHER 0x0088/0x0089 OR       */
                /* 0x0081, not both.                                  */
                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) && (entry_ptr->tag == 0x0081))
                {
                    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(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");
                        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                                   */
                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 %-9lu", 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,count);
                    else
                        chpr += printf(":%lu", 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
movq %rsp, %rbp
pushq %rbx
subq $0xa8, %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, -0x58(%rbp)
movq $0x0, -0x78(%rbp)
movl $0x0, -0x7c(%rbp)
movl $0x0, -0x80(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x4aa70
movq -0x20(%rbp), %rax
movzwl (%rax), %edi
movl 0x20(%rbp), %esi
movl 0x28(%rbp), %edx
callq 0x28160
movq %rax, -0x68(%rbp)
movq -0x38(%rbp), %rdi
movq -0x68(%rbp), %rdx
leaq 0x1a71d(%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, -0x40(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movzwl (%rax), %eax
movl %eax, -0x84(%rbp)
subl $0x1, %eax
je 0x4a305
jmp 0x4a285
movl -0x84(%rbp), %eax
subl $0x3, %eax
je 0x4a305
jmp 0x4a292
movl -0x84(%rbp), %eax
subl $0x40, %eax
je 0x4a468
jmp 0x4a2a3
movl -0x84(%rbp), %eax
subl $0x81, %eax
je 0x4a507
jmp 0x4a2b6
movl -0x84(%rbp), %eax
subl $0x88, %eax
je 0x4a46d
jmp 0x4a2c9
movl -0x84(%rbp), %eax
subl $0x89, %eax
je 0x4a4ca
jmp 0x4a2dc
movl -0x84(%rbp), %eax
subl $0xe00, %eax            # imm = 0xE00
je 0x4a7ce
jmp 0x4a2ef
movl -0x84(%rbp), %eax
subl $0xf00, %eax            # imm = 0xF00
je 0x4a868
jmp 0x4aa1f
cmpl $0x0, 0x30(%rbp)
je 0x4a36c
leaq 0x2ce6e(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40000, %rax          # imm = 0x40000
cmpq $0x0, %rax
je 0x4a36a
movq -0x40(%rbp), %rsi
movl 0x18(%rbp), %edx
movq 0x10(%rbp), %rcx
movl $0x40000, %edi          # imm = 0x40000
callq 0x5ed0
movq -0x68(%rbp), %rsi
leaq 0x23deb(%rip), %rdi     # 0x6e12c
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
movq -0x50(%rbp), %rsi
shrq $0x2, %rsi
leaq 0x21f68(%rip), %rdi     # 0x6c2c5
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
jmp 0x4a3b8
cmpl $0x0, 0x30(%rbp)
jne 0x4a3b6
leaq 0x2ce07(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x4a3b6
leaq 0x2cdf3(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x300, %rax            # imm = 0x300
cmpq $0x0, %rax
jne 0x4a3b4
movq -0x40(%rbp), %rsi
leaq 0x209e4(%rip), %rdi     # 0x6ad8b
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
jmp 0x4a3b6
jmp 0x4a3b8
leaq 0x2cdc1(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
je 0x4a3d6
movq -0x78(%rbp), %rax
movq %rax, -0x70(%rbp)
jmp 0x4a3de
movq -0x68(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x10(%rbp), %rdi
movw -0x12(%rbp), %si
movl 0x28(%rbp), %edx
movq -0x70(%rbp), %rcx
movq -0x20(%rbp), %r8
movq -0x40(%rbp), %r9
movl 0x18(%rbp), %eax
addl $0x4, %eax
movzwl %si, %esi
movl %eax, (%rsp)
callq 0x4acb0
movq %rax, -0x58(%rbp)
leaq 0x2cd6f(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40000, %rax          # imm = 0x40000
cmpq $0x0, %rax
je 0x4a45b
xorl %edi, %edi
callq 0x1ef50
movl %eax, -0x80(%rbp)
movq -0x58(%rbp), %rsi
subq $0x1, %rsi
movl 0x18(%rbp), %edx
movq 0x10(%rbp), %rcx
movl $0x40000, %edi          # imm = 0x40000
callq 0x5ed0
movq -0x68(%rbp), %rsi
leaq 0x23ce4(%rip), %rdi     # 0x6e132
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
movl -0x80(%rbp), %edi
callq 0x1ff00
jmp 0x4aa5e
jmp 0x4aa5e
movq -0x40(%rbp), %rax
movq %rax, 0x324c8(%rip)     # 0x7c940
cmpl $0x0, 0x30(%rbp)
jne 0x4a4c5
leaq 0x2ccfb(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x4a4c5
leaq 0x2cce7(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x300, %rax            # imm = 0x300
cmpq $0x0, %rax
jne 0x4a4c3
movq 0x32491(%rip), %rsi     # 0x7c940
leaq 0x208d5(%rip), %rdi     # 0x6ad8b
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
jmp 0x4a4c5
jmp 0x4aa5e
cmpq $0x0, 0x3246e(%rip)     # 0x7c940
jne 0x4a4e5
leaq 0x23c5e(%rip), %rdi     # 0x6e139
callq 0x6860
jmp 0x4aa5e
movq 0x32454(%rip), %rax     # 0x7c940
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x50(%rbp)
movq $0x0, 0x32439(%rip) # 0x7c940
cmpl $0x0, 0x30(%rbp)
je 0x4a569
leaq 0x2cc6c(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40000, %rax          # imm = 0x40000
cmpq $0x0, %rax
je 0x4a569
movq -0x40(%rbp), %rsi
movl 0x18(%rbp), %edx
movq 0x10(%rbp), %rcx
movl $0x1000000, %edi        # imm = 0x1000000
callq 0x5ed0
leaq 0x2227d(%rip), %rdi     # 0x6c7bc
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
movq -0x50(%rbp), %rsi
leaq 0x20762(%rip), %rdi     # 0x6acb9
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
jmp 0x4a610
cmpl $0x0, 0x30(%rbp)
jne 0x4a60e
leaq 0x2cc06(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x4a60e
movq -0x20(%rbp), %rax
movzwl (%rax), %eax
cmpl $0x81, %eax
jne 0x4a60e
leaq 0x2cbe0(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x300, %rax            # imm = 0x300
cmpq $0x0, %rax
jne 0x4a5cd
movq -0x40(%rbp), %rsi
movq -0x50(%rbp), %rdx
leaq 0x1d276(%rip), %rdi     # 0x67834
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
jmp 0x4a5e2
movq -0x50(%rbp), %rsi
leaq 0x1d260(%rip), %rdi     # 0x67838
movb $0x0, %al
callq 0x3110
movl %eax, -0x80(%rbp)
leaq 0x2cb97(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
jne 0x4a60c
leaq 0x1a6d2(%rip), %rdi     # 0x64cd1
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
jmp 0x4a60e
jmp 0x4a610
leaq 0x2cb69(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40000, %rax          # imm = 0x40000
cmpq $0x0, %rax
jne 0x4a63c
leaq 0x2cb53(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x80000, %rax          # imm = 0x80000
cmpq $0x0, %rax
je 0x4a647
movl -0x80(%rbp), %edi
callq 0x1ef50
movl %eax, -0x80(%rbp)
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rdx
movl $0x4d4d, %esi           # imm = 0x4D4D
callq 0x4480
movw %ax, -0x5a(%rbp)
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rsi
movw -0x5a(%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, -0x58(%rbp)
cmpl $0x0, 0x30(%rbp)
je 0x4a755
leaq 0x2cadc(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40000, %rax          # imm = 0x40000
cmpq $0x0, %rax
je 0x4a753
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 0x4a6d5
jmp 0x4a6e0
movl -0x80(%rbp), %edi
callq 0x1ef50
movl %eax, -0x80(%rbp)
movl -0x7c(%rbp), %edi
callq 0x19930
movq -0x40(%rbp), %rsi
addq -0x50(%rbp), %rsi
subq $0x1, %rsi
movl 0x18(%rbp), %edx
movl $0x1000000, %edi        # imm = 0x1000000
leaq 0x199f6(%rip), %rcx     # 0x640f9
callq 0x5ed0
leaq 0x220d6(%rip), %rdi     # 0x6c7e5
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
leaq 0x2ca5d(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x4003333, %rax        # imm = 0x4003333
cmpq $0x0, %rax
je 0x4a751
leaq 0x2ca47(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
jne 0x4a751
movl -0x80(%rbp), %edi
callq 0x1ef50
movl %eax, -0x80(%rbp)
jmp 0x4a753
jmp 0x4a755
movb $0x0, %al
callq 0xba00
movzwl -0x5a(%rbp), %eax
cmpl $0x0, %eax
je 0x4a7ad
cmpq $0x0, -0x30(%rbp)
je 0x4a7ad
movq -0x30(%rbp), %rdi
callq 0x15780
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0x4a7ab
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 0x4a7ad
movq -0x10(%rbp), %rdi
callq 0x31a0
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rsi
addq -0x50(%rbp), %rsi
xorl %edx, %edx
callq 0x3200
jmp 0x4aa5e
cmpl $0x0, 0x30(%rbp)
jne 0x4a827
leaq 0x2c9a5(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x4a827
leaq 0x2c991(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x300, %rax            # imm = 0x300
cmpq $0x0, %rax
jne 0x4a825
movq -0x40(%rbp), %rsi
movq -0x50(%rbp), %rdx
leaq 0x1d027(%rip), %rdi     # 0x67834
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
movl -0x80(%rbp), %edi
callq 0x1ef50
movl %eax, -0x80(%rbp)
jmp 0x4a827
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 -0x68(%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 0x4aa5e
cmpl $0x0, 0x30(%rbp)
je 0x4a972
leaq 0x2c907(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x4003333, %rax        # imm = 0x4003333
cmpq $0x0, %rax
je 0x4a972
movq -0x40(%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 $0x17, %esi
leaq 0x1e52c(%rip), %rdx     # 0x68de4
callq 0x23e20
movq -0x50(%rbp), %rsi
leaq 0x238aa(%rip), %rdi     # 0x6e172
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
leaq 0x2db2c(%rip), %rax     # 0x78408
cmpq $0x0, (%rax)
jne 0x4a8f6
cmpl $0x0, -0x80(%rbp)
je 0x4a8f4
leaq 0x19d90(%rip), %rdi     # 0x6467f
callq 0x6860
jmp 0x4a96d
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
leaq 0x2db06(%rip), %rax     # 0x78408
cmpq %rcx, (%rax)
je 0x4a917
leaq 0x2dafa(%rip), %rax     # 0x78408
movq (%rax), %rax
cmpq -0x50(%rbp), %rax
jbe 0x4a921
movq -0x50(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x4a92f
leaq 0x2dae0(%rip), %rax     # 0x78408
movq (%rax), %rax
movq %rax, -0x48(%rbp)
movl -0x80(%rbp), %edi
callq 0x1ef50
movl %eax, -0x80(%rbp)
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq -0x50(%rbp), %rdx
movq -0x48(%rbp), %rcx
movl 0x18(%rbp), %r9d
movl $0xc, %r8d
movl $0x2, (%rsp)
callq 0x8aa0
movl $0x1, %edi
callq 0x1ef50
movl %eax, -0x80(%rbp)
jmp 0x4aa0a
cmpl $0x0, 0x30(%rbp)
jne 0x4aa08
leaq 0x2c7fd(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x4aa08
leaq 0x2c7e9(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x300, %rax            # imm = 0x300
cmpq $0x0, %rax
jne 0x4a9c4
movq -0x40(%rbp), %rsi
movq -0x50(%rbp), %rdx
leaq 0x1ce7f(%rip), %rdi     # 0x67834
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
jmp 0x4a9dc
movq -0x50(%rbp), %rsi
leaq 0x1ce69(%rip), %rdi     # 0x67838
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
leaq 0x2c79d(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
jne 0x4aa06
leaq 0x1a2d8(%rip), %rdi     # 0x64cd1
movb $0x0, %al
callq 0x3110
addl -0x80(%rbp), %eax
movl %eax, -0x80(%rbp)
jmp 0x4aa08
jmp 0x4aa0a
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rsi
addq -0x50(%rbp), %rsi
xorl %edx, %edx
callq 0x3200
jmp 0x4aa5e
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 0x4aa6e
movq -0x78(%rbp), %rdi
callq 0x3040
jmp 0x4aa70
movl -0x80(%rbp), %edi
callq 0x1ff00
addq $0xa8, %rsp
popq %rbx
popq %rbp
retq
nopw %cs:(%rax,%rax)