// File: /workspace/github_c_makefile_star2_O0/hfiguiere[P]exifprobe/print.c
// Function: process_private_ifd
unsigned long
process_private_ifd(FILE *inptr,unsigned short byteorder,
                    unsigned long subifd_offset,unsigned long fileoffset_base,
                    unsigned long max_offset,unsigned short subifd_ident,
                    struct image_summary *summary_entry,char *parent_name,
                    char *prefix,int make,int model,int indent)
{
    struct ifd_entry *entry_ptr;
    unsigned long max_value_offset = 0L;
    unsigned long next_ifd_offset,current_offset,max_subifd_offset;
    unsigned long start_entry_offset,entry_offset,value_offset;
    int entry_num,num_entries,value_is_offset,use_second_pass;
    int chpr = 0;

    if(inptr == (FILE *)0)
    {
        fprintf(stderr,"%s: no open file pointer to read makernote %s subifd\n",
                Progname,parent_name);
        return(0L);
    }
    if(summary_entry)
        summary_entry->filesubformat |= FILESUBFMT_MNSUBIFD;

    /* If the section appears to be beyond the end of the parent ifd, */
    /* mark the start address to call attention.                      */
    if(max_offset && ((subifd_offset + fileoffset_base) > max_offset))
        prefix = "+";

    max_subifd_offset = max_offset;
    print_tag_address(SECTION,subifd_offset + fileoffset_base,indent,prefix);
    if(PRINT_SECTION)
        chpr += printf("<%s SubIFD> (in MakerNote)",parent_name);

    num_entries = read_ushort(inptr,byteorder,subifd_offset + fileoffset_base);
    if(ferror(inptr) || feof(inptr))
        goto blewit;
    current_offset = entry_offset = start_entry_offset = ftell(inptr);
    if(PRINT_SECTION)
    {
        chpr += printf(" %d entries ",num_entries);
        chpr += printf("starting at file offset %#lx=%lu",
                                            current_offset,current_offset);
            chpr = newline(chpr);
    }
    use_second_pass = value_is_offset = 0;

    /* The direct entries                                             */
    for(entry_num = 0; entry_num < num_entries; ++entry_num)
    {
        entry_ptr = read_ifd_entry(inptr,byteorder,entry_offset);
        if((entry_ptr->value_type == 0) || (entry_ptr->value_type > DOUBLE) ||
            ferror(inptr) || feof(inptr))
        {
            int invalid_entry = 0;
            unsigned long limit_offset = 0L;

            print_tag_address(ENTRY,entry_offset,indent,prefix);
            chpr += printf(" INVALID MAKERNOTE SUBIFD ENTRY (%lu)",entry_ptr->value);
            chpr = newline(chpr);
            clearerr(inptr);
            current_offset = ftell(inptr);
            if(max_offset > 0)
                limit_offset = max_offset;
            else
            {
                if(fseek(inptr,0L,SEEK_END) != -1)
                {
                    limit_offset = ftell(inptr);
                    fseek(inptr,current_offset,SEEK_SET);
                }
            }
            /* If there's an error on input, or we can't check    */
            /* for absurd num_entries, give up.                   */
            if(!ferror(inptr) && (limit_offset > 0))
            {
                /* If the number of entries would read past the   */
                /* size of the IFD, or past EOF, give up          */
                if((entry_offset + (12 * num_entries)) < limit_offset)
                {
                    /* Limit the number of consecutive failures.  */
                    /* An apparently valid entry resets the count */
                    /* to 0.                                      */
                    if(invalid_entry++ < MAX_INVALID_ENTRIES)
                    {
                        entry_offset = current_offset;
                        continue;
                    }
                }
            }
            chpr = newline(chpr);
            goto blewit;
        }
        current_offset = ftell(inptr);

        print_tag_address(ENTRY,entry_offset,indent,prefix);
        value_offset = print_private_entry(inptr,byteorder,entry_ptr,fileoffset_base,
                                            subifd_ident,summary_entry,parent_name,
                                            prefix,make,model,SUBINDENT);
        if(value_offset == 0UL)
            value_offset = current_offset;
        if(value_offset > max_value_offset)
            max_value_offset = value_offset;
        if((PRINT_VALUE_AT_OFFSET) && (is_offset(entry_ptr)))
            ++use_second_pass;
        entry_offset = current_offset;
    }

    next_ifd_offset = read_ulong(inptr,byteorder,current_offset);

    /* offsets found in the next pass should be within the bounds of  */
    /* the parent ifd. The following helps to detect chunks that are  */
    /* written "out of place".                                        */

    /* There should be no next_ifd_offset (it should be 0)            */
    /* ###%%% prepare for chains?                                     */
    if(next_ifd_offset > 0L)
    {
        /* ###%%% report unwillingness to handle chained IFDs         */
        if((PRINT_ADDRESS) && (PRINT_VALUE) && (PRINT_VALUE_AT_OFFSET))
        {
            print_tag_address(ENTRY,current_offset,indent,prefix);
            extraindent(SUBINDENT);
            chpr += printf("**** next IFD offset %lu  ",next_ifd_offset);
            next_ifd_offset += fileoffset_base;
            if(next_ifd_offset < ftell(inptr))
            {
                printred("BAD NEXT IFD OFFSET");
                next_ifd_offset = 0L;
            }
            else
                chpr += printf("(+ %lu = %#lx/%lu)",fileoffset_base,
                                        next_ifd_offset,next_ifd_offset);
            chpr = newline(chpr);
        }
        else
            next_ifd_offset += fileoffset_base;
        /* This should never happen                                   */
        max_subifd_offset = next_ifd_offset;
    }
    else
    {
        if((PRINT_ADDRESS) && (PRINT_VALUE) && (PRINT_VALUE_AT_OFFSET))
        {
            print_tag_address(ENTRY,current_offset,indent,prefix);
            extraindent(SUBINDENT);
            chpr += printf("**** next IFD offset 0");
            chpr = newline(chpr);
        }
    }

    if(ferror(inptr) || feof(inptr))
    {
        chpr += printf(" READ NEXT IFD OFFSET FAILED ");
        chpr = newline(chpr);
        why(stdout);
        clearerr(inptr);    /* keep going...                          */
    }
    else
        current_offset = ftell(inptr);

    value_offset = current_offset;

    /* Second pass, to evaluate entries which are stored indirectly.  */
    /* This occurs when the value requires more than 4 bytes, AND for */
    /* certain LONG values which are intended to be used as offsets   */
    if(use_second_pass)
    {
        if((PRINT_VALUE) && (PRINT_ADDRESS) && (PRINT_VALUE_AT_OFFSET))
        {
            print_tag_address(ENTRY,value_offset,indent,prefix);
            extraindent(SUBINDENT);
            chpr += printf("============= VALUES, %s IFD ============",parent_name);
            chpr = newline(chpr);
        }

        entry_offset = start_entry_offset;
        for(entry_num = 0; entry_num < num_entries; ++entry_num)
        {
            entry_ptr = read_ifd_entry(inptr,byteorder,entry_offset);
            if((entry_ptr->value_type == 0) || (entry_ptr->value_type > DOUBLE) ||
                ferror(inptr) || feof(inptr))
            {
                /* If the first pass made it through invalid entries, */
                /* this pass should just ignore them and quietly      */
                /* continue.                                          */
                clearerr(inptr);
                entry_offset = current_offset = ftell(inptr);
                continue;
            }
            current_offset = entry_offset = ftell(inptr);
            if(is_offset(entry_ptr) ||
                        private_value_is_offset(make,subifd_ident,entry_ptr->tag))
            {
                value_offset = print_offset_pe_value(inptr,byteorder,
                                            entry_ptr,fileoffset_base,
                                            subifd_ident,summary_entry,
                                            parent_name,prefix,indent,
                                            make,model,1);
            }
            if(value_offset > max_value_offset)
                max_value_offset = value_offset;
        }
    }
    else if(current_offset > max_value_offset)
        max_value_offset = current_offset;

    if(max_offset && (max_value_offset > max_offset))
    {
        max_value_offset = max_offset;
        print_tag_address(SECTION,max_value_offset - 1,indent,">");
    }
    else
        print_tag_address(SECTION,max_value_offset - 1,indent,"-");
    if(PRINT_SECTION)
    {
        chpr += printf("</%s SubIFD> (in MakerNote)",parent_name);
        chpr = newline(chpr);
    }

    return(max_value_offset);
blewit:
    clearerr(inptr);
    current_offset = ftell(inptr);
    print_tag_address(SECTION,current_offset - 1,indent,"-");
    if(PRINT_SECTION)
    {
        chpr += printf("</EXIF IFD>");
        chpr = newline(chpr);
    }
    return(0L);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0xd0, %rsp
movw %r9w, %ax
movl 0x38(%rbp), %r9d
movl 0x30(%rbp), %r9d
movl 0x28(%rbp), %r9d
movq 0x20(%rbp), %r9
movq 0x18(%rbp), %r9
movq 0x10(%rbp), %r9
movq %rdi, -0x20(%rbp)
movw %si, -0x22(%rbp)
movq %rdx, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movq %r8, -0x40(%rbp)
movw %ax, -0x42(%rbp)
movq $0x0, -0x58(%rbp)
movl $0x0, -0x9c(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0xbd8e
movq 0x6b296(%rip), %rax     # 0x76ff8
movq (%rax), %rdi
leaq 0x6c6fc(%rip), %rax     # 0x78468
movq (%rax), %rdx
movq 0x18(%rbp), %rcx
leaq 0x58d9d(%rip), %rsi     # 0x64b17
movb $0x0, %al
callq 0x3170
movq $0x0, -0x18(%rbp)
jmp 0xc6ed
cmpq $0x0, 0x10(%rbp)
je 0xbda5
movq 0x10(%rbp), %rax
movl 0x18(%rax), %ecx
orl $0x200, %ecx            # imm = 0x200
movl %ecx, 0x18(%rax)
cmpq $0x0, -0x40(%rbp)
je 0xbdc5
movq -0x30(%rbp), %rax
addq -0x38(%rbp), %rax
cmpq -0x40(%rbp), %rax
jbe 0xbdc5
leaq 0x58d8c(%rip), %rax     # 0x64b4d
movq %rax, 0x20(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x30(%rbp), %rsi
addq -0x38(%rbp), %rsi
movl 0x38(%rbp), %edx
movq 0x20(%rbp), %rcx
movl $0x40000, %edi          # imm = 0x40000
callq 0x5ed0
leaq 0x6b393(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40000, %rax          # imm = 0x40000
cmpq $0x0, %rax
je 0xbe1a
movq 0x18(%rbp), %rsi
leaq 0x58d48(%rip), %rdi     # 0x64b4f
movb $0x0, %al
callq 0x3110
addl -0x9c(%rbp), %eax
movl %eax, -0x9c(%rbp)
movq -0x20(%rbp), %rdi
movw -0x22(%rbp), %ax
movq -0x30(%rbp), %rdx
addq -0x38(%rbp), %rdx
movzwl %ax, %esi
callq 0x4480
movzwl %ax, %eax
movl %eax, -0x90(%rbp)
movq -0x20(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
jne 0xbe57
movq -0x20(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
je 0xbe5c
jmp 0xc672
movq -0x20(%rbp), %rdi
callq 0x3180
movq %rax, -0x78(%rbp)
movq %rax, -0x80(%rbp)
movq %rax, -0x68(%rbp)
leaq 0x6b308(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40000, %rax          # imm = 0x40000
cmpq $0x0, %rax
je 0xbeda
movl -0x90(%rbp), %esi
leaq 0x58cd6(%rip), %rdi     # 0x64b6a
movb $0x0, %al
callq 0x3110
addl -0x9c(%rbp), %eax
movl %eax, -0x9c(%rbp)
movq -0x68(%rbp), %rsi
movq -0x68(%rbp), %rdx
leaq 0x58cc1(%rip), %rdi     # 0x64b77
movb $0x0, %al
callq 0x3110
addl -0x9c(%rbp), %eax
movl %eax, -0x9c(%rbp)
movl -0x9c(%rbp), %edi
callq 0x1ef50
movl %eax, -0x9c(%rbp)
movl $0x0, -0x94(%rbp)
movl $0x0, -0x98(%rbp)
movl $0x0, -0x8c(%rbp)
movl -0x8c(%rbp), %eax
cmpl -0x90(%rbp), %eax
jge 0xc17d
movq -0x20(%rbp), %rdi
movw -0x22(%rbp), %ax
movq -0x80(%rbp), %rdx
movzwl %ax, %esi
callq 0x4c60
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movzwl 0x2(%rax), %eax
cmpl $0x0, %eax
je 0xbf5c
movq -0x50(%rbp), %rax
movzwl 0x2(%rax), %eax
cmpl $0xc, %eax
jg 0xbf5c
movq -0x20(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
jne 0xbf5c
movq -0x20(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
je 0xc08a
movl $0x0, -0xa0(%rbp)
movq $0x0, -0xa8(%rbp)
movq -0x80(%rbp), %rsi
movl 0x38(%rbp), %edx
movq 0x20(%rbp), %rcx
movl $0x4003333, %edi        # imm = 0x4003333
callq 0x5ed0
movq -0x50(%rbp), %rax
movq 0x10(%rax), %rsi
leaq 0x58c03(%rip), %rdi     # 0x64b98
movb $0x0, %al
callq 0x3110
addl -0x9c(%rbp), %eax
movl %eax, -0x9c(%rbp)
movl -0x9c(%rbp), %edi
callq 0x1ef50
movl %eax, -0x9c(%rbp)
movq -0x20(%rbp), %rdi
callq 0x31a0
movq -0x20(%rbp), %rdi
callq 0x3180
movq %rax, -0x68(%rbp)
cmpq $0x0, -0x40(%rbp)
jbe 0xbfe3
movq -0x40(%rbp), %rax
movq %rax, -0xa8(%rbp)
jmp 0xc01b
movq -0x20(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0x2, %edx
callq 0x3200
cmpl $-0x1, %eax
je 0xc019
movq -0x20(%rbp), %rdi
callq 0x3180
movq %rax, -0xa8(%rbp)
movq -0x20(%rbp), %rdi
movq -0x68(%rbp), %rsi
xorl %edx, %edx
callq 0x3200
jmp 0xc01b
movq -0x20(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
jne 0xc074
cmpq $0x0, -0xa8(%rbp)
jbe 0xc074
movq -0x80(%rbp), %rax
imull $0xc, -0x90(%rbp), %ecx
movslq %ecx, %rcx
addq %rcx, %rax
cmpq -0xa8(%rbp), %rax
jae 0xc072
movl -0xa0(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0xa0(%rbp)
cmpl $0x6, %eax
jge 0xc070
movq -0x68(%rbp), %rax
movq %rax, -0x80(%rbp)
jmp 0xc169
jmp 0xc072
jmp 0xc074
movl -0x9c(%rbp), %edi
callq 0x1ef50
movl %eax, -0x9c(%rbp)
jmp 0xc672
movq -0x20(%rbp), %rdi
callq 0x3180
movq %rax, -0x68(%rbp)
movq -0x80(%rbp), %rsi
movl 0x38(%rbp), %edx
movq 0x20(%rbp), %rcx
movl $0x4003333, %edi        # imm = 0x4003333
callq 0x5ed0
movq -0x20(%rbp), %rdi
movw -0x22(%rbp), %si
movq -0x50(%rbp), %rdx
movq -0x38(%rbp), %rcx
movw -0x42(%rbp), %r8w
movq 0x10(%rbp), %r9
movq 0x18(%rbp), %rbx
movq 0x20(%rbp), %r11
movl 0x28(%rbp), %r10d
movl 0x30(%rbp), %eax
movzwl %si, %esi
movzwl %r8w, %r8d
movq %rbx, (%rsp)
movq %r11, 0x8(%rsp)
movl %r10d, 0x10(%rsp)
movl %eax, 0x18(%rsp)
movl $0x2, 0x20(%rsp)
callq 0xc700
movq %rax, -0x88(%rbp)
cmpq $0x0, -0x88(%rbp)
jne 0xc116
movq -0x68(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
cmpq -0x58(%rbp), %rax
jbe 0xc12e
movq -0x88(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq 0x6b04b(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
je 0xc161
movq -0x50(%rbp), %rdi
callq 0x158d0
cmpl $0x0, %eax
je 0xc161
movl -0x98(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x98(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x80(%rbp)
movl -0x8c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8c(%rbp)
jmp 0xbef8
movq -0x20(%rbp), %rdi
movw -0x22(%rbp), %ax
movq -0x68(%rbp), %rdx
movzwl %ax, %esi
callq 0x4610
movq %rax, -0x60(%rbp)
cmpq $0x0, -0x60(%rbp)
jbe 0xc2c0
leaq 0x6afd9(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30000, %rax          # imm = 0x30000
cmpq $0x0, %rax
je 0xc2a7
leaq 0x6afbf(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0xc2a7
leaq 0x6afa7(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
je 0xc2a7
movq -0x68(%rbp), %rsi
movl 0x38(%rbp), %edx
movq 0x20(%rbp), %rcx
movl $0x4003333, %edi        # imm = 0x4003333
callq 0x5ed0
movl $0x2, %edi
callq 0xb970
movq -0x60(%rbp), %rsi
leaq 0x589a8(%rip), %rdi     # 0x64bbe
movb $0x0, %al
callq 0x3110
addl -0x9c(%rbp), %eax
movl %eax, -0x9c(%rbp)
movq -0x38(%rbp), %rax
addq -0x60(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x20(%rbp), %rdi
callq 0x3180
movq %rax, %rcx
movq -0xb0(%rbp), %rax
cmpq %rcx, %rax
jae 0xc26e
leaq 0x5d979(%rip), %rdi     # 0x69bd8
callq 0x6860
movq $0x0, -0x60(%rbp)
jmp 0xc294
movq -0x38(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq -0x60(%rbp), %rcx
leaq 0x5b6d5(%rip), %rdi     # 0x67956
movb $0x0, %al
callq 0x3110
addl -0x9c(%rbp), %eax
movl %eax, -0x9c(%rbp)
movl -0x9c(%rbp), %edi
callq 0x1ef50
movl %eax, -0x9c(%rbp)
jmp 0xc2b3
movq -0x38(%rbp), %rax
addq -0x60(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x70(%rbp)
jmp 0xc34c
leaq 0x6aeb9(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30000, %rax          # imm = 0x30000
cmpq $0x0, %rax
je 0xc34a
leaq 0x6aea3(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0xc34a
leaq 0x6ae8f(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
je 0xc34a
movq -0x68(%rbp), %rsi
movl 0x38(%rbp), %edx
movq 0x20(%rbp), %rcx
movl $0x4003333, %edi        # imm = 0x4003333
callq 0x5ed0
movl $0x2, %edi
callq 0xb970
leaq 0x588b3(%rip), %rdi     # 0x64bd9
movb $0x0, %al
callq 0x3110
addl -0x9c(%rbp), %eax
movl %eax, -0x9c(%rbp)
movl -0x9c(%rbp), %edi
callq 0x1ef50
movl %eax, -0x9c(%rbp)
jmp 0xc34c
movq -0x20(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
jne 0xc368
movq -0x20(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
je 0xc3ad
leaq 0x58881(%rip), %rdi     # 0x64bf0
movb $0x0, %al
callq 0x3110
addl -0x9c(%rbp), %eax
movl %eax, -0x9c(%rbp)
movl -0x9c(%rbp), %edi
callq 0x1ef50
movl %eax, -0x9c(%rbp)
movq 0x6ac2e(%rip), %rax     # 0x76fc8
movq (%rax), %rdi
callq 0x20840
movq -0x20(%rbp), %rdi
callq 0x31a0
jmp 0xc3ba
movq -0x20(%rbp), %rdi
callq 0x3180
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x88(%rbp)
cmpl $0x0, -0x98(%rbp)
je 0xc5bc
leaq 0x6ada7(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0xc463
leaq 0x6ad93(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30000, %rax          # imm = 0x30000
cmpq $0x0, %rax
je 0xc463
leaq 0x6ad7d(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
je 0xc463
movq -0x88(%rbp), %rsi
movl 0x38(%rbp), %edx
movq 0x20(%rbp), %rcx
movl $0x4003333, %edi        # imm = 0x4003333
callq 0x5ed0
movl $0x2, %edi
callq 0xb970
movq 0x18(%rbp), %rsi
leaq 0x587cf(%rip), %rdi     # 0x64c0e
movb $0x0, %al
callq 0x3110
addl -0x9c(%rbp), %eax
movl %eax, -0x9c(%rbp)
movl -0x9c(%rbp), %edi
callq 0x1ef50
movl %eax, -0x9c(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x80(%rbp)
movl $0x0, -0x8c(%rbp)
movl -0x8c(%rbp), %eax
cmpl -0x90(%rbp), %eax
jge 0xc5ba
movq -0x20(%rbp), %rdi
movw -0x22(%rbp), %ax
movq -0x80(%rbp), %rdx
movzwl %ax, %esi
callq 0x4c60
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movzwl 0x2(%rax), %eax
cmpl $0x0, %eax
je 0xc4d5
movq -0x50(%rbp), %rax
movzwl 0x2(%rax), %eax
cmpl $0xc, %eax
jg 0xc4d5
movq -0x20(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
jne 0xc4d5
movq -0x20(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
je 0xc4f4
movq -0x20(%rbp), %rdi
callq 0x31a0
movq -0x20(%rbp), %rdi
callq 0x3180
movq %rax, -0x68(%rbp)
movq %rax, -0x80(%rbp)
jmp 0xc5a6
movq -0x20(%rbp), %rdi
callq 0x3180
movq %rax, -0x80(%rbp)
movq %rax, -0x68(%rbp)
movq -0x50(%rbp), %rdi
callq 0x158d0
cmpl $0x0, %eax
jne 0xc52e
movl 0x28(%rbp), %edi
movw -0x42(%rbp), %cx
movq -0x50(%rbp), %rax
movzwl %cx, %esi
movzwl (%rax), %edx
callq 0xca90
cmpl $0x0, %eax
je 0xc58c
movq -0x20(%rbp), %rdi
movw -0x22(%rbp), %si
movq -0x50(%rbp), %rdx
movq -0x38(%rbp), %rcx
movw -0x42(%rbp), %r8w
movq 0x10(%rbp), %r9
movq 0x18(%rbp), %r14
movq 0x20(%rbp), %rbx
movl 0x38(%rbp), %r11d
movl 0x28(%rbp), %r10d
movl 0x30(%rbp), %eax
movzwl %si, %esi
movzwl %r8w, %r8d
movq %r14, (%rsp)
movq %rbx, 0x8(%rsp)
movl %r11d, 0x10(%rsp)
movl %r10d, 0x18(%rsp)
movl %eax, 0x20(%rsp)
movl $0x1, 0x28(%rsp)
callq 0xcae0
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
cmpq -0x58(%rbp), %rax
jbe 0xc5a4
movq -0x88(%rbp), %rax
movq %rax, -0x58(%rbp)
jmp 0xc5a6
movl -0x8c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8c(%rbp)
jmp 0xc475
jmp 0xc5d0
movq -0x68(%rbp), %rax
cmpq -0x58(%rbp), %rax
jbe 0xc5ce
movq -0x68(%rbp), %rax
movq %rax, -0x58(%rbp)
jmp 0xc5d0
cmpq $0x0, -0x40(%rbp)
je 0xc607
movq -0x58(%rbp), %rax
cmpq -0x40(%rbp), %rax
jbe 0xc607
movq -0x40(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rsi
subq $0x1, %rsi
movl 0x38(%rbp), %edx
movl $0x40000, %edi          # imm = 0x40000
leaq 0x5fa38(%rip), %rcx     # 0x6c038
callq 0x5ed0
jmp 0xc623
movq -0x58(%rbp), %rsi
subq $0x1, %rsi
movl 0x38(%rbp), %edx
movl $0x40000, %edi          # imm = 0x40000
leaq 0x57adb(%rip), %rcx     # 0x640f9
callq 0x5ed0
leaq 0x6ab56(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40000, %rax          # imm = 0x40000
cmpq $0x0, %rax
je 0xc668
movq 0x18(%rbp), %rsi
leaq 0x585f4(%rip), %rdi     # 0x64c38
movb $0x0, %al
callq 0x3110
addl -0x9c(%rbp), %eax
movl %eax, -0x9c(%rbp)
movl -0x9c(%rbp), %edi
callq 0x1ef50
movl %eax, -0x9c(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0xc6ed
movq -0x20(%rbp), %rdi
callq 0x31a0
movq -0x20(%rbp), %rdi
callq 0x3180
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rsi
subq $0x1, %rsi
movl 0x38(%rbp), %edx
movl $0x40000, %edi          # imm = 0x40000
leaq 0x57a5a(%rip), %rcx     # 0x640f9
callq 0x5ed0
leaq 0x6aad5(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x40000, %rax          # imm = 0x40000
cmpq $0x0, %rax
je 0xc6e5
leaq 0x5842d(%rip), %rdi     # 0x64aee
movb $0x0, %al
callq 0x3110
addl -0x9c(%rbp), %eax
movl %eax, -0x9c(%rbp)
movl -0x9c(%rbp), %edi
callq 0x1ef50
movl %eax, -0x9c(%rbp)
movq $0x0, -0x18(%rbp)
movq -0x18(%rbp), %rax
addq $0xd0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nopl (%rax)