// File: /workspace/github_c_makefile_star2_O0/mloar[P]charset/iso2022.c
// Function: write_iso2022
static int write_iso2022(charset_spec const *charset, long int input_chr,
			 charset_state *state,
			 void (*emit)(void *ctx, long int output),
			 void *emitctx)
{
    int i;
    struct iso2022_subcharset const *subcs;
    struct iso2022_mode const *mode = (struct iso2022_mode *)charset->data;
    to_dbcs_planar_t last_planar_dbcs = NULL;
    int last_p, last_r, last_c;
    long int c1, c2;

    /*
     * For output, I allocate the state variables as follows:
     * 
     *  s1[31] == 1 if output state has been initialised
     *  s1[30:24] == G1 charset (always in GR)
     *  s1[23:17] == G0 charset (always in GL)
     *  s1[16:14] == DOCS index plus 2 (because -1 and -2 are special)
     *  s1[13:11] == number of DOCS accumulated characters (up to five)
     *  s1[7:0] + s0[31:0] == DOCS collected characters
     */

    if (!state->s1) {
	state->s0 = 0x00000000UL;
	state->s1 = 0x80000000UL;
	/*
	 * Start with US-ASCII in GL and also in GR.
	 */
	for (i = 0; (unsigned)i < lenof(iso2022_subcharsets); i++) {
	    subcs = &iso2022_subcharsets[i];
	    if (subcs->type == mode->ltype &&
		subcs->i == mode->li &&
		subcs->f == mode->lf)
		oselect(state, i, FALSE, NULL, NULL);
	    if (subcs->type == mode->rtype &&
		subcs->i == mode->ri &&
		subcs->f == mode->rf)
		oselect(state, i, TRUE, NULL, NULL);
	}
    }

    if (input_chr == -1) {
	/*
	 * Special case: reset encoding state.
	 */
	docs_char(state, emit, emitctx, -2, NULL, 0);   /* leave DOCS */

	for (i = 0; (unsigned)i < lenof(iso2022_subcharsets); i++) {
	    subcs = &iso2022_subcharsets[i];
	    if (subcs->type == mode->ltype &&
		subcs->i == mode->li &&
		subcs->f == mode->lf)
		oselect(state, i, FALSE, emit, emitctx);
	    if (subcs->type == mode->rtype &&
		subcs->i == mode->ri &&
		subcs->f == mode->rf)
		oselect(state, i, TRUE, emit, emitctx);
	}
	return TRUE;
    }

    /*
     * Special-case characters: Space, Delete, and anything in C0
     * or C1 are output unchanged.
     */
    if (input_chr <= 0x20 || (input_chr >= 0x7F && input_chr < 0xA0)) {
	emit(emitctx, input_chr);
	return TRUE;
    }

    /*
     * Analyse the input character and work out which subcharset it
     * belongs to.
     */
    for (i = 0; (unsigned)i < lenof(iso2022_subcharsets); i++) {
	subcs = &iso2022_subcharsets[i];
	if (!(mode->enable_mask & (1 << subcs->enable)))
	    continue;		       /* this charset is disabled */
	if (subcs->sbcs_base) {
	    c1 = sbcs_from_unicode(subcs->sbcs_base, input_chr);
	    c1 -= subcs->offset;
	    if (c1 >= 0x20 && c1 <= 0x7f) {
		c2 = 0;
		break;
	    }
	} else if (subcs->to_dbcs) {
	    if (subcs->to_dbcs_plane >= 0) {
		/*
		 * Since multiplanar DBCSes almost by definition
		 * involve several entries in iso2022_subcharsets
		 * with the same to_dbcs function and different
		 * plane values, we remember the last such function
		 * we called and what its result was, so that we
		 * don't (for example) have to call
		 * unicode_to_cns11643 seven times.
		 */
		if (last_planar_dbcs != REPLANARISE(subcs->to_dbcs)) {
		    last_planar_dbcs = REPLANARISE(subcs->to_dbcs);
		    if (!last_planar_dbcs(input_chr,
					  &last_p, &last_r, &last_c))
			last_p = -1;
		}
	    } else {
		last_p = subcs->to_dbcs_plane;
		if (!subcs->to_dbcs(input_chr, &last_r, &last_c))
		    last_p = 0;	       /* cannot match since to_dbcs_plane<0 */
	    }

	    if (last_p == subcs->to_dbcs_plane) {
		c1 = last_r - subcs->offset;
		c2 = last_c - subcs->offset;
		assert(c1 >= 0x20 && c1 <= 0x7f);
		assert(c2 >= 0x20 && c2 <= 0x7f);
		break;
	    }
	}
    }

    if ((unsigned)i < lenof(iso2022_subcharsets)) {
	int right;

	/*
	 * Our character is represented by c1 (and possibly also
	 * c2) in subcharset `subcs'. So now we must decide whether
	 * to designate that character set into G0/GL or G1/GR.
	 * 
	 * Any S6 or M6 subcharset has to go in GR because it won't
	 * fit in GL. In addition, the compound text rules state
	 * that any single-byte subcharset defined as the
	 * right-hand half of some SBCS must go in GR.
	 * 
	 * M4 subcharsets can go in either half according to the
	 * rules. I choose to put them in GR always because it's a
	 * simple policy with reasonable behaviour (facilitates
	 * switching between them and ASCII).
	 */
	right = (subcs->type == S6 || subcs->type == M6 || subcs->type == M4 ||
		 (subcs->sbcs_base && subcs->offset == 0x80));

	/*
	 * If we're in a DOCS mode, leave it.
	 */
	docs_char(state, emit, emitctx, -2, NULL, 0);

	/*
	 * If this subcharset is not already selected in that
	 * container, select it.
	 */
	oselect(state, i, right, emit, emitctx);

	/*
	 * Now emit the actual characters.
	 */
	if (right) {
	    assert(c1 >= 0x20 && c1 <= 0x7f);
	    emit(emitctx, c1 | 0x80);
	    if (c2) {
		assert(c2 >= 0x20 && c2 <= 0x7f);
		emit(emitctx, c2 | 0x80);
	    }
	} else {
	    assert(c1 > 0x20 && c1 < 0x7f);
	    emit(emitctx, c1);
	    if (c2) {
		assert(c2 > 0x20 && c2 < 0x7f);
		emit(emitctx, c2);
	    }
	}

	return TRUE;
    }

    /*
     * Fall back to DOCS.
     */
    {
	char data[10];
	char *p = data;
	int i, cs;

	cs = -2;		       /* means failure */

	for (i = 0; (unsigned)i <= lenof(ctext_encodings); i++) {
	    charset_state substate;
	    charset_spec const *subcs = ctext_encodings[i].subcs;

	    /*
	     * We assume that all character sets dealt with by DOCS
	     * are stateless for output purposes.
	     */
	    substate.s1 = substate.s0 = 0;
	    p = data;

	    if ((unsigned)i < lenof(ctext_encodings)) {
		if ((mode->enable_mask & (1 << ctext_encodings[i].enable)) &&
		    subcs->write(subcs, input_chr, &substate,
				 write_to_pointer, &p)) {
		    cs = i;
		    break;
		}
	    } else {
		if ((mode->enable_mask & (1 << CDU)) &&
		    write_utf8(NULL, input_chr, NULL, write_to_pointer, &p)) {
		    cs = -1;
		    break;
		}
	    }
	}

	if (cs != -2) {
	    docs_char(state, emit, emitctx, cs, data, p - data);
	    return TRUE;
	}
    }

    return FALSE;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x48(%rbp)
movq $0x0, -0x50(%rbp)
movq -0x20(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x880b
movq -0x20(%rbp), %rax
movq $0x0, (%rax)
movq -0x20(%rbp), %rax
movl $0x80000000, %ecx       # imm = 0x80000000
movq %rcx, 0x8(%rax)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpq $0x26, %rax
jae 0x8809
movslq -0x34(%rbp), %rcx
leaq 0xa0b47(%rip), %rax     # 0xa9290
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movsbl (%rax), %eax
movq -0x48(%rbp), %rcx
movsbl 0x4(%rcx), %ecx
cmpl %ecx, %eax
jne 0x87a5
movq -0x40(%rbp), %rax
movsbl 0x1(%rax), %eax
movq -0x48(%rbp), %rcx
movsbl 0x5(%rcx), %ecx
cmpl %ecx, %eax
jne 0x87a5
movq -0x40(%rbp), %rax
movsbl 0x2(%rax), %eax
movq -0x48(%rbp), %rcx
movsbl 0x6(%rcx), %ecx
cmpl %ecx, %eax
jne 0x87a5
movq -0x20(%rbp), %rdi
movl -0x34(%rbp), %esi
xorl %edx, %edx
xorl %eax, %eax
movl %eax, %r8d
movq %r8, %rcx
callq 0x9520
movq -0x40(%rbp), %rax
movsbl (%rax), %eax
movq -0x48(%rbp), %rcx
movsbl 0x7(%rcx), %ecx
cmpl %ecx, %eax
jne 0x87f9
movq -0x40(%rbp), %rax
movsbl 0x1(%rax), %eax
movq -0x48(%rbp), %rcx
movsbl 0x8(%rcx), %ecx
cmpl %ecx, %eax
jne 0x87f9
movq -0x40(%rbp), %rax
movsbl 0x2(%rax), %eax
movq -0x48(%rbp), %rcx
movsbl 0x9(%rcx), %ecx
cmpl %ecx, %eax
jne 0x87f9
movq -0x20(%rbp), %rdi
movl -0x34(%rbp), %esi
movl $0x1, %edx
xorl %eax, %eax
movl %eax, %r8d
movq %r8, %rcx
callq 0x9520
jmp 0x87fb
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x8731
jmp 0x880b
cmpq $-0x1, -0x18(%rbp)
jne 0x891f
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
xorl %eax, %eax
movl %eax, %r8d
xorl %r9d, %r9d
callq 0x96b0
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpq $0x26, %rax
jae 0x8913
movslq -0x34(%rbp), %rcx
leaq 0xa0a3d(%rip), %rax     # 0xa9290
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movsbl (%rax), %eax
movq -0x48(%rbp), %rcx
movsbl 0x4(%rcx), %ecx
cmpl %ecx, %eax
jne 0x88af
movq -0x40(%rbp), %rax
movsbl 0x1(%rax), %eax
movq -0x48(%rbp), %rcx
movsbl 0x5(%rcx), %ecx
cmpl %ecx, %eax
jne 0x88af
movq -0x40(%rbp), %rax
movsbl 0x2(%rax), %eax
movq -0x48(%rbp), %rcx
movsbl 0x6(%rcx), %ecx
cmpl %ecx, %eax
jne 0x88af
movq -0x20(%rbp), %rdi
movl -0x34(%rbp), %esi
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
xorl %edx, %edx
callq 0x9520
movq -0x40(%rbp), %rax
movsbl (%rax), %eax
movq -0x48(%rbp), %rcx
movsbl 0x7(%rcx), %ecx
cmpl %ecx, %eax
jne 0x8903
movq -0x40(%rbp), %rax
movsbl 0x1(%rax), %eax
movq -0x48(%rbp), %rcx
movsbl 0x8(%rcx), %ecx
cmpl %ecx, %eax
jne 0x8903
movq -0x40(%rbp), %rax
movsbl 0x2(%rax), %eax
movq -0x48(%rbp), %rcx
movsbl 0x9(%rcx), %ecx
cmpl %ecx, %eax
jne 0x8903
movq -0x20(%rbp), %rdi
movl -0x34(%rbp), %esi
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
movl $0x1, %edx
callq 0x9520
jmp 0x8905
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x883b
movl $0x1, -0x4(%rbp)
jmp 0x8e8f
cmpq $0x20, -0x18(%rbp)
jle 0x8937
cmpq $0x7f, -0x18(%rbp)
jl 0x8951
cmpq $0xa0, -0x18(%rbp)
jge 0x8951
movq -0x28(%rbp), %rax
movq -0x30(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq *%rax
movl $0x1, -0x4(%rbp)
jmp 0x8e8f
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpq $0x26, %rax
jae 0x8b1c
movslq -0x34(%rbp), %rcx
leaq 0xa0920(%rip), %rax     # 0xa9290
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x48(%rbp), %rax
movl (%rax), %eax
movq -0x40(%rbp), %rcx
movsbl 0x3(%rcx), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
jne 0x899e
jmp 0x8b0e
movq -0x40(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x89f1
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x18(%rbp), %rsi
callq 0xb2a0
movq %rax, -0x68(%rbp)
movq -0x40(%rbp), %rax
movslq 0x4(%rax), %rcx
movq -0x68(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x68(%rbp)
cmpq $0x20, -0x68(%rbp)
jl 0x89ec
cmpq $0x7f, -0x68(%rbp)
jg 0x89ec
movq $0x0, -0x70(%rbp)
jmp 0x8b1c
jmp 0x8b0c
movq -0x40(%rbp), %rax
cmpq $0x0, 0x18(%rax)
je 0x8b0a
movq -0x40(%rbp), %rax
cmpl $0x0, 0x20(%rax)
jl 0x8a4a
movq -0x50(%rbp), %rax
movq -0x40(%rbp), %rcx
cmpq 0x18(%rcx), %rax
je 0x8a48
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq -0x18(%rbp), %rdi
leaq -0x54(%rbp), %rsi
leaq -0x58(%rbp), %rdx
leaq -0x5c(%rbp), %rcx
callq *%rax
cmpl $0x0, %eax
jne 0x8a46
movl $0xffffffff, -0x54(%rbp) # imm = 0xFFFFFFFF
jmp 0x8a48
jmp 0x8a78
movq -0x40(%rbp), %rax
movl 0x20(%rax), %eax
movl %eax, -0x54(%rbp)
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x18(%rbp), %rdi
leaq -0x58(%rbp), %rsi
leaq -0x5c(%rbp), %rdx
callq *%rax
cmpl $0x0, %eax
jne 0x8a76
movl $0x0, -0x54(%rbp)
jmp 0x8a78
movl -0x54(%rbp), %eax
movq -0x40(%rbp), %rcx
cmpl 0x20(%rcx), %eax
jne 0x8b08
movl -0x58(%rbp), %eax
movq -0x40(%rbp), %rcx
subl 0x4(%rcx), %eax
cltq
movq %rax, -0x68(%rbp)
movl -0x5c(%rbp), %eax
movq -0x40(%rbp), %rcx
subl 0x4(%rcx), %eax
cltq
movq %rax, -0x70(%rbp)
cmpq $0x20, -0x68(%rbp)
jl 0x8ab8
cmpq $0x7f, -0x68(%rbp)
jg 0x8ab8
jmp 0x8ad7
leaq 0x56082(%rip), %rdi     # 0x5eb41
leaq 0x55f3b(%rip), %rsi     # 0x5ea01
movl $0x44a, %edx            # imm = 0x44A
leaq 0x56088(%rip), %rcx     # 0x5eb5a
callq 0x6050
cmpq $0x20, -0x70(%rbp)
jl 0x8ae7
cmpq $0x7f, -0x70(%rbp)
jg 0x8ae7
jmp 0x8b06
leaq 0x560cb(%rip), %rdi     # 0x5ebb9
leaq 0x55f0c(%rip), %rsi     # 0x5ea01
movl $0x44b, %edx            # imm = 0x44B
leaq 0x56059(%rip), %rcx     # 0x5eb5a
callq 0x6050
jmp 0x8b1c
jmp 0x8b0a
jmp 0x8b0c
jmp 0x8b0e
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x8958
movl -0x34(%rbp), %eax
cmpq $0x26, %rax
jae 0x8d08
movq -0x40(%rbp), %rax
movsbl (%rax), %ecx
movb $0x1, %al
cmpl $0x1, %ecx
movb %al, -0xa9(%rbp)
je 0x8b98
movq -0x40(%rbp), %rax
movsbl (%rax), %ecx
movb $0x1, %al
cmpl $0x3, %ecx
movb %al, -0xa9(%rbp)
je 0x8b98
movq -0x40(%rbp), %rax
movsbl (%rax), %ecx
movb $0x1, %al
cmpl $0x2, %ecx
movb %al, -0xa9(%rbp)
je 0x8b98
movq -0x40(%rbp), %rcx
xorl %eax, %eax
cmpq $0x0, 0x8(%rcx)
movb %al, -0xaa(%rbp)
je 0x8b8c
movq -0x40(%rbp), %rax
cmpl $0x80, 0x4(%rax)
sete %al
movb %al, -0xaa(%rbp)
movb -0xaa(%rbp), %al
movb %al, -0xa9(%rbp)
movb -0xa9(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x74(%rbp)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
xorl %eax, %eax
movl %eax, %r8d
xorl %r9d, %r9d
callq 0x96b0
movq -0x20(%rbp), %rdi
movl -0x34(%rbp), %esi
movl -0x74(%rbp), %edx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0x9520
cmpl $0x0, -0x74(%rbp)
je 0x8c79
cmpq $0x20, -0x68(%rbp)
jl 0x8bf5
cmpq $0x7f, -0x68(%rbp)
jg 0x8bf5
jmp 0x8c14
leaq 0x55f45(%rip), %rdi     # 0x5eb41
leaq 0x55dfe(%rip), %rsi     # 0x5ea01
movl $0x475, %edx            # imm = 0x475
leaq 0x55f4b(%rip), %rcx     # 0x5eb5a
callq 0x6050
movq -0x28(%rbp), %rax
movq -0x30(%rbp), %rdi
movq -0x68(%rbp), %rsi
orq $0x80, %rsi
callq *%rax
cmpq $0x0, -0x70(%rbp)
je 0x8c74
cmpq $0x20, -0x70(%rbp)
jl 0x8c40
cmpq $0x7f, -0x70(%rbp)
jg 0x8c40
jmp 0x8c5f
leaq 0x55f72(%rip), %rdi     # 0x5ebb9
leaq 0x55db3(%rip), %rsi     # 0x5ea01
movl $0x478, %edx            # imm = 0x478
leaq 0x55f00(%rip), %rcx     # 0x5eb5a
callq 0x6050
movq -0x28(%rbp), %rax
movq -0x30(%rbp), %rdi
movq -0x70(%rbp), %rsi
orq $0x80, %rsi
callq *%rax
jmp 0x8cfc
cmpq $0x20, -0x68(%rbp)
jle 0x8c89
cmpq $0x7f, -0x68(%rbp)
jge 0x8c89
jmp 0x8ca8
leaq 0x55f42(%rip), %rdi     # 0x5ebd2
leaq 0x55d6a(%rip), %rsi     # 0x5ea01
movl $0x47c, %edx            # imm = 0x47C
leaq 0x55eb7(%rip), %rcx     # 0x5eb5a
callq 0x6050
movq -0x28(%rbp), %rax
movq -0x30(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq *%rax
cmpq $0x0, -0x70(%rbp)
je 0x8cfa
cmpq $0x20, -0x70(%rbp)
jle 0x8ccd
cmpq $0x7f, -0x70(%rbp)
jge 0x8ccd
jmp 0x8cec
leaq 0x55f15(%rip), %rdi     # 0x5ebe9
leaq 0x55d26(%rip), %rsi     # 0x5ea01
movl $0x47f, %edx            # imm = 0x47F
leaq 0x55e73(%rip), %rcx     # 0x5eb5a
callq 0x6050
movq -0x28(%rbp), %rax
movq -0x30(%rbp), %rdi
movq -0x70(%rbp), %rsi
callq *%rax
jmp 0x8cfc
movl $0x1, -0x4(%rbp)
jmp 0x8e8f
leaq -0x7e(%rbp), %rax
movq %rax, -0x88(%rbp)
movl $0xfffffffe, -0x90(%rbp) # imm = 0xFFFFFFFE
movl $0x0, -0x8c(%rbp)
movl -0x8c(%rbp), %eax
cmpq $0x3, %rax
ja 0x8e4a
movslq -0x8c(%rbp), %rcx
leaq 0xa0b7b(%rip), %rax     # 0xa98c0
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movq %rax, -0xa8(%rbp)
movq $0x0, -0xa0(%rbp)
movq $0x0, -0x98(%rbp)
leaq -0x7e(%rbp), %rax
movq %rax, -0x88(%rbp)
movl -0x8c(%rbp), %eax
cmpq $0x3, %rax
jae 0x8df5
movq -0x48(%rbp), %rax
movl (%rax), %eax
movslq -0x8c(%rbp), %rdx
leaq 0xa0b28(%rip), %rcx     # 0xa98c0
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
movsbl 0x9(%rcx), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
je 0x8df3
movq -0xa8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0xa8(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0xa0(%rbp), %rdx
leaq 0xde9(%rip), %rcx       # 0x9bc0
leaq -0x88(%rbp), %r8
callq *%rax
cmpl $0x0, %eax
je 0x8df3
movl -0x8c(%rbp), %eax
movl %eax, -0x90(%rbp)
jmp 0x8e4a
jmp 0x8e34
movq -0x48(%rbp), %rax
movl (%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x8e32
movq -0x18(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
leaq 0xdae(%rip), %rcx       # 0x9bc0
leaq -0x88(%rbp), %r8
movq %rdx, %rdi
callq 0xc500
cmpl $0x0, %eax
je 0x8e32
movl $0xffffffff, -0x90(%rbp) # imm = 0xFFFFFFFF
jmp 0x8e4a
jmp 0x8e34
jmp 0x8e36
movl -0x8c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8c(%rbp)
jmp 0x8d27
cmpl $-0x2, -0x90(%rbp)
je 0x8e88
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
movl -0x90(%rbp), %ecx
leaq -0x7e(%rbp), %r8
movq -0x88(%rbp), %rax
leaq -0x7e(%rbp), %r9
subq %r9, %rax
movl %eax, %r9d
callq 0x96b0
movl $0x1, -0x4(%rbp)
jmp 0x8e8f
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xb0, %rsp
popq %rbp
retq
nopl (%rax,%rax)