// File: /workspace/github_c_makefile_star2_O3/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, %rbp
movq %rdi, %r13
movl %edx, %edi
callq 0xc94f
movq %rax, %r15
leaq 0x2(%rbp), %rdx
movq %r13, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %rdx, 0x40(%rsp)
callq 0x45af
movl %eax, %r14d
leaq 0x1d110(%rip), %rcx     # 0x410dc
movl $0x4043333, %edi        # imm = 0x4043333
movq %rbp, %rsi
movl %r12d, %edx
callq 0x55eb
leaq 0x3419d(%rip), %rax     # 0x58180
movq (%rax), %rax
movzwl %r14w, %ecx
movzwl %bx, %esi
testl $0x1040000, %eax        # imm = 0x1040000
movq %rcx, 0x28(%rsp)
movq %r15, 0x30(%rsp)
movl %esi, 0x24(%rsp)
je 0x24017
leaq 0x24f71(%rip), %rdi     # 0x48f7a
movq %r15, %rdx
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
jmp 0x24079
testl $0x3003, %eax           # imm = 0x3003
je 0x2405d
xorl %r14d, %r14d
testb $0x40, %al
je 0x24036
leaq 0x24f1c(%rip), %rdi     # 0x48f48
xorl %eax, %eax
callq 0x3120
movl %eax, %r14d
leaq 0x1d05a(%rip), %rdi     # 0x41097
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
addl %r14d, %ebx
leaq 0x3412d(%rip), %rax     # 0x58180
movq (%rax), %rax
movq 0x28(%rsp), %rcx
jmp 0x2405f
xorl %ebx, %ebx
testb $0x30, %al
je 0x24079
leal 0x2(%rcx), %edx
leaq 0x24f02(%rip), %rdi     # 0x48f6f
movq %rbp, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x4(%rbp), %r15
movq %r13, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r15, %rdx
callq 0x45af
movl %eax, %r14d
movl %ebx, %edi
callq 0x1707a
movl %eax, %ebx
leal 0x8(%r12), %edx
leaq 0x20920(%rip), %rcx     # 0x449c5
movl $0x4003333, %edi        # imm = 0x4003333
movq %r15, %rsi
movl %edx, 0xc(%rsp)
callq 0x55eb
leaq 0x340c3(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x240f5
testb $0x40, %al
je 0x240db
leaq 0x24f43(%rip), %rdi     # 0x49015
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x24f41(%rip), %rdi     # 0x49023
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x3408e(%rip), %rax     # 0x58180
movq (%rax), %rax
testb $0x30, %al
movq %r12, 0x38(%rsp)
je 0x24112
movzwl %r14w, %esi
leaq 0x20e95(%rip), %rdi     # 0x44f9e
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x6(%rbp), %r12
movq %r13, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r12, %rdx
callq 0x4707
movq %rax, %r15
movl %ebx, %edi
callq 0x1707a
movl %eax, %r14d
leaq 0x2088b(%rip), %rcx     # 0x449c5
movl $0x4003333, %edi        # imm = 0x4003333
movq %r12, %rsi
movl 0xc(%rsp), %edx
callq 0x55eb
leaq 0x3402e(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2418c
testb $0x40, %al
je 0x24171
leaq 0x24eae(%rip), %rdi     # 0x49015
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x24eb8(%rip), %rdi     # 0x49030
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x33ff7(%rip), %rax     # 0x58180
movq (%rax), %rax
testb $0x30, %al
je 0x241a4
leaq 0x1cf34(%rip), %rdi     # 0x410cb
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0xa(%rbp), %r12
movq %r13, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r12, %rdx
callq 0x4707
movq %rax, %rbx
movl %r14d, %edi
callq 0x1707a
movl %eax, %r14d
leaq 0x207f8(%rip), %rcx     # 0x449c5
movl $0x4003333, %edi        # imm = 0x4003333
movq %r12, %rsi
movl 0xc(%rsp), %edx
callq 0x55eb
leaq 0x33f9b(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2421f
testb $0x40, %al
je 0x24204
leaq 0x24e1b(%rip), %rdi     # 0x49015
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x24e2f(%rip), %rdi     # 0x4903a
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x33f64(%rip), %rax     # 0x58180
movq (%rax), %rax
testb $0x30, %al
movq %r13, 0x10(%rsp)
je 0x2423c
leaq 0x1ce9c(%rip), %rdi     # 0x410cb
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0xe(%rbp), %r13
movq 0x10(%rsp), %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r13, %rdx
callq 0x4707
movq %rax, %r12
movl %r14d, %edi
callq 0x1707a
movl %eax, %r14d
leaq 0x2075e(%rip), %rcx     # 0x449c5
movl $0x4003333, %edi        # imm = 0x4003333
movq %r13, %rsi
movl 0xc(%rsp), %edx
callq 0x55eb
leaq 0x33f01(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x242b9
testb $0x40, %al
je 0x2429e
leaq 0x24d81(%rip), %rdi     # 0x49015
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x24da0(%rip), %rdi     # 0x49045
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x33eca(%rip), %rax     # 0x58180
movq (%rax), %rax
movq 0x10(%rsp), %r13
testb $0x30, %al
je 0x242d6
leaq 0x1ce02(%rip), %rdi     # 0x410cb
movq %r12, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movq 0x18(%rsp), %rdx
testq %rdx, %rdx
je 0x242f9
cmpq $0x0, 0x70(%rdx)
sete %al
subq %r12, %r15
seta %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x242f9
movq %r15, 0x70(%rdx)
leaq 0x12(%rbp), %r12
movq %r13, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r12, %rdx
callq 0x4707
movq %rax, %r15
movl %r14d, %edi
callq 0x1707a
movl %eax, %r14d
leaq 0x206a3(%rip), %rcx     # 0x449c5
movl $0x4003333, %edi        # imm = 0x4003333
movq %r12, %rsi
movl 0xc(%rsp), %edx
callq 0x55eb
leaq 0x33e46(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x24374
testb $0x40, %al
je 0x24359
leaq 0x24cc6(%rip), %rdi     # 0x49015
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x24cf2(%rip), %rdi     # 0x49052
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x33e0f(%rip), %rax     # 0x58180
movq (%rax), %rax
testb $0x30, %al
je 0x2438c
leaq 0x1cd4c(%rip), %rdi     # 0x410cb
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movq 0x18(%rsp), %rdx
testq %rdx, %rdx
je 0x243af
cmpq $0x0, 0x78(%rdx)
sete %al
subq %r15, %rbx
seta %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x243af
movq %rbx, 0x78(%rdx)
leaq 0x16(%rbp), %r12
movq %r13, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r12, %rdx
callq 0x4707
movq %rax, %r15
movl %r14d, %edi
callq 0x1707a
movl %eax, %ebx
leaq 0x205ee(%rip), %rcx     # 0x449c5
movl $0x4003333, %edi        # imm = 0x4003333
movq %r12, %rsi
movl 0xc(%rsp), %edx
callq 0x55eb
leaq 0x33d91(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x24427
testb $0x40, %al
je 0x2440d
leaq 0x24c11(%rip), %rdi     # 0x49015
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x1e5db(%rip), %rdi     # 0x429ef
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x33d5c(%rip), %rax     # 0x58180
movq (%rax), %rax
testb $0x30, %al
je 0x2443e
leaq 0x1cc99(%rip), %rdi     # 0x410cb
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x1a(%rbp), %r15
movq %r13, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r15, %rdx
callq 0x4707
movq %rax, %r14
movl %ebx, %edi
callq 0x1707a
movl %eax, %ebx
leaq 0x20560(%rip), %rcx     # 0x449c5
movl $0x4003333, %edi        # imm = 0x4003333
movq %r15, %rsi
movl 0xc(%rsp), %edx
callq 0x55eb
leaq 0x33d03(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x244b5
testb $0x40, %al
je 0x2449b
leaq 0x24b83(%rip), %rdi     # 0x49015
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x24bbd(%rip), %rdi     # 0x4905f
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x33cce(%rip), %rax     # 0x58180
movq (%rax), %rax
testb $0x30, %al
je 0x244cc
leaq 0x1cc0b(%rip), %rdi     # 0x410cb
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x1e(%rbp), %r15
movq %r13, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r15, %rdx
callq 0x4707
movq %rax, %r14
movl %ebx, %edi
callq 0x1707a
movl %eax, %ebx
leaq 0x204d2(%rip), %rcx     # 0x449c5
movl $0x4003333, %edi        # imm = 0x4003333
movq %r15, %rsi
movl 0xc(%rsp), %edx
callq 0x55eb
leaq 0x33c75(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x24543
testb $0x40, %al
je 0x24529
leaq 0x24af5(%rip), %rdi     # 0x49015
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x24b3a(%rip), %rdi     # 0x4906a
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x33c40(%rip), %rax     # 0x58180
movq (%rax), %rax
testb $0x30, %al
je 0x2455a
leaq 0x1cb7d(%rip), %rdi     # 0x410cb
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
leaq 0x22(%rbp), %r12
movq %r13, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r12, %rdx
callq 0x4707
movq %rax, %r15
movl %ebx, %edi
callq 0x1707a
movl %eax, %r14d
leaq 0x20443(%rip), %rcx     # 0x449c5
movl $0x4003333, %edi        # imm = 0x4003333
movq %r12, %rsi
movl 0xc(%rsp), %edx
callq 0x55eb
leaq 0x33be6(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x245d4
testb $0x40, %al
je 0x245b9
leaq 0x24a66(%rip), %rdi     # 0x49015
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x24ab6(%rip), %rdi     # 0x49076
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x33baf(%rip), %rax     # 0x58180
movq (%rax), %rax
testb $0x30, %al
je 0x245ec
leaq 0x1caec(%rip), %rdi     # 0x410cb
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x26(%rbp), %r13
movq 0x10(%rsp), %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %r13, %rdx
callq 0x45af
movl %eax, %r12d
movzwl %ax, %ebx
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x24618
movl %ebx, 0xcc(%rax)
movl %r14d, %edi
callq 0x1707a
movl %eax, %r15d
leaq 0x2039b(%rip), %rcx     # 0x449c5
movl $0x4003333, %edi        # imm = 0x4003333
movq %r13, %rsi
movl 0xc(%rsp), %edx
callq 0x55eb
leaq 0x33b3e(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x24683
testb $0x40, %al
movq 0x10(%rsp), %r13
je 0x24666
leaq 0x249b9(%rip), %rdi     # 0x49015
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
leaq 0x246c1(%rip), %rdi     # 0x48d2e
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
leaq 0x33b02(%rip), %rax     # 0x58180
movq (%rax), %rax
jmp 0x24688
movq 0x10(%rsp), %r13
testb $0x30, %al
je 0x2469f
leaq 0x2090b(%rip), %rdi     # 0x44f9e
movl %ebx, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
addq $0x28, %rbp
testw %r12w, %r12w
je 0x24812
xorl %r12d, %r12d
movq %rbp, %r14
movq %r13, %rdi
movq %rbp, %rsi
callq 0x4d48
movzwl %ax, %ebp
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x246d3
movl %ebp, 0xd0(%rax,%r12,4)
movl %r15d, %edi
callq 0x1707a
movl %eax, %r15d
testb %bpl, %bpl
leaq 0x235ee(%rip), %r13     # 0x47cd6
leaq 0x2467f(%rip), %rax     # 0x48d6e
cmovnsq %rax, %r13
movl $0x4003333, %edi        # imm = 0x4003333
movq %r14, %rsi
movl 0xc(%rsp), %edx
leaq 0x202bf(%rip), %rcx     # 0x449c5
callq 0x55eb
leaq 0x33a6e(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x3003, %eax           # imm = 0x3003
je 0x2474f
testb $0x40, %al
je 0x24731
leaq 0x248ee(%rip), %rdi     # 0x49015
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
leaq 0x2494a(%rip), %rdi     # 0x49082
movl %r12d, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
leaq 0x33a34(%rip), %rax     # 0x58180
movq (%rax), %rax
testb $0x30, %al
je 0x24770
movl %ebp, %edx
andl $0x7f, %edx
incl %edx
leaq 0x24936(%rip), %rdi     # 0x49097
movl %ebp, %esi
movq %r13, %rcx
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
leaq 0x1(%r14), %rbp
movq 0x10(%rsp), %r13
movq %r13, %rdi
movq %rbp, %rsi
callq 0x4d48
leaq 0x339f5(%rip), %rcx     # 0x58180
movq (%rcx), %rcx
testl $0x1040000, %ecx        # imm = 0x1040000
je 0x247b9
movl %ecx, %edx
andl $0x80000, %edx          # imm = 0x80000
je 0x247b9
andl $0x30, %ecx
je 0x247b9
movzwl %ax, %esi
leaq 0x24902(%rip), %rdi     # 0x490b1
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
incq %rbp
movq %r13, %rdi
movq %rbp, %rsi
callq 0x4d48
leaq 0x339b2(%rip), %rcx     # 0x58180
movq (%rcx), %rcx
testl $0x1040000, %ecx        # imm = 0x1040000
je 0x247fc
movl %ecx, %edx
andl $0x80000, %edx          # imm = 0x80000
je 0x247fc
andl $0x30, %ecx
je 0x247fc
movzwl %ax, %esi
leaq 0x248cb(%rip), %rdi     # 0x490bd
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
incq %r12
incq %rbp
cmpq %r12, %rbx
jne 0x246b0
addq $0x3, %r14
movq %r14, %rbp
movq 0x40(%rsp), %r14
addq 0x28(%rsp), %r14
leaq 0x3395d(%rip), %rax     # 0x58180
movzwl 0x2(%rax), %eax
testl $0x104, %eax            # imm = 0x104
movq 0x38(%rsp), %r12
je 0x24872
movl %r15d, %edi
callq 0x1707a
movl %eax, %ebx
leaq -0x1(%rbp), %rsi
leaq 0x1c894(%rip), %rcx     # 0x410dc
movl $0x4043333, %edi        # imm = 0x4043333
movl %r12d, %edx
callq 0x55eb
leaq 0x2486d(%rip), %rdi     # 0x490c9
movl 0x24(%rsp), %esi
movq 0x30(%rsp), %rdx
xorl %eax, %eax
callq 0x3120
movl %eax, %r15d
addl %ebx, %r15d
cmpq %r14, %rbp
jbe 0x24883
leaq 0x24856(%rip), %rdi     # 0x490d4
callq 0x5c26
movl %r15d, %edi
callq 0x1707a
movq %r14, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq