// File: /workspace/github_c_makefile_star2_O2/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 0x22b1c
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 0x416a
movl %eax, %r15d
movq $0x0, 0x28(%rsp)
movq $0x0, 0x18(%rsp)
movq $0x0, 0x20(%rsp)
xorl %r14d, %r14d
movq %rbx, 0x30(%rsp)
movq %r12, 0x8(%rsp)
movq %rbx, %r13
addq $0x2, %rbx
leaq 0x4(%r13), %rax
movq %rax, 0x40(%rsp)
leaq 0x6(%r13), %rax
movq %rax, 0x38(%rsp)
movzwl %r15w, %r12d
cmpw $-0x27, %r12w
je 0x22373
leal -0xff92(%r12), %eax
cmpl $0x2, %eax
jb 0x2265e
testl %r12d, %r12d
je 0x22af2
cmpl $0xff90, %r12d          # imm = 0xFF90
je 0x22493
cmpl $0xff51, %r12d          # imm = 0xFF51
je 0x227e0
cmpl $0xff52, %r12d          # imm = 0xFF52
je 0x226c5
cmpl $0xff5c, %r12d          # imm = 0xFF5C
je 0x226e7
cmpl $0xff64, %r12d          # imm = 0xFF64
je 0x22709
cmpl $0xff4f, %r12d          # imm = 0xFF4F
je 0x2276c
movl %r12d, %edi
callq 0xbe97
movq %rax, %r15
movl $0x80000, %edi          # imm = 0x80000
movq %r13, %rsi
movl %ebp, %edx
leaq 0x1cda6(%rip), %rcx     # 0x3f0dc
callq 0x5100
leaq 0x34e3e(%rip), %rax     # 0x57180
movq (%rax), %rax
btl $0x13, %eax
jae 0x2247c
testl $0x1040000, %eax        # imm = 0x1040000
je 0x2242b
leaq 0x24c24(%rip), %rdi     # 0x46f85
movl %r12d, %esi
movq %r15, %rdx
xorl %eax, %eax
callq 0x3120
jmp 0x22479
movl $0xffd9, %edi           # imm = 0xFFD9
callq 0xbe97
movq %rax, %r15
movl $0x4043333, %edi        # imm = 0x4043333
movq %r13, %rsi
movl %ebp, %edx
leaq 0x1cd4b(%rip), %rcx     # 0x3f0dc
callq 0x5100
leaq 0x34de3(%rip), %rax     # 0x57180
movq (%rax), %rax
testl $0x1040000, %eax        # imm = 0x1040000
je 0x223c0
leaq 0x24bfc(%rip), %rdi     # 0x46faa
movl %r12d, %esi
movq %r15, %rdx
xorl %eax, %eax
callq 0x3120
addl %r14d, %eax
jmp 0x22419
testw $0x3003, %ax            # imm = 0x3003
je 0x223f9
testb $0x40, %al
je 0x223db
leaq 0x24b27(%rip), %rdi     # 0x46ef8
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x1ccb5(%rip), %rdi     # 0x3f097
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x34d8a(%rip), %rax     # 0x57180
movq (%rax), %rax
testb $0x30, %al
je 0x22411
leaq 0x243d5(%rip), %rdi     # 0x467d9
movq %r13, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movl %r14d, %edi
callq 0x160f7
movl %eax, %edi
callq 0x160f7
movl %eax, %r14d
xorl %r15d, %r15d
jmp 0x222a3
testw $0x3003, %ax            # imm = 0x3003
je 0x22464
testb $0x40, %al
je 0x22446
leaq 0x24abc(%rip), %rdi     # 0x46ef8
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x1cc4a(%rip), %rdi     # 0x3f097
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x34d1f(%rip), %rax     # 0x57180
movq (%rax), %rax
testb $0x30, %al
je 0x2247c
leaq 0x2436a(%rip), %rdi     # 0x467d9
movq %r13, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
notl %r12d
xorl %r15d, %r15d
testw $0xff00, %r12w          # imm = 0xFF00
jne 0x222a3
jmp 0x22805
movl $0xff90, %edi           # imm = 0xFF90
callq 0xbe97
movq %rax, 0x18(%rsp)
movq 0x8(%rsp), %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %rbx, %rdx
callq 0x416a
movl %eax, %r15d
movl $0x80000, %edi          # imm = 0x80000
movq %r13, %rsi
movl %ebp, %edx
leaq 0x1cc14(%rip), %rcx     # 0x3f0dc
callq 0x5100
leaq 0x34cac(%rip), %rax     # 0x57180
movl (%rax), %eax
notl %eax
movzwl %r15w, %r15d
testl $0xc0000, %eax          # imm = 0xC0000
jne 0x224ff
leaq 0x24a40(%rip), %rdi     # 0x46f2a
movl %r12d, %esi
movq 0x18(%rsp), %rdx
movl %r15d, %ecx
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movq 0x8(%rsp), %r12
movq %r12, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq 0x40(%rsp), %rdx
callq 0x416a
leaq 0x34c63(%rip), %rcx     # 0x57180
movq (%rcx), %rcx
testl $0x1040000, %ecx        # imm = 0x1040000
je 0x2254e
movl %ecx, %edx
andl $0x80000, %edx          # imm = 0x80000
je 0x2254e
andl $0x4003333, %ecx        # imm = 0x4003333
je 0x2254e
movzwl %ax, %esi
leaq 0x249f9(%rip), %rdi     # 0x46f3d
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movq %r12, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq 0x38(%rsp), %rdx
callq 0x42ba
movq %rax, 0x18(%rsp)
leaq 0x34c14(%rip), %rax     # 0x57180
movq (%rax), %rax
testl $0x1040000, %eax        # imm = 0x1040000
je 0x2259d
movl %eax, %ecx
andl $0x80000, %ecx          # imm = 0x80000
je 0x2259d
andl $0x4003333, %eax        # imm = 0x4003333
je 0x2259d
leaq 0x249bf(%rip), %rdi     # 0x46f4d
movq 0x18(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq %r12, %rdi
callq 0x48de
leaq 0x34bcf(%rip), %rcx     # 0x57180
movq (%rcx), %rcx
testl $0x1040000, %ecx        # imm = 0x1040000
je 0x225e2
movl %ecx, %edx
andl $0x80000, %edx          # imm = 0x80000
je 0x225e2
andl $0x4003333, %ecx        # imm = 0x4003333
je 0x225e2
movzwl %ax, %esi
leaq 0x24988(%rip), %rdi     # 0x46f60
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq %r12, %rdi
callq 0x48de
leaq 0x34b8a(%rip), %rcx     # 0x57180
movq (%rcx), %rcx
testl $0x1040000, %ecx        # imm = 0x1040000
movq %r15, 0x48(%rsp)
je 0x2262c
movl %ecx, %edx
andl $0x80000, %edx          # imm = 0x80000
je 0x2262c
andl $0x4003333, %ecx        # imm = 0x4003333
je 0x2262c
movzwl %ax, %esi
leaq 0x2494f(%rip), %rdi     # 0x46f71
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movl %r14d, %edi
callq 0x160f7
movl %eax, %r14d
movq %r12, %rdi
callq 0x30b0
xorl %r15d, %r15d
movq %r13, 0x28(%rsp)
testl %eax, %eax
jne 0x222a3
addq 0x48(%rsp), %rbx
movq %r13, 0x28(%rsp)
jmp 0x22ab4
movl %r12d, %edi
callq 0xbe97
movq %rax, %rbx
leaq 0x34b10(%rip), %r15     # 0x57180
movl (%r15), %eax
notl %eax
testl $0xc0000, %eax          # imm = 0xC0000
jne 0x22762
movl $0x80000, %edi          # imm = 0x80000
movq %r13, %rsi
movl %ebp, %edx
leaq 0x1ca4b(%rip), %rcx     # 0x3f0dc
callq 0x5100
movq (%r15), %rax
testl $0x1040000, %eax        # imm = 0x1040000
je 0x22955
leaq 0x248da(%rip), %rdi     # 0x46f85
movl %r12d, %esi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x3120
addl %r14d, %eax
movq 0x8(%rsp), %r12
jmp 0x22a66
movq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r13, %rsi
movl $0xff52, %edx           # imm = 0xFF52
movq 0x10(%rsp), %rcx
movl %ebp, %r8d
callq 0x2345e
jmp 0x227fd
movq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r13, %rsi
movl $0xff5c, %edx           # imm = 0xFF5C
movq 0x10(%rsp), %rcx
movl %ebp, %r8d
callq 0x23ecb
jmp 0x227fd
movl $0xff64, %edi           # imm = 0xFF64
callq 0xbe97
movq %rax, %r15
movl $0x4043333, %edi        # imm = 0x4043333
movq %r13, %rsi
movl %ebp, %edx
leaq 0x1c9b5(%rip), %rcx     # 0x3f0dc
callq 0x5100
leaq 0x34a4d(%rip), %rax     # 0x57180
movq (%rax), %rax
testl $0x1040000, %eax        # imm = 0x1040000
je 0x2286e
leaq 0x2483d(%rip), %rdi     # 0x46f85
movl %r12d, %esi
movq %r15, %rdx
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movq 0x8(%rsp), %r12
jmp 0x228a3
movq 0x8(%rsp), %r12
jmp 0x22a70
movq 0x10(%rsp), %r15
testq %r15, %r15
je 0x2277d
cmpl $0x0, 0x10(%r15)
je 0x22798
movq %r15, %rdi
xorl %esi, %esi
movl $0xd0a870a, %edx        # imm = 0xD0A870A
callq 0xef13
movq %rax, %r15
testq %rax, %rax
je 0x2299c
cmpq $0x0, 0x98(%r15)
jne 0x227ae
movq 0x50(%rsp), %rax
movq %rax, 0x98(%r15)
cmpq $0x0, 0x90(%r15)
jne 0x227bf
movq %r13, 0x90(%r15)
movq $0xd0a870a, 0x80(%r15) # imm = 0xD0A870A
movq %r15, %rdi
callq 0xf126
movq %r15, 0x10(%rsp)
movl %eax, 0x10(%r15)
jmp 0x229a5
movq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r13, %rsi
movl $0xff51, %edx           # imm = 0xFF51
movq 0x10(%rsp), %rcx
movl %ebp, %r8d
callq 0x22b42
movq %rax, %rbx
jmp 0x22ab4
movq 0x8(%rsp), %r12
movq %r12, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %rbx, %rdx
callq 0x416a
movl %eax, %r15d
movq %r12, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x228d4
leaq 0x3494c(%rip), %rax     # 0x57180
movq (%rax), %rax
btl $0x13, %eax
movzwl %r15w, %r15d
jae 0x2294d
testl $0x1040000, %eax        # imm = 0x1040000
leaq 0x246e1(%rip), %rdi     # 0x46f32
leaq 0x246ce(%rip), %rax     # 0x46f26
cmoveq %rax, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
jmp 0x22942
testw $0x3003, %ax            # imm = 0x3003
je 0x22758
testb $0x40, %al
movq 0x8(%rsp), %r12
je 0x22892
leaq 0x24706(%rip), %rdi     # 0x46f8e
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x25d7d(%rip), %rdi     # 0x48616
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movq %r12, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %rbx, %rdx
callq 0x416a
movl %eax, %r15d
movq %r12, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq 0x40(%rsp), %rdx
callq 0x416a
movq %r12, %rdi
callq 0x30b0
testl %eax, %eax
je 0x228e4
movq %r12, %rdi
callq 0x31b0
movq %r13, %rbx
jmp 0x22ab4
leaq 0x34895(%rip), %r13     # 0x57180
movq (%r13), %rax
movzwl %r15w, %r15d
testl $0x1040000, %eax        # imm = 0x1040000
je 0x22914
leaq 0x24696(%rip), %rdi     # 0x46f97
movl %r15d, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movq (%r13), %rax
testb $0x30, %al
je 0x22942
leaq 0x25c39(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movl %r14d, %edi
callq 0x16a4f
leaq -0x6(%r15), %rsi
movq %r12, %rdi
movq 0x38(%rsp), %rdx
callq 0x71a9
movl %r14d, %edi
callq 0x160f7
movl %eax, %r14d
addq %r15, %rbx
jmp 0x22ab4
testw $0x3003, %ax            # imm = 0x3003
je 0x22a41
testb $0x40, %al
movq 0x8(%rsp), %r12
je 0x22979
leaq 0x24589(%rip), %rdi     # 0x46ef8
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x1c717(%rip), %rdi     # 0x3f097
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x347ec(%rip), %rax     # 0x57180
movq (%rax), %rax
jmp 0x22a46
movq $0x0, 0x10(%rsp)
movl $0xff4f, %edi           # imm = 0xFF4F
callq 0xbe97
movq %rax, %r15
movl $0x4043333, %edi        # imm = 0x4043333
movq %r13, %rsi
movl %ebp, %edx
leaq 0x1c719(%rip), %rcx     # 0x3f0dc
callq 0x5100
xorl %eax, %eax
callq 0x16f6e
leaq 0x347aa(%rip), %rax     # 0x57180
movq (%rax), %rax
testl $0x1040000, %eax        # imm = 0x1040000
je 0x22a01
leaq 0x2451b(%rip), %rdi     # 0x46f02
movl %r12d, %esi
movq %r15, %rdx
xorl %eax, %eax
callq 0x3120
addl %r14d, %eax
movq 0x8(%rsp), %r12
jmp 0x22aa5
testw $0x3003, %ax            # imm = 0x3003
je 0x22a80
testb $0x40, %al
movq 0x8(%rsp), %r12
je 0x22a21
leaq 0x244e1(%rip), %rdi     # 0x46ef8
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x1c66f(%rip), %rdi     # 0x3f097
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
leaq 0x34744(%rip), %rax     # 0x57180
movq (%rax), %rax
jmp 0x22a85
movq 0x8(%rsp), %r12
testb $0x30, %al
je 0x22a5e
leaq 0x23d88(%rip), %rdi     # 0x467d9
movq %r13, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movl %r14d, %edi
callq 0x160f7
movl %eax, %edi
callq 0x160f7
movl %eax, %r14d
movq 0x18(%rsp), %rax
movq 0x28(%rsp), %rcx
leaq (%rax,%rcx), %rbx
jmp 0x22ab4
movq 0x8(%rsp), %r12
testb $0x30, %al
je 0x22a9d
leaq 0x23d49(%rip), %rdi     # 0x467d9
movq %r13, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r14d
movl %r14d, %edi
callq 0x160f7
movl %eax, %edi
callq 0x160f7
movl %eax, %r14d
movq %r13, 0x30(%rsp)
movq %r12, %rdi
movl $0x4d4d, %esi           # imm = 0x4D4D
movq %rbx, %rdx
callq 0x416a
movl %eax, %r15d
movq %r12, %rdi
callq 0x30b0
movq %r12, %rdi
testl %eax, %eax
je 0x22ae3
callq 0x31b0
xorl %r15d, %r15d
jmp 0x2228a
callq 0x3190
movq %rax, 0x20(%rsp)
jmp 0x2228a
movq 0x10(%rsp), %rcx
testq %rcx, %rcx
je 0x22b23
cmpq $0x0, 0x98(%rcx)
movq 0x20(%rsp), %rbx
jne 0x22b28
movq %rbx, %rax
subq 0x30(%rsp), %rax
movq %rax, 0x98(%rcx)
jmp 0x22b28
xorl %ebx, %ebx
xorl %r14d, %r14d
jmp 0x22b28
movq 0x20(%rsp), %rbx
movl %r14d, %edi
callq 0x16a4f
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq