// File: /workspace/github_c_makefile_star2_O3/hfiguiere[P]exifprobe/jp2000.c
// Function: process_jpeg2000_codestream
unsigned long
process_jpeg2000_codestream(FILE *inptr,unsigned long marker_offset,
                                    unsigned long data_length,
                                    struct image_summary *summary_entry,
                                    int indent)
{
    unsigned long max_offset = 0L;
    unsigned long start_of_jp2c_data = marker_offset;
    unsigned long start_of_tile = 0;
    unsigned long tile_length = 0;
    unsigned short seg_length,tmp;
    unsigned short tilenum = 0;
    unsigned short part_index = 0;
    unsigned short nparts = 0;
    unsigned short regvalue = 0;
    unsigned short tag = 0;
    int chpr = 0;
    int tagindent,dataindent;
    char *name;

    if(inptr)
    {
        PUSHCOLOR(JPEG_COLOR);
        tag = read_ushort(inptr,TIFF_MOTOROLA,marker_offset);
        tagindent = indent;
        while(tag != 0)
        {
            switch(tag)
            {
                case JP2C_SOC:  /* Start of code stream               */
                    start_of_jp2c_data = marker_offset;
                    if((summary_entry == NULL) || summary_entry->entry_lock)
                        summary_entry = new_summary_entry(summary_entry,0,IMGFMT_JPEG2000);
                    if(summary_entry)
                    {
                        if(summary_entry->length <= 0)
                            summary_entry->length = data_length;
                        if(summary_entry->offset <= 0)
                            summary_entry->offset = start_of_jp2c_data;
                        summary_entry->imageformat = IMGFMT_JPEG2000;
                        summary_entry->entry_lock = lock_number(summary_entry);
                    }
                    name = jp2000tagname(tag);
                    print_tag_address(SECTION|ENTRY,marker_offset,tagindent,"@");
                    dataindent = charsprinted();
                    if((LIST_MODE))
                    {
                        if((PRINT_TAGINFO))
                        {
                            if((PRINT_LONGNAMES))
                                chpr += printf("JP2.jp2c.");
                            chpr += printf("%s",name);
                        }
                        if((PRINT_VALUE))
                            chpr += printf(" = @%lu",marker_offset);
                        chpr = newline(chpr);
                    }
                    else
                        chpr += printf("<%#x=%s> Start of codestream",tag,name);
                    chpr = newline(chpr);
                    marker_offset += 2;
                    break;
                case JP2C_SOT:  /* Start of tile-part                 */
                    name = jp2000tagname(tag);
                    start_of_tile = marker_offset;
                    seg_length = read_ushort(inptr,TIFF_MOTOROLA,marker_offset + 2);
                    print_tag_address(SEGMENT,marker_offset,tagindent,"@");
                    if((PRINT_SEGMENT) && (PRINT_SECTION))
                    {
                        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);
                            chpr = newline(chpr);
                        }
                        else
                            chpr += printf("<%#x=%s> length %u",tag,name,seg_length);
                    }

                    tilenum = read_ushort(inptr,TIFF_MOTOROLA,marker_offset + 4);
                    if((PRINT_SEGMENT) && (PRINT_ENTRY) && !(LIST_MODE))
                        chpr += printf(" tile number %u",tilenum);
                    tile_length = read_ulong(inptr,TIFF_MOTOROLA,marker_offset + 6);
                    if((PRINT_SEGMENT) && (PRINT_ENTRY) && !(LIST_MODE))
                        chpr += printf(" tile_length = %lu",tile_length);
                    part_index = read_ubyte(inptr,HERE);
                    if((PRINT_SEGMENT) && (PRINT_ENTRY) && !(LIST_MODE))
                        chpr += printf(" tile index = %u",part_index);
                    nparts = read_ubyte(inptr,HERE);
                    if((PRINT_SEGMENT) && (PRINT_ENTRY) && !(LIST_MODE))
                        chpr += printf(" [of %u tile parts]",nparts);
                    chpr = newline(chpr);

                    if(ferror(inptr))
                    {
                        tag = 0;
                        continue;
                    }
                    marker_offset += seg_length + 2;
                    break;
                case JP2C_EPH:  /* End of packet header               */
                case JP2C_SOD:  /* Start of data                      */
                    name = jp2000tagname(tag);
                    if((PRINT_SEGMENT) && (PRINT_SECTION))
                    {
                        print_tag_address(SEGMENT,marker_offset,tagindent,"@");
                        if((LIST_MODE))
                        {
                            if((PRINT_TAGINFO))
                            {
                                if((PRINT_LONGNAMES))
                                    chpr += printf("JP2.jp2c.");
                                chpr += printf("%s",name);
                            }
                            if((PRINT_VALUE))
                                chpr += printf(" = @%lu",marker_offset);
                            chpr = newline(chpr);
                        }
                        else
                            chpr += printf("<%#x=%s>",tag,name);
                        chpr = newline(chpr);
                    }
                    marker_offset = start_of_tile + tile_length;
                    break;
                case JP2C_COM:
                    name = jp2000tagname(tag);
                    print_tag_address(SECTION|ENTRY,marker_offset,tagindent,"@");
                    if((LIST_MODE))
                    {
                        if((PRINT_TAGINFO))
                        {
                            if((PRINT_LONGNAMES))
                                chpr += printf("JP2.jpc.");
                            chpr += printf("Comment");
                        }
                    }
                    else
                        chpr += printf("<%#x=%s>",tag,name);
                    seg_length = read_ushort(inptr,TIFF_MOTOROLA,marker_offset + 2);
                    tmp = read_ushort(inptr,TIFF_MOTOROLA,marker_offset + 4);

                    if(ferror(inptr) == 0)
                    {
                        if(!(LIST_MODE))
                            chpr += printf(" length %u, reg %u",seg_length,
                                                                    regvalue);
                        if((PRINT_VALUE))
                        {
                            chpr += printf(" = ");
                            setcharsprinted(chpr);
                            (void)print_ascii(inptr,seg_length - 6,marker_offset + 6);
                        }
                        chpr = newline(chpr);
                        marker_offset += seg_length + 2;
                    }
                    else
                    {
                        tag = 0;
                        clearerr(inptr);
                    }
                    break;
                case JP2C_SIZ:
                    marker_offset = process_jpc_siz(inptr,marker_offset,tag,
                                                    summary_entry,tagindent);
                    break;
                case JP2C_COD:
                    marker_offset = process_jpc_cod(inptr,marker_offset,tag,
                                                    summary_entry,tagindent);
                    break;
                case JP2C_QCD:
                    marker_offset = process_jpc_qcd(inptr,marker_offset,tag,
                                                    summary_entry,tagindent);
                    break;
                case JP2C_EOC:
                    name = jp2000tagname(tag);
                    print_tag_address(SECTION|ENTRY,marker_offset,tagindent,"@");
                    if((LIST_MODE))
                    {
                        if((PRINT_TAGINFO))
                        {
                            if((PRINT_LONGNAMES))
                                chpr += printf("JP2.jp2c.");
                            chpr += printf("%s",name);
                        }
                        if((PRINT_VALUE))
                            chpr += printf(" = @%lu",marker_offset);
                        chpr = newline(chpr);
                    }
                    else
                        chpr += printf("<%#x=%s> End of codestream",tag,name);
                    chpr = newline(chpr);
                    tag = 0;
                    continue;
                    break;
                /* All of these fall through to the default           */
                case JP2C_CRG:
                case JP2C_SOP:
                case JP2C_POC:
                case JP2C_QCC:
                case JP2C_TLM:  /* Tile-part lengths, main header     */
                case JP2C_PLM:  /* Packet length, main header         */
                case JP2C_PLT:  /* Packet length, tile-part header    */
                case JP2C_PPM:  /* Packed packet headers; main header */
                case JP2C_PPT:  /* Packed packet headers; part header */
                default:
                    name = jp2000tagname(tag);
                    print_tag_address(SEGMENT,marker_offset,tagindent,"@");
                    /* These are exclude from LIST mode unless        */
                    /* SEGMENTS are explicitly enabled                */
                    if((PRINT_SEGMENT))
                    {
                        if((LIST_MODE))
                        {
                            if((PRINT_TAGINFO))
                            {
                                if((PRINT_LONGNAMES))
                                    chpr += printf("JP2.jp2c.");
                                chpr += printf("%s",name);
                            }
                            if((PRINT_VALUE))
                                chpr += printf(" = @%lu",marker_offset);
                        }
                        else
                            chpr += printf("<%#x=%s>",tag,name);
                    }
                    if((tag & 0xff00) != 0xff00)
                    {
                        tag = 0;
                        continue;
                    }
                    seg_length = read_ushort(inptr,TIFF_MOTOROLA,marker_offset + 2);
                    if(ferror(inptr) == 0)
                    {
                        if((PRINT_SEGMENT))
                        {
                            if((LIST_MODE))
                                chpr += printf(":%u",seg_length);
                            else
                                chpr += printf(" length %u",seg_length);
                            chpr = newline(chpr);
                        }
                        marker_offset += seg_length + 2;
                    }
                    else
                    {
                        tag = 0;
                        clearerr(inptr);
                    }
                    break;
            }
            tag = read_ushort(inptr,TIFF_MOTOROLA,marker_offset);
            if(ferror(inptr) == 0)
            {
                max_offset = ftell(inptr);
            }
            else
            {
                tag = 0;
                clearerr(inptr);
            }
        }
        POPCOLOR();
        if((summary_entry) && (summary_entry->length <= 0))
                summary_entry->length = max_offset - start_of_jp2c_data;
    }
    setcharsprinted(chpr);
    return(max_offset);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
testq %rdi, %rdi
je 0x23f5e
movl %r8d, %ebp
movq %rsi, %rbx
movq %rdi, %r12
movq %rdx, 0x50(%rsp)
movq %rcx, 0x10(%rsp)
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %rbx, %rdx
callq 0x45af
movl %eax, %r15d
movq $0x0, 0x30(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x28(%rsp)
xorl %r14d, %r14d
movq %rbx, 0x38(%rsp)
movq %r12, 0x8(%rsp)
movq %rbx, %r13
addq $0x2, %rbx
leaq 0x4(%r13), %rax
movq %rax, 0x48(%rsp)
leaq 0x6(%r13), %rax
movq %rax, 0x40(%rsp)
movzwl %r15w, %r12d
cmpl $0xffd8, %r12d          # imm = 0xFFD8
jle 0x2373b
cmpl $0xffd9, %r12d          # imm = 0xFFD9
jne 0x239e9
movl $0xffd9, %edi           # imm = 0xFFD9
callq 0xc94f
movq %rax, %r15
movl $0x4043333, %edi        # imm = 0x4043333
movq %r13, %rsi
movl %ebp, %edx
leaq 0x1d9d7(%rip), %rcx     # 0x410dc
callq 0x55eb
leaq 0x34a6f(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x1040000, %eax        # imm = 0x1040000
je 0x23967
leaq 0x258d4(%rip), %rdi     # 0x48ffa
movl %r12d, %esi
movq %r15, %rdx
xorl %eax, %eax
callq 0x3120
addl %r14d, %eax
jmp 0x239c1
cmpl $0xff63, %r12d          # imm = 0xFF63
jg 0x2377d
cmpl $0xff50, %r12d          # imm = 0xFF50
jle 0x239d3
cmpl $0xff51, %r12d          # imm = 0xFF51
je 0x23be0
cmpl $0xff52, %r12d          # imm = 0xFF52
je 0x23c57
cmpl $0xff5c, %r12d          # imm = 0xFF5C
jne 0x239e9
jmp 0x23c76
leal -0xff92(%r12), %eax
cmpl $0x2, %eax
jb 0x23b05
cmpl $0xff64, %r12d          # imm = 0xFF64
je 0x23c02
cmpl $0xff90, %r12d          # imm = 0xFF90
jne 0x239e9
movl $0xff90, %edi           # imm = 0xFF90
callq 0xc94f
movq %rax, 0x20(%rsp)
movq 0x8(%rsp), %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %rbx, %rdx
callq 0x45af
movl %eax, %r15d
movl $0x80000, %edi          # imm = 0x80000
movq %r13, %rsi
movl %ebp, %edx
leaq 0x1d8ff(%rip), %rcx     # 0x410dc
callq 0x55eb
leaq 0x34997(%rip), %rax     # 0x58180
movl (%rax), %eax
notl %eax
testl $0xc0000, %eax          # imm = 0xC0000
movw %r15w, 0x1e(%rsp)
jne 0x23817
movzwl %r15w, %ecx
leaq 0x25775(%rip), %rdi     # 0x48f7a
movl %r12d, %esi
movq 0x20(%rsp), %rdx
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movq 0x8(%rsp), %r12
movq %r12, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq 0x48(%rsp), %rdx
callq 0x45af
leaq 0x3494b(%rip), %rcx     # 0x58180
movq (%rcx), %rcx
testl $0x1040000, %ecx        # imm = 0x1040000
je 0x23866
movl %ecx, %edx
andl $0x80000, %edx          # imm = 0x80000
je 0x23866
andl $0x4003333, %ecx        # imm = 0x4003333
je 0x23866
movzwl %ax, %esi
leaq 0x25731(%rip), %rdi     # 0x48f8d
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movq %r12, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq 0x40(%rsp), %rdx
callq 0x4707
movq %rax, 0x20(%rsp)
leaq 0x348fc(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x1040000, %eax        # imm = 0x1040000
je 0x238b5
movl %eax, %ecx
andl $0x80000, %ecx          # imm = 0x80000
je 0x238b5
andl $0x4003333, %eax        # imm = 0x4003333
je 0x238b5
leaq 0x256f7(%rip), %rdi     # 0x48f9d
movq 0x20(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq %r12, %rdi
callq 0x4d48
leaq 0x348b7(%rip), %rcx     # 0x58180
movq (%rcx), %rcx
testl $0x1040000, %ecx        # imm = 0x1040000
je 0x238fa
movl %ecx, %edx
andl $0x80000, %edx          # imm = 0x80000
je 0x238fa
andl $0x4003333, %ecx        # imm = 0x4003333
je 0x238fa
movzwl %ax, %esi
leaq 0x256c0(%rip), %rdi     # 0x48fb0
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq %r12, %rdi
callq 0x4d48
leaq 0x34872(%rip), %rcx     # 0x58180
movq (%rcx), %rcx
testl $0x1040000, %ecx        # imm = 0x1040000
je 0x2393f
movl %ecx, %edx
andl $0x80000, %edx          # imm = 0x80000
je 0x2393f
andl $0x4003333, %ecx        # imm = 0x4003333
je 0x2393f
movzwl %ax, %esi
leaq 0x2568c(%rip), %rdi     # 0x48fc1
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movl %r14d, %edi
callq 0x1707a
movl %eax, %r14d
movq %r12, %rdi
callq 0x30b0
xorl %r15d, %r15d
movq %r13, 0x30(%rsp)
testl %eax, %eax
jne 0x236cd
jmp 0x23f25
testl $0x3003, %eax           # imm = 0x3003
je 0x239a1
testb $0x40, %al
je 0x23983
leaq 0x255cf(%rip), %rdi     # 0x48f48
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x1d70d(%rip), %rdi     # 0x41097
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x347e2(%rip), %rax     # 0x58180
movq (%rax), %rax
testb $0x30, %al
je 0x239b9
leaq 0x24e7d(%rip), %rdi     # 0x48829
movq %r13, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movl %r14d, %edi
callq 0x1707a
movl %eax, %edi
callq 0x1707a
movl %eax, %r14d
xorl %r15d, %r15d
jmp 0x236cd
testl %r12d, %r12d
je 0x23f34
cmpl $0xff4f, %r12d          # imm = 0xFF4F
je 0x23b6c
movl %r12d, %edi
callq 0xc94f
movq %rax, %r15
movl $0x80000, %edi          # imm = 0x80000
movq %r13, %rsi
movl %ebp, %edx
leaq 0x1d6d7(%rip), %rcx     # 0x410dc
callq 0x55eb
leaq 0x3476f(%rip), %rax     # 0x58180
movq (%rax), %rax
btl $0x13, %eax
jae 0x23a89
testl $0x1040000, %eax        # imm = 0x1040000
je 0x23a37
leaq 0x255ad(%rip), %rdi     # 0x48fd5
movl %r12d, %esi
movq %r15, %rdx
xorl %eax, %eax
callq 0x3120
jmp 0x23a86
testl $0x3003, %eax           # imm = 0x3003
je 0x23a71
testb $0x40, %al
je 0x23a53
leaq 0x254ff(%rip), %rdi     # 0x48f48
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x1d63d(%rip), %rdi     # 0x41097
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x34712(%rip), %rax     # 0x58180
movq (%rax), %rax
testb $0x30, %al
je 0x23a89
leaq 0x24dad(%rip), %rdi     # 0x48829
movq %r13, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
notl %r12d
xorl %r15d, %r15d
testl $0xff00, %r12d          # imm = 0xFF00
jne 0x236cd
movq 0x8(%rsp), %r12
movq %r12, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %rbx, %rdx
callq 0x45af
movl %eax, %r15d
movq %r12, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x23d08
leaq 0x346b5(%rip), %rax     # 0x58180
movq (%rax), %rax
btl $0x13, %eax
movzwl %r15w, %r15d
jae 0x23d81
testl $0x1040000, %eax        # imm = 0x1040000
leaq 0x2549a(%rip), %rdi     # 0x48f82
leaq 0x25487(%rip), %rax     # 0x48f76
cmoveq %rax, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
jmp 0x23d76
movl %r12d, %edi
callq 0xc94f
movq %rax, %rbx
leaq 0x34669(%rip), %r15     # 0x58180
movl (%r15), %eax
notl %eax
testl $0xc0000, %eax          # imm = 0xC0000
jne 0x23c9b
movl $0x80000, %edi          # imm = 0x80000
movq %r13, %rsi
movl %ebp, %edx
leaq 0x1d5a4(%rip), %rcx     # 0x410dc
callq 0x55eb
movq (%r15), %rax
testl $0x1040000, %eax        # imm = 0x1040000
je 0x23d89
leaq 0x25483(%rip), %rdi     # 0x48fd5
movl %r12d, %esi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x3120
addl %r14d, %eax
movq 0x8(%rsp), %r12
jmp 0x23ecf
movq 0x10(%rsp), %r15
testq %r15, %r15
je 0x23b7d
cmpl $0x0, 0x10(%r15)
je 0x23b98
movq %r15, %rdi
xorl %esi, %esi
movl $0xd0a870a, %edx        # imm = 0xD0A870A
callq 0xfc85
movq %rax, %r15
testq %rax, %rax
je 0x23dd1
cmpq $0x0, 0x98(%r15)
jne 0x23bae
movq 0x50(%rsp), %rax
movq %rax, 0x98(%r15)
cmpq $0x0, 0x90(%r15)
jne 0x23bbf
movq %r13, 0x90(%r15)
movq $0xd0a870a, 0x80(%r15) # imm = 0xD0A870A
movq %r15, %rdi
callq 0xfee6
movq %r15, 0x10(%rsp)
movl %eax, 0x10(%r15)
jmp 0x23dda
movq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r13, %rsi
movl $0xff51, %edx           # imm = 0xFF51
movq 0x10(%rsp), %rcx
movl %ebp, %r8d
callq 0x23f84
jmp 0x23c93
movl $0xff64, %edi           # imm = 0xFF64
callq 0xc94f
movq %rax, %r15
movl $0x4043333, %edi        # imm = 0x4043333
movq %r13, %rsi
movl %ebp, %edx
leaq 0x1d4bc(%rip), %rcx     # 0x410dc
callq 0x55eb
leaq 0x34554(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x1040000, %eax        # imm = 0x1040000
je 0x23ca5
leaq 0x25398(%rip), %rdi     # 0x48fd5
movl %r12d, %esi
movq %r15, %rdx
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movq 0x8(%rsp), %r12
jmp 0x23cd7
movq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r13, %rsi
movl $0xff52, %edx           # imm = 0xFF52
movq 0x10(%rsp), %rcx
movl %ebp, %r8d
callq 0x2489d
jmp 0x23c93
movq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r13, %rsi
movl $0xff5c, %edx           # imm = 0xFF5C
movq 0x10(%rsp), %rcx
movl %ebp, %r8d
callq 0x252fa
movq %rax, %rbx
jmp 0x23ee7
movq 0x8(%rsp), %r12
jmp 0x23ed9
testl $0x3003, %eax           # imm = 0x3003
je 0x23c4d
testb $0x40, %al
movq 0x8(%rsp), %r12
je 0x23cc6
leaq 0x25322(%rip), %rdi     # 0x48fde
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x26999(%rip), %rdi     # 0x4a666
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movq %r12, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %rbx, %rdx
callq 0x45af
movl %eax, %r15d
movq %r12, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq 0x48(%rsp), %rdx
callq 0x45af
movq %r12, %rdi
callq 0x30b0
testl %eax, %eax
je 0x23d18
movq %r12, %rdi
callq 0x31b0
movq %r13, %rbx
jmp 0x23ee7
leaq 0x34461(%rip), %r13     # 0x58180
movq (%r13), %rax
movzwl %r15w, %r15d
testl $0x1040000, %eax        # imm = 0x1040000
je 0x23d48
leaq 0x252b2(%rip), %rdi     # 0x48fe7
movl %r15d, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movq (%r13), %rax
testb $0x30, %al
je 0x23d76
leaq 0x26855(%rip), %rdi     # 0x4a5a8
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movl %r14d, %edi
callq 0x17a82
leaq -0x6(%r15), %rsi
movq %r12, %rdi
movq 0x40(%rsp), %rdx
callq 0x77d6
movl %r14d, %edi
callq 0x1707a
movl %eax, %r14d
addq %r15, %rbx
jmp 0x23ee7
testl $0x3003, %eax           # imm = 0x3003
je 0x23eaa
testb $0x40, %al
movq 0x8(%rsp), %r12
je 0x23dae
leaq 0x251a4(%rip), %rdi     # 0x48f48
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x1d2e2(%rip), %rdi     # 0x41097
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x343b7(%rip), %rax     # 0x58180
movq (%rax), %rax
jmp 0x23eaf
movq $0x0, 0x10(%rsp)
movl $0xff4f, %edi           # imm = 0xFF4F
callq 0xc94f
movq %rax, %r15
movl $0x4043333, %edi        # imm = 0x4043333
movq %r13, %rsi
movl %ebp, %edx
leaq 0x1d2e4(%rip), %rcx     # 0x410dc
callq 0x55eb
xorl %eax, %eax
callq 0x17fea
leaq 0x34375(%rip), %rax     # 0x58180
movq (%rax), %rax
testl $0x1040000, %eax        # imm = 0x1040000
je 0x23e33
leaq 0x25136(%rip), %rdi     # 0x48f52
movl %r12d, %esi
movq %r15, %rdx
xorl %eax, %eax
callq 0x3120
addl %r14d, %eax
movq 0x8(%rsp), %r12
jmp 0x23e99
testl $0x3003, %eax           # imm = 0x3003
je 0x23e74
testb $0x40, %al
movq 0x8(%rsp), %r12
je 0x23e54
leaq 0x250fe(%rip), %rdi     # 0x48f48
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x1d23c(%rip), %rdi     # 0x41097
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x34311(%rip), %rax     # 0x58180
movq (%rax), %rax
jmp 0x23e79
movq 0x8(%rsp), %r12
testb $0x30, %al
je 0x23e91
leaq 0x249a5(%rip), %rdi     # 0x48829
movq %r13, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movl %r14d, %edi
callq 0x1707a
movl %eax, %edi
callq 0x1707a
movl %eax, %r14d
movq %r13, 0x38(%rsp)
jmp 0x23ee7
movq 0x8(%rsp), %r12
testb $0x30, %al
je 0x23ec7
leaq 0x2496f(%rip), %rdi     # 0x48829
movq %r13, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movl %r14d, %edi
callq 0x1707a
movl %eax, %edi
callq 0x1707a
movl %eax, %r14d
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
leaq (%rax,%rcx), %rbx
movq %r12, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %rbx, %rdx
callq 0x45af
movl %eax, %r15d
movq %r12, %rdi
callq 0x30b0
movq %r12, %rdi
testl %eax, %eax
je 0x23f16
callq 0x31b0
xorl %r15d, %r15d
jmp 0x236b4
callq 0x3190
movq %rax, 0x28(%rsp)
jmp 0x236b4
movzwl 0x1e(%rsp), %eax
addq %rax, %rbx
movq %r13, 0x30(%rsp)
jmp 0x23ee7
movq 0x10(%rsp), %rcx
testq %rcx, %rcx
je 0x23f65
cmpq $0x0, 0x98(%rcx)
movq 0x28(%rsp), %rbx
jne 0x23f6a
movq %rbx, %rax
subq 0x38(%rsp), %rax
movq %rax, 0x98(%rcx)
jmp 0x23f6a
xorl %ebx, %ebx
xorl %r14d, %r14d
jmp 0x23f6a
movq 0x28(%rsp), %rbx
movl %r14d, %edi
callq 0x17a82
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq