// File: /workspace/github_c_makefile_star2_O2/hfiguiere[P]exifprobe/jp2000.c
// Function: process_jpc_cod
unsigned long
process_jpc_cod(FILE *inptr,unsigned long marker_offset,unsigned short tag,
                                    struct image_summary *summary_entry,
                                    int indent)
{
    unsigned long max_offset;
    unsigned short seg_length;
    unsigned short cstyle;
    unsigned short decomp;
    unsigned short progorder;
    unsigned short nlayers;
    unsigned short cbw;
    unsigned short cbh;
    unsigned short cbstyle;
    unsigned short transform;
    unsigned short qmfbid;
    unsigned short part_wh;
    char *name;
    int chpr = 0;
    int i;

    name = jp2000tagname(tag);
    seg_length = read_ushort(inptr,TIFF_MOTOROLA,marker_offset + 2);
    print_tag_address(SECTION|ENTRY,marker_offset,indent,"@");
    if((LIST_MODE))
    {
        if((PRINT_TAGINFO))
        {
            if((PRINT_LONGNAMES))
                chpr += printf("JP2.jp2c.");
            chpr += printf("%s",name);
        }
        if((PRINT_VALUE))
            chpr += printf(" = @%lu:%u",marker_offset,seg_length + 2);
    }
    else
        chpr += printf("<%#x=%s> length %u",tag,name,seg_length);
    max_offset = marker_offset + seg_length + 2;
    marker_offset += 4;

    cstyle = read_ubyte(inptr,marker_offset);
    chpr = newline(chpr);
    print_tag_address(ENTRY,marker_offset,indent + 8,"=");
    if((PRINT_TAGINFO))
    {
        if((PRINT_LONGNAMES))
            chpr += printf("JP2.jp2c.cod.");
        chpr += printf("codingStyle");
    }
    if((PRINT_VALUE))
    {
        chpr += printf(" = %#x",cstyle & 0xff);
        chpr += printf(" = entropy coder with");
        if((cstyle & 1) == 0)
            chpr += printf("out");
        chpr += printf(" partitions,");
        if(cstyle & 2)
            chpr += printf(" with SOP markers and");
        else
            chpr += printf(" without SOP markers and");
        if(cstyle & 4)
            chpr += printf(" with EPH markers");
        else
            chpr += printf(" without EPH markers");
    }
    marker_offset++;
    progorder = read_ubyte(inptr,marker_offset);
    chpr = newline(chpr);
    print_tag_address(ENTRY,marker_offset,indent + 8,"=");
    if((PRINT_TAGINFO))
    {
        if((PRINT_LONGNAMES))
            chpr += printf("JP2.jp2c.cod.");
        chpr += printf("ProgressionOrder");
    }
    if((PRINT_VALUE))
        chpr += printf(" = %#x",progorder & 0xff);
    marker_offset++;
    nlayers = read_ushort(inptr,TIFF_MOTOROLA,marker_offset);
    chpr = newline(chpr);
    print_tag_address(ENTRY,marker_offset,indent + 8,"=");
    if((PRINT_TAGINFO))
    {
        if((PRINT_LONGNAMES))
            chpr += printf("JP2.jp2c.cod.");
        chpr += printf("NumberOfLayers");
    }
    if((PRINT_VALUE))
        chpr += printf(" = %#x",nlayers & 0xff);
    marker_offset += 2;
    transform = read_ubyte(inptr,marker_offset);
    chpr = newline(chpr);
    print_tag_address(ENTRY,marker_offset,indent + 8,"=");
    if((PRINT_TAGINFO))
    {
        if((PRINT_LONGNAMES))
            chpr += printf("JP2.jp2c.cod.");
        chpr += printf("MultiComponentTransform");
    }
    if((PRINT_VALUE))
    {
        chpr += printf(" = %#x",transform & 0xff);
        if(transform & 1)
            chpr += printf(" = 5/3 reversible");
        else
            chpr += printf(" = 9/7 irreversible");
    }
    /* Record transform in the first byte of                      */
    /* summary_entry->compression; quantization will be recorded  */
    /* in the second byte. This overwrites the useless            */
    /* "compression" indicator in ihdr.                           */
    if(summary_entry)
        summary_entry->compression = transform & 1;
    marker_offset++;
    decomp = read_ubyte(inptr,marker_offset);
    chpr = newline(chpr);
    print_tag_address(ENTRY,marker_offset,indent + 8,"=");
    if((PRINT_TAGINFO))
    {
        if((PRINT_LONGNAMES))
            chpr += printf("JP2.jp2c.cod.");
        chpr += printf("DecompLevels");
    }
    if((PRINT_VALUE))
        chpr += printf(" = %u",decomp & 0xff);
    marker_offset++;
    cbw = read_ubyte(inptr,marker_offset);
    chpr = newline(chpr);
    print_tag_address(ENTRY,marker_offset,indent + 8,"=");
    if((PRINT_TAGINFO))
    {
        if((PRINT_LONGNAMES))
            chpr += printf("JP2.jp2c.cod.");
        chpr += printf("CodeBlockWidthExponent");
    }
    if((PRINT_VALUE))
    {
        if((LIST_MODE))
        {
            chpr += printf(" = %#x",(cbw & 0xff) + 2);
            chpr = newline(chpr);
            /* pseudotag                                              */
            print_tag_address(ENTRY,HERE,indent + 8,"*");
            if((PRINT_TAGINFO))
            {
                if((PRINT_LONGNAMES))
                    chpr += printf("JP2.jp2c.cod.");
                chpr += printf("CodeBlockWidth");
            }
            if((PRINT_VALUE))
                chpr += printf(" = %g",pow(2.0,(double)(cbw + 2)));
        }
        else
            chpr += printf(" = %#x + 2 # cbw -> %g",cbw & 0xff,
                                            pow(2.0,(double)(cbw + 2)));
    }
    marker_offset++;
    cbh = read_ubyte(inptr,marker_offset);
    chpr = newline(chpr);
    print_tag_address(ENTRY,marker_offset,indent + 8,"=");
    if((PRINT_TAGINFO))
    {
        if((PRINT_LONGNAMES))
            chpr += printf("JP2.jp2c.cod.");
        chpr += printf("CodeBlockHeightExponent");
    }
    if((PRINT_VALUE))
    {
        if((LIST_MODE))
        {
            chpr += printf(" = %#x",(cbh & 0xff) + 2);
            chpr = newline(chpr);
            /* pseudotag                                              */
            print_tag_address(ENTRY,HERE,indent + 8,"*");
            if((PRINT_TAGINFO))
            {
                if((PRINT_LONGNAMES))
                    chpr += printf("JP2.jp2c.cod.");
                chpr += printf("CodeBlockHeight");
            }
            if((PRINT_VALUE))
                chpr += printf(" = %g",pow(2.0,(double)(cbh + 2)));
        }
        else
            chpr += printf(" = %#x + 2 # cbh -> %g",cbh & 0xff,
                                            pow(2.0,(double)(cbh + 2)));
    }
    marker_offset++;
    cbstyle = read_ubyte(inptr,marker_offset);
    chpr = newline(chpr);
    print_tag_address(ENTRY,marker_offset,indent + 8,"=");
    if((PRINT_TAGINFO))
    {
        if((PRINT_LONGNAMES))
            chpr += printf("JP2.jp2c.cod.");
        chpr += printf("CodeBLockStyle");
    }
    if((PRINT_VALUE))
        chpr += printf(" = %#x",cbstyle & 0xff);
    marker_offset++;
    qmfbid = read_ubyte(inptr,marker_offset);
    chpr = newline(chpr);
    print_tag_address(ENTRY,marker_offset,indent + 8,"=");
    if((PRINT_TAGINFO))
    {
        if((PRINT_LONGNAMES))
            chpr += printf("JP2.jp2c.cod.");
        chpr += printf("QMIFBankId");
    }
    if((PRINT_VALUE))
        chpr += printf(" = %#x",qmfbid & 0xff);
    marker_offset++;
    if(cstyle & 1)
    {
        for(i = 0; i <= decomp; ++i)
        {
            part_wh = read_ubyte(inptr,marker_offset++);
            chpr = newline(chpr);
            print_tag_address(ENTRY,marker_offset,indent + 8,"=");
            if((LIST_MODE))
            {
                if((PRINT_TAGINFO))
                {
                    if((PRINT_LONGNAMES))
                        chpr += printf("JP2.jp2c.cod.");
                    chpr += printf("Partition%dWidth",i);
                }
                if((PRINT_VALUE))
                    chpr += printf(" = %u",part_wh & 0xf);
                chpr = newline(chpr);

                print_tag_address(ENTRY,marker_offset,indent + 8,"=");
                if((PRINT_TAGINFO))
                {
                    if((PRINT_LONGNAMES))
                        chpr += printf("JP2.jp2c.cod.");
                    chpr += printf("Partition%dHeight",i);
                }
                if((PRINT_VALUE))
                    chpr += printf(" = %u",(part_wh >> 4) & 0xf);
            }
            else 
            {
                if((PRINT_TAGINFO))
                    chpr += printf("partition %d width",i);
                if((PRINT_VALUE))
                    chpr += printf(" = %u,",part_wh & 0xf);
                    
                if((PRINT_TAGINFO))
                    chpr += printf(" height = ");
                if((PRINT_VALUE))
                    chpr += printf(" = %u",(part_wh >> 4) & 0xf);
            }
        }
    }
    if(!(LIST_MODE))
    {
        chpr = newline(chpr);
        print_tag_address(SECTION|ENTRY,marker_offset - 1,indent,"@");
        chpr += printf("</%#x=%s> ",tag,name);
    }
    if(marker_offset > max_offset)
            printred(" READ PAST END OF BOX");
    chpr = newline(chpr);

    return(max_offset);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r8d, %r13d
movq %rcx, %r15
movl %edx, %ebx
movq %rsi, %rbp
movq %rdi, %r14
movl %edx, %edi
callq 0xbe97
movq %rax, %r12
leaq 0x2(%rbp), %rdx
movq %r14, 0x8(%rsp)
movq %r14, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %rdx, 0x30(%rsp)
callq 0x416a
movl %eax, %r14d
leaq 0x1bc33(%rip), %rcx     # 0x3f0dc
movl $0x4043333, %edi        # imm = 0x4043333
movq %rbp, %rsi
movq %r13, 0x20(%rsp)
movl %r13d, %edx
callq 0x5100
leaq 0x33cbb(%rip), %rax     # 0x57180
movq (%rax), %rax
movzwl %r14w, %ecx
movzwl %bx, %esi
testl $0x1040000, %eax        # imm = 0x1040000
movq %rcx, 0x18(%rsp)
movl %esi, 0x14(%rsp)
je 0x234f4
leaq 0x23a44(%rip), %rdi     # 0x46f2a
movq %r12, %rdx
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
jmp 0x23555
testw $0x3003, %ax            # imm = 0x3003
je 0x23539
xorl %r14d, %r14d
testb $0x40, %al
je 0x23512
leaq 0x239f0(%rip), %rdi     # 0x46ef8
xorl %eax, %eax
callq 0x3120
movl %eax, %r14d
leaq 0x1bb7e(%rip), %rdi     # 0x3f097
movq %r12, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
addl %r14d, %ebx
leaq 0x33c51(%rip), %rax     # 0x57180
movq (%rax), %rax
movq 0x18(%rsp), %rcx
jmp 0x2353b
xorl %ebx, %ebx
testb $0x30, %al
je 0x23555
leal 0x2(%rcx), %edx
leaq 0x239d6(%rip), %rdi     # 0x46f1f
movq %rbp, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x4(%rbp), %r14
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x48de
movl %eax, 0x10(%rsp)
movl %ebx, %edi
callq 0x160f7
movl %eax, %ebx
movq 0x20(%rsp), %rax
leal 0x8(%rax), %edx
leaq 0x1f3ff(%rip), %rcx     # 0x42981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
movl %edx, 0x4(%rsp)
callq 0x5100
leaq 0x33be6(%rip), %rax     # 0x57180
movq (%rax), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x235d1
testb $0x40, %al
je 0x235b7
leaq 0x23aec(%rip), %rdi     # 0x4709a
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x23aea(%rip), %rdi     # 0x470a8
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x33bb2(%rip), %rax     # 0x57180
movq (%rax), %rax
testb $0x30, %al
movq %r12, 0x28(%rsp)
je 0x23681
movl 0x10(%rsp), %r12d
movzwl %r12w, %r13d
movzbl %r13b, %esi
leaq 0x23ac2(%rip), %rdi     # 0x470b4
xorl %eax, %eax
callq 0x3120
movl %eax, %r14d
addl %ebx, %r14d
leaq 0x23ab5(%rip), %rdi     # 0x470bb
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
addl %r14d, %ebx
testb $0x1, %r12b
jne 0x23628
leaq 0x1dd31(%rip), %rdi     # 0x41350
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x23aa2(%rip), %rdi     # 0x470d1
xorl %eax, %eax
callq 0x3120
movl %eax, %r14d
addl %ebx, %r14d
testb $0x2, %r13b
leaq 0x23aad(%rip), %rax     # 0x470f4
leaq 0x23a90(%rip), %rdi     # 0x470de
cmoveq %rax, %rdi
xorl %eax, %eax
callq 0x3120
movl %eax, %r12d
testb $0x4, %r13b
leaq 0x23ab8(%rip), %rax     # 0x4711f
leaq 0x23a9f(%rip), %rdi     # 0x4710d
cmoveq %rax, %rdi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
addl %r12d, %ebx
addl %r14d, %ebx
leaq 0x5(%rbp), %r12
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x48de
movl %eax, %r14d
movl %ebx, %edi
callq 0x160f7
movl %eax, %ebx
leaq 0x1f2dc(%rip), %rcx     # 0x42981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r12, %rsi
movl 0x4(%rsp), %edx
callq 0x5100
leaq 0x33ac3(%rip), %rax     # 0x57180
movq (%rax), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x236f4
testb $0x40, %al
je 0x236da
leaq 0x239c9(%rip), %rdi     # 0x4709a
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x23a53(%rip), %rdi     # 0x47134
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x33a8f(%rip), %rax     # 0x57180
movq (%rax), %rax
testb $0x30, %al
je 0x2370c
movzbl %r14b, %esi
leaq 0x239b1(%rip), %rdi     # 0x470b4
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x6(%rbp), %r12
movq 0x8(%rsp), %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r12, %rdx
callq 0x416a
movl %eax, %r14d
movl %ebx, %edi
callq 0x160f7
movl %eax, %ebx
leaq 0x1f24c(%rip), %rcx     # 0x42981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r12, %rsi
movl 0x4(%rsp), %edx
callq 0x5100
leaq 0x33a33(%rip), %rax     # 0x57180
movq (%rax), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x23784
testb $0x40, %al
je 0x2376a
leaq 0x23939(%rip), %rdi     # 0x4709a
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x239d4(%rip), %rdi     # 0x47145
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x339ff(%rip), %rax     # 0x57180
movq (%rax), %rax
testb $0x30, %al
je 0x2379c
movzbl %r14b, %esi
leaq 0x23921(%rip), %rdi     # 0x470b4
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x8(%rbp), %r12
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x48de
movl %eax, %r14d
movl %ebx, %edi
callq 0x160f7
movl %eax, %ebx
leaq 0x1f1c1(%rip), %rcx     # 0x42981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r12, %rsi
movl 0x4(%rsp), %edx
callq 0x5100
leaq 0x339a8(%rip), %rax     # 0x57180
movq (%rax), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x2380f
testb $0x40, %al
je 0x237f5
leaq 0x238ae(%rip), %rdi     # 0x4709a
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x23958(%rip), %rdi     # 0x47154
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x33974(%rip), %rax     # 0x57180
movq (%rax), %rax
testb $0x30, %al
je 0x23851
movzwl %r14w, %eax
movzbl %al, %r12d
leaq 0x23892(%rip), %rdi     # 0x470b4
movl %r12d, %esi
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
testb $0x1, %r12b
leaq 0x23944(%rip), %rax     # 0x4717e
leaq 0x2392b(%rip), %rdi     # 0x4716c
cmoveq %rax, %rdi
xorl %eax, %eax
callq 0x3120
addl %r13d, %eax
addl %eax, %ebx
testq %r15, %r15
je 0x23861
andl $0x1, %r14d
movl %r14d, 0xc8(%r15)
leaq 0x9(%rbp), %r14
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x48de
movl %eax, %r15d
movl %ebx, %edi
callq 0x160f7
movl %eax, %ebx
leaq 0x1f0fc(%rip), %rcx     # 0x42981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
movl 0x4(%rsp), %edx
callq 0x5100
leaq 0x338e3(%rip), %rax     # 0x57180
movq (%rax), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x238d4
testb $0x40, %al
je 0x238ba
leaq 0x237e9(%rip), %rdi     # 0x4709a
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x238d1(%rip), %rdi     # 0x47192
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x338af(%rip), %rax     # 0x57180
movq (%rax), %rax
testb $0x30, %al
je 0x238ec
movzbl %r15b, %esi
leaq 0x1f677(%rip), %rdi     # 0x42f5a
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0xa(%rbp), %r12
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x48de
movl %eax, %r14d
movl %ebx, %edi
callq 0x160f7
movl %eax, %ebx
leaq 0x1f071(%rip), %rcx     # 0x42981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r12, %rsi
movl 0x4(%rsp), %edx
callq 0x5100
leaq 0x33858(%rip), %rax     # 0x57180
movq (%rax), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x2395f
testb $0x40, %al
je 0x23945
leaq 0x2375e(%rip), %rdi     # 0x4709a
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x23853(%rip), %rdi     # 0x4719f
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x33824(%rip), %rax     # 0x57180
movq (%rax), %rax
testb $0x30, %al
je 0x23a34
movzwl %r14w, %r12d
movzbl %r12b, %r14d
testl $0x1040000, %eax        # imm = 0x1040000
je 0x2399a
addl $0x2, %r12d
cvtsi2sd %r12d, %xmm0
callq 0x3040
leaq 0x23840(%rip), %rdi     # 0x471cb
movl %r14d, %esi
movb $0x1, %al
callq 0x3120
jmp 0x23a32
addl $0x2, %r14d
leaq 0x2370f(%rip), %rdi     # 0x470b4
movl %r14d, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
movl %ebx, %edi
callq 0x160f7
movl %eax, %ebx
leaq 0x1bf98(%rip), %rcx     # 0x3f959
movl $0x4003333, %edi        # imm = 0x4003333
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl 0x4(%rsp), %edx
callq 0x5100
leaq 0x337a5(%rip), %rax     # 0x57180
movq (%rax), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x23a12
testb $0x40, %al
je 0x239f8
leaq 0x236ab(%rip), %rdi     # 0x4709a
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x237b7(%rip), %rdi     # 0x471b6
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x33771(%rip), %rax     # 0x57180
movq (%rax), %rax
testb $0x30, %al
je 0x23a34
addl $0x2, %r12d
cvtsi2sd %r12d, %xmm0
callq 0x3040
leaq 0x2379a(%rip), %rdi     # 0x471c5
movb $0x1, %al
callq 0x3120
addl %eax, %ebx
leaq 0xb(%rbp), %r12
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x48de
movl %eax, %r14d
movl %ebx, %edi
callq 0x160f7
movl %eax, %ebx
leaq 0x1ef29(%rip), %rcx     # 0x42981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r12, %rsi
movl 0x4(%rsp), %edx
callq 0x5100
leaq 0x33710(%rip), %rax     # 0x57180
movq (%rax), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x23aa7
testb $0x40, %al
je 0x23a8d
leaq 0x23616(%rip), %rdi     # 0x4709a
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x2374e(%rip), %rdi     # 0x471e2
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x336dc(%rip), %rax     # 0x57180
movq (%rax), %rax
testb $0x30, %al
je 0x23b7c
movzwl %r14w, %r12d
movzbl %r12b, %r14d
testl $0x1040000, %eax        # imm = 0x1040000
je 0x23ae2
addl $0x2, %r12d
cvtsi2sd %r12d, %xmm0
callq 0x3040
leaq 0x23737(%rip), %rdi     # 0x4720a
movl %r14d, %esi
movb $0x1, %al
callq 0x3120
jmp 0x23b7a
addl $0x2, %r14d
leaq 0x235c7(%rip), %rdi     # 0x470b4
movl %r14d, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
movl %ebx, %edi
callq 0x160f7
movl %eax, %ebx
leaq 0x1be50(%rip), %rcx     # 0x3f959
movl $0x4003333, %edi        # imm = 0x4003333
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl 0x4(%rsp), %edx
callq 0x5100
leaq 0x3365d(%rip), %rax     # 0x57180
movq (%rax), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x23b5a
testb $0x40, %al
je 0x23b40
leaq 0x23563(%rip), %rdi     # 0x4709a
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x236b3(%rip), %rdi     # 0x471fa
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x33629(%rip), %rax     # 0x57180
movq (%rax), %rax
testb $0x30, %al
je 0x23b7c
addl $0x2, %r12d
cvtsi2sd %r12d, %xmm0
callq 0x3040
leaq 0x23652(%rip), %rdi     # 0x471c5
movb $0x1, %al
callq 0x3120
addl %eax, %ebx
leaq 0xc(%rbp), %r12
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x48de
movl %eax, %r14d
movl %ebx, %edi
callq 0x160f7
movl %eax, %ebx
leaq 0x1ede1(%rip), %rcx     # 0x42981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r12, %rsi
movl 0x4(%rsp), %edx
callq 0x5100
leaq 0x335c8(%rip), %rax     # 0x57180
movq (%rax), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x23bef
testb $0x40, %al
je 0x23bd5
leaq 0x234ce(%rip), %rdi     # 0x4709a
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x23645(%rip), %rdi     # 0x47221
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x33594(%rip), %rax     # 0x57180
movq (%rax), %rax
testb $0x30, %al
je 0x23c07
movzbl %r14b, %esi
leaq 0x234b6(%rip), %rdi     # 0x470b4
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0xd(%rbp), %r12
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x48de
movl %eax, %r14d
movl %ebx, %edi
callq 0x160f7
movl %eax, %r13d
leaq 0x1ed55(%rip), %rcx     # 0x42981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r12, %rsi
movl 0x4(%rsp), %edx
callq 0x5100
leaq 0x3353c(%rip), %rax     # 0x57180
movq (%rax), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x23c7d
testb $0x40, %al
je 0x23c62
leaq 0x23442(%rip), %rdi     # 0x4709a
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
leaq 0x235c7(%rip), %rdi     # 0x47230
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
leaq 0x33506(%rip), %rax     # 0x57180
movq (%rax), %rax
testb $0x30, %al
je 0x23c96
movzbl %r14b, %esi
leaq 0x23428(%rip), %rdi     # 0x470b4
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
addq $0xe, %rbp
testb $0x1, 0x10(%rsp)
jne 0x23d2c
movq 0x30(%rsp), %r14
addq 0x18(%rsp), %r14
leaq 0x334ca(%rip), %rax     # 0x57180
movzwl 0x2(%rax), %eax
testw $0x104, %ax             # imm = 0x104
je 0x23d01
movl %r13d, %edi
callq 0x160f7
movl %eax, %ebx
leaq -0x1(%rbp), %rsi
leaq 0x1b407(%rip), %rcx     # 0x3f0dc
movl $0x4043333, %edi        # imm = 0x4043333
movq 0x20(%rsp), %rdx
callq 0x5100
leaq 0x2338e(%rip), %rdi     # 0x47079
movl 0x14(%rsp), %esi
movq 0x28(%rsp), %rdx
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebx, %r13d
cmpq %r14, %rbp
jbe 0x23d12
leaq 0x23377(%rip), %rdi     # 0x47084
callq 0x56e2
movl %r13d, %edi
callq 0x160f7
movq %r14, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movzwl %r15w, %ebx
incq %rbx
leaq 0x1ec47(%rip), %r15     # 0x42981
xorl %r12d, %r12d
cmpl %r12d, %ebx
je 0x23ca5
leaq 0x1(%rbp), %r14
movq 0x8(%rsp), %rdi
movq %rbp, %rsi
callq 0x48de
movl %eax, %ebp
movl %r13d, %edi
callq 0x160f7
movl %eax, %r13d
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
movl 0x4(%rsp), %edx
movq %r15, %rcx
callq 0x5100
leaq 0x33401(%rip), %rax     # 0x57180
movq (%rax), %rax
testl $0x1040000, %eax        # imm = 0x1040000
je 0x23dee
testw $0x3003, %ax            # imm = 0x3003
je 0x23dad
leaq 0x234c8(%rip), %rdi     # 0x4725e
movl %r12d, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
leaq 0x333d6(%rip), %rax     # 0x57180
movq (%rax), %rax
testb $0x30, %al
je 0x23dd1
movl %ebp, %esi
andl $0xf, %esi
leaq 0x234b4(%rip), %rdi     # 0x47271
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
leaq 0x333b2(%rip), %rax     # 0x57180
movq (%rax), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x23ea3
leaq 0x23496(%rip), %rdi     # 0x47278
xorl %eax, %eax
callq 0x3120
jmp 0x23e96
testw $0x3003, %ax            # imm = 0x3003
je 0x23e27
testb $0x40, %al
je 0x23e09
leaq 0x2329b(%rip), %rdi     # 0x4709a
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
leaq 0x2342b(%rip), %rdi     # 0x4723b
movl %r12d, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
leaq 0x3335c(%rip), %rax     # 0x57180
movq (%rax), %rax
testb $0x30, %al
je 0x23e41
movl %ebp, %esi
andl $0xf, %esi
leaq 0x1f123(%rip), %rdi     # 0x42f5a
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
movl %r13d, %edi
callq 0x160f7
movl %eax, %r13d
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
movl 0x4(%rsp), %edx
movq %r15, %rcx
callq 0x5100
leaq 0x33319(%rip), %rax     # 0x57180
movq (%rax), %rax
testw $0x3003, %ax            # imm = 0x3003
je 0x23ea3
testb $0x40, %al
je 0x23e85
leaq 0x2321f(%rip), %rdi     # 0x4709a
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
leaq 0x233c0(%rip), %rdi     # 0x4724c
movl %r12d, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
leaq 0x332e0(%rip), %rax     # 0x57180
movq (%rax), %rax
testb $0x30, %al
je 0x23ec0
shrl $0x4, %ebp
andl $0xf, %ebp
leaq 0x1f0a6(%rip), %rdi     # 0x42f5a
movl %ebp, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
incq %r12
movq %r14, %rbp
jmp 0x23d3d