LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/st.c
// Function: cleanup
void
cleanup()
{
	int i;
	close(cmdfd);
	for (i = 0; i < ncleanfunc; i++)
		cleanfuncs[i]();
	free(cleanfuncs);
}

// Assembly:
pushq %rbx
movl 0x12bab(%rip), %edi     # 0x1c354
callq 0x60f0
cmpl $0x0, 0x12b9b(%rip)     # 0x1c350
jle 0x97d4
xorl %ebx, %ebx
movq 0x12b88(%rip), %rcx     # 0x1c348
xorl %eax, %eax
callq *(%rcx,%rbx,8)
incq %rbx
movslq 0x12b81(%rip), %rax     # 0x1c350
cmpq %rax, %rbx
jl 0x97b9
movq 0x12b6d(%rip), %rdi     # 0x1c348
popq %rbx
jmp 0x63d0
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/st.c
// Function: tprinter
void
tprinter(char *s, size_t len)
{
	if (iofd != -1 && xwrite(iofd, s, len) < 0) {
		perror("Error writing to output file");
		close(iofd);
		iofd = -1;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl 0xdd92(%rip), %ebp      # 0x17580
cmpl $-0x1, %ebp
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x982b
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %r15
movl %ebp, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x69f0
testq %rax, %rax
js 0x9823
addq %rax, %r14
subq %rax, %r15
jne 0x9807
jmp 0x9826
movq %rax, %rbx
testq %rbx, %rbx
js 0x9836
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x6c93
jmp 0x982b
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/st.c
// Function: tdumpline
void
tdumpline(int n)
{
	char buf[UTF_SIZ];
	const Glyph *bp, *end;

	bp = &term.line[n][0];
	end = &bp[MIN(tlinelen(n), term.col) - 1];
	if (bp != end || bp->u != ' ') {
		for ( ; bp <= end; ++bp)
			tprinter(buf, utf8encode(bp->u, buf));
	}
	tprinter("\n", 1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq 0xec0b(%rip), %rax      # 0x18458
movslq %edi, %rdi
movq (%rax,%rdi,8), %r14
callq 0x785d
movl 0xebf5(%rip), %ecx      # 0x18454
cmpl %ecx, %eax
cmovll %eax, %ecx
movslq %ecx, %rax
shlq $0x4, %rax
leaq (%r14,%rax), %r15
addq $-0x10, %r15
cmpq %r15, %r14
je 0x987c
jbe 0x9882
jmp 0x98a6
cmpl $0x20, (%r14)
je 0x98a6
leaq 0xc(%rsp), %rbx
movl (%r14), %edi
movq %rbx, %rsi
callq 0x71b4
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97e1
addq $0x10, %r14
cmpq %r15, %r14
jbe 0x9887
leaq 0x6daa(%rip), %rdi      # 0x10657
movl $0x1, %esi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x97e1
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/st.c
// Function: utf8decode
size_t
utf8decode(const char *c, Rune *u, size_t clen)
{
	size_t i, j, len, type;
	Rune udecoded;

	*u = UTF_INVALID;
	if (!clen)
		return 0;
	udecoded = utf8decodebyte(c[0], &len);
	if (!BETWEEN(len, 1, UTF_SIZ))
		return 1;
	for (i = 1, j = 1; i < clen && j < len; ++i, ++j) {
		udecoded = (udecoded << 6) | utf8decodebyte(c[i], &type);
		if (type != 0)
			return j;
	}
	if (j < len)
		return 0;
	*u = udecoded;
	utf8validate(u, len);

	return len;
}

// Assembly:
movl $0xfffd, (%rsi)         # imm = 0xFFFD
testq %rdx, %rdx
je 0x990c
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
movzbl (%rdi), %eax
xorl %ecx, %ecx
leaq 0x6b7c(%rip), %r9       # 0x10459
leaq 0x6b70(%rip), %r10      # 0x10454
movzbl (%rcx,%r9), %r8d
movl %r8d, %r11d
andl %eax, %r11d
movzbl (%rcx,%r10), %ebx
cmpl %ebx, %r11d
je 0x990f
incq %rcx
cmpq $0x5, %rcx
jne 0x98e4
xorl %r8d, %r8d
movl $0x5, %ecx
jmp 0x9915
xorl %eax, %eax
retq
notl %r8d
andl %eax, %r8d
leaq -0x1(%rcx), %r11
movl $0x1, %eax
cmpq $0x3, %r11
ja 0x99d9
cmpq $0x1, %rdx
sete %al
cmpq $0x2, %rcx
setae %r11b
setb %bl
orb %al, %bl
jne 0x9999
movl $0x1, %eax
movzbl (%rdi,%rax), %ebx
xorl %r14d, %r14d
movzbl (%r14,%r9), %r11d
movl %r11d, %ebp
andl %ebx, %ebp
movzbl (%r14,%r10), %r15d
cmpl %r15d, %ebp
je 0x996e
incq %r14
cmpq $0x5, %r14
jne 0x994a
xorl %ebx, %ebx
xorl %r11d, %r11d
jmp 0x997a
notl %r11d
andl %ebx, %r11d
testq %r14, %r14
sete %bl
testb %bl, %bl
je 0x99d9
shll $0x6, %r8d
orl %r11d, %r8d
incq %rax
cmpq %rcx, %rax
setb %r11b
cmpq %rdx, %rax
jae 0x9999
cmpq %rcx, %rax
jb 0x9943
testb %r11b, %r11b
je 0x99a2
xorl %eax, %eax
jmp 0x99d9
movl %r8d, (%rsi)
leaq 0x6ab4(%rip), %rax      # 0x10460
cmpl %r8d, (%rax,%rcx,4)
jbe 0x99ba
movl $0xfffd, (%rsi)         # imm = 0xFFFD
jmp 0x99d6
movl %r8d, %eax
andl $0xfffff800, %eax       # imm = 0xFFFFF800
cmpl $0xd800, %eax           # imm = 0xD800
je 0x99b2
leaq 0x6ab0(%rip), %rax      # 0x10480
cmpl (%rax,%rcx,4), %r8d
ja 0x99b2
movq %rcx, %rax
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/st.c
// Function: tdectest
void
tdectest(char c)
{
	int x, y;

	if (c == '8') { /* DEC screen alignment test. */
		for (x = 0; x < term.col; ++x) {
			for (y = 0; y < term.row; ++y)
				tsetchar('E', &term.c.attr, x, y);
		}
	}
}

// Assembly:
cmpb $0x38, %dil
jne 0xa77e
cmpl $0x0, 0xdd10(%rip)      # 0x18454
jle 0xa77e
pushq %rbp
pushq %rbx
pushq %rax
xorl %ebx, %ebx
cmpl $0x0, 0xdcfe(%rip)      # 0x18450
jle 0xa76e
xorl %ebp, %ebp
movl $0x45, %edi
movl %ebx, %esi
movl %ebp, %edx
callq 0xaa2f
incl %ebp
cmpl 0xdce4(%rip), %ebp      # 0x18450
jl 0xa756
incl %ebx
cmpl 0xdcde(%rip), %ebx      # 0x18454
jl 0xa74b
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/st.c
// Function: tnewline
void
tnewline(int first_col)
{
	int y = term.c.y;

	if (y == term.bot) {
		tscrollup(term.top, 1, 1);
	} else {
		y++;
	}
	tmoveto(first_col ? 0 : term.c.x, y);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %edi, %ebp
movl 0x11917(%rip), %ebx     # 0x1c30c
cmpl 0x11925(%rip), %ebx     # 0x1c320
jne 0xaa14
movl 0x11919(%rip), %edi     # 0x1c31c
movl $0x1, %esi
movl $0x1, %edx
callq 0xb2b7
jmp 0xaa16
incl %ebx
xorl %edi, %edi
testl %ebp, %ebp
jne 0xaa22
movl 0x118e6(%rip), %edi     # 0x1c308
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x8eb5
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/st.c
// Function: tsetchar
void
tsetchar(Rune u, const Glyph *attr, int x, int y)
{
	static const char *vt100_0[62] = { /* 0x41 - 0x7e */
		"↑", "↓", "→", "←", "█", "▚", "☃", /* A - G */
		0, 0, 0, 0, 0, 0, 0, 0, /* H - O */
		0, 0, 0, 0, 0, 0, 0, 0, /* P - W */
		0, 0, 0, 0, 0, 0, 0, " ", /* X - _ */
		"◆", "▒", "␉", "␌", "␍", "␊", "°", "±", /* ` - g */
		"␤", "␋", "┘", "┐", "┌", "└", "┼", "⎺", /* h - o */
		"⎻", "─", "⎼", "⎽", "├", "┤", "┴", "┬", /* p - w */
		"│", "≤", "≥", "π", "≠", "£", "·", /* x - ~ */
	};

	/*
	 * The table is proudly stolen from rxvt.
	 */
	if (term.trantbl[term.charset] == CS_GRAPHIC0 &&
	   BETWEEN(u, 0x41, 0x7e) && vt100_0[u - 0x41])
		utf8decode(vt100_0[u - 0x41], &u, UTF_SIZ);

	if (term.line[y][x].mode & ATTR_WIDE) {
		if (x+1 < term.col) {
			term.line[y][x+1].u = ' ';
			term.line[y][x+1].mode &= ~ATTR_WDUMMY;
		}
	} else if (term.line[y][x].mode & ATTR_WDUMMY) {
		term.line[y][x-1].u = ' ';
		term.line[y][x-1].mode &= ~ATTR_WIDE;
	}

	term.dirty[y] = 1;
	term.line[y][x] = *attr;
	term.line[y][x].u = u;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %edx, %ebp
movl %esi, %ebx
movl %edi, 0x4(%rsp)
addl $-0x41, %edi
cmpl $0x3d, %edi
ja 0xaa80
leaq 0xda07(%rip), %rax      # 0x18450
movslq 0x118e0(%rip), %rcx     # 0x1c330
cmpb $0x0, 0x3edc(%rcx,%rax)
jne 0xaa80
movl %edi, %eax
leaq -0x7(%rax), %rcx
cmpq $0x17, %rcx
jb 0xaa80
leaq 0xa5e3(%rip), %rcx      # 0x15050
movq (%rcx,%rax,8), %rdi
leaq 0x4(%rsp), %rsi
movl $0x4, %edx
callq 0x98c0
movq 0xd9d1(%rip), %rcx      # 0x18458
movslq %ebp, %rax
movq (%rcx,%rax,8), %rdx
movslq %ebx, %rcx
shlq $0x4, %rcx
movzwl 0x4(%rdx,%rcx), %esi
btl $0x9, %esi
jb 0xaaae
btl $0xa, %esi
jae 0xaacf
decl %ebx
movw $0xfdff, %si            # imm = 0xFDFF
jmp 0xaabc
incl %ebx
movw $0xfbff, %si            # imm = 0xFBFF
cmpl 0xd99a(%rip), %ebx      # 0x18454
jge 0xaacf
movslq %ebx, %rdi
shlq $0x4, %rdi
movl $0x20, (%rdx,%rdi)
andw %si, 0x4(%rdx,%rdi)
movq 0x1181a(%rip), %rsi     # 0x1c2f0
movl $0x1, (%rsi,%rax,4)
movups 0x11814(%rip), %xmm0    # 0x1c2f8
movups %xmm0, (%rdx,%rcx)
movl 0x4(%rsp), %edx
movq 0xd965(%rip), %rsi      # 0x18458
movq (%rsi,%rax,8), %rax
movl %edx, (%rax,%rcx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/st.c
// Function: tputtab
void
tputtab(int n)
{
	uint x = term.c.x;

	if (n > 0) {
		while (x < term.col && n--)
			for (++x; x < term.col && !term.tabs[x]; ++x)
				/* nothing */ ;
	} else if (n < 0) {
		while (x > 0 && n++)
			for (--x; x > 0 && !term.tabs[x]; --x)
				/* nothing */ ;
	}
	term.c.x = LIMIT(x, 0, term.col-1);
}

// Assembly:
movl 0x11801(%rip), %eax     # 0x1c308
testl %edi, %edi
jle 0xab44
movl 0xd943(%rip), %ecx      # 0x18454
cmpl %ecx, %eax
jae 0xab7e
movq 0x1181c(%rip), %rdx     # 0x1c338
subl $0x1, %edi
jb 0xab7e
leal 0x1(%rax), %esi
cmpl %esi, %ecx
cmoval %ecx, %esi
leal -0x1(%rsi), %r8d
cmpl %eax, %r8d
je 0xab3c
incl %eax
cmpl $0x0, (%rdx,%rax,4)
je 0xab2d
jmp 0xab3e
movl %esi, %eax
cmpl %ecx, %eax
jb 0xab1c
jmp 0xab7e
setne %cl
testl %eax, %eax
setne %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0xab7e
movq 0x117de(%rip), %rcx     # 0x1c338
incl %edi
decl %eax
movl %eax, %edx
subl $0x1, %edx
jb 0xab7c
movl %eax, %eax
cmpl $0x0, (%rcx,%rax,4)
movl %edx, %eax
je 0xab60
leal 0x1(%rdx), %eax
testl %edi, %edi
jne 0xab5a
incl %edx
movl %edx, %eax
jmp 0xab7e
xorl %eax, %eax
movl 0xd8d0(%rip), %ecx      # 0x18454
decl %ecx
cmpl %ecx, %eax
cmovbl %eax, %ecx
movl %ecx, 0x11777(%rip)     # 0x1c308
retq
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/st.c
// Function: tstrsequence
void
tstrsequence(uchar c)
{
	switch (c) {
	case 0x90:   /* DCS -- Device Control String */
		c = 'P';
		break;
	case 0x9f:   /* APC -- Application Program Command */
		c = '_';
		break;
	case 0x9e:   /* PM -- Privacy Message */
		c = '^';
		break;
	case 0x9d:   /* OSC -- Operating System Command */
		c = ']';
		break;
	}
	strreset();
	strescseq.type = c;
	term.esc |= ESC_STR;
}

// Assembly:
pushq %rbx
movl %edi, %ebx
cmpl $0x9d, %edi
jg 0xaf75
cmpl $0x90, %ebx
je 0xaf89
cmpl $0x9d, %ebx
jne 0xaf8f
movb $0x5d, %bl
jmp 0xaf8f
cmpl $0x9e, %ebx
je 0xaf8d
cmpl $0x9f, %ebx
jne 0xaf8f
movb $0x5f, %bl
jmp 0xaf8f
movb $0x50, %bl
jmp 0xaf8f
movb $0x5e, %bl
movq 0x133da(%rip), %rdi     # 0x1e370
movl $0x200, %esi            # imm = 0x200
callq 0x7160
movq $0x0, 0x133bd(%rip) # 0x1e368
movq %rax, 0x133be(%rip)     # 0x1e370
movq $0x200, 0x133bb(%rip) # imm = 0x200
leaq 0x133bc(%rip), %rdi     # 0x1e380
movl $0x90, %edx
xorl %esi, %esi
callq 0x60b0
movb %bl, 0x13392(%rip)      # 0x1e368
orb $0x4, 0x1134b(%rip)     # 0x1c328
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/st.c
// Function: base64dec
char *
base64dec(const char *src)
{
	size_t in_len = strlen(src);
	char *result, *dst;
	static const char base64_digits[256] = {
		[43] = 62, 0, 0, 0, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61,
		0, 0, 0, -1, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
		13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0,
		0, 0, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
		40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51
	};

	if (in_len % 4)
		in_len += 4 - (in_len % 4);
	result = dst = xmalloc(in_len / 4 * 3 + 1);
	while (*src) {
		int a = base64_digits[(unsigned char) base64dec_getc(&src)];
		int b = base64_digits[(unsigned char) base64dec_getc(&src)];
		int c = base64_digits[(unsigned char) base64dec_getc(&src)];
		int d = base64_digits[(unsigned char) base64dec_getc(&src)];

		/* invalid input. 'a' can be -1, e.g. if src is "\n" (c-str) */
		if (a == -1 || b == -1)
			break;

		*dst++ = (a << 2) | ((b & 0x30) >> 4);
		if (c == -1)
			break;
		*dst++ = ((b & 0x0f) << 4) | ((c & 0x3c) >> 2);
		if (d == -1)
			break;
		*dst++ = ((c & 0x03) << 6) | d;
	}
	*dst = '\0';
	return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
leaq 0x10(%rsp), %rbx
movq %rdi, (%rbx)
callq 0x6410
addq $0x3, %rax
shrq $0x2, %rax
leaq (%rax,%rax,2), %rdi
incq %rdi
callq 0x709c
leaq 0x548b(%rip), %r12      # 0x104a0
movq %rax, 0x8(%rsp)
movq %rax, %r15
movq 0x10(%rsp), %rax
cmpb $0x0, (%rax)
je 0xb0cf
movq %rbx, %rdi
callq 0xb1cb
movzbl %al, %eax
movb (%rax,%r12), %r14b
movq %rbx, %rdi
callq 0xb1cb
movzbl %al, %eax
movb (%rax,%r12), %r13b
movq %rbx, %rdi
callq 0xb1cb
movzbl %al, %eax
movb (%rax,%r12), %bpl
movq %rbx, %rdi
callq 0xb1cb
cmpb $-0x1, %r14b
sete %cl
cmpb $-0x1, %r13b
sete %dl
orb %cl, %dl
jne 0xb0c5
movzbl %al, %eax
movb (%rax,%r12), %al
shlb $0x2, %r14b
movl %r13d, %ecx
shrb $0x4, %cl
andb $0x3, %cl
orb %r14b, %cl
movb %cl, (%r15)
cmpb $-0x1, %bpl
je 0xb0bc
shlb $0x4, %r13b
movl %ebp, %ecx
shrb $0x2, %cl
andb $0xf, %cl
orb %r13b, %cl
movb %cl, 0x1(%r15)
cmpb $-0x1, %al
je 0xb0c1
shlb $0x6, %bpl
orb %bpl, %al
movb %al, 0x2(%r15)
addq $0x3, %r15
movb $0x1, %al
jmp 0xb0c7
incq %r15
jmp 0xb0c5
addq $0x2, %r15
xorl %eax, %eax
testb %al, %al
jne 0xb01d
movb $0x0, (%r15)
movq 0x8(%rsp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/st.c
// Function: osc_color_response
void
osc_color_response(int num, int index, int is_osc4)
{
	int n;
	char buf[32];
	unsigned char r, g, b;

	if (xgetcolor(is_osc4 ? num : index, &r, &g, &b)) {
		fprintf(stderr, "erresc: failed to fetch %s color %d\n",
		        is_osc4 ? "osc4" : "osc",
		        is_osc4 ? num : index);
		return;
	}

	n = snprintf(buf, sizeof buf, "\033]%s%d;rgb:%02x%02x/%02x%02x/%02x%02x\007",
	             is_osc4 ? "4;" : "", num, r, r, g, g, b, b);
	if (n < 0 || n >= sizeof(buf)) {
		fprintf(stderr, "error: %s while printing %s response\n",
		        n < 0 ? "snprintf failed" : "truncation occurred",
		        is_osc4 ? "osc4" : "osc");
	} else {
		ttywrite(buf, n, 1);
	}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movl %edx, %ebx
movl %esi, %r14d
movl %edi, %ebp
testl %edx, %edx
cmovnel %edi, %r14d
leaq 0xf(%rsp), %rsi
leaq 0xe(%rsp), %rdx
leaq 0xd(%rsp), %rcx
movl %r14d, %edi
callq 0xbe67
testl %eax, %eax
jne 0xb189
testl %ebx, %ebx
leaq 0x658e(%rip), %rax      # 0x116ae
leaq 0x580d(%rip), %rcx      # 0x10934
cmoveq %rax, %rcx
movzbl 0xf(%rsp), %r9d
movzbl 0xe(%rsp), %r10d
movzbl 0xd(%rsp), %r11d
subq $0x8, %rsp
leaq 0x57c5(%rip), %rdx      # 0x1090d
leaq 0x18(%rsp), %rdi
movl $0x20, %esi
movl %ebp, %r8d
xorl %eax, %eax
pushq %r11
pushq %r11
pushq %r10
pushq %r10
pushq %r9
callq 0x60c0
addq $0x30, %rsp
cmpl $0x20, %eax
jae 0xb1ba
movl %eax, %esi
leaq 0x10(%rsp), %rdi
movl $0x1, %edx
callq 0x8045
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
testl %ebx, %ebx
movq 0xbe5e(%rip), %rax      # 0x16ff0
movq (%rax), %rdi
leaq 0x576d(%rip), %rax      # 0x10909
leaq 0x5761(%rip), %rdx      # 0x10904
cmoveq %rax, %rdx
leaq 0x5731(%rip), %rsi      # 0x108df
movl %r14d, %ecx
xorl %eax, %eax
callq 0x69e0
jmp 0xb180
xorl %esi, %esi
testl %ebx, %ebx
sete %sil
movl %eax, %edi
callq 0x6e59
jmp 0xb180
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/st.c
// Function: tinsertblank
void
tinsertblank(int n)
{
	int dst, src, size;
	Glyph *line;

	LIMIT(n, 0, term.col - term.c.x);

	dst = term.c.x + n;
	src = term.c.x;
	size = term.col - dst;
	line = term.line[term.c.y];

	memmove(&line[dst], &line[src], size * sizeof(Glyph));
	tclearregion(src, term.c.y, dst - 1, term.c.y);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testl %edi, %edi
js 0xb254
movl 0xd210(%rip), %r14d     # 0x18454
subl 0x110bd(%rip), %r14d    # 0x1c308
cmpl %edi, %r14d
cmovgel %edi, %r14d
jmp 0xb257
xorl %r14d, %r14d
movslq 0x110aa(%rip), %rbx     # 0x1c308
leal (%rbx,%r14), %eax
movslq 0xd1eb(%rip), %rdx      # 0x18454
movslq %eax, %rdi
subq %rdi, %rdx
movq 0xd1e2(%rip), %rax      # 0x18458
movslq 0x1108f(%rip), %rcx     # 0x1c30c
movq (%rax,%rcx,8), %rax
shlq $0x4, %rdi
addq %rax, %rdi
movq %rbx, %rsi
shlq $0x4, %rsi
addq %rax, %rsi
shlq $0x4, %rdx
callq 0x6630
movl 0x1106b(%rip), %ecx     # 0x1c30c
leal (%rbx,%r14), %edx
decl %edx
movl %ebx, %edi
movl %ecx, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x8f20
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/st.c
// Function: tscrollup
void
tscrollup(int orig, int n, int copyhist)
{
	int i;
	Line temp;

	LIMIT(n, 0, term.bot-orig+1);

	if (copyhist) {
		term.histi = (term.histi + 1) % HISTSIZE;
		temp = term.hist[term.histi];
		term.hist[term.histi] = term.line[orig];
		term.line[orig] = temp;
	}

	tclearregion(0, orig, term.col-1, orig+n-1);
	tsetdirt(orig+n, term.bot);

	for (i = orig; i <= term.bot-n; i++) {
		temp = term.line[i];
		term.line[i] = term.line[i+n];
		term.line[i+n] = temp;
	}

	selscroll(orig, -n);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
testl %esi, %esi
js 0xb2da
movl 0x11055(%rip), %r14d    # 0x1c320
subl %ebx, %r14d
incl %r14d
cmpl %esi, %r14d
cmovgel %esi, %r14d
jmp 0xb2dd
xorl %r14d, %r14d
movslq %ebx, %r15
testl %edx, %edx
je 0xb341
leaq 0xd165(%rip), %rax      # 0x18450
movl 0x10ff7(%rip), %ecx     # 0x1c2e8
movl %ecx, %edx
incl %edx
movslq %edx, %rdx
imulq $0x10624dd3, %rdx, %rdx # imm = 0x10624DD3
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0x27, %rdx
addl %esi, %edx
imull $0x7d0, %edx, %edx      # imm = 0x7D0
negl %edx
addl %edx, %ecx
incl %ecx
movl %ecx, 0x10fca(%rip)     # 0x1c2e8
movslq %ecx, %rcx
movq 0x18(%rax,%rcx,8), %rdx
movq 0xd12b(%rip), %rsi      # 0x18458
movq (%rsi,%r15,8), %rsi
movq %rsi, 0x18(%rax,%rcx,8)
movq 0xd11b(%rip), %rax      # 0x18458
movq %rdx, (%rax,%r15,8)
movl 0xd10d(%rip), %edx      # 0x18454
decl %edx
leal (%r14,%rbx), %ebp
leal (%r14,%rbx), %ecx
decl %ecx
xorl %edi, %edi
movl %ebx, %esi
callq 0x8f20
movl 0x10fbe(%rip), %esi     # 0x1c320
movl %ebp, %edi
callq 0x741b
movl 0x10fb1(%rip), %eax     # 0x1c320
movl %eax, %ecx
subl %r14d, %ecx
cmpl %ebx, %ecx
jl 0xb3aa
movslq %r14d, %rcx
addq %r15, %rcx
notl %eax
addl %ebp, %eax
movq 0xd0cf(%rip), %rdx      # 0x18458
movq (%rdx,%r15,8), %rsi
movq (%rdx,%rcx,8), %rdi
movq %rdi, (%rdx,%r15,8)
movq 0xd0bc(%rip), %rdx      # 0x18458
movq %rsi, (%rdx,%rcx,8)
incq %r15
incq %rcx
incl %eax
jne 0xb382
negl %r14d
movl %ebx, %edi
movl %r14d, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x8a71
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/st.c
// Function: tscrolldown
void
tscrolldown(int orig, int n, int copyhist)
{
	int i;
	Line temp;

	LIMIT(n, 0, term.bot-orig+1);

	if (copyhist) {
		term.histi = (term.histi - 1 + HISTSIZE) % HISTSIZE;
		temp = term.hist[term.histi];
		term.hist[term.histi] = term.line[term.bot];
		term.line[term.bot] = temp;
	}

	tsetdirt(orig, term.bot-n);
	tclearregion(0, term.bot-n+1, term.col-1, term.bot);

	for (i = term.bot; i >= orig+n; i--) {
		temp = term.line[i];
		term.line[i] = term.line[i-n];
		term.line[i-n] = temp;
	}

	selscroll(orig, n);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
testl %esi, %esi
js 0xb3e1
movl 0x10f4e(%rip), %r14d    # 0x1c320
subl %ebx, %r14d
incl %r14d
cmpl %esi, %r14d
cmovgel %esi, %r14d
jmp 0xb3e4
xorl %r14d, %r14d
testl %edx, %edx
je 0xb454
leaq 0xd061(%rip), %rax      # 0x18450
movl 0x10ef3(%rip), %ecx     # 0x1c2e8
movl %ecx, %edx
addl $0x7cf, %edx            # imm = 0x7CF
movslq %edx, %rdx
imulq $0x10624dd3, %rdx, %rdx # imm = 0x10624DD3
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0x27, %rdx
addl %esi, %edx
imull $0x7d0, %edx, %edx      # imm = 0x7D0
negl %edx
addl %edx, %ecx
addl $0x7cf, %ecx            # imm = 0x7CF
movl %ecx, 0x10ebe(%rip)     # 0x1c2e8
movslq %ecx, %rcx
movq 0x18(%rax,%rcx,8), %rdx
movq 0xd01f(%rip), %rsi      # 0x18458
movslq 0x10ee0(%rip), %rdi     # 0x1c320
movq (%rsi,%rdi,8), %rsi
movq %rsi, 0x18(%rax,%rcx,8)
movq 0xd008(%rip), %rax      # 0x18458
movq %rdx, (%rax,%rdi,8)
movl 0x10ec6(%rip), %esi     # 0x1c320
subl %r14d, %esi
movl %ebx, %edi
callq 0x741b
movl 0x10eb6(%rip), %ecx     # 0x1c320
movl %ecx, %esi
subl %r14d, %esi
incl %esi
movl 0xcfdd(%rip), %edx      # 0x18454
decl %edx
xorl %edi, %edi
callq 0x8f20
movslq 0x10e99(%rip), %rax     # 0x1c320
leal (%r14,%rbx), %edx
cmpl %edx, %eax
jl 0xb4d0
movslq %r14d, %rcx
movslq %edx, %rdx
incq %rax
shlq $0x3, %rcx
negq %rcx
movq 0xcfb2(%rip), %rsi      # 0x18458
leaq (%rsi,%rax,8), %rdi
movq -0x8(%rsi,%rax,8), %r8
movq -0x8(%rcx,%rdi), %rdi
movq %rdi, -0x8(%rsi,%rax,8)
movq 0xcf98(%rip), %rsi      # 0x18458
addq %rcx, %rsi
movq %r8, -0x8(%rsi,%rax,8)
decq %rax
cmpq %rdx, %rax
jg 0xb49f
movl %ebx, %edi
movl %r14d, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x8a71
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/st.c
// Function: tdeletechar
void
tdeletechar(int n)
{
	int dst, src, size;
	Glyph *line;

	LIMIT(n, 0, term.col - term.c.x);

	dst = term.c.x;
	src = term.c.x + n;
	size = term.col - src;
	line = term.line[term.c.y];

	memmove(&line[dst], &line[src], size * sizeof(Glyph));
	tclearregion(term.col-n, term.c.y, term.col-1, term.c.y);
}

// Assembly:
testl %edi, %edi
js 0xb8ab
movl 0xcbb6(%rip), %eax      # 0x18454
subl 0x10a64(%rip), %eax     # 0x1c308
cmpl %edi, %eax
cmovgel %edi, %eax
jmp 0xb8ad
xorl %eax, %eax
pushq %rbx
movslq 0x10a53(%rip), %rdi     # 0x1c308
movslq %eax, %rbx
leaq (%rdi,%rbx), %rsi
movslq 0xcb91(%rip), %rdx      # 0x18454
movslq %esi, %rax
subq %rax, %rdx
movq 0xcb88(%rip), %rax      # 0x18458
movslq 0x10a35(%rip), %rcx     # 0x1c30c
movq (%rax,%rcx,8), %rax
shlq $0x4, %rdi
addq %rax, %rdi
shlq $0x4, %rsi
addq %rax, %rsi
shlq $0x4, %rdx
callq 0x6630
movl 0xcb5c(%rip), %edx      # 0x18454
movl %edx, %edi
subl %ebx, %edi
movl 0x10a0a(%rip), %ecx     # 0x1c30c
decl %edx
movl %ecx, %esi
popq %rbx
jmp 0x8f20
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/st.c
// Function: tdefcolor
int32_t
tdefcolor(const int *attr, int *npar, int l)
{
	int32_t idx = -1;
	uint r, g, b;

	switch (attr[*npar + 1]) {
	case 2: /* direct color in RGB space */
		if (*npar + 4 >= l) {
			fprintf(stderr,
				"erresc(38): Incorrect number of parameters (%d)\n",
				*npar);
			break;
		}
		r = attr[*npar + 2];
		g = attr[*npar + 3];
		b = attr[*npar + 4];
		*npar += 4;
		if (!BETWEEN(r, 0, 255) || !BETWEEN(g, 0, 255) || !BETWEEN(b, 0, 255))
			fprintf(stderr, "erresc: bad rgb color (%u,%u,%u)\n",
				r, g, b);
		else
			idx = TRUECOLOR(r, g, b);
		break;
	case 5: /* indexed color */
		if (*npar + 2 >= l) {
			fprintf(stderr,
				"erresc(38): Incorrect number of parameters (%d)\n",
				*npar);
			break;
		}
		*npar += 2;
		if (!BETWEEN(attr[*npar], 0, 255))
			fprintf(stderr, "erresc: bad fgcolor %d\n", attr[*npar]);
		else
			idx = attr[*npar];
		break;
	case 0: /* implemented defined (only foreground) */
	case 1: /* transparent */
	case 3: /* direct color in CMY space */
	case 4: /* direct color in CMYK space */
	default:
		fprintf(stderr,
		        "erresc(38): gfx attr %d unknown\n", attr[*npar]);
		break;
	}

	return idx;
}

// Assembly:
pushq %rax
movslq (%rdi), %rdx
leaq 0x12950(%rip), %r8      # 0x1e410
movl 0x210(%r8,%rdx,4), %eax
cmpl $0x5, %eax
je 0xbb26
leaq (%r8,%rdx,4), %rcx
addq $0x20c, %rcx            # imm = 0x20C
cmpl $0x2, %eax
jne 0xbb6d
leal 0x4(%rdx), %r9d
cmpl %esi, %r9d
jge 0xbb53
movl 0x8(%rcx), %eax
movl 0xc(%rcx), %ecx
movl 0x21c(%r8,%rdx,4), %r8d
movl %r9d, (%rdi)
cmpl $0xff, %eax
ja 0xbb77
cmpl $0xff, %ecx
ja 0xbb77
cmpl $0x100, %r8d            # imm = 0x100
jae 0xbb77
shll $0x10, %eax
shll $0x8, %ecx
orl %eax, %ecx
leal (%r8,%rcx), %eax
addl $0x1000000, %eax        # imm = 0x1000000
jmp 0xbb96
leal 0x2(%rdx), %eax
cmpl %esi, %eax
jge 0xbb53
movl %eax, (%rdi)
movl 0x214(%r8,%rdx,4), %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0xbb96
movq 0xb4ab(%rip), %rcx      # 0x16ff0
movq (%rcx), %rdi
leaq 0x4f43(%rip), %rsi      # 0x10a92
movl %eax, %edx
jmp 0xbb64
movq 0xb496(%rip), %rax      # 0x16ff0
movq (%rax), %rdi
leaq 0x4edb(%rip), %rsi      # 0x10a3f
xorl %eax, %eax
callq 0x69e0
jmp 0xbb91
movq %rcx, %rdi
callq 0x6ec2
jmp 0xbb91
movq 0xb472(%rip), %rdx      # 0x16ff0
movq (%rdx), %rdi
leaq 0x4ee8(%rip), %rsi      # 0x10a70
movl %eax, %edx
xorl %eax, %eax
callq 0x69e0
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/x.c
// Function: clipcopy
void
clipcopy(const Arg *dummy)
{
	Atom clipboard;

	free(xsel.clipboard);
	xsel.clipboard = NULL;

	if (xsel.primary != NULL) {
		xsel.clipboard = xstrdup(xsel.primary);
		clipboard = XInternAtom(xw.dpy, "CLIPBOARD", 0);
		XSetSelectionOwner(xw.dpy, clipboard, xw.win, CurrentTime);
	}
}

// Assembly:
pushq %rax
movq 0x12e06(%rip), %rdi     # 0x1e9a8
callq 0x63d0
movq $0x0, 0x12df6(%rip) # 0x1e9a8
movq 0x12de7(%rip), %rdi     # 0x1e9a0
testq %rdi, %rdi
je 0xbbf8
callq 0x718a
movq %rax, 0x12dde(%rip)     # 0x1e9a8
movq 0x12c2f(%rip), %rdi     # 0x1e800
leaq 0x53c9(%rip), %rsi      # 0x10fa1
xorl %edx, %edx
callq 0x6870
movq 0x12c1a(%rip), %rdi     # 0x1e800
movq 0x12c23(%rip), %rdx     # 0x1e810
movq %rax, %rsi
xorl %ecx, %ecx
popq %rax
jmp 0x6740
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/x.c
// Function: setsel
void
setsel(char *str, Time t)
{
	if (!str)
		return;

	free(xsel.primary);
	xsel.primary = str;

	XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, t);
	if (XGetSelectionOwner(xw.dpy, XA_PRIMARY) != xw.win)
		selclear();
}

// Assembly:
testq %rdi, %rdi
je 0xbc61
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x12d8c(%rip), %rdi     # 0x1e9a0
callq 0x63d0
movq %r14, 0x12d80(%rip)     # 0x1e9a0
movq 0x12bd9(%rip), %rdi     # 0x1e800
movq 0x12be2(%rip), %rdx     # 0x1e810
movl $0x1, %esi
movq %rbx, %rcx
callq 0x6740
movq 0x12bbe(%rip), %rdi     # 0x1e800
movl $0x1, %esi
callq 0x6a50
cmpq 0x12bbd(%rip), %rax     # 0x1e810
leaq 0x8(%rsp), %rsp
popq %rbx
popq %r14
jne 0x72f0
retq
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/x.c
// Function: xloadcols
void
xloadcols(void)
{
	int i;
	static int loaded;
	Color *cp;

	if (loaded) {
		for (cp = dc.col; cp < &dc.col[dc.collen]; ++cp)
			XFreeColors(xw.dpy, xw.cmap, &cp->pixel, 1, 0);
	} else {
		dc.collen = MAX(LEN(colorname), 256);
		dc.col = xmalloc(dc.collen * sizeof(Color));
	}

	for (i = 0; i < dc.collen; i++)
		if (!xloadcolor(i, NULL, &dc.col[i])) {
			if (colorname[i])
				die("could not allocate color '%s'\n", colorname[i]);
			else
				die("could not allocate color %d\n", i);
		}
	loaded = 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
cmpb $0x1, 0x12a4e(%rip)     # 0x1e6c0
jne 0xbcc0
cmpq $0x0, 0x12a54(%rip)     # 0x1e6d0
jle 0xbcdc
movq 0x12a43(%rip), %rbx     # 0x1e6c8
movq 0x12b74(%rip), %rdi     # 0x1e800
movq 0x12b75(%rip), %rsi     # 0x1e808
movq %rbx, %rdx
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0x62a0
addq $0x10, %rbx
movq 0x12a22(%rip), %rax     # 0x1e6d0
shlq $0x4, %rax
addq 0x12a0f(%rip), %rax     # 0x1e6c8
cmpq %rax, %rbx
jb 0xbc85
jmp 0xbcdc
movq $0x104, 0x12a05(%rip) # imm = 0x104
movl $0x1040, %edi           # imm = 0x1040
callq 0x709c
movq %rax, 0x129ec(%rip)     # 0x1e6c8
cmpq $0x0, 0x129ec(%rip)     # 0x1e6d0
je 0xbd4f
leaq 0xb8e3(%rip), %r12      # 0x175d0
leaq 0x5160(%rip), %rbx      # 0x10e54
leaq 0x513a(%rip), %r14      # 0x10e35
xorl %r13d, %r13d
xorl %r15d, %r15d
movq 0x129c0(%rip), %rdx     # 0x1e6c8
addq %r13, %rdx
movl %r15d, %edi
xorl %esi, %esi
callq 0xbd60
testl %eax, %eax
jne 0xbd3b
movq (%r12), %rsi
testq %rsi, %rsi
je 0xbd2e
movq %r14, %rdi
xorl %eax, %eax
callq 0x70c6
jmp 0xbd3b
movq %rbx, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x70c6
incq %r15
addq $0x8, %r12
addq $0x10, %r13
cmpq %r15, 0x12983(%rip)     # 0x1e6d0
ja 0xbd01
movb $0x1, 0x1296a(%rip)     # 0x1e6c0
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/x.c
// Function: xloadcolor
int
xloadcolor(int i, const char *name, Color *ncolor)
{
	XColor screen, color;

	if (!name) {
		if (BETWEEN(i, 16, 255)) { /* 256 color */
			if (i < 6*6*6+16) { /* same colors as xterm */
				color.red   = sixd_to_16bit( ((i-16)/36)%6 );
				color.green = sixd_to_16bit( ((i-16)/6) %6 );
				color.blue  = sixd_to_16bit( ((i-16)/1) %6 );
			} else { /* greyscale */
				color.red = 0x0808 + 0x0a0a * (i - (6*6*6+16));
				color.green = color.blue = color.red;
			}
			ncolor->red = color.red;
			ncolor->green = color.green;
			ncolor->blue = color.blue;
			return XAllocColor(xw.dpy, xw.cmap, ncolor);
		} else {
			name = colorname[i];
		}
	}

	return XAllocNamedColor(xw.dpy, xw.cmap, name, &screen, ncolor);
}

// Assembly:
movq %rdx, %r8
movq %rsi, %rdx
testq %rsi, %rsi
jne 0xbe11
leal -0x10(%rdi), %eax
cmpl $0xef, %eax
ja 0xbe03
cmpl $0xe7, %edi
jg 0xbe32
movl %eax, %esi
imulq $0x38e38e39, %rsi, %rdi # imm = 0x38E38E39
shrq $0x23, %rdi
imulq $0x2aaaaaab, %rdi, %rcx # imm = 0x2AAAAAAB
shrq $0x20, %rcx
addl %ecx, %ecx
leal (%rcx,%rcx,2), %ecx
subl %ecx, %edi
imull $0x2828, %edi, %ecx     # imm = 0x2828
movl $0x3737, %edx           # imm = 0x3737
addl %edx, %ecx
testl %edi, %edi
cmovel %edi, %ecx
movl $0xaaaaaaab, %edi       # imm = 0xAAAAAAAB
imulq %rsi, %rdi
shrq $0x22, %rdi
imulq $0x2aaaaaab, %rdi, %rsi # imm = 0x2AAAAAAB
shrq $0x20, %rsi
addl %esi, %esi
leal (%rsi,%rsi,2), %esi
movl %edi, %r9d
subl %esi, %r9d
imull $0x2828, %r9d, %esi     # imm = 0x2828
addl %edx, %esi
testl %r9d, %r9d
cmovel %r9d, %esi
addl %edi, %edi
leal (%rdi,%rdi,2), %edi
subl %edi, %eax
imull $0x2828, %eax, %edi     # imm = 0x2828
addl %edx, %edi
testl %eax, %eax
cmovel %eax, %edi
jmp 0xbe42
movslq %edi, %rax
leaq 0xb7c3(%rip), %rcx      # 0x175d0
movq (%rcx,%rax,8), %rdx
subq $0x18, %rsp
movq 0x129e4(%rip), %rdi     # 0x1e800
movq 0x129e5(%rip), %rsi     # 0x1e808
leaq 0x8(%rsp), %rcx
callq 0x6270
addq $0x18, %rsp
retq
imull $0xa0a, %edi, %edi      # imm = 0xA0A
addl $0xffffeef8, %edi       # imm = 0xFFFFEEF8
movl %edi, %esi
movl %edi, %ecx
movw %cx, 0x8(%r8)
movw %si, 0xa(%r8)
movw %di, 0xc(%r8)
movq 0x129a8(%rip), %rdi     # 0x1e800
movq 0x129a9(%rip), %rsi     # 0x1e808
movq %r8, %rdx
jmp 0x6860
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/x.c
// Function: xgetcolor
int
xgetcolor(int x, unsigned char *r, unsigned char *g, unsigned char *b)
{
	if (!BETWEEN(x, 0, dc.collen))
		return 1;

	*r = dc.col[x].red >> 8;
	*g = dc.col[x].green >> 8;
	*b = dc.col[x].blue >> 8;

	return 0;
}

// Assembly:
movl $0x1, %eax
testl %edi, %edi
js 0xbea8
movl %edi, %edi
cmpq %rdi, 0x12857(%rip)     # 0x1e6d0
jb 0xbea8
movq 0x12846(%rip), %rax     # 0x1e6c8
shlq $0x4, %rdi
movb 0x9(%rax,%rdi), %al
movb %al, (%rsi)
movq 0x12835(%rip), %rax     # 0x1e6c8
movb 0xb(%rax,%rdi), %al
movb %al, (%rdx)
movq 0x12828(%rip), %rax     # 0x1e6c8
movb 0xd(%rax,%rdi), %al
movb %al, (%rcx)
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/x.c
// Function: xsetcolorname
int
xsetcolorname(int x, const char *name)
{
	Color ncolor;

	if (!BETWEEN(x, 0, dc.collen))
		return 1;

	if (!xloadcolor(x, name, &ncolor))
		return 1;

	XFreeColors(xw.dpy, xw.cmap, &dc.col[x].pixel, 1, 0);
	dc.col[x] = ncolor;

	return 0;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl $0x1, %ebx
testl %edi, %edi
js 0xbf0f
movl %edi, %r14d
cmpq %r14, 0x1280d(%rip)     # 0x1e6d0
jb 0xbf0f
leaq 0x8(%rsp), %rdx
callq 0xbd60
testl %eax, %eax
je 0xbf0f
movq 0x12926(%rip), %rdi     # 0x1e800
movq 0x12927(%rip), %rsi     # 0x1e808
shlq $0x4, %r14
movq 0x127dc(%rip), %rdx     # 0x1e6c8
addq %r14, %rdx
xorl %ebx, %ebx
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0x62a0
movq 0x127c3(%rip), %rax     # 0x1e6c8
movups 0x8(%rsp), %xmm0
movups %xmm0, (%rax,%r14)
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/x.c
// Function: xseticontitle
void
xseticontitle(char *p)
{
	XTextProperty prop;
	DEFAULT(p, opt_title);

	if (Xutf8TextListToTextProperty(xw.dpy, &p, 1, XUTF8StringStyle,
	                                &prop) != Success)
		return;
	XSetWMIconName(xw.dpy, xw.win, &prop);
	XSetTextProperty(xw.dpy, xw.win, &prop, xw.netwmiconname);
	XFree(prop.value);
}

// Assembly:
pushq %rbx
subq $0x30, %rsp
movq %rdi, 0x8(%rsp)
testq %rdi, %rdi
jne 0xc5a8
movq 0x123a8(%rip), %rdi     # 0x1e950
leaq 0x8(%rsp), %rsi
movq %rdi, (%rsi)
movq 0x12249(%rip), %rdi     # 0x1e800
leaq 0x10(%rsp), %r8
movl $0x1, %edx
movl $0x4, %ecx
callq 0x6540
testl %eax, %eax
jne 0xc60f
movq 0x1222a(%rip), %rdi     # 0x1e800
movq 0x12233(%rip), %rsi     # 0x1e810
leaq 0x10(%rsp), %rbx
movq %rbx, %rdx
callq 0x63b0
movq 0x1220f(%rip), %rdi     # 0x1e800
movq 0x12218(%rip), %rsi     # 0x1e810
movq 0x12241(%rip), %rcx     # 0x1e840
movq %rbx, %rdx
callq 0x6560
movq (%rbx), %rdi
callq 0x6090
addq $0x30, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/x.c
// Function: xsettitle
void
xsettitle(char *p)
{
	XTextProperty prop;
	DEFAULT(p, opt_title);

	if (Xutf8TextListToTextProperty(xw.dpy, &p, 1, XUTF8StringStyle,
	                                &prop) != Success)
		return;
	XSetWMName(xw.dpy, xw.win, &prop);
	XSetTextProperty(xw.dpy, xw.win, &prop, xw.netwmname);
	XFree(prop.value);
}

// Assembly:
pushq %rbx
subq $0x30, %rsp
movq %rdi, 0x8(%rsp)
testq %rdi, %rdi
jne 0xc62b
movq 0x12325(%rip), %rdi     # 0x1e950
leaq 0x8(%rsp), %rsi
movq %rdi, (%rsi)
movq 0x121c6(%rip), %rdi     # 0x1e800
leaq 0x10(%rsp), %r8
movl $0x1, %edx
movl $0x4, %ecx
callq 0x6540
testl %eax, %eax
jne 0xc692
movq 0x121a7(%rip), %rdi     # 0x1e800
movq 0x121b0(%rip), %rsi     # 0x1e810
leaq 0x10(%rsp), %rbx
movq %rbx, %rdx
callq 0x64d0
movq 0x1218c(%rip), %rdi     # 0x1e800
movq 0x12195(%rip), %rsi     # 0x1e810
movq 0x121b6(%rip), %rcx     # 0x1e838
movq %rbx, %rdx
callq 0x6560
movq (%rbx), %rdi
callq 0x6090
addq $0x30, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/x.c
// Function: xdrawline
void
xdrawline(Line line, int x1, int y1, int x2)
{
	int i, x, ox, numspecs;
	Glyph base, new;
	GlyphFontSpec *specs = xw.specbuf;

	numspecs = xmakeglyphfontspecs(specs, &line[x1], x2 - x1, x1, y1);

	i = ox = 0;
	for (x = x1; x < x2 && i < numspecs; x++) {
		new = line[x];
		if (new.mode == ATTR_WDUMMY)
			continue;
		if (selected(x, y1))
			new.mode ^= ATTR_REVERSE;
		if (i > 0 && ATTRCMP(base, new)) {
			xdrawglyphfontspecs(specs, base, i, ox, y1);
			specs += i;
			numspecs -= i;
			i = 0;
		}
		if (i == 0) {
			ox = x;
			base = new;
		}
		i++;
	}
	if (i > 0)
		xdrawglyphfontspecs(specs, base, i, ox, y1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %ecx, %ebx
movl %edx, %r8d
movl %esi, %ebp
movq %rdi, %r14
movq 0x1215f(%rip), %rdi     # 0x1e820
movslq %esi, %r15
movq %r15, %r12
shlq $0x4, %r12
leaq (%r14,%r12), %rsi
movl %ecx, %edx
subl %r15d, %edx
setg %r13b
movq %rdi, 0x18(%rsp)
movl %r15d, %ecx
movl %r8d, 0x10(%rsp)
callq 0xc87a
testl %eax, %eax
setg %cl
andb %r13b, %cl
cmpb $0x1, %cl
jne 0xc82c
movslq %ebx, %rdx
addq %r12, %r14
addq $0xc, %r14
incq %r15
xorl %r12d, %r12d
movl $0x0, 0xc(%rsp)
movq %rdx, 0x20(%rsp)
movzwl -0x8(%r14), %r13d
cmpl $0x400, %r13d           # imm = 0x400
je 0xc813
movl %eax, 0x14(%rsp)
movl -0xc(%r14), %eax
movq %rax, 0x48(%rsp)
movl -0x4(%r14), %eax
movq %rax, 0x40(%rsp)
movzwl -0x6(%r14), %eax
movq %rax, 0x50(%rsp)
movl (%r14), %eax
movq %rax, 0x38(%rsp)
movl %ebp, %edi
movl 0x10(%rsp), %esi
callq 0x7578
movl %r13d, %ebx
xorl $0x20, %ebx
testl %eax, %eax
cmovel %r13d, %ebx
testl %r12d, %r12d
jle 0xc794
movq 0x28(%rsp), %rax
shrq $0x20, %rax
cmpw %ax, %bx
movq 0x30(%rsp), %rdx
jne 0xc79a
cmpl %edx, 0x40(%rsp)
jne 0xc79a
movq %rdx, %rax
shrq $0x20, %rax
cmpl %eax, 0x38(%rsp)
jne 0xc79a
movl 0x14(%rsp), %eax
jmp 0xc7d2
movq 0x18(%rsp), %r13
movq %r13, %rdi
movq 0x28(%rsp), %rsi
movl %r12d, %ecx
movl 0xc(%rsp), %r8d
movl 0x10(%rsp), %r9d
callq 0xca88
movl %r12d, %eax
shlq $0x5, %rax
addq %rax, %r13
movq %r13, 0x18(%rsp)
movl 0x14(%rsp), %eax
subl %r12d, %eax
xorl %r12d, %r12d
movq 0x20(%rsp), %rdx
testl %r12d, %r12d
jne 0xc810
movzwl %bx, %ecx
shlq $0x20, %rcx
addq 0x48(%rsp), %rcx
movq 0x50(%rsp), %rsi
shlq $0x30, %rsi
orq %rcx, %rsi
movq 0x38(%rsp), %rcx
shlq $0x20, %rcx
addq 0x40(%rsp), %rcx
movq %rcx, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movl %ebp, 0xc(%rsp)
incl %r12d
cmpq %rdx, %r15
jge 0xc837
incl %ebp
addq $0x10, %r14
incq %r15
cmpl %eax, %r12d
jl 0xc718
jmp 0xc837
movl $0x0, 0xc(%rsp)
xorl %r12d, %r12d
testl %r12d, %r12d
jle 0xc86b
movq 0x18(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movl %r12d, %ecx
movl 0xc(%rsp), %r8d
movl 0x10(%rsp), %r9d
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xca88
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/x.c
// Function: xfinishdraw
void
xfinishdraw(void)
{
	XCopyArea(xw.dpy, xw.buf, xw.win, dc.gc, 0, 0, win.w,
			win.h, 0, 0);
	XSetForeground(xw.dpy, dc.gc,
			dc.col[IS_SET(MODE_REVERSE)?
				defaultfg : defaultbg].pixel);
}

// Assembly:
pushq %rax
movq 0x11728(%rip), %rdi     # 0x1e800
movq 0x11739(%rip), %rsi     # 0x1e818
movq 0x1172a(%rip), %rdx     # 0x1e810
movq 0x1170b(%rip), %rcx     # 0x1e7f8
movl 0x1183d(%rip), %eax     # 0x1e930
movl 0x1183a(%rip), %r10d    # 0x1e934
xorl %r11d, %r11d
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %r11
pushq %r11
pushq %r10
pushq %rax
callq 0x63f0
addq $0x20, %rsp
movq 0x116e6(%rip), %rdi     # 0x1e800
movq 0x116d7(%rip), %rsi     # 0x1e7f8
movq 0x115a0(%rip), %rax     # 0x1e6c8
testb $0x20, 0x11815(%rip)    # 0x1e944
leaq 0xa486(%rip), %rcx      # 0x175bc
leaq 0xa483(%rip), %rdx      # 0x175c0
cmovneq %rcx, %rdx
movl (%rdx), %ecx
shlq $0x4, %rcx
movq (%rax,%rcx), %rdx
popq %rax
jmp 0x6470
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/x.c
// Function: xximspot
void
xximspot(int x, int y)
{
	if (xw.ime.xic == NULL)
		return;
	/* '-1' for underline. */
	XPoint spot = { borderpx + x * win.cw, (y + 1) * win.ch - 1 };
	XVaNestedList attr = XVaCreateNestedList(0, XNSpotLocation, &spot, NULL);

	xw.ime.spot.x = borderpx + x * win.cw;
	xw.ime.spot.y = (y + 1) * win.ch - 1;

	XSetICValues(xw.ime.xic, XNPreeditAttributes, xw.ime.spotlist, NULL);
	XFree(attr);
}

// Assembly:
cmpq $0x0, 0x116ff(%rip)     # 0x1e858
je 0xd1fa
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
movl %edi, %ebp
movl 0x117cb(%rip), %eax     # 0x1e93c
imull %edi, %eax
addl 0xac92(%rip), %eax      # 0x17e0c
leaq 0xc(%rsp), %rdx
movw %ax, (%rdx)
incl %ebx
movl 0x117ae(%rip), %eax     # 0x1e938
imull %ebx, %eax
decl %eax
movw %ax, 0x2(%rdx)
leaq 0x3d16(%rip), %rsi      # 0x10eb0
xorl %edi, %edi
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x67e0
imull 0x11790(%rip), %ebp     # 0x1e93c
addl 0xac5a(%rip), %ebp      # 0x17e0c
movq %rax, %r14
movw %bp, 0x116a4(%rip)      # 0x1e860
imull 0x11775(%rip), %ebx     # 0x1e938
decl %ebx
movw %bx, 0x11696(%rip)      # 0x1e862
movq 0x11685(%rip), %rdi     # 0x1e858
movq 0x1168e(%rip), %rdx     # 0x1e868
leaq 0x3cdc(%rip), %rsi      # 0x10ebd
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x62d0
movq %r14, %rdi
callq 0x6090
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/x.c
// Function: xbell
void
xbell(void)
{
	if (!(IS_SET(MODE_FOCUSED)))
		xseturgency(1);
	if (bellvolume)
		XkbBell(xw.dpy, xw.win, bellvolume, (Atom)NULL);
}

// Assembly:
testb $0x2, 0x116cb(%rip)     # 0x1e944
jne 0xd28a
pushq %rax
movl $0x1, %edi
callq 0xd2aa
addq $0x8, %rsp
movl 0x1142c(%rip), %edx     # 0x1e6bc
testl %edx, %edx
je 0xd2a9
movq 0x11565(%rip), %rdi     # 0x1e800
movq 0x1156e(%rip), %rsi     # 0x1e810
xorl %ecx, %ecx
jmp 0x6a10
retq
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/x.c
// Function: xseturgency
void
xseturgency(int add)
{
	XWMHints *h = XGetWMHints(xw.dpy, xw.win);

	MODBIT(h->flags, add, XUrgencyHint);
	XSetWMHints(xw.dpy, xw.win, h);
	XFree(h);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
xorl %r14d, %r14d
testl %edi, %edi
setne %r14b
movq 0x11542(%rip), %rdi     # 0x1e800
movq 0x1154b(%rip), %rsi     # 0x1e810
callq 0x6610
movq %rax, %rbx
movq $-0x101, %rax           # imm = 0xFEFF
andq (%rbx), %rax
shll $0x8, %r14d
orq %rax, %r14
movq %r14, (%rbx)
movq 0x11518(%rip), %rdi     # 0x1e800
movq 0x11521(%rip), %rsi     # 0x1e810
movq %rbx, %rdx
callq 0x6a80
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x6090
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/x.c
// Function: resourceload
int
resourceload(XrmDatabase db, char *name, enum resource_type rtype, void *dst)
{
	char **sdst = dst;
	int *idst = dst;
	float *fdst = dst;

	char fullname[256];
	char fullclass[256];
	char *type;
	XrmValue ret;

	snprintf(fullname, sizeof(fullname), "%s.%s",
			opt_name ? opt_name : "st", name);
	snprintf(fullclass, sizeof(fullclass), "%s.%s",
			opt_class ? opt_class : "St", name);
	fullname[sizeof(fullname) - 1] = fullclass[sizeof(fullclass) - 1] = '\0';

	XrmGetResource(db, fullname, fullclass, &type, &ret);
	if (ret.addr == NULL || strncmp("String", type, 64))
		return 1;

	switch (rtype) {
	case STRING:
		*sdst = ret.addr;
		break;
	case INTEGER:
		*idst = strtoul(ret.addr, NULL, 10);
		break;
	case FLOAT:
		*fdst = strtof(ret.addr, NULL);
		break;
	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movq %rcx, 0x8(%rsp)
movl %edx, 0x14(%rsp)
movq %rsi, %r15
movq %rdi, %r14
movq 0x1162b(%rip), %rax     # 0x1e958
testq %rax, %rax
leaq 0x3b9e(%rip), %rcx      # 0x10ed5
cmovneq %rax, %rcx
leaq 0x3b8d(%rip), %r13      # 0x10ecf
xorl %ebp, %ebp
leaq 0x130(%rsp), %r12
movl $0x100, %esi            # imm = 0x100
movq %r12, %rdi
movq %r13, %rdx
movq %r15, %r8
xorl %eax, %eax
callq 0x60c0
movq 0x115f8(%rip), %rax     # 0x1e960
testq %rax, %rax
leaq 0x3b66(%rip), %rcx      # 0x10ed8
cmovneq %rax, %rcx
leaq 0x30(%rsp), %rbx
movl $0x100, %esi            # imm = 0x100
movq %rbx, %rdi
movq %r13, %rdx
movq %r15, %r8
xorl %eax, %eax
callq 0x60c0
movb %bpl, 0xff(%rbx)
movb %bpl, 0xff(%r12)
leaq 0x18(%rsp), %rcx
leaq 0x20(%rsp), %r15
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %r15, %r8
callq 0x6940
movq 0x8(%r15), %r15
movl $0x1, %r14d
testq %r15, %r15
je 0xd3e3
movq 0x18(%rsp), %rsi
leaq 0x3b06(%rip), %rdi      # 0x10edb
movl $0x40, %edx
callq 0x6220
testl %eax, %eax
je 0xd3f8
movl %r14d, %eax
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x14(%rsp), %eax
xorl %r14d, %r14d
cmpl $0x2, %eax
je 0xd42f
cmpl $0x1, %eax
je 0xd417
testl %eax, %eax
jne 0xd3e3
movq 0x8(%rsp), %rax
movq %r15, (%rax)
jmp 0xd3e3
movq %r15, %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x6a30
movq 0x8(%rsp), %rcx
movl %eax, (%rcx)
jmp 0xd3e3
movq %r15, %rdi
xorl %esi, %esi
callq 0x6580
movq 0x8(%rsp), %rax
movss %xmm0, (%rax)
jmp 0xd3e3
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/x.c
// Function: xhints
void
xhints(void)
{
	XClassHint class = {opt_name ? opt_name : "st",
	                    opt_class ? opt_class : "St"};
	XWMHints wm = {.flags = InputHint, .input = 1};
	XSizeHints *sizeh;

	sizeh = XAllocSizeHints();

	sizeh->flags = PSize | PResizeInc | PBaseSize | PMinSize;
	sizeh->height = win.h;
	sizeh->width = win.w;
	sizeh->height_inc = win.ch;
	sizeh->width_inc = win.cw;
	sizeh->base_height = 2 * borderpx;
	sizeh->base_width = 2 * borderpx;
	sizeh->min_height = win.ch + 2 * borderpx;
	sizeh->min_width = win.cw + 2 * borderpx;
	if (xw.isfixed) {
		sizeh->flags |= PMaxSize;
		sizeh->min_width = sizeh->max_width = win.w;
		sizeh->min_height = sizeh->max_height = win.h;
	}
	if (xw.gm & (XValue|YValue)) {
		sizeh->flags |= USPosition | PWinGravity;
		sizeh->x = xw.l;
		sizeh->y = xw.t;
		sizeh->win_gravity = xgeommasktogravity(xw.gm);
	}

	XSetWMProperties(xw.dpy, xw.win, NULL, NULL, NULL, 0, sizeh, &wm,
			&class);
	XFree(sizeh);
}

// Assembly:
pushq %rbx
subq $0x50, %rsp
movq 0x10042(%rip), %rax     # 0x1e958
testq %rax, %rax
leaq 0x25b5(%rip), %rcx      # 0x10ed5
cmovneq %rax, %rcx
movq %rcx, (%rsp)
movq 0x10031(%rip), %rax     # 0x1e960
testq %rax, %rax
leaq 0x259f(%rip), %rcx      # 0x10ed8
cmovneq %rax, %rcx
movq %rcx, 0x8(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x40(%rsp)
movq $0x1, 0x10(%rsp)
movl $0x1, 0x18(%rsp)
callq 0x6900
movq %rax, %rbx
movq $0x158, (%rax)          # imm = 0x158
movl 0xffb1(%rip), %eax      # 0x1e934
movl %eax, 0x14(%rbx)
movl 0xffa4(%rip), %ecx      # 0x1e930
movl %ecx, 0x10(%rbx)
movl 0xffa3(%rip), %edx      # 0x1e938
movl %edx, 0x2c(%rbx)
movl 0xff9e(%rip), %esi      # 0x1e93c
movl %esi, 0x28(%rbx)
movl 0x9465(%rip), %edi      # 0x17e0c
leal (%rdi,%rdi), %r8d
movl %r8d, 0x44(%rbx)
movl %r8d, 0x40(%rbx)
leal (%rdx,%rdi,2), %edx
movl %edx, 0x1c(%rbx)
leal (%rsi,%rdi,2), %edx
movl %edx, 0x18(%rbx)
cmpl $0x0, 0xff2e(%rip)      # 0x1e8f4
je 0xe9db
movq $0x178, (%rbx)          # imm = 0x178
movl %ecx, 0x20(%rbx)
movl %ecx, 0x18(%rbx)
movl %eax, 0x24(%rbx)
movl %eax, 0x1c(%rbx)
movl 0xff1f(%rip), %eax      # 0x1e900
testb $0x3, %al
je 0xea0f
orw $0x201, (%rbx)          # imm = 0x201
movl 0xff08(%rip), %ecx      # 0x1e8f8
movl %ecx, 0x8(%rbx)
movl 0xff03(%rip), %ecx      # 0x1e8fc
movl %ecx, 0xc(%rbx)
shrl $0x2, %eax
andl $0xc, %eax
leaq 0x22d7(%rip), %rcx      # 0x10ce0
movl (%rax,%rcx), %eax
movl %eax, 0x48(%rbx)
movq 0xfdea(%rip), %rdi      # 0x1e800
movq 0xfdf3(%rip), %rsi      # 0x1e810
subq $0x8, %rsp
leaq 0x8(%rsp), %rax
leaq 0x18(%rsp), %r10
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %rax
pushq %r10
pushq %rbx
callq 0x6390
addq $0x20, %rsp
movq %rbx, %rdi
callq 0x6090
addq $0x50, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/odknt[P]st/x.c
// Function: cresize
void
cresize(int width, int height)
{
	int col, row;

	if (width != 0)
		win.w = width;
	if (height != 0)
		win.h = height;

	col = (win.w - 2 * borderpx) / win.cw;
	row = (win.h - 2 * borderpx) / win.ch;
	col = MAX(1, col);
	row = MAX(1, row);

	tresize(col, row);
	xresize(col, row);
	ttyresize(win.tw, win.th);
}

// Assembly:
testl %edi, %edi
je 0xed8f
movl %edi, 0xfba1(%rip)      # 0x1e930
testl %esi, %esi
je 0xed99
movl %esi, 0xfb9b(%rip)      # 0x1e934
pushq %rbp
pushq %r14
pushq %rbx
movl 0xfb8d(%rip), %eax      # 0x1e930
movl 0x9063(%rip), %ecx      # 0x17e0c
addl %ecx, %ecx
subl %ecx, %eax
cltd
idivl 0xfb88(%rip)            # 0x1e93c
movl %eax, %ebx
movl 0xfb78(%rip), %eax      # 0x1e934
subl %ecx, %eax
cltd
idivl 0xfb73(%rip)            # 0x1e938
cmpl $0x2, %ebx
movl $0x1, %ebp
cmovll %ebp, %ebx
cmpl $0x2, %eax
cmovgel %eax, %ebp
movl %ebx, %edi
movl %ebp, %esi
callq 0x84bd
movl 0xfb57(%rip), %eax      # 0x1e93c
imull %ebx, %eax
imull 0xfb49(%rip), %ebp      # 0x1e938
movl %eax, 0xfb33(%rip)      # 0x1e928
movl %ebp, 0xfb31(%rip)      # 0x1e92c
movq 0xf9fe(%rip), %rdi      # 0x1e800
movq 0xfa0f(%rip), %rsi      # 0x1e818
callq 0x6910
movq 0xfa5b(%rip), %rdi      # 0x1e870
callq 0x6160
movq 0xf9df(%rip), %rdi      # 0x1e800
movq 0xf9e8(%rip), %rsi      # 0x1e810
movl 0xfb02(%rip), %edx      # 0x1e930
movl 0xfb00(%rip), %ecx      # 0x1e934
movq 0xe8(%rdi), %rax
movslq 0xfaae(%rip), %r8       # 0x1e8f0
shlq $0x7, %r8
movl 0x38(%rax,%r8), %r8d
callq 0x69c0
movq %rax, 0xf9c1(%rip)      # 0x1e818
movq 0xf9a2(%rip), %rdi      # 0x1e800
movq 0xfa13(%rip), %rdx      # 0x1e878
movl 0xfac5(%rip), %ecx      # 0x1e930
movl 0xfac2(%rip), %r8d      # 0x1e934
movq %rax, %rsi
callq 0x6520
movq %rax, %r14
movq %rax, %rdi
callq 0x6500
movq %rax, 0xf9e4(%rip)      # 0x1e870
movq %r14, %rdi
callq 0x68a0
movl 0xfa96(%rip), %ecx      # 0x1e930
movl 0xfa93(%rip), %r8d      # 0x1e934
testb $0x20, 0xfa9c(%rip)     # 0x1e944
leaq 0x870d(%rip), %rax      # 0x175bc
leaq 0x870a(%rip), %rdx      # 0x175c0
cmovneq %rax, %rdx
movl (%rdx), %edi
shlq $0x4, %rdi
addq 0xf801(%rip), %rdi      # 0x1e6c8
xorl %esi, %esi
xorl %edx, %edx
callq 0xc536
movq 0xf949(%rip), %rdi      # 0x1e820
shlq $0x5, %rbx
movq %rbx, %rsi
callq 0x7160
movq %rax, 0xf936(%rip)      # 0x1e820
movl 0xfa38(%rip), %edi      # 0x1e928
movl 0xfa36(%rip), %esi      # 0x1e92c
popq %rbx
popq %r14
popq %rbp
jmp 0x8338