// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/jp2000.c
// Function: process_jpc_siz
unsigned long
process_jpc_siz(FILE *inptr,unsigned long marker_offset,unsigned short tag,
                                    struct image_summary *summary_entry,
                                    int indent)
{
    unsigned long max_offset;
    unsigned long gridwidth;
    unsigned long gridheight;
    unsigned long Ximgoffset;
    unsigned long Yimgoffset;
    unsigned long tilewidth;
    unsigned long tileheight;
    unsigned long Xtileoffset;
    unsigned long Ytileoffset;
    unsigned short seg_length;
    unsigned short caps;
    unsigned short ncomps;
    unsigned short precision;
    unsigned short hsep;
    unsigned short vsep;
    int chpr = 0;
    int i;
    char *name,*uns;

    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;

    caps = 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.siz.");
        chpr += printf("Capabilities");
    }
    if((PRINT_VALUE))
        chpr += printf(" = %u",caps);
    marker_offset += 2;
    gridwidth = read_ulong(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.siz.");
        chpr += printf("GridWidth");
    }
    if((PRINT_VALUE))
        chpr += printf(" = %lu",gridwidth);
    marker_offset += 4;
    gridheight = read_ulong(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.siz.");
        chpr += printf("GridHeight");
    }
    if((PRINT_VALUE))
        chpr += printf(" = %lu",gridheight);
    marker_offset += 4;
    Ximgoffset = read_ulong(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.siz.");
        chpr += printf("XImageOffset");
    }
    if((PRINT_VALUE))
        chpr += printf(" = %lu",Ximgoffset);

    /* Image height and width are normally taken from the ihdr box;   */
    /* if this is a bare codestream encapsulated in e.g. a TIFF file, */
    /* compute image size from grid size and offset                   */
    if(summary_entry && (summary_entry->pixel_width <= 0) &&
                                                (gridwidth > Ximgoffset))
    {
        summary_entry->pixel_width = gridwidth - Ximgoffset;
    }

    marker_offset += 4;
    Yimgoffset = read_ulong(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.siz.");
        chpr += printf("YImageOffset");
    }
    if((PRINT_VALUE))
        chpr += printf(" = %lu",Yimgoffset);

    /* Image height and width are normally taken from the ihdr box;   */
    /* if this is a bare codestream encapsulated in e.g. a TIFF file, */
    /* compute image size from grid size and offset                   */
    if(summary_entry && (summary_entry->pixel_height <= 0) &&
                                                (gridheight > Yimgoffset))
    {
        summary_entry->pixel_height = gridheight - Yimgoffset;
    }

    marker_offset += 4;
    tilewidth = read_ulong(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.siz.");
        chpr += printf("TileWidth");
    }
    if((PRINT_VALUE))
        chpr += printf(" = %lu",tilewidth);
    marker_offset += 4;
    tileheight = read_ulong(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.siz.");
        chpr += printf("TileHeight");
    }
    if((PRINT_VALUE))
        chpr += printf(" = %lu",tileheight);
    marker_offset += 4;
    Xtileoffset = read_ulong(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.siz.");
        chpr += printf("Xtileoffset");
    }
    if((PRINT_VALUE))
        chpr += printf(" = %lu",Xtileoffset);
    marker_offset += 4;
    Ytileoffset = read_ulong(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.siz.");
        chpr += printf("Ytileoffset");
    }
    if((PRINT_VALUE))
        chpr += printf(" = %lu",Ytileoffset);
    marker_offset += 4;
    ncomps = read_ushort(inptr,TIFF_MOTOROLA,marker_offset);
    if(summary_entry)
        summary_entry->spp = ncomps;
    chpr = newline(chpr);
    print_tag_address(ENTRY,marker_offset,indent + 8,"=");
    if((PRINT_TAGINFO))
    {
        if((PRINT_LONGNAMES))
            chpr += printf("JP2.jp2c.siz.");
        chpr += printf("NumberOfComponents");
    }
    if((PRINT_VALUE))
        chpr += printf(" = %u",ncomps);
    marker_offset += 2;
    for(i = 0; i < ncomps; ++i)
    {
        precision = read_ubyte(inptr,marker_offset);
        if(summary_entry)
            summary_entry->bps[i] = precision;
        chpr = newline(chpr);
        if(precision & 0x80)
            uns = NULLSTRING;
        else
            uns = "un";
        print_tag_address(ENTRY,marker_offset,indent + 8,"=");
        if((PRINT_TAGINFO))
        {
            if((PRINT_LONGNAMES))
                chpr += printf("JP2.jp2c.siz.");
            chpr += printf("Component%dPrecision",i);
        }
        if((PRINT_VALUE))
            chpr += printf(" = %#x = %u bits %ssigned",precision,
                                        (precision & 0x7f) + 1,uns);
        marker_offset++;
        /* ###%%% print these as separate lines?                      */
        hsep = read_ubyte(inptr,marker_offset);
        if((PRINT_SEGMENT) && (PRINT_VALUE) && !(LIST_MODE))
            chpr += printf(", hsep = %u",hsep);
        marker_offset++;
        vsep = read_ubyte(inptr,marker_offset);
        if((PRINT_SEGMENT) && (PRINT_VALUE) && !(LIST_MODE))
            chpr += printf(", vsep = %u",vsep);
        marker_offset++;
    }
    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 $0x48, %rsp
movl %r8d, %r12d
movq %rcx, 0x18(%rsp)
movl %edx, %ebx
movq %rsi, %r13
movq %rdi, %r15
movl %edx, %edi
callq 0xc7cf
movq %rax, %r14
leaq 0x2(%r13), %rdx
movq %r15, 0x10(%rsp)
movq %r15, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
callq 0x4574
movl %eax, %ebp
leaq 0x1d79d(%rip), %rcx     # 0x410dc
movl $0x4043333, %edi        # imm = 0x4043333
movq %r13, %rsi
movl %r12d, %edx
callq 0x5605
leaq 0x3482a(%rip), %rax     # 0x58180
movq (%rax), %rax
movzwl %bp, %r15d
movzwl %bx, %esi
testl $0x1040000, %eax        # imm = 0x1040000
movq %r14, 0x38(%rsp)
movl %esi, 0x24(%rsp)
je 0x23988
leaq 0x255c3(%rip), %rdi     # 0x48f3a
movq %r14, %rdx
movl %r15d, %ecx
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
jmp 0x239e1
testl $0x3003, %eax           # imm = 0x3003
je 0x239bc
xorl %ebp, %ebp
testb $0x40, %al
je 0x239a5
leaq 0x2556c(%rip), %rdi     # 0x48f08
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
leaq 0x1d6eb(%rip), %rdi     # 0x41097
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
addl %ebp, %ebx
jmp 0x239be
xorl %ebx, %ebx
leaq 0x347bb(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x239e1
leal 0x2(%r15), %edx
leaq 0x2555a(%rip), %rdi     # 0x48f2f
movq %r13, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x4(%r13), %r14
movq 0x10(%rsp), %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r14, %rdx
callq 0x4574
movl %eax, %ebp
movl %ebx, %edi
callq 0x16b56
movl %eax, %ebx
leal 0x8(%r12), %edx
leaq 0x20f73(%rip), %rcx     # 0x44981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
movl %edx, 0xc(%rsp)
callq 0x5605
leaq 0x3475a(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x23a54
testb $0x40, %al
je 0x23a44
leaq 0x2559a(%rip), %rdi     # 0x48fd5
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x25598(%rip), %rdi     # 0x48fe3
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x34725(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x23a73
movzwl %bp, %esi
leaq 0x214f0(%rip), %rdi     # 0x44f5a
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x6(%r13), %r14
movq 0x10(%rsp), %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r14, %rdx
callq 0x46cc
movq %rax, %rbp
movl %ebx, %edi
callq 0x16b56
movl %eax, %ebx
leaq 0x20ee5(%rip), %rcx     # 0x44981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
movl 0xc(%rsp), %edx
callq 0x5605
leaq 0x346cc(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x23ae2
testb $0x40, %al
je 0x23ad2
leaq 0x2550c(%rip), %rdi     # 0x48fd5
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x25517(%rip), %rdi     # 0x48ff0
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x34697(%rip), %rax     # 0x58180
testb $0x30, (%rax)
movq %r15, 0x40(%rsp)
je 0x23b06
leaq 0x1d5d1(%rip), %rdi     # 0x410cb
movq %rbp, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0xa(%r13), %r15
movq 0x10(%rsp), %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r15, %rdx
callq 0x46cc
movq %rax, %r14
movl %ebx, %edi
callq 0x16b56
movl %eax, %ebx
leaq 0x20e52(%rip), %rcx     # 0x44981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r15, %rsi
movl 0xc(%rsp), %edx
callq 0x5605
leaq 0x34639(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x23b75
testb $0x40, %al
je 0x23b65
leaq 0x25479(%rip), %rdi     # 0x48fd5
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x2548e(%rip), %rdi     # 0x48ffa
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x34604(%rip), %rax     # 0x58180
testb $0x30, (%rax)
movq %r12, 0x30(%rsp)
je 0x23b99
leaq 0x1d53e(%rip), %rdi     # 0x410cb
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0xe(%r13), %r12
movq 0x10(%rsp), %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r12, %rdx
callq 0x46cc
movq %rax, %r15
movl %ebx, %edi
callq 0x16b56
movl %eax, %ebx
leaq 0x20dbf(%rip), %rcx     # 0x44981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r12, %rsi
movl 0xc(%rsp), %edx
callq 0x5605
leaq 0x345a6(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x23c08
testb $0x40, %al
je 0x23bf8
leaq 0x253e6(%rip), %rdi     # 0x48fd5
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x25406(%rip), %rdi     # 0x49005
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x34571(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x23c27
leaq 0x1d4b0(%rip), %rdi     # 0x410cb
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
movq 0x18(%rsp), %rdx
testq %rdx, %rdx
je 0x23c4a
cmpq $0x0, 0x70(%rdx)
sete %al
subq %r15, %rbp
seta %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x23c4a
movq %rbp, 0x70(%rdx)
leaq 0x12(%r13), %r12
movq 0x10(%rsp), %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r12, %rdx
callq 0x46cc
movq %rax, %r15
movl %ebx, %edi
callq 0x16b56
movl %eax, %ebx
leaq 0x20d0e(%rip), %rcx     # 0x44981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r12, %rsi
movl 0xc(%rsp), %edx
callq 0x5605
leaq 0x344f5(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x23cb9
testb $0x40, %al
je 0x23ca9
leaq 0x25335(%rip), %rdi     # 0x48fd5
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x25362(%rip), %rdi     # 0x49012
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x344c0(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x23cd8
leaq 0x1d3ff(%rip), %rdi     # 0x410cb
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
movq 0x18(%rsp), %rdx
testq %rdx, %rdx
je 0x23cfb
cmpq $0x0, 0x78(%rdx)
sete %al
subq %r15, %r14
seta %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x23cfb
movq %r14, 0x78(%rdx)
leaq 0x16(%r13), %r15
movq 0x10(%rsp), %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r15, %rdx
callq 0x46cc
movq %rax, %r14
movl %ebx, %edi
callq 0x16b56
movl %eax, %ebx
leaq 0x20c5d(%rip), %rcx     # 0x44981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r15, %rsi
movl 0xc(%rsp), %edx
callq 0x5605
leaq 0x34444(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x23d6a
testb $0x40, %al
je 0x23d5a
leaq 0x25284(%rip), %rdi     # 0x48fd5
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x1ec8e(%rip), %rdi     # 0x429ef
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x3440f(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x23d89
leaq 0x1d34e(%rip), %rdi     # 0x410cb
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x1a(%r13), %r15
movq 0x10(%rsp), %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r15, %rdx
callq 0x46cc
movq %rax, %r14
movl %ebx, %edi
callq 0x16b56
movl %eax, %ebx
leaq 0x20bcf(%rip), %rcx     # 0x44981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r15, %rsi
movl 0xc(%rsp), %edx
callq 0x5605
leaq 0x343b6(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x23df8
testb $0x40, %al
je 0x23de8
leaq 0x251f6(%rip), %rdi     # 0x48fd5
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x25230(%rip), %rdi     # 0x4901f
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x34381(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x23e17
leaq 0x1d2c0(%rip), %rdi     # 0x410cb
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x1e(%r13), %r15
movq 0x10(%rsp), %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r15, %rdx
callq 0x46cc
movq %rax, %r14
movl %ebx, %edi
callq 0x16b56
movl %eax, %ebx
leaq 0x20b41(%rip), %rcx     # 0x44981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r15, %rsi
movl 0xc(%rsp), %edx
callq 0x5605
leaq 0x34328(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x23e86
testb $0x40, %al
je 0x23e76
leaq 0x25168(%rip), %rdi     # 0x48fd5
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x251ad(%rip), %rdi     # 0x4902a
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x342f3(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x23ea5
leaq 0x1d232(%rip), %rdi     # 0x410cb
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x22(%r13), %r15
movq 0x10(%rsp), %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r15, %rdx
callq 0x46cc
movq %rax, %r14
movl %ebx, %edi
callq 0x16b56
movl %eax, %ebx
leaq 0x20ab3(%rip), %rcx     # 0x44981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r15, %rsi
movl 0xc(%rsp), %edx
callq 0x5605
leaq 0x3429a(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x23f14
testb $0x40, %al
je 0x23f04
leaq 0x250da(%rip), %rdi     # 0x48fd5
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x2512b(%rip), %rdi     # 0x49036
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x34265(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x23f33
leaq 0x1d1a4(%rip), %rdi     # 0x410cb
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x26(%r13), %r12
movq 0x10(%rsp), %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r12, %rdx
callq 0x4574
movl %eax, %r15d
movzwl %ax, %r14d
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x23f61
movl %r14d, 0xcc(%rax)
movl %ebx, %edi
callq 0x16b56
movl %eax, %ebp
leaq 0x20a10(%rip), %rcx     # 0x44981
movl $0x4003333, %edi        # imm = 0x4003333
movq %r12, %rsi
movl 0xc(%rsp), %edx
callq 0x5605
leaq 0x341f7(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x23fb7
testb $0x40, %al
je 0x23fa7
leaq 0x25037(%rip), %rdi     # 0x48fd5
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
leaq 0x24d40(%rip), %rdi     # 0x48cee
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
leaq 0x341c2(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x23fd6
leaq 0x20f90(%rip), %rdi     # 0x44f5a
movl %r14d, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
leaq 0x28(%r13), %r12
testw %r15w, %r15w
je 0x24153
movq %r13, 0x28(%rsp)
xorl %ebx, %ebx
movq 0x10(%rsp), %r13
movq %r12, %r15
movq %r13, %rdi
movq %r12, %rsi
callq 0x4d44
movl %eax, %r13d
movzwl %ax, %r12d
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x24017
movl %r12d, 0xd0(%rax,%rbx,4)
movl %ebp, %edi
callq 0x16b56
movl %eax, %ebp
testb %r13b, %r13b
leaq 0x23c6c(%rip), %r13     # 0x47c96
leaq 0x24cfd(%rip), %rax     # 0x48d2e
cmovnsq %rax, %r13
movl $0x4003333, %edi        # imm = 0x4003333
movq %r15, %rsi
movl 0xc(%rsp), %edx
leaq 0x20939(%rip), %rcx     # 0x44981
callq 0x5605
leaq 0x3412c(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x24084
testb $0x40, %al
je 0x24072
leaq 0x24f6c(%rip), %rdi     # 0x48fd5
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
leaq 0x24fc9(%rip), %rdi     # 0x49042
movl %ebx, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
leaq 0x340f5(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0x240ae
movl %r12d, %edx
andl $0x7f, %edx
incl %edx
leaq 0x24fb8(%rip), %rdi     # 0x49057
movl %r12d, %esi
movq %r13, %rcx
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
leaq 0x1(%r15), %r12
movq 0x10(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x4d44
leaq 0x340b7(%rip), %rcx     # 0x58180
movq (%rcx), %rcx
testl $0x1040000, %ecx        # imm = 0x1040000
je 0x240f6
movl %ecx, %edx
andl $0x80000, %edx          # imm = 0x80000
je 0x240f6
andl $0x30, %ecx
je 0x240f6
movzwl %ax, %esi
leaq 0x24f84(%rip), %rdi     # 0x49071
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
incq %r12
movq %r13, %rdi
movq %r12, %rsi
callq 0x4d44
leaq 0x34075(%rip), %rcx     # 0x58180
movq (%rcx), %rcx
testl $0x1040000, %ecx        # imm = 0x1040000
je 0x24138
movl %ecx, %edx
andl $0x80000, %edx          # imm = 0x80000
je 0x24138
andl $0x30, %ecx
je 0x24138
movzwl %ax, %esi
leaq 0x24f4e(%rip), %rdi     # 0x4907d
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
incq %rbx
incq %r12
cmpq %rbx, %r14
jne 0x23ff0
addq $0x3, %r15
movq %r15, %r12
movq 0x28(%rsp), %r13
movq 0x40(%rsp), %rax
leaq (%rax,%r13), %rbx
addq $0x2, %rbx
leaq 0x34019(%rip), %rax     # 0x58180
movzwl 0x2(%rax), %eax
testl $0x104, %eax            # imm = 0x104
je 0x241b3
movl %ebp, %edi
callq 0x16b56
movl %eax, %r14d
leaq -0x1(%r12), %rsi
leaq 0x1cf54(%rip), %rcx     # 0x410dc
movl $0x4043333, %edi        # imm = 0x4043333
movq 0x30(%rsp), %rdx
callq 0x5605
leaq 0x24eeb(%rip), %rdi     # 0x49089
movl 0x24(%rsp), %esi
movq 0x38(%rsp), %rdx
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r14d, %ebp
cmpq %rbx, %r12
jbe 0x241c4
leaq 0x24ed5(%rip), %rdi     # 0x49094
callq 0x5c33
movl %ebp, %edi
callq 0x16b56
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq