// File: /workspace/github_c_makefile_star2_O0/mrdotx[P]st/st.c
// Function: set_notifmode
void set_notifmode(int type, KeySym ksym) {
	static char *lib[] = { " MOVE ", " SEL  "};
	static Glyph *g, *deb, *fin;
	static int col, bot;

	if ( ksym == -1 ) {
		free(g);
		col = term.col, bot = term.bot;
		g = xmalloc(col * sizeof(Glyph));
		memcpy(g, term.line[bot], col * sizeof(Glyph));

	}
	else if ( ksym == -2 )
		memcpy(term.line[bot], g, col * sizeof(Glyph));

	if ( type < 2 ) {
		char *z = lib[type];
		for (deb = &term.line[bot][col - 6], fin = &term.line[bot][col]; deb < fin; z++, deb++)
			deb->mode = ATTR_REVERSE,
				deb->u = *z,
				deb->fg = defaultfg, deb->bg = defaultbg;
	}
	else if ( type < 5 )
		memcpy(term.line[bot], g, col * sizeof(Glyph));
	else {
		for (deb = &term.line[bot][0], fin = &term.line[bot][col]; deb < fin; deb++)
			deb->mode = ATTR_REVERSE,
				deb->u = ' ',
				deb->fg = defaultfg, deb->bg = defaultbg;
		term.line[bot][0].u = ksym;
	}

	term.dirty[bot] = 1;
	drawregion(0, bot, col, bot + 1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
cmpq $-0x1, -0x10(%rbp)
jne 0xaa2c
movq 0x1692b(%rip), %rdi     # 0x212f8
callq 0x6360
movl 0x138f4(%rip), %eax     # 0x1e2cc
movl %eax, 0x16932(%rip)     # 0x21310
movl 0x148d4(%rip), %eax     # 0x1f2b8
movl %eax, 0x1692a(%rip)     # 0x21314
movslq 0x1691f(%rip), %rdi     # 0x21310
shlq $0x4, %rdi
callq 0x6b60
movq %rax, 0x168f7(%rip)     # 0x212f8
movq 0x168f0(%rip), %rdi     # 0x212f8
movq 0x138c1(%rip), %rax     # 0x1e2d0
movslq 0x168fe(%rip), %rcx     # 0x21314
movq (%rax,%rcx,8), %rsi
movslq 0x168ef(%rip), %rdx     # 0x21310
shlq $0x4, %rdx
callq 0x6930
jmp 0xaa5e
cmpq $-0x2, -0x10(%rbp)
jne 0xaa5c
movq 0x13896(%rip), %rax     # 0x1e2d0
movslq 0x168d3(%rip), %rcx     # 0x21314
movq (%rax,%rcx,8), %rdi
movq 0x168ac(%rip), %rsi     # 0x212f8
movslq 0x168bd(%rip), %rdx     # 0x21310
shlq $0x4, %rdx
callq 0x6930
jmp 0xaa5e
cmpl $0x2, -0x4(%rbp)
jge 0xab46
movslq -0x4(%rbp), %rcx
leaq 0x10b0d(%rip), %rax     # 0x1b580
movq (%rax,%rcx,8), %rax
movq %rax, -0x18(%rbp)
movq 0x1384e(%rip), %rax     # 0x1e2d0
movslq 0x1688b(%rip), %rcx     # 0x21314
movq (%rax,%rcx,8), %rax
movl 0x1687d(%rip), %ecx     # 0x21310
subl $0x6, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, 0x16859(%rip)     # 0x21300
movq 0x13822(%rip), %rax     # 0x1e2d0
movslq 0x1685f(%rip), %rcx     # 0x21314
movq (%rax,%rcx,8), %rax
movslq 0x16850(%rip), %rcx     # 0x21310
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, 0x1683a(%rip)     # 0x21308
movq 0x1682b(%rip), %rax     # 0x21300
cmpq 0x1682c(%rip), %rax     # 0x21308
jae 0xab41
movq 0x1681b(%rip), %rax     # 0x21300
movw $0x20, 0x4(%rax)
movq -0x18(%rbp), %rax
movsbl (%rax), %ecx
movq 0x16807(%rip), %rax     # 0x21300
movl %ecx, (%rax)
leaq 0x10cbe(%rip), %rax     # 0x1b7c0
movl (%rax), %ecx
movq 0x167f5(%rip), %rax     # 0x21300
movl %ecx, 0x8(%rax)
leaq 0x10caf(%rip), %rax     # 0x1b7c4
movl (%rax), %ecx
movq 0x167e2(%rip), %rax     # 0x21300
movl %ecx, 0xc(%rax)
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
movq 0x167cc(%rip), %rax     # 0x21300
addq $0x10, %rax
movq %rax, 0x167c1(%rip)     # 0x21300
jmp 0xaace
jmp 0xac3a
cmpl $0x5, -0x4(%rbp)
jge 0xab7a
movq 0x1377d(%rip), %rax     # 0x1e2d0
movslq 0x167ba(%rip), %rcx     # 0x21314
movq (%rax,%rcx,8), %rdi
movq 0x16793(%rip), %rsi     # 0x212f8
movslq 0x167a4(%rip), %rdx     # 0x21310
shlq $0x4, %rdx
callq 0x6930
jmp 0xac38
movq 0x1374f(%rip), %rax     # 0x1e2d0
movslq 0x1678c(%rip), %rcx     # 0x21314
movq (%rax,%rcx,8), %rax
movq %rax, 0x1676d(%rip)     # 0x21300
movq 0x13736(%rip), %rax     # 0x1e2d0
movslq 0x16773(%rip), %rcx     # 0x21314
movq (%rax,%rcx,8), %rax
movslq 0x16764(%rip), %rcx     # 0x21310
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, 0x1674e(%rip)     # 0x21308
movq 0x1673f(%rip), %rax     # 0x21300
cmpq 0x16740(%rip), %rax     # 0x21308
jae 0xac1e
movq 0x1672f(%rip), %rax     # 0x21300
movw $0x20, 0x4(%rax)
movq 0x16722(%rip), %rax     # 0x21300
movl $0x20, (%rax)
leaq 0x10bd5(%rip), %rax     # 0x1b7c0
movl (%rax), %ecx
movq 0x1670c(%rip), %rax     # 0x21300
movl %ecx, 0x8(%rax)
leaq 0x10bc6(%rip), %rax     # 0x1b7c4
movl (%rax), %ecx
movq 0x166f9(%rip), %rax     # 0x21300
movl %ecx, 0xc(%rax)
movq 0x166ef(%rip), %rax     # 0x21300
addq $0x10, %rax
movq %rax, 0x166e4(%rip)     # 0x21300
jmp 0xabba
movq -0x10(%rbp), %rax
movl %eax, %ecx
movq 0x136a5(%rip), %rax     # 0x1e2d0
movslq 0x166e2(%rip), %rdx     # 0x21314
movq (%rax,%rdx,8), %rax
movl %ecx, (%rax)
jmp 0xac3a
movq 0x14647(%rip), %rax     # 0x1f288
movslq 0x166cc(%rip), %rcx     # 0x21314
movl $0x1, (%rax,%rcx,4)
movl 0x166bf(%rip), %esi     # 0x21314
movl 0x166b5(%rip), %edx     # 0x21310
movl 0x166b3(%rip), %ecx     # 0x21314
addl $0x1, %ecx
xorl %edi, %edi
callq 0xa3f0
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)