// File: /workspace/github_c_makefile_star2_O1/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, %r12d
movq %rcx, %r13
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %rbp
movl %edx, %edi
callq 0xc7cf
movq %rax, %r14
leaq 0x2(%r15), %rdx
movq %rbp, 0x8(%rsp)
movq %rbp, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
callq 0x4574
movl %eax, %ebp
leaq 0x1ceba(%rip), %rcx     # 0x410dc
movl $0x4043333, %edi        # imm = 0x4043333
movq %r15, %rsi
movl %r12d, %edx
callq 0x5605
leaq 0x33f47(%rip), %rax     # 0x58180
movq (%rax), %rax
movzwl %bp, %ecx
movzwl %bx, %esi
testl $0x1040000, %eax        # imm = 0x1040000
movq %rcx, 0x20(%rsp)
movq %r14, 0x30(%rsp)
movl %esi, 0x1c(%rsp)
je 0x2426c
leaq 0x24cdc(%rip), %rdi     # 0x48f3a
movq %r14, %rdx
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
jmp 0x242c9
testl $0x3003, %eax           # imm = 0x3003
je 0x242a5
xorl %ebp, %ebp
testb $0x40, %al
je 0x24289
leaq 0x24c88(%rip), %rdi     # 0x48f08
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
leaq 0x1ce07(%rip), %rdi     # 0x41097
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
addl %ebp, %ebx
movq 0x20(%rsp), %rcx
jmp 0x242a7
xorl %ebx, %ebx
leaq 0x33ed2(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x242c9
leal 0x2(%rcx), %edx
leaq 0x24c72(%rip), %rdi     # 0x48f2f
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x4(%r15), %r14
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x4d44
movl %eax, 0x18(%rsp)
movl %ebx, %edi
callq 0x16b56
movl %eax, %ebx
leal 0x8(%r12), %edx
leaq 0x2068e(%rip), %rcx     # 0x44981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
movl %edx, 0x4(%rsp)
callq 0x5605
leaq 0x33e75(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x24339
testb $0x40, %al
je 0x24329
leaq 0x24d8a(%rip), %rdi     # 0x490aa
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x24d88(%rip), %rdi     # 0x490b8
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x33e40(%rip), %rax     # 0x58180
testb $0x30, (%rax)
movq %r15, 0x10(%rsp)
je 0x243f0
movl 0x18(%rsp), %r14d
movzwl %r14w, %r15d
movzbl %r15b, %esi
leaq 0x24d62(%rip), %rdi     # 0x490c4
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %ebx, %ebp
leaq 0x24d57(%rip), %rdi     # 0x490cb
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
addl %ebp, %ebx
testb $0x1, %r14b
jne 0x24395
leaq 0x1efc4(%rip), %rdi     # 0x43350
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x24d45(%rip), %rdi     # 0x490e1
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %ebx, %ebp
testb $0x2, %r15b
leaq 0x24d52(%rip), %rax     # 0x49104
leaq 0x24d35(%rip), %rdi     # 0x490ee
cmoveq %rax, %rdi
xorl %eax, %eax
callq 0x3120
movl %eax, %r14d
testb $0x4, %r15b
leaq 0x24d5d(%rip), %rax     # 0x4912f
leaq 0x24d44(%rip), %rdi     # 0x4911d
cmoveq %rax, %rdi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
addl %r14d, %ebx
addl %ebp, %ebx
movq 0x10(%rsp), %r15
leaq 0x5(%r15), %r14
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x4d44
movl %eax, %ebp
movl %ebx, %edi
callq 0x16b56
movl %eax, %ebx
leaq 0x2056e(%rip), %rcx     # 0x44981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
movl 0x4(%rsp), %edx
callq 0x5605
leaq 0x33d55(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x24459
testb $0x40, %al
je 0x24449
leaq 0x24c6a(%rip), %rdi     # 0x490aa
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x24cf4(%rip), %rdi     # 0x49144
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x33d20(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x24479
movzbl %bpl, %esi
leaq 0x24c54(%rip), %rdi     # 0x490c4
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x6(%r15), %r14
movq 0x8(%rsp), %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r14, %rdx
callq 0x4574
movl %eax, %ebp
movl %ebx, %edi
callq 0x16b56
movl %eax, %ebx
leaq 0x204e0(%rip), %rcx     # 0x44981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
movl 0x4(%rsp), %edx
callq 0x5605
leaq 0x33cc7(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x244e7
testb $0x40, %al
je 0x244d7
leaq 0x24bdc(%rip), %rdi     # 0x490aa
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x24c77(%rip), %rdi     # 0x49155
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x33c92(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x24507
movzbl %bpl, %esi
leaq 0x24bc6(%rip), %rdi     # 0x490c4
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x8(%r15), %r14
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x4d44
movl %eax, %ebp
movl %ebx, %edi
callq 0x16b56
movl %eax, %ebx
leaq 0x20457(%rip), %rcx     # 0x44981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
movl 0x4(%rsp), %edx
callq 0x5605
leaq 0x33c3e(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x24570
testb $0x40, %al
je 0x24560
leaq 0x24b53(%rip), %rdi     # 0x490aa
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x24bfd(%rip), %rdi     # 0x49164
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x33c09(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x245be
movzwl %bp, %eax
movzbl %al, %r14d
leaq 0x24b3a(%rip), %rdi     # 0x490c4
movl %r14d, %esi
xorl %eax, %eax
callq 0x3120
movl %eax, %r15d
testb $0x1, %r14b
leaq 0x24bec(%rip), %rax     # 0x4918e
leaq 0x24bd3(%rip), %rdi     # 0x4917c
cmoveq %rax, %rdi
xorl %eax, %eax
callq 0x3120
addl %r15d, %eax
movq 0x10(%rsp), %r15
addl %eax, %ebx
testq %r13, %r13
je 0x245cd
andl $0x1, %ebp
movl %ebp, 0xc8(%r13)
leaq 0x9(%r15), %r14
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x4d44
movl %eax, %r13d
movl %ebx, %edi
callq 0x16b56
movl %eax, %ebx
leaq 0x20390(%rip), %rcx     # 0x44981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
movl 0x4(%rsp), %edx
callq 0x5605
leaq 0x33b77(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x24637
testb $0x40, %al
je 0x24627
leaq 0x24a8c(%rip), %rdi     # 0x490aa
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x24b74(%rip), %rdi     # 0x491a2
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x33b42(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x24657
movzbl %r13b, %esi
leaq 0x2090c(%rip), %rdi     # 0x44f5a
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0xa(%r15), %r14
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x4d44
movl %eax, %ebp
movl %ebx, %edi
callq 0x16b56
movl %eax, %ebx
leaq 0x20307(%rip), %rcx     # 0x44981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
movl 0x4(%rsp), %edx
callq 0x5605
leaq 0x33aee(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x246c0
testb $0x40, %al
je 0x246b0
leaq 0x24a03(%rip), %rdi     # 0x490aa
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x24af8(%rip), %rdi     # 0x491af
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x33ab9(%rip), %rax     # 0x58180
movq (%rax), %rax
testb $0x30, %al
je 0x2479b
movzwl %bp, %r14d
movzbl %r14b, %ebp
testl $0x1040000, %eax        # imm = 0x1040000
je 0x24704
addl $0x2, %r14d
cvtsi2sd %r14d, %xmm0
callq 0x3040
leaq 0x24ae5(%rip), %rdi     # 0x491db
movl %ebp, %esi
movb $0x1, %al
callq 0x3120
jmp 0x24799
addl $0x2, %ebp
leaq 0x249b6(%rip), %rdi     # 0x490c4
movl %ebp, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
movl %ebx, %edi
callq 0x16b56
movl %eax, %ebx
leaq 0x1d230(%rip), %rcx     # 0x41959
movl $0x4003333, %edi        # imm = 0x4003333
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl 0x4(%rsp), %edx
callq 0x5605
leaq 0x33a3d(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x24771
testb $0x40, %al
je 0x24761
leaq 0x24952(%rip), %rdi     # 0x490aa
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x24a5e(%rip), %rdi     # 0x491c6
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x33a08(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x2479b
addl $0x2, %r14d
cvtsi2sd %r14d, %xmm0
callq 0x3040
leaq 0x24a43(%rip), %rdi     # 0x491d5
movb $0x1, %al
callq 0x3120
addl %eax, %ebx
leaq 0xb(%r15), %r14
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x4d44
movl %eax, %ebp
movl %ebx, %edi
callq 0x16b56
movl %eax, %ebx
leaq 0x201c3(%rip), %rcx     # 0x44981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
movl 0x4(%rsp), %edx
callq 0x5605
leaq 0x339aa(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x24804
testb $0x40, %al
je 0x247f4
leaq 0x248bf(%rip), %rdi     # 0x490aa
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x249f7(%rip), %rdi     # 0x491f2
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x33975(%rip), %rax     # 0x58180
movq (%rax), %rax
testb $0x30, %al
je 0x248e5
movzwl %bp, %r14d
movzbl %r14b, %ebp
testl $0x1040000, %eax        # imm = 0x1040000
je 0x2484b
addl $0x2, %r14d
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
callq 0x3040
leaq 0x249dd(%rip), %rdi     # 0x4921a
movl %ebp, %esi
movb $0x1, %al
callq 0x3120
jmp 0x248e3
addl $0x2, %ebp
leaq 0x2486f(%rip), %rdi     # 0x490c4
movl %ebp, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
movl %ebx, %edi
callq 0x16b56
movl %eax, %ebx
leaq 0x1d0e9(%rip), %rcx     # 0x41959
movl $0x4003333, %edi        # imm = 0x4003333
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl 0x4(%rsp), %edx
callq 0x5605
leaq 0x338f6(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x248b8
testb $0x40, %al
je 0x248a8
leaq 0x2480b(%rip), %rdi     # 0x490aa
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x2495b(%rip), %rdi     # 0x4920a
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x338c1(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x248e5
addl $0x2, %r14d
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
callq 0x3040
leaq 0x248f9(%rip), %rdi     # 0x491d5
movb $0x1, %al
callq 0x3120
addl %eax, %ebx
leaq 0xc(%r15), %r14
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x4d44
movl %eax, %ebp
movl %ebx, %edi
callq 0x16b56
movl %eax, %ebx
leaq 0x20079(%rip), %rcx     # 0x44981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
movl 0x4(%rsp), %edx
callq 0x5605
leaq 0x33860(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2494e
testb $0x40, %al
je 0x2493e
leaq 0x24775(%rip), %rdi     # 0x490aa
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x248ec(%rip), %rdi     # 0x49231
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x3382b(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x2496e
movzbl %bpl, %esi
leaq 0x2475f(%rip), %rdi     # 0x490c4
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
addq $0xd, %r15
movq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x4d44
movl %eax, %ebp
movl %ebx, %edi
callq 0x16b56
movl %eax, %r14d
leaq 0x1ffef(%rip), %rcx     # 0x44981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r15, %rsi
movl 0x4(%rsp), %edx
callq 0x5605
leaq 0x337d6(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x249da
testb $0x40, %al
je 0x249c9
leaq 0x246eb(%rip), %rdi     # 0x490aa
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x24870(%rip), %rdi     # 0x49240
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movq 0x10(%rsp), %rbx
leaq 0x3379a(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x24a00
movzbl %bpl, %esi
leaq 0x246ce(%rip), %rdi     # 0x490c4
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movq %r12, 0x28(%rsp)
addq $0xe, %rbx
testb $0x1, 0x18(%rsp)
je 0x24ba8
movzwl %r13w, %r15d
incl %r15d
leaq 0x1ff5f(%rip), %r13     # 0x44981
xorl %r12d, %r12d
movq %rbx, %rsi
incq %rbx
movq 0x8(%rsp), %rdi
callq 0x4d44
movl %eax, %ebp
movl %r14d, %edi
callq 0x16b56
movl %eax, %r14d
movl $0x4003333, %edi        # imm = 0x4003333
movq %rbx, %rsi
movl 0x4(%rsp), %edx
movq %r13, %rcx
callq 0x5605
leaq 0x33723(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x1040000, %eax        # imm = 0x1040000
je 0x24acc
testl $0x3003, %eax           # imm = 0x3003
je 0x24a82
leaq 0x247f9(%rip), %rdi     # 0x4926e
movl %r12d, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x336f7(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x24aa4
movl %ebp, %esi
andl $0xf, %esi
leaq 0x247e7(%rip), %rdi     # 0x49281
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x336d5(%rip), %rax     # 0x58180
movzwl (%rax), %eax
testl $0x3003, %eax           # imm = 0x3003
je 0x24b77
leaq 0x247c8(%rip), %rdi     # 0x49288
xorl %eax, %eax
callq 0x3120
jmp 0x24b74
testl $0x3003, %eax           # imm = 0x3003
je 0x24afc
testb $0x40, %al
je 0x24ae8
leaq 0x245cc(%rip), %rdi     # 0x490aa
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x2475c(%rip), %rdi     # 0x4924b
movl %r12d, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x3367d(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x24b1e
movl %ebp, %esi
andl $0xf, %esi
leaq 0x20446(%rip), %rdi     # 0x44f5a
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movl %r14d, %edi
callq 0x16b56
movl %eax, %r14d
movl $0x4003333, %edi        # imm = 0x4003333
movq %rbx, %rsi
movl 0x4(%rsp), %edx
movq %r13, %rcx
callq 0x5605
leaq 0x3363c(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x24b77
testb $0x40, %al
je 0x24b63
leaq 0x24551(%rip), %rdi     # 0x490aa
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x246f2(%rip), %rdi     # 0x4925c
movl %r12d, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x33602(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x24b9c
shrl $0x4, %ebp
andl $0xf, %ebp
leaq 0x203ca(%rip), %rdi     # 0x44f5a
movl %ebp, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
incl %r12d
cmpl %r12d, %r15d
jne 0x24a25
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
leaq (%rax,%rcx), %r15
addq $0x2, %r15
leaq 0x335bf(%rip), %rax     # 0x58180
movzwl 0x2(%rax), %eax
testl $0x104, %eax            # imm = 0x104
je 0x24c0d
movl %r14d, %edi
callq 0x16b56
movl %eax, %ebp
leaq -0x1(%rbx), %rsi
leaq 0x1c4fb(%rip), %rcx     # 0x410dc
movl $0x4043333, %edi        # imm = 0x4043333
movq 0x28(%rsp), %rdx
callq 0x5605
leaq 0x24492(%rip), %rdi     # 0x49089
movl 0x1c(%rsp), %esi
movq 0x30(%rsp), %rdx
xorl %eax, %eax
callq 0x3120
movl %eax, %r14d
addl %ebp, %r14d
cmpq %r15, %rbx
jbe 0x24c1e
leaq 0x2447b(%rip), %rdi     # 0x49094
callq 0x5c33
movl %r14d, %edi
callq 0x16b56
movq %r15, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq