// File: /workspace/github_c_makefile_star2_O2/lecram[P]congif/term.c
// Function: parse
void
parse(Term *term, uint8_t byte)
{
    int es;

    /* Bad suffix for a unicode sequence, dump it and interpret this byte normally. */
    if (term->state == S_UNI && (byte < 0x80 || byte >= 0xC0)) {
        addchar(term, 0xFFFD);
        RESET_STATE(term);
    }
    if (byte != 0x1B && byte < 0x20 && !(term->mode & M_DISPCTRL)) {
        ctrlchar(term, byte);
    } else {
        switch (term->state) {
        case S_ANY:
            switch (byte) {
            case 0x1B:
                term->state = S_ESC;
                break;
            case 0x9B:
                term->state = S_CSI;
                break;
            default:
                switch (CHARSET(term)) {
                case CS_BMP:
                    if (byte < 0x80) {
                        /* single-byte UTF-8, i.e. ASCII */
                        addchar(term, byte);
                    } else if (byte >= 0xC0) {
                        term->unilen = CHARLEN(byte);
                        PARCAT(term, byte);
                        term->state = S_UNI;
                    } else
                        addchar(term, 0xFFFD);
                    break;
                case CS_ISO:
                    addchar(term, byte);
                    break;
                case CS_VTG:
                    addchar(term, cs_vtg[byte]);
                    break;
                case CS_437:
                    addchar(term, cs_437[byte]);
                    break;
                }
            }
            break;
        case S_OSCESC: case S_STRESC:
            if (byte == '\\') {
                /* do_osc_etc() */
                if (term->state == S_OSCESC)
                    logfmt("NYI: Operating System Sequence\n");
            }
            RESET_STATE(term);
            term->state = S_ESC;
            /*FALLTHROUGH*/
        case S_ESC:
            es = 1;
            if (!term->parlen) {
                if (byte == 0x5B) {
                    term->state = S_CSI;
                    es = 0;
                } else if (byte == 0x5D) {
                    term->state = S_OSC;
                    es = 0;
                } else if (byte == 'P' || /* DCS */
                           byte == '_' || /* APC */
                           byte == '^' || /* PM */
                           byte == 'X'    /* SOS */
                        ) {
                    term->state = S_STR; /* A string to eat */
                    es = 0;
                }
            }
            if (es) {
                if (byte >= 0x20 && byte < 0x30) {
                    PARCAT(term, byte);
                } else {
                    escseq(term, byte);
                    RESET_STATE(term);
                }
            }
            break;
        case S_CSI:
            if (byte < 0x40 || byte >= 0x7F) {
                PARCAT(term, byte);
            } else {
                ctrlseq(term, byte);
                RESET_STATE(term);
            }
            break;
        case S_OSC: case S_STR:
            /* TODO: set/reset palette entries */
            /* Currently this just eats the string */
            if (byte == 0x1B) {
                if (term->state == S_OSC)
                    term->state = S_OSCESC;
                else
                    term->state = S_STRESC;
            } else if (byte == 13 || byte == 10)
                RESET_STATE(term);   /* CR or LF assume something broke */
            else if (byte == 7) {
                /* do_osc_etc() */
                if (term->state == S_OSC)
                    logfmt("NYI: Operating System Sequence\n");
                RESET_STATE(term);
            } else {
                if (term->parlen < MAX_PARTIAL-3)
                    PARCAT(term, byte);
                else
                    term->state = S_STR;

                if (term->partial[0] == 'P' && term->parlen == 8) {
                    if (do_linux_osc(term))
                        RESET_STATE(term);
                } else if (term->partial[0] == 'R' && term->parlen == 1) {
                    if (do_linux_osc(term))
                        RESET_STATE(term);
                }
            }
            break;
        case S_UNI:
            PARCAT(term, byte);
            if (term->parlen == term->unilen) {
                addchar(term, char_code(term));
                RESET_STATE(term);
            }
            break;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %esi, %r15d
movq %rdi, %rbx
movl 0x60(%rdi), %eax
cmpl $0x7, %eax
setne %cl
cmpb $-0x40, %r15b
setl %dl
orb %cl, %dl
jne 0x16f6
movq %rbx, %rdi
movl $0xfffd, %esi           # imm = 0xFFFD
callq 0x258f
andq $0x0, 0x60(%rbx)
xorl %eax, %eax
cmpb $0x1b, %r15b
sete %cl
cmpb $0x20, %r15b
setae %dl
orb %cl, %dl
jne 0x175b
movzwl 0x18(%rbx), %ecx
testb $0x1, %cl
jne 0x175b
movzbl %r15b, %eax
addl $-0x8, %eax
cmpl $0x7, %eax
ja 0x19ae
leaq 0x2c24(%rip), %rdx      # 0x434c
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
movl 0x4(%rbx), %eax
cmpl %eax, 0xc(%rbx)
jl 0x173e
decl %eax
movl %eax, 0xc(%rbx)
movl 0x8(%rbx), %eax
cmpl 0x14(%rbx), %eax
jne 0x1979
movq %rbx, %rdi
callq 0x2845
movzwl 0x18(%rbx), %ecx
jmp 0x197e
cmpl $0x7, %eax
ja 0x19ae
movzbl %r15b, %r14d
movl %eax, %ecx
leaq 0x289f(%rip), %rdx      # 0x4010
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
cmpb $0x7, %r15b
je 0x1996
cmpl $0xa, %r14d
je 0x19a9
cmpl $0xd, %r14d
je 0x19a9
cmpl $0x1b, %r14d
jne 0x19bd
cmpl $0x3, %eax
jne 0x1ade
movl $0x4, 0x60(%rbx)
jmp 0x19ae
cmpb $0x5c, %r15b
setne %cl
cmpl $0x4, %eax
setne %al
orb %cl, %al
jne 0x17d6
leaq 0x3039(%rip), %rdi      # 0x4808
xorl %eax, %eax
callq 0x265f
movq $0x1, 0x60(%rbx)
leal -0x58(%r14), %eax
cmpl $0x7, %eax
ja 0x18bd
leaq 0x2ac6(%rip), %rcx      # 0x42b8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x5, 0x60(%rbx)
jmp 0x19ae
leal -0x7f(%r15), %eax
cmpb $-0x40, %al
ja 0x18ea
movslq 0x64(%rbx), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x64(%rbx)
jmp 0x18e0
movslq 0x64(%rbx), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x64(%rbx)
movb %r15b, 0x6c(%rbx,%rax)
movslq 0x64(%rbx), %rax
cmpl 0x68(%rbx), %eax
jne 0x19ae
movb $0x8, %cl
subb %al, %cl
pushq $-0x1
popq %rdx
shll %cl, %edx
movzbl 0x6c(%rbx), %ecx
notl %edx
andl %ecx, %edx
pushq $0x6d
popq %rcx
leaq -0x6c(%rcx), %rsi
cmpq %rax, %rsi
jge 0x1989
movzwl %dx, %esi
shll $0x6, %esi
movzbl (%rbx,%rcx), %edx
andl $0x3f, %edx
orl %esi, %edx
incq %rcx
jmp 0x1852
cmpb $-0x65, %r15b
je 0x18b1
movzbl %r15b, %esi
cmpl $0x1b, %esi
jne 0x1a4a
movl $0x1, 0x60(%rbx)
jmp 0x19ae
movl 0x64(%rbx), %eax
testl %eax, %eax
je 0x17de
movl %r15d, %ecx
andb $-0x10, %cl
cmpb $0x20, %cl
je 0x18d8
movb 0x6c(%rbx), %r15b
jmp 0x1a80
movl $0x2, 0x60(%rbx)
jmp 0x19ae
cmpl $0x50, %r14d
je 0x17fb
movl %r15d, %ecx
andb $-0x10, %cl
xorl %eax, %eax
cmpb $0x20, %cl
jne 0x1a7d
leal 0x1(%rax), %ecx
movl %ecx, 0x64(%rbx)
cltq
movb %r15b, 0x6c(%rbx,%rax)
jmp 0x19ae
movl 0x8(%rbx), %esi
movl 0xc(%rbx), %edx
movq %rbx, %rdi
callq 0x28c0
testl %eax, %eax
je 0x19a9
leaq 0x6c(%rbx), %rdi
movslq 0x64(%rbx), %rax
movb $0x0, 0x6c(%rbx,%rax)
leaq 0x6d(%rbx), %rax
xorl %ecx, %ecx
cmpb $0x3f, 0x6c(%rbx)
sete %cl
cmoveq %rax, %rdi
movq %rcx, (%rsp)
cmpb $0x0, 0x6c(%rbx,%rcx)
je 0x1bab
leaq 0x10(%rsp), %r13
xorl %r15d, %r15d
leaq 0x8(%rsp), %r12
pushq $0xa
popq %rbp
cmpq $0x10, %r15
je 0x1bb6
cmpb $0x0, (%rdi)
je 0x1bbc
movq %r12, %rsi
movl %ebp, %edx
callq 0x1140
movl %eax, (%r13)
movq 0x8(%rsp), %rdi
cmpb $0x0, (%rdi)
je 0x1970
incq %rdi
movq %rdi, 0x8(%rsp)
addq $0x4, %r13
incq %r15
jmp 0x193d
incl %eax
movl %eax, 0x8(%rbx)
testb $0x4, %cl
je 0x19ae
andl $0x0, 0xc(%rbx)
jmp 0x19ae
movzwl %dx, %esi
movq %rbx, %rdi
callq 0x258f
jmp 0x19a9
cmpl $0x3, %eax
jne 0x19a9
leaq 0x2e66(%rip), %rdi      # 0x4808
xorl %eax, %eax
callq 0x265f
andq $0x0, 0x60(%rbx)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movslq 0x64(%rbx), %rax
cmpq $0xfc, %rax
jg 0x1aea
leal 0x1(%rax), %ecx
movl %ecx, 0x64(%rbx)
movb %r15b, 0x6c(%rbx,%rax)
jmp 0x1af1
movl $0x3, 0x60(%rbx)
jmp 0x19ae
andl $0x0, 0x38(%rbx)
jmp 0x19ae
movl 0x4(%rbx), %ecx
movl 0xc(%rbx), %edx
leal -0x1(%rcx), %eax
cmpl %ecx, %edx
cmovll %edx, %eax
setge %cl
testl %eax, %eax
setne %dl
orb %cl, %dl
je 0x19ae
xorl %ecx, %ecx
subl $0x1, %eax
cmovbl %ecx, %eax
jmp 0x1a36
movl 0x4(%rbx), %eax
movl 0xc(%rbx), %ecx
movl %ecx, %edx
andl $-0x8, %edx
addl $0x8, %edx
movl %edx, 0xc(%rbx)
cmpl $-0x8, %ecx
setge %cl
cmpl %eax, %edx
setl %dl
testb %dl, %cl
jne 0x19ae
decl %eax
movl %eax, 0xc(%rbx)
jmp 0x19ae
movl $0x1, 0x38(%rbx)
jmp 0x19ae
movslq 0x38(%rbx), %rax
movl 0x30(%rbx,%rax,4), %eax
cmpq $0x3, %rax
ja 0x19ae
leaq 0x28d9(%rip), %rcx      # 0x433c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
testb %r15b, %r15b
js 0x1dda
movq %rbx, %rdi
jmp 0x1c5c
xorl %r14d, %r14d
movzbl %r15b, %esi
leal -0x23(%rsi), %eax
cmpl $0x6, %eax
jbe 0x1b16
leal -0x37(%rsi), %eax
cmpl $0x7, %eax
jbe 0x1b62
leal -0x44(%rsi), %eax
cmpl $0x9, %eax
ja 0x1c2a
leaq 0x2865(%rip), %rcx      # 0x4314
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x4(%rbx), %eax
cmpl %eax, 0xc(%rbx)
jl 0x1ac5
decl %eax
movl %eax, 0xc(%rbx)
movl 0x8(%rbx), %eax
cmpl 0x14(%rbx), %eax
jne 0x1dd3
movq %rbx, %rdi
callq 0x2845
jmp 0x19a9
movl $0x6, 0x60(%rbx)
jmp 0x19ae
movl $0x5, 0x60(%rbx)
movzbl 0x6c(%rbx), %eax
cmpl $0x52, %eax
je 0x1b8c
cmpl $0x50, %eax
jne 0x19ae
cmpl $0x8, 0x64(%rbx)
jne 0x19ae
jmp 0x1b96
leaq 0x27bb(%rip), %rcx      # 0x42d8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x38, %r14d
jne 0x1e92
xorl %eax, %eax
movslq (%rbx), %rcx
cmpq %rcx, %rax
jge 0x19a9
xorl %ecx, %ecx
movslq 0x4(%rbx), %rdx
cmpq %rdx, %rcx
jge 0x1b5d
movq 0x20(%rbx), %rdx
movq (%rdx,%rax,8), %rdx
movl $0x70000045, (%rdx,%rcx,4) # imm = 0x70000045
incq %rcx
jmp 0x1b40
incq %rax
jmp 0x1b32
leaq 0x278b(%rip), %rcx      # 0x42f4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x4(%rbx), %eax
cmpl %eax, 0xc(%rbx)
jl 0x1b7f
decl %eax
movl %eax, 0xc(%rbx)
movq %rbx, %rdi
callq 0x281c
jmp 0x19a9
cmpl $0x1, 0x64(%rbx)
jne 0x19ae
movq %rbx, %rdi
callq 0x2705
testl %eax, %eax
jne 0x19a9
jmp 0x19ae
pushq $0x1
popq %r12
leaq 0x10(%rsp), %r13
jmp 0x1bcc
pushq $0x10
popq %r12
jmp 0x1bd1
cmpb $0x3b, -0x1(%rdi)
jne 0x1c6f
incl %r15d
movl %r15d, %r12d
andl $0x0, (%r13)
movl 0x10(%rsp), %ecx
movl %ecx, %edx
movq (%rsp), %r13
cmpl $0x1, %edx
movl %edx, %eax
adcl $0x0, %eax
leal -0x40(%r14), %esi
cmpl $0x35, %esi
ja 0x21e4
leaq 0x2439(%rip), %rdi      # 0x4030
movslq (%rdi,%rsi,4), %rsi
addq %rdi, %rsi
jmpq *%rsi
movl 0x4(%rbx), %ecx
cmpl %ecx, 0xc(%rbx)
jl 0x1c0d
decl %ecx
movl %ecx, 0xc(%rbx)
movl (%rbx), %ecx
addl 0x8(%rbx), %eax
movl %eax, 0x8(%rbx)
setns %dl
cmpl %ecx, %eax
setl %al
testb %al, %dl
jne 0x19a9
jmp 0x2295
cmpl $0x5a, %esi
je 0x19a9
cmpl $0x63, %esi
jne 0x1c83
movq %rbx, %rdi
callq 0x15f3
jmp 0x19a9
leaq 0x2744(%rip), %rax      # 0x4390
jmp 0x1c55
leaq 0x293b(%rip), %rax      # 0x4590
movzwl (%rax,%rsi,2), %esi
movq %rbx, %rdi
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x258f
xorl %edx, %edx
testq %r15, %r15
movl 0x10(%rsp), %ecx
cmovnel %ecx, %edx
movl %r15d, %r12d
jmp 0x1bd7
leaq 0x2c8c(%rip), %rdi      # 0x4916
xorl %eax, %eax
callq 0x265f
jmp 0x19a9
cmpl $0x30, %r14d
je 0x23f9
cmpl $0x55, %r14d
je 0x23ce
cmpl $0x4b, %r14d
je 0x23da
cmpl $0x42, %r14d
je 0x23e8
jmp 0x19a9
cmpl $0x30, %r14d
je 0x2430
cmpl $0x55, %r14d
je 0x2405
cmpl $0x4b, %r14d
je 0x2411
cmpl $0x42, %r14d
je 0x241f
jmp 0x19a9
leaq 0x2b73(%rip), %rdi      # 0x486a
xorl %eax, %eax
callq 0x265f
cmpl $0x47, %r14d
je 0x1d18
cmpl $0x40, %r14d
je 0x23a7
cmpl $0x38, %r14d
jne 0x19a9
andb $-0x11, 0x19(%rbx)
cmpl $0x1, 0x30(%rbx)
jne 0x1d26
andl $0x0, 0x30(%rbx)
cmpl $0x1, 0x34(%rbx)
jne 0x19a9
andl $0x0, 0x34(%rbx)
jmp 0x19a9
leaq 0x2b9a(%rip), %rdi      # 0x48da
jmp 0x19a2
leaq 0x2bac(%rip), %rdi      # 0x48f8
jmp 0x19a2
movq 0x44(%rbx), %rax
movq %rax, 0x8(%rbx)
xorl %eax, %eax
cmpl $0x0, 0x4c(%rbx)
setne %al
movl 0x18(%rbx), %ecx
andl $-0x41, %ecx
shll $0x6, %eax
orl %ecx, %eax
movw %ax, 0x18(%rbx)
movzwl 0x50(%rbx), %eax
movw %ax, 0x1a(%rbx)
movq 0x54(%rbx), %rax
movq %rax, 0x30(%rbx)
movl 0x5c(%rbx), %eax
movl %eax, 0x38(%rbx)
jmp 0x19a9
movl 0x8(%rbx), %eax
cmpl 0x10(%rbx), %eax
jne 0x1e9e
movq %rbx, %rdi
callq 0x28fd
jmp 0x19a9
leaq 0x2aa3(%rip), %rdi      # 0x484f
jmp 0x19a2
movl 0x4(%rbx), %eax
cmpl %eax, 0xc(%rbx)
jl 0x1dbe
decl %eax
movl %eax, 0xc(%rbx)
movl 0x8(%rbx), %eax
cmpl 0x14(%rbx), %eax
jne 0x1dd3
movq %rbx, %rdi
callq 0x2845
jmp 0x24b0
incl %eax
jmp 0x1ea0
cmpb $-0x40, %r15b
jb 0x1ea8
cmpb $-0x10, %r15b
pushq $0x4
popq %rax
sbbl $0x0, %eax
cmpb $-0x20, %r15b
pushq $0x2
popq %rcx
cmovael %eax, %ecx
movl %ecx, 0x68(%rbx)
movslq 0x64(%rbx), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x64(%rbx)
movb %r15b, 0x6c(%rbx,%rax)
movl $0x7, 0x60(%rbx)
jmp 0x19ae
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rbx)
testl %eax, %eax
setle %dl
movl 0x4(%rbx), %ecx
cmpl %ecx, %eax
setg %al
orb %dl, %al
cmpb $0x1, %al
jne 0x19a9
jmp 0x2485
movl 0x4(%rbx), %ecx
movl 0xc(%rbx), %edx
leal -0x1(%rcx), %esi
cmpl %ecx, %edx
cmovgel %esi, %edx
addl %eax, %edx
cmpl %ecx, %edx
movl %esi, %eax
cmovll %edx, %eax
testl %edx, %edx
cmovsl %esi, %eax
movl %eax, 0xc(%rbx)
jmp 0x19a9
cmpl $0x1, %r12d
je 0x243c
cmpl $0x2, %r12d
jne 0x2454
cmpl $0x2, %ecx
pushq $0x1
popq %rax
cmovll %eax, %ecx
decl %ecx
movl %ecx, 0x8(%rbx)
movl 0x14(%rsp), %edx
cmpl $0x2, %edx
cmovgel %edx, %eax
decl %eax
movl %eax, 0xc(%rbx)
jmp 0x245d
leaq 0x2a01(%rip), %rdi      # 0x489a
jmp 0x19a2
decl %eax
movl %eax, 0x8(%rbx)
jmp 0x19a9
movq %rbx, %rdi
movl $0xfffd, %esi           # imm = 0xFFFD
jmp 0x1c5c
movl 0x4(%rbx), %ecx
cmpl %ecx, 0xc(%rbx)
jl 0x1ec2
decl %ecx
movl %ecx, 0xc(%rbx)
movl 0x8(%rbx), %ecx
movl 0x10(%rbx), %ebp
cmpl %ebp, %ecx
jl 0x19a9
cmpl 0x14(%rbx), %ecx
jg 0x19a9
movl %ecx, 0x10(%rbx)
xorl %r14d, %r14d
testl %eax, %eax
cmovgl %eax, %r14d
subl $0x1, %r14d
jb 0x248f
movq %rbx, %rdi
callq 0x2845
jmp 0x1ee5
movl 0x4(%rbx), %ecx
cmpl %ecx, 0xc(%rbx)
jl 0x1f06
decl %ecx
movl %ecx, 0xc(%rbx)
decl %eax
movl %eax, 0x8(%rbx)
jmp 0x19a9
leaq 0x2ac4(%rip), %r14      # 0x49db
leaq 0x21ea(%rip), %r15      # 0x4108
xorl %ebp, %ebp
cmpl %r12d, %ebp
jge 0x19a9
movl %ebp, %ecx
movl 0x10(%rsp,%rcx,4), %esi
cmpq $0x6b, %rsi
ja 0x208b
movslq (%r15,%rsi,4), %rdx
addq %r15, %rdx
movslq %ebp, %rax
jmpq *%rdx
movb 0x1b(%rbx), %al
andb $0xf, %al
shlb $0x4, %sil
orb %al, %sil
addb $0x20, %sil
jmp 0x1f71
movb 0x1b(%rbx), %al
andb $-0x10, %al
leal -0x28(%rsi), %ecx
jmp 0x1f7f
movb 0x1b(%rbx), %al
andb $0xf, %al
shlb $0x4, %sil
orb %al, %sil
addb $-0x20, %sil
movb %sil, 0x1b(%rbx)
jmp 0x1f84
movb 0x1b(%rbx), %al
andb $-0x10, %al
leal -0x5c(%rsi), %ecx
orb %al, %cl
movb %cl, 0x1b(%rbx)
movl %ebp, %eax
incl %eax
movl %eax, %ebp
jmp 0x1f20
orb $0x8, 0x1a(%rbx)
jmp 0x1f84
movslq 0x38(%rbx), %rax
movl $0x3, 0x30(%rbx,%rax,4)
orb $0x1, 0x18(%rbx)
jmp 0x1f84
andb $-0x10, 0x1b(%rbx)
jmp 0x1f84
movl 0x14(%rsp,%rax,4), %edx
cmpl $0x2, %edx
je 0x209a
movl %r12d, %eax
cmpl $0x5, %edx
jne 0x1f86
addl $0x2, %ebp
movl 0x18(%rsp,%rcx,4), %edi
callq 0x2acb
jmp 0x20ae
andb $-0x4, 0x1a(%rbx)
jmp 0x1f84
orb $0x10, 0x1a(%rbx)
jmp 0x1f84
orb $0x20, 0x1a(%rbx)
jmp 0x1f84
movzwl 0x18(%rbx), %eax
movl %eax, %ecx
shrl $0xc, %ecx
andl $0x1, %ecx
andl $0x0, 0x38(%rbx)
movl %ecx, 0x30(%rbx)
andl $-0x2, %eax
movw %ax, 0x18(%rbx)
jmp 0x1f84
orb $0x1, 0x1a(%rbx)
jmp 0x1f84
orb $0x40, 0x1a(%rbx)
jmp 0x1f84
movw $0x7000, 0x1a(%rbx)     # imm = 0x7000
jmp 0x1f84
andb $-0x9, 0x1a(%rbx)
jmp 0x1f84
andb $-0x11, 0x1a(%rbx)
jmp 0x1f84
orb $0x4, 0x1a(%rbx)
jmp 0x1f84
orb $0x2, 0x1a(%rbx)
jmp 0x1f84
andb $-0x21, 0x1a(%rbx)
jmp 0x1f84
andb $-0x5, 0x1a(%rbx)
jmp 0x1f84
movb 0x1b(%rbx), %al
andb $0xf, %al
orb $0x70, %al
movb %al, 0x1b(%rbx)
jmp 0x1f84
movl 0x14(%rsp,%rax,4), %edx
cmpl $0x2, %edx
je 0x20bb
movl %r12d, %eax
cmpl $0x5, %edx
jne 0x1f86
movl %r12d, %r13d
movb 0x1b(%rbx), %r12b
andb $-0x10, %r12b
addl $0x2, %ebp
movl 0x18(%rsp,%rcx,4), %edi
callq 0x2acb
jmp 0x20da
movq %r14, %rdi
xorl %eax, %eax
callq 0x265f
jmp 0x1f84
movl 0x18(%rsp,%rax,4), %edi
movl 0x1c(%rsp,%rax,4), %esi
addl $0x4, %ebp
movl 0x20(%rsp,%rcx,4), %edx
callq 0x2b96
movb 0x1b(%rbx), %cl
andb $0xf, %cl
shlb $0x4, %al
orb %cl, %al
jmp 0x20e0
movl %r12d, %r13d
movb 0x1b(%rbx), %r12b
andb $-0x10, %r12b
movl 0x18(%rsp,%rax,4), %edi
movl 0x1c(%rsp,%rax,4), %esi
addl $0x4, %ebp
movl 0x20(%rsp,%rcx,4), %edx
callq 0x2b96
orb %r12b, %al
movl %r13d, %r12d
movb %al, 0x1b(%rbx)
jmp 0x1f84
movl 0x8(%rbx), %ecx
andl $0x0, 0xc(%rbx)
jmp 0x2229
movl %r12d, %r14d
xorl %r15d, %r15d
pushq $0x1
popq %rbp
cmpq %r15, %r14
je 0x19a9
movl 0x10(%rsp,%r15,4), %edx
movq %rbx, %rdi
movl %r13d, %esi
movl %ebp, %ecx
callq 0x2978
incq %r15
jmp 0x20fd
movq 0x8(%rbx), %rax
movq %rax, 0x3c(%rbx)
jmp 0x19a9
movl 0x4(%rbx), %eax
cmpl %eax, 0xc(%rbx)
jl 0x2137
decl %eax
movl %eax, 0xc(%rbx)
leaq 0x27ee(%rip), %rdi      # 0x492c
jmp 0x19a2
leaq 0x2801(%rip), %rdi      # 0x494b
jmp 0x19a2
movl 0x4(%rbx), %edx
movl 0xc(%rbx), %esi
movslq %edx, %rcx
cmpl %ecx, %esi
jl 0x2162
leal -0x1(%rdx), %esi
movl %esi, 0xc(%rbx)
movq 0x20(%rbx), %rdi
movslq 0x8(%rbx), %r8
movq (%rdi,%r8,8), %rdi
movzwl -0x2(%rdi,%rcx,4), %ecx
movslq %esi, %rsi
movslq %eax, %rdi
shlq $0x2, %rdi
movl %edx, %r8d
subl %eax, %r8d
movslq %r8d, %r8
cmpq %r8, %rsi
jge 0x21ca
movq 0x20(%rbx), %rdx
movslq 0x8(%rbx), %r8
movq (%rdx,%r8,8), %rdx
leaq (%rdx,%rsi,4), %r8
movl (%rdi,%r8), %r8d
movl %r8d, (%rdx,%rsi,4)
incq %rsi
movl 0x4(%rbx), %edx
jmp 0x217d
movq 0x20(%rbx), %rax
movslq 0x8(%rbx), %rdx
movq (%rax,%rdx,8), %rax
movw $0x20, (%rax,%r8,4)
movw %cx, 0x2(%rax,%r8,4)
incq %r8
movl 0x4(%rbx), %edx
movslq %edx, %rax
cmpq %rax, %r8
jl 0x21ab
jmp 0x19a9
movq 0x3c(%rbx), %rax
movq %rax, 0x8(%rbx)
jmp 0x19a9
leaq 0x27a0(%rip), %rdi      # 0x498b
movl %r14d, %esi
jmp 0x1c8a
movl %r12d, %r14d
xorl %r15d, %r15d
cmpq %r15, %r14
je 0x19a9
movl 0x10(%rsp,%r15,4), %edx
movq %rbx, %rdi
movl %r13d, %esi
xorl %ecx, %ecx
callq 0x2978
incq %r15
jmp 0x21f9
movl 0x4(%rbx), %ecx
cmpl %ecx, 0xc(%rbx)
jl 0x2226
decl %ecx
movl %ecx, 0xc(%rbx)
movl 0x8(%rbx), %ecx
subl %eax, %ecx
movl %ecx, 0x8(%rbx)
js 0x2238
cmpl (%rbx), %ecx
jl 0x19a9
andl $0x0, 0x8(%rbx)
jmp 0x19a9
movl 0x4(%rbx), %ecx
movl 0xc(%rbx), %r8d
leal -0x1(%rcx), %eax
cmpl %ecx, %r8d
jl 0x2256
movl %eax, 0xc(%rbx)
movl %eax, %r8d
cmpl $0x1, %edx
je 0x24b9
movl (%rbx), %esi
decl %esi
testl %edx, %edx
jne 0x24c3
movslq 0x8(%rbx), %rdx
movslq %r8d, %rdi
jmp 0x24e8
movl (%rbx), %ecx
movl 0x8(%rbx), %edx
andl $0x0, 0xc(%rbx)
addl %eax, %edx
movl %edx, 0x8(%rbx)
setns %al
cmpl %ecx, %edx
setl %dl
testb %dl, %al
jne 0x19a9
decl %ecx
movl %ecx, 0x8(%rbx)
jmp 0x19a9
movl 0x4(%rbx), %ecx
movl 0xc(%rbx), %edx
leal -0x1(%rcx), %esi
cmpl %ecx, %edx
cmovll %edx, %esi
subl %eax, %esi
xorl %eax, %eax
cmpl %ecx, %esi
movl $0x0, %ecx
cmovll %esi, %ecx
testl %esi, %esi
cmovsl %eax, %ecx
jmp 0x2487
movl 0x4(%rbx), %ecx
cmpl %ecx, 0xc(%rbx)
jl 0x22d2
decl %ecx
movl %ecx, 0xc(%rbx)
movl 0x8(%rbx), %ecx
movl 0x10(%rbx), %ebp
cmpl %ebp, %ecx
jl 0x19a9
cmpl 0x14(%rbx), %ecx
jg 0x19a9
movl %ecx, 0x10(%rbx)
xorl %r14d, %r14d
testl %eax, %eax
cmovgl %eax, %r14d
subl $0x1, %r14d
jb 0x248f
movq %rbx, %rdi
callq 0x28fd
jmp 0x22f5
movl 0x4(%rbx), %eax
movl 0xc(%rbx), %esi
leal -0x1(%rax), %ecx
cmpl %eax, %esi
jl 0x231b
movl %ecx, 0xc(%rbx)
movl %ecx, %esi
cmpl $0x1, %edx
je 0x255b
testl %edx, %edx
jne 0x2561
movslq %esi, %rax
jmp 0x2563
movl 0x4(%rbx), %ecx
cmpl %ecx, 0xc(%rbx)
jl 0x2341
decl %ecx
movl %ecx, 0xc(%rbx)
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
cmpl %ecx, %eax
je 0x19a9
movq 0x20(%rbx), %rdx
movslq 0x8(%rbx), %rsi
movq (%rdx,%rsi,8), %rdx
movslq 0xc(%rbx), %rsi
addq %rcx, %rsi
movzwl 0x1a(%rbx), %edi
movw $0x20, (%rdx,%rsi,4)
movw %di, 0x2(%rdx,%rsi,4)
incq %rcx
jmp 0x2348
cmpl $0x2, %r12d
jne 0x2497
cmpl $0x2, %ecx
pushq $0x1
popq %rax
cmovll %eax, %ecx
decl %ecx
movl 0x14(%rsp), %edx
cmpl $0x2, %edx
cmovgel %edx, %eax
jmp 0x249b
leaq 0x25c8(%rip), %rdi      # 0x496a
jmp 0x19a2
orb $0x10, 0x19(%rbx)
cmpl $0x0, 0x30(%rbx)
jne 0x23b8
movl $0x1, 0x30(%rbx)
cmpl $0x0, 0x34(%rbx)
jne 0x19a9
movl $0x1, 0x34(%rbx)
jmp 0x19a9
movl $0x3, 0x34(%rbx)
jmp 0x19a9
leaq 0x24de(%rip), %rdi      # 0x48bf
xorl %eax, %eax
callq 0x265f
movl 0x18(%rbx), %eax
shrl $0xc, %eax
andl $0x1, %eax
movl %eax, 0x34(%rbx)
jmp 0x19a9
movl $0x2, 0x34(%rbx)
jmp 0x19a9
movl $0x3, 0x30(%rbx)
jmp 0x19a9
leaq 0x24a7(%rip), %rdi      # 0x48bf
xorl %eax, %eax
callq 0x265f
movl 0x18(%rbx), %eax
shrl $0xc, %eax
andl $0x1, %eax
movl %eax, 0x30(%rbx)
jmp 0x19a9
movl $0x2, 0x30(%rbx)
jmp 0x19a9
cmpl $0x2, %ecx
pushq $0x1
popq %rdx
cmovgel %ecx, %edx
decl %edx
movl %edx, 0x8(%rbx)
andl $0x0, 0xc(%rbx)
xorl %eax, %eax
movl %edx, %ecx
jmp 0x245d
andq $0x0, 0x8(%rbx)
xorl %eax, %eax
xorl %ecx, %ecx
testb $0x40, 0x18(%rbx)
jne 0x2467
movl (%rbx), %edx
jmp 0x2471
addl 0x10(%rbx), %ecx
movl %ecx, 0x8(%rbx)
movl (%rbx), %edx
js 0x2475
cmpl %edx, %ecx
jl 0x247a
decl %edx
movl %edx, 0x8(%rbx)
movl 0x4(%rbx), %ecx
cmpl %ecx, %eax
jl 0x19a9
decl %ecx
movl %ecx, 0xc(%rbx)
jmp 0x19a9
movl %ebp, 0x10(%rbx)
jmp 0x19a9
movl (%rbx), %eax
xorl %ecx, %ecx
decl %eax
movl %ecx, 0x10(%rbx)
movl %eax, 0x14(%rbx)
movzwl 0x18(%rbx), %eax
andl $0x40, %eax
cmovnel %ecx, %eax
movl %eax, 0x8(%rbx)
andl $0x0, 0xc(%rbx)
jmp 0x19a9
movl 0x8(%rbx), %esi
xorl %edi, %edi
movl %r8d, %eax
jmp 0x24c5
xorl %edi, %edi
xorl %edx, %edx
jmp 0x24e8
movq 0x20(%rbx), %rcx
movq (%rcx,%rdx,8), %rcx
movzwl 0x1a(%rbx), %r8d
movw $0x20, (%rcx,%rdi,4)
movw %r8w, 0x2(%rcx,%rdi,4)
incq %rdi
movl 0x4(%rbx), %ecx
movslq %ecx, %r8
cmpq %r8, %rdi
jl 0x24c9
movslq %esi, %rsi
incq %rdx
cmpq %rsi, %rdx
jge 0x2526
xorl %edi, %edi
movslq %ecx, %r8
cmpq %r8, %rdi
jge 0x24f3
movq 0x20(%rbx), %rcx
movq (%rcx,%rdx,8), %rcx
movzwl 0x1a(%rbx), %r8d
movw $0x20, (%rcx,%rdi,4)
movw %r8w, 0x2(%rcx,%rdi,4)
incq %rdi
movl 0x4(%rbx), %ecx
jmp 0x24fd
testl %eax, %eax
pushq $-0x1
popq %rcx
cmovnsl %eax, %ecx
movslq %ecx, %rax
incq %rax
xorl %ecx, %ecx
cmpq %rcx, %rax
je 0x19a9
movq 0x20(%rbx), %rdx
movq (%rdx,%rsi,8), %rdx
movzwl 0x1a(%rbx), %edi
movw $0x20, (%rdx,%rcx,4)
movw %di, 0x2(%rdx,%rcx,4)
incq %rcx
jmp 0x2536
xorl %eax, %eax
movl %esi, %ecx
jmp 0x2563
xorl %eax, %eax
movslq %ecx, %rcx
cmpq %rcx, %rax
jg 0x19a9
movq 0x20(%rbx), %rdx
movslq 0x8(%rbx), %rsi
movq (%rdx,%rsi,8), %rdx
movzwl 0x1a(%rbx), %esi
movw $0x20, (%rdx,%rax,4)
movw %si, 0x2(%rdx,%rax,4)
incq %rax
jmp 0x2566