// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/st.c
// Function: tputc
void
tputc(Rune u)
{
	char c[UTF_SIZ];
	int control;
	int width, len;
	Glyph *gp;

	control = ISCONTROL(u);
	if (u < 127 || !IS_SET(MODE_UTF8)) {
		c[0] = u;
		width = len = 1;
	} else {
		len = utf8encode(u, c);
		if (!control && (width = wcwidth(u)) == -1)
			width = 1;
	}

	if (IS_SET(MODE_PRINT))
		tprinter(c, len);

	/*
	 * STR sequence must be checked before anything else
	 * because it uses all following characters until it
	 * receives a ESC, a SUB, a ST or any other C1 control
	 * character.
	 */
	if (term.esc & ESC_STR) {
		if (u == '\a' || u == 030 || u == 032 || u == 033 ||
		   ISCONTROLC1(u)) {
			term.esc &= ~(ESC_START|ESC_STR);
			term.esc |= ESC_STR_END;
			goto check_control_code;
		}

		if (strescseq.len+len >= strescseq.siz) {
			/*
			 * Here is a bug in terminals. If the user never sends
			 * some code to stop the str or esc command, then st
			 * will stop responding. But this is better than
			 * silently failing with unknown characters. At least
			 * then users will report back.
			 *
			 * In the case users ever get fixed, here is the code:
			 */
			/*
			 * term.esc = 0;
			 * strhandle();
			 */
			if (strescseq.siz > (SIZE_MAX - UTF_SIZ) / 2)
				return;
			strescseq.siz *= 2;
			strescseq.buf = xrealloc(strescseq.buf, strescseq.siz);
		}

		memmove(&strescseq.buf[strescseq.len], c, len);
		strescseq.len += len;
		return;
	}

check_control_code:
	/*
	 * Actions of control codes must be performed as soon they arrive
	 * because they can be embedded inside a control sequence, and
	 * they must not cause conflicts with sequences.
	 */
	if (control) {
		/* in UTF-8 mode ignore handling C1 control characters */
		if (IS_SET(MODE_UTF8) && ISCONTROLC1(u))
			return;
		tcontrolcode(u);
		/*
		 * control codes are not shown ever
		 */
		if (!term.esc)
			term.lastc = 0;
		return;
	} else if (term.esc & ESC_START) {
		if (term.esc & ESC_CSI) {
			csiescseq.buf[csiescseq.len++] = u;
			if (BETWEEN(u, 0x40, 0x7E)
					|| csiescseq.len >= \
					sizeof(csiescseq.buf)-1) {
				term.esc = 0;
				csiparse();
				csihandle();
			}
			return;
		} else if (term.esc & ESC_UTF8) {
			tdefutf8(u);
		} else if (term.esc & ESC_ALTCHARSET) {
			tdeftran(u);
		} else if (term.esc & ESC_TEST) {
			tdectest(u);
		} else {
			if (!eschandle(u))
				return;
			/* sequence already finished */
		}
		term.esc = 0;
		/*
		 * All characters which form part of a sequence are not
		 * printed
		 */
		return;
	}
	if (selected(term.c.x, term.c.y))
		selclear();

	gp = &term.line[term.c.y][term.c.x];
	if (IS_SET(MODE_WRAP) && (term.c.state & CURSOR_WRAPNEXT)) {
		gp->mode |= ATTR_WRAP;
		tnewline(1);
		gp = &term.line[term.c.y][term.c.x];
	}

	if (IS_SET(MODE_INSERT) && term.c.x+width < term.col) {
		memmove(gp+width, gp, (term.col - term.c.x - width) * sizeof(Glyph));
		gp->mode &= ~ATTR_WIDE;
	}

	if (term.c.x+width > term.col) {
		tnewline(1);
		gp = &term.line[term.c.y][term.c.x];
	}

	tsetchar(u, &term.c.attr, term.c.x, term.c.y);
	term.lastc = u;

	if (width == 2) {
		gp->mode |= ATTR_WIDE;
		if (term.c.x+1 < term.col) {
			if (gp[1].mode == ATTR_WIDE && term.c.x+2 < term.col) {
				gp[2].u = ' ';
				gp[2].mode &= ~ATTR_WDUMMY;
			}
			gp[1].u = '\0';
			gp[1].mode = ATTR_WDUMMY;
		}
	}
	if (term.c.x+width < term.col) {
		tmoveto(term.c.x+width, term.c.y);
	} else {
		term.c.state |= CURSOR_WRAPNEXT;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %edi, %ebx
cmpl $0x20, %edi
setb %al
cmpl $0x7f, %edi
sete %cl
orb %al, %cl
movb $0x1, %r15b
jne 0x9a11
movl %ebx, %eax
andl $-0x20, %eax
cmpl $0x80, %eax
sete %r15b
cmpl $0x7f, %ebx
jb 0x9a23
testb $0x40, 0x12907(%rip)    # 0x1c324
jne 0x9c86
movb %bl, 0xc(%rsp)
movl $0x1, %ebp
movl $0x1, %r14d
testb $0x20, 0x128eb(%rip)    # 0x1c324
je 0x9a48
movslq %r14d, %rsi
leaq 0xc(%rsp), %rdi
callq 0x97e1
movl 0x128da(%rip), %eax     # 0x1c328
testb $0x4, %al
je 0x9a75
cmpl $0x1b, %ebx
ja 0x9e0a
movl $0xd000080, %ecx        # imm = 0xD000080
btl %ebx, %ecx
jae 0x9e0a
andl $-0x16, %eax
orl $0x10, %eax
movl %eax, 0x128b3(%rip)     # 0x1c328
testb %r15b, %r15b
je 0x9ad7
movl 0x128a4(%rip), %edi     # 0x1c324
movl %edi, %eax
andl $0x40, %eax
shrl $0x6, %eax
movl %ebx, %ecx
andl $-0x20, %ecx
cmpl $0x80, %ecx
sete %cl
testb %al, %cl
jne 0xa637
movzbl %bl, %eax
cmpl $0x84, %eax
jg 0x9e91
cmpl $0x1b, %eax
ja 0xa006
movl %eax, %eax
leaq 0x66c2(%rip), %rcx      # 0x10180
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
shrl $0x3, %edi
andl $0x1, %edi
callq 0xa9ea
jmp 0xa0c5
movl 0x1284b(%rip), %eax     # 0x1c328
testb $0x1, %al
jne 0x9c9f
movl 0x1281d(%rip), %edi     # 0x1c308
movl 0x1281b(%rip), %esi     # 0x1c30c
callq 0x7578
testl %eax, %eax
je 0x9b28
cmpl $-0x1, 0xe93b(%rip)     # 0x1843c
je 0x9b28
movl $0x0, 0xe913(%rip)      # 0x18420
movl $0xffffffff, 0xe925(%rip) # imm = 0xFFFFFFFF
movl 0xe913(%rip), %edi      # 0x18430
movl 0xe915(%rip), %esi      # 0x18438
callq 0x741b
movq 0xe929(%rip), %rax      # 0x18458
movslq 0x127d6(%rip), %rcx     # 0x1c30c
movslq 0x127cb(%rip), %r14     # 0x1c308
shlq $0x4, %r14
addq (%rax,%rcx,8), %r14
testb $0x1, 0x127d8(%rip)     # 0x1c324
je 0x9b83
testb $0x1, 0x127bb(%rip)     # 0x1c310
je 0x9b83
orb $0x1, 0x5(%r14)
movl $0x1, %edi
callq 0xa9ea
movq 0xe8eb(%rip), %rax      # 0x18458
movslq 0x12798(%rip), %rcx     # 0x1c30c
movslq 0x1278d(%rip), %r14     # 0x1c308
shlq $0x4, %r14
addq (%rax,%rcx,8), %r14
testb $0x2, 0x1279a(%rip)     # 0x1c324
je 0x9bbc
movl 0x12776(%rip), %ecx     # 0x1c308
addl %ebp, %ecx
movl 0xe8ba(%rip), %eax      # 0x18454
subl %ecx, %eax
jle 0x9bbc
movslq %ebp, %rdi
shlq $0x4, %rdi
addq %r14, %rdi
movslq %eax, %rdx
shlq $0x4, %rdx
movq %r14, %rsi
callq 0x6630
andb $-0x3, 0x5(%r14)
movl 0x12746(%rip), %eax     # 0x1c308
addl %ebp, %eax
cmpl 0xe88a(%rip), %eax      # 0x18454
jle 0x9bf3
movl $0x1, %edi
callq 0xa9ea
movq 0xe87b(%rip), %rax      # 0x18458
movslq 0x12728(%rip), %rcx     # 0x1c30c
movslq 0x1271d(%rip), %r14     # 0x1c308
shlq $0x4, %r14
addq (%rax,%rcx,8), %r14
movl 0x1270f(%rip), %esi     # 0x1c308
movl 0x1270d(%rip), %edx     # 0x1c30c
movl %ebx, %edi
callq 0xaa2f
movl %ebx, 0x12734(%rip)     # 0x1c340
cmpl $0x2, %ebp
jne 0x9c5d
orb $0x2, 0x5(%r14)
movl 0x126ec(%rip), %eax     # 0x1c308
leal 0x1(%rax), %edx
movl 0xe82f(%rip), %ecx      # 0x18454
cmpl %ecx, %edx
jge 0x9c5d
cmpw $0x200, 0x14(%r14)      # imm = 0x200
sete %dl
addl $0x2, %eax
cmpl %ecx, %eax
setl %al
andb %dl, %al
cmpb $0x1, %al
jne 0x9c4e
movl $0x20, 0x20(%r14)
andb $-0x5, 0x25(%r14)
movl $0x0, 0x10(%r14)
movw $0x400, 0x14(%r14)      # imm = 0x400
addl 0x126a5(%rip), %ebp     # 0x1c308
cmpl 0xe7eb(%rip), %ebp      # 0x18454
jge 0x9ce7
movl 0x1269b(%rip), %esi     # 0x1c30c
movl %ebp, %edi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8eb5
leaq 0xc(%rsp), %rsi
movl %ebx, %edi
callq 0x71b4
movq %rax, %r14
testb %r15b, %r15b
je 0x9cd0
jmp 0x9a32
testb $0x2, %al
jne 0x9cf3
testb $0x40, %al
jne 0x9ed2
testb $0x8, %al
jne 0x9f20
testb $0x20, %al
jne 0x9fef
movzbl %bl, %edi
callq 0xa77f
testl %eax, %eax
jne 0x9ff7
jmp 0xa637
movl %ebx, %edi
callq 0x6780
cmpl $-0x1, %eax
movl $0x1, %ebp
cmovnel %eax, %ebp
jmp 0x9a32
orb $0x1, 0x12622(%rip)     # 0x1c310
jmp 0xa637
leaq 0x14716(%rip), %rax     # 0x1e410
movq 0x1490f(%rip), %rcx     # 0x1e610
leaq 0x1(%rcx), %rdx
movq %rdx, 0x14904(%rip)     # 0x1e610
movb %bl, (%rcx,%rax)
addl $-0x40, %ebx
cmpl $0x3f, %ebx
setb %dl
movq 0x148f1(%rip), %rcx     # 0x1e610
cmpq $0x1ff, %rcx            # imm = 0x1FF
setae %sil
orb %dl, %sil
cmpb $0x1, %sil
jne 0xa637
xorl %edx, %edx
movl %edx, 0x125e9(%rip)     # 0x1c328
movl %edx, 0x14917(%rip)     # 0x1e65c
cmpb $0x3f, 0x146c4(%rip)    # 0x1e410
movq %rax, %r14
jne 0x9d5f
movb $0x1, 0x148c0(%rip)     # 0x1e618
leaq 0x146b2(%rip), %r14     # 0x1e411
movb $0x0, (%rcx,%rax)
addq 0x148a6(%rip), %rax     # 0x1e610
cmpq %rax, %r14
jae 0x9f64
movabsq $0x7ffffffffffffffd, %r15 # imm = 0x7FFFFFFFFFFFFFFD
xorl %r12d, %r12d
leaq 0x10(%rsp), %rbx
leaq 0x14684(%rip), %r13     # 0x1e410
movq %r12, 0x10(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
movl $0xa, %edx
callq 0x65d0
movq 0x10(%rsp), %rcx
cmpq %r14, %rcx
cmoveq %r12, %rax
leaq (%r15,%rax), %rsi
addq $0x4, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmpq $0x2, %rsi
jb 0x9dc2
movl %eax, %edx
movslq 0x14893(%rip), %rax     # 0x1e65c
leal 0x1(%rax), %esi
movl %esi, 0x1488a(%rip)     # 0x1e65c
movl %edx, 0x20c(%r13,%rax,4)
cmpb $0x3b, (%rcx)
jne 0x9f67
cmpl $0x10, 0x14872(%rip)    # 0x1e65c
je 0x9f67
incq %rcx
movq 0x14816(%rip), %rax     # 0x1e610
addq %r13, %rax
movq %rcx, %r14
cmpq %rax, %rcx
jb 0x9d8c
jmp 0x9f67
movl %ebx, %ecx
andl $-0x20, %ecx
cmpl $0x80, %ecx
je 0x9a69
movslq %r14d, %rbx
movq 0x1455b(%rip), %rax     # 0x1e380
addq %rbx, %rax
movq 0x14549(%rip), %rsi     # 0x1e378
cmpq %rsi, %rax
jb 0x9e64
movabsq $0x7ffffffffffffffd, %rax # imm = 0x7FFFFFFFFFFFFFFD
cmpq %rax, %rsi
ja 0xa637
addq %rsi, %rsi
movq %rsi, 0x14527(%rip)     # 0x1e378
movq 0x14518(%rip), %rdi     # 0x1e370
callq 0x7160
movq %rax, 0x1450c(%rip)     # 0x1e370
movq 0x14515(%rip), %r14     # 0x1e380
movq 0x144fe(%rip), %rdi     # 0x1e370
addq %r14, %rdi
leaq 0xc(%rsp), %rsi
movq %rbx, %rdx
callq 0x6a40
addq %rbx, %r14
movq %r14, 0x144f4(%rip)     # 0x1e380
jmp 0xa637
cmpl $0x99, %eax
jle 0x9ef3
leal -0x9d(%rax), %ecx
cmpl $0x3, %ecx
jb 0x9f14
cmpl $0x9a, %eax
jne 0xa05d
leaq 0xd6e3(%rip), %rax      # 0x17598
movq (%rax), %rbx
movq %rbx, %rdi
callq 0x6410
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x8045
jmp 0xa05d
cmpb $0x40, %bl
je 0x9fd1
movzbl %bl, %eax
cmpl $0x47, %eax
jne 0x9ff7
orb $0x40, 0x12436(%rip)    # 0x1c324
jmp 0x9ff7
cmpl $0x85, %eax
je 0xa011
cmpl $0x88, %eax
je 0xa01d
cmpl $0x90, %eax
jne 0xa05d
movl %eax, %edi
callq 0xaf56
jmp 0xa0c5
movsbl %bl, %ebx
leaq 0xd65a(%rip), %r14      # 0x17584
movq %r14, %rdi
movl %ebx, %esi
callq 0x6640
testq %rax, %rax
je 0xa14c
subq %r14, %rax
leaq 0x6c65(%rip), %rcx      # 0x10bac
movb (%rcx,%rax,4), %al
movslq 0x123e3(%rip), %rcx     # 0x1c334
leaq 0xe4f8(%rip), %rdx      # 0x18450
movb %al, 0x3edc(%rcx,%rdx)
jmp 0x9ff7
movq %r14, %rcx
movzbl (%rcx), %eax
incq %rcx
movb %al, 0x146ed(%rip)      # 0x1e660
leaq 0x14496(%rip), %rdx     # 0x1e410
addq 0x1468f(%rip), %rdx     # 0x1e610
cmpq %rdx, %rcx
jae 0x9f8a
movb (%rcx), %cl
jmp 0x9f8c
xorl %ecx, %ecx
movb %cl, 0x146cf(%rip)      # 0x1e661
addl $-0x20, %eax
cmpl $0x55, %eax
ja 0xa6df
leaq 0x606b(%rip), %rdx      # 0x10010
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
movl 0x14668(%rip), %esi     # 0x1e61c
cmpl $0x1, %esi
adcl $0x0, %esi
movl %esi, 0x1465c(%rip)     # 0x1e61c
movl 0x12342(%rip), %edi     # 0x1c308
addl 0x12340(%rip), %esi     # 0x1c30c
jmp 0xa632
andb $-0x41, 0x1234c(%rip)   # 0x1c324
jmp 0x9ff7
movzbl %bl, %eax
movl $0xf, %ecx
subl %eax, %ecx
movl %ecx, 0x12346(%rip)     # 0x1c330
jmp 0xa0c5
movsbl %bl, %edi
callq 0xa737
movl $0x0, 0x12327(%rip)     # 0x1c328
jmp 0xa637
cmpl $0x7f, %eax
je 0xa0c5
jmp 0xa05d
movl $0x1, %edi
callq 0xa9ea
jmp 0xa05d
movq 0x12314(%rip), %rax     # 0x1c338
movslq 0x122dd(%rip), %rcx     # 0x1c308
movl $0x1, (%rax,%rcx,4)
jmp 0xa05d
movl 0x122ce(%rip), %esi     # 0x1c308
movl 0x122cc(%rip), %edx     # 0x1c30c
movl $0x3f, %edi
callq 0xaa2f
leaq 0x143bf(%rip), %rdi     # 0x1e410
movl $0x258, %edx            # imm = 0x258
xorl %esi, %esi
callq 0x60b0
andb $-0x15, 0x122c4(%rip)   # 0x1c328
jmp 0xa0c5
leaq 0x143a3(%rip), %rdi     # 0x1e410
movl $0x258, %edx            # imm = 0x258
xorl %esi, %esi
callq 0x60b0
movl 0x122a9(%rip), %eax     # 0x1c328
andl $-0x2c, %eax
incl %eax
movl %eax, 0x1229e(%rip)     # 0x1c328
jmp 0xa0c5
movl $0x1, %edi
callq 0xab01
jmp 0xa0c5
movl 0x1226e(%rip), %esi     # 0x1c30c
xorl %edi, %edi
jmp 0xa0c0
testb $0x10, 0x1227f(%rip)    # 0x1c328
jne 0xa0e1
callq 0xd272
jmp 0xa05d
movl 0x12250(%rip), %edi     # 0x1c308
decl %edi
movl 0x1224c(%rip), %esi     # 0x1c30c
callq 0x8eb5
cmpl $0x0, 0x1225c(%rip)     # 0x1c328
jne 0xa637
movl $0x0, 0x12264(%rip)     # 0x1c340
jmp 0xa637
callq 0xab92
jmp 0xa05d
movl 0x1452b(%rip), %eax     # 0x1e61c
cmpl $0x1, %eax
adcl $0x0, %eax
movl %eax, 0x1451f(%rip)     # 0x1e61c
movl 0x1451d(%rip), %edi     # 0x1e620
cmpl $0x1, %edi
adcl $0x0, %edi
movl %edi, 0x14511(%rip)     # 0x1e620
decl %edi
jmp 0xa495
movl 0x14500(%rip), %edi     # 0x1e61c
cmpl $0x1, %edi
adcl $0x0, %edi
movl %edi, 0x144f4(%rip)     # 0x1e61c
addl 0x121da(%rip), %edi     # 0x1c308
jmp 0xa330
movl 0x144e3(%rip), %edi     # 0x1e61c
cmpl $0x1, %edi
adcl $0x0, %edi
movl %edi, 0x144d7(%rip)     # 0x1e61c
decl %edi
jmp 0xa330
movq 0xce9d(%rip), %rax      # 0x16ff0
movq (%rax), %rdi
leaq 0x696e(%rip), %rsi      # 0x10acb
movl %ebx, %edx
xorl %eax, %eax
callq 0x69e0
jmp 0x9ff7
movl 0x121b3(%rip), %eax     # 0x1c324
shrl $0x2, %eax
andl $0x1, %eax
leaq (%rax,%rax,8), %rcx
leaq (%rcx,%rcx,2), %rcx
addq %rax, %rcx
leaq 0x144e7(%rip), %rax     # 0x1e670
movups 0x12174(%rip), %xmm0    # 0x1c304
movups %xmm0, 0xc(%rax,%rcx)
movups 0x1215c(%rip), %xmm0    # 0x1c2f8
movups %xmm0, (%rax,%rcx)
jmp 0xa637
movl 0x14471(%rip), %eax     # 0x1e61c
cmpq $0x5, %rax
ja 0xa637
leaq 0x5fac(%rip), %rcx      # 0x10168
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x0, 0xe284(%rip)      # 0x18450
jle 0xa637
xorl %ebx, %ebx
movl %ebx, %edi
callq 0x983d
incl %ebx
cmpl 0xe26d(%rip), %ebx      # 0x18450
jl 0xa1d4
jmp 0xa637
movl 0x12134(%rip), %eax     # 0x1c324
shrl $0x2, %eax
andl $0x1, %eax
leaq (%rax,%rax,8), %rcx
leaq (%rcx,%rcx,2), %rcx
addq %rax, %rcx
leaq 0x14468(%rip), %rax     # 0x1e670
movups (%rax,%rcx), %xmm0
movups 0xc(%rax,%rcx), %xmm1
movups %xmm0, 0x120e0(%rip)    # 0x1c2f8
movups %xmm1, 0x120e5(%rip)    # 0x1c304
movl 0x10(%rax,%rcx), %edi
movl 0x14(%rax,%rcx), %esi
jmp 0xa632
movl 0x143ea(%rip), %eax     # 0x1e61c
cmpl $0x2, %eax
je 0xa69d
cmpl $0x1, %eax
je 0xa6b3
testl %eax, %eax
jne 0xa6df
movl 0x120b6(%rip), %edi     # 0x1c308
movl 0x120b4(%rip), %ecx     # 0x1c30c
movl 0xe1f6(%rip), %edx      # 0x18454
decl %edx
movl %ecx, %esi
callq 0x8f20
movl 0x1209f(%rip), %esi     # 0x1c30c
movl 0xe1dd(%rip), %ecx      # 0x18450
decl %ecx
cmpl %ecx, %esi
jge 0xa637
incl %esi
movl 0xe1cf(%rip), %edx      # 0x18454
decl %edx
xorl %edi, %edi
jmp 0xa6fb
movsbl 0x14383(%rip), %edi     # 0x1e618
movl 0x143c1(%rip), %edx     # 0x1e65c
movl $0x1, %esi
jmp 0xa454
movl 0x143b1(%rip), %edi     # 0x1e65c
callq 0xb90c
jmp 0xa637
movl 0x14361(%rip), %edi     # 0x1e61c
cmpl $0x1, %edi
adcl $0x0, %edi
movl %edi, 0x14355(%rip)     # 0x1e61c
callq 0xb4e1
jmp 0xa637
movl 0x14345(%rip), %edi     # 0x1e61c
cmpl $0x1, %edi
adcl $0x0, %edi
movl %edi, 0x14339(%rip)     # 0x1e61c
callq 0xb874
jmp 0xa637
movl 0x14329(%rip), %eax     # 0x1e61c
cmpl $0x6, %eax
je 0xa646
cmpl $0x5, %eax
jne 0xa6df
leaq 0x66ac(%rip), %rdi      # 0x109b8
movl $0x4, %esi
jmp 0xa679
movl 0x14300(%rip), %eax     # 0x1e61c
cmpl $0x1, %eax
adcl $0x0, %eax
movl %eax, 0x142f4(%rip)     # 0x1e61c
movl 0x11fda(%rip), %edi     # 0x1c308
subl %eax, %edi
movl 0x11fd6(%rip), %esi     # 0x1c30c
jmp 0xa632
cmpb $0x71, %cl
jne 0xa6df
movl 0x142d2(%rip), %edi     # 0x1e61c
callq 0xd25f
testl %eax, %eax
je 0xa637
jmp 0xa6df
movl 0x142ba(%rip), %edi     # 0x1e61c
cmpl $0x1, %edi
adcl $0x0, %edi
movl %edi, 0x142ae(%rip)     # 0x1e61c
callq 0xb235
jmp 0xa637
movl 0x1429e(%rip), %eax     # 0x1e61c
cmpl $0x1, %eax
adcl $0x0, %eax
movl %eax, 0x14292(%rip)     # 0x1e61c
movl 0x11f78(%rip), %edi     # 0x1c308
movl 0x11f76(%rip), %esi     # 0x1c30c
subl %eax, %esi
jmp 0xa632
movl 0x14279(%rip), %esi     # 0x1e61c
cmpl $0x1, %esi
adcl $0x0, %esi
movl %esi, 0x1426d(%rip)     # 0x1e61c
movl 0x11f67(%rip), %edi     # 0x1c31c
xorl %edx, %edx
callq 0xb3c1
jmp 0xa637
movl 0x14255(%rip), %esi     # 0x1e61c
cmpl $0x1, %esi
adcl $0x0, %esi
movl %esi, 0x14249(%rip)     # 0x1e61c
movl 0x11f43(%rip), %edi     # 0x1c31c
xorl %edx, %edx
callq 0xb2b7
jmp 0xa637
movl 0x14231(%rip), %edi     # 0x1e61c
cmpl $0x1, %edi
adcl $0x0, %edi
movl %edi, 0x14225(%rip)     # 0x1e61c
negl %edi
jmp 0xa4c2
movl 0x14218(%rip), %esi     # 0x1e61c
cmpl $0x1, %esi
adcl $0x0, %esi
movl %esi, 0x1420c(%rip)     # 0x1e61c
addl 0x11ef6(%rip), %esi     # 0x1c30c
jmp 0xa630
cmpl $0x0, 0x141fa(%rip)     # 0x1e61c
jne 0xa637
leaq 0xd169(%rip), %rax      # 0x17598
movq (%rax), %rbx
movq %rbx, %rdi
callq 0x6410
movq %rbx, %rdi
movq %rax, %rsi
jmp 0xa679
movsbl 0x141cc(%rip), %edi     # 0x1e618
movl 0x1420a(%rip), %edx     # 0x1e65c
xorl %esi, %esi
callq 0xb501
jmp 0xa637
movl 0x141b8(%rip), %eax     # 0x1e61c
cmpl $0x1, %eax
adcl $0x0, %eax
movl %eax, 0x141ac(%rip)     # 0x1e61c
movl 0x11e96(%rip), %esi     # 0x1c30c
subl %eax, %esi
jmp 0xa630
movl 0x14199(%rip), %eax     # 0x1e61c
cmpl $0x1, %eax
adcl $0x0, %eax
movl %eax, 0x1418d(%rip)     # 0x1e61c
movl 0x11e73(%rip), %edi     # 0x1c308
xorl %ecx, %ecx
testb $0x2, 0x11e72(%rip)     # 0x1c310
je 0xa4a6
movl 0x11e76(%rip), %ecx     # 0x1c31c
leal (%rax,%rcx), %esi
decl %esi
jmp 0xa632
movl 0x14166(%rip), %edi     # 0x1e61c
cmpl $0x1, %edi
adcl $0x0, %edi
movl %edi, 0x1415a(%rip)     # 0x1e61c
callq 0xab01
jmp 0xa637
movl 0x1414a(%rip), %eax     # 0x1e61c
cmpl $0x2, %eax
je 0xa6e9
cmpl $0x1, %eax
je 0xa6d1
testl %eax, %eax
jne 0xa637
movl 0x11e16(%rip), %edi     # 0x1c308
movl 0x11e14(%rip), %ecx     # 0x1c30c
movl 0xdf56(%rip), %edx      # 0x18454
decl %edx
jmp 0xa6f9
movl 0x14111(%rip), %eax     # 0x1e61c
cmpl $0x3, %eax
je 0xa682
testl %eax, %eax
jne 0xa6df
movq 0x11e15(%rip), %rax     # 0x1c338
movslq 0x11dde(%rip), %rcx     # 0x1c308
movl $0x0, (%rax,%rcx,4)
jmp 0xa637
movl 0x140e0(%rip), %edi     # 0x1e61c
cmpl $0x1, %edi
adcl $0x0, %edi
movl %edi, 0x140d4(%rip)     # 0x1e61c
callq 0xb894
jmp 0xa637
movl 0x140c4(%rip), %eax     # 0x1e61c
cmpl $0x1, %eax
adcl $0x0, %eax
movl %eax, 0x140b8(%rip)     # 0x1e61c
movl 0x11d9e(%rip), %edi     # 0x1c308
movl 0x11d9c(%rip), %ecx     # 0x1c30c
leal (%rax,%rdi), %edx
decl %edx
jmp 0xa6f9
movl 0x1409c(%rip), %eax     # 0x1e61c
cmpl $0x1, %eax
adcl $0x0, %eax
movl %eax, 0x14090(%rip)     # 0x1e61c
cmpl $0x0, 0x11dad(%rip)     # 0x1c340
je 0xa637
movl 0x1407d(%rip), %eax     # 0x1e61c
leal -0x1(%rax), %ecx
movl %ecx, 0x14074(%rip)     # 0x1e61c
testl %eax, %eax
jle 0xa637
movl 0x11d8a(%rip), %edi     # 0x1c340
callq 0x99e0
jmp 0xa599
cmpb $0x0, 0x14054(%rip)     # 0x1e618
jne 0xa6df
movl 0x1404c(%rip), %ecx     # 0x1e61c
xorl %eax, %eax
cmpl $0x1, %ecx
adcl %eax, %ecx
movl %ecx, 0x1403f(%rip)     # 0x1e61c
movl 0x1403d(%rip), %edx     # 0x1e620
testl %edx, %edx
movl 0xde65(%rip), %esi      # 0x18450
cmovel %esi, %edx
leal -0x1(%rcx), %edi
decl %esi
cmpl %edi, %esi
cmovll %esi, %edi
testl %ecx, %ecx
cmovlel %eax, %edi
leal -0x1(%rdx), %ecx
cmpl %ecx, %esi
cmovgel %ecx, %esi
movl %edx, 0x14015(%rip)     # 0x1e620
testl %edx, %edx
cmovlel %eax, %esi
cmpl %esi, %edi
movl %esi, %ecx
cmovgl %edi, %ecx
cmovll %edi, %esi
movl %esi, 0x11cfc(%rip)     # 0x1c31c
movl %ecx, 0x11cfa(%rip)     # 0x1c320
testb $0x2, 0x11ce3(%rip)     # 0x1c310
cmovel %eax, %esi
xorl %edi, %edi
callq 0x8eb5
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x11cc0(%rip), %ecx     # 0x1c30c
incl %ecx
movl 0x11cb3(%rip), %r8d     # 0x1c308
incl %r8d
leaq 0x635e(%rip), %rdx      # 0x109bd
leaq 0x10(%rsp), %rbx
movl $0x28, %esi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x60c0
movslq %eax, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x8045
jmp 0xa637
movq 0x11caf(%rip), %rdi     # 0x1c338
movslq 0xddc4(%rip), %rdx      # 0x18454
shlq $0x2, %rdx
xorl %esi, %esi
callq 0x60b0
jmp 0xa637
movl 0xddb1(%rip), %edx      # 0x18454
decl %edx
movl 0xdda5(%rip), %ecx      # 0x18450
decl %ecx
xorl %edi, %edi
xorl %esi, %esi
jmp 0xa6fb
movl 0x11c53(%rip), %ecx     # 0x1c30c
cmpl $0x2, %ecx
jl 0xa6d1
movl 0xdd90(%rip), %edx      # 0x18454
decl %edx
decl %ecx
xorl %edi, %edi
xorl %esi, %esi
callq 0x8f20
movl 0x11c35(%rip), %ecx     # 0x1c30c
movl 0x11c2b(%rip), %edx     # 0x1c308
jmp 0xa6f7
callq 0x6cb7
jmp 0xa637
movl 0x11c1d(%rip), %ecx     # 0x1c30c
movl 0xdd5f(%rip), %edx      # 0x18454
decl %edx
xorl %edi, %edi
movl %ecx, %esi
callq 0x8f20
jmp 0xa637
callq 0x8e89
jmp 0xa637
movl 0x11bf7(%rip), %edi     # 0x1c30c
callq 0x983d
jmp 0xa637
andb $-0x21, 0x11bfe(%rip)   # 0x1c324
jmp 0xa637
orb $0x20, 0x11bf2(%rip)    # 0x1c324
jmp 0xa637