// File: /workspace/github_c_makefile_star2_O1/martintopholm[P]xping/termio.c
// Function: termio_update
void
termio_update(struct target *selective)
{
	struct target *t;
	int col;

	int imax, ifirst, ilast;

	t = list;
	if (t == NULL)
		return;

	col = getmaxx(stdscr);
	imax = MIN(t->npkts, col - labelwidth);
	imax = MIN(imax, NUM);
	ifirst = (t->npkts > imax ? t->npkts - imax : 0);
	ilast = t->npkts;

	if (selective != NULL && ifirst == ifirst_state) {
		updatesingle(ifirst, selective);
	} else {
#ifndef NCURSES
		/* Re-establish the reference point for move() */
		if (cursor_y > 0)
			fprintf(stdout, "%c[%dA\r", 0x1b, cursor_y);
		fprintf(stdout, "\r%c[s", 0x1b);
		cursor_y = 0;
#endif /* !NCURSES */
		updatefull(ifirst, ilast);
		ifirst_state = ifirst;
		clrtoeol();
		clrtobot();
	}
	refresh();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x3858(%rip), %r15      # 0x7270
movq (%r15), %r12
testq %r12, %r12
je 0x3ac8
movq %rdi, %r14
callq 0x3854
movl 0x40(%r12), %r12d
movl 0x390d(%rip), %esi      # 0x7344
subl %esi, %eax
cmpl %eax, %r12d
cmovll %r12d, %eax
movl $0x12c, %ecx            # imm = 0x12C
cmpl %ecx, %eax
cmovgel %ecx, %eax
xorl %ecx, %ecx
movl %r12d, %r13d
movl %eax, 0x4(%rsp)
subl %eax, %r13d
cmovlel %ecx, %r13d
testq %r14, %r14
je 0x3ad7
cmpl 0x37d2(%rip), %r13d     # 0x7238
jne 0x3ad7
movl 0x188(%r14), %edi
notl %r13d
addl %r13d, %esi
addl 0x40(%r14), %esi
callq 0x391b
movl 0x40(%r14), %eax
movl %eax, %ecx
decl %ecx
movslq %ecx, %rcx
imulq $0x1b4e81b5, %rcx, %rcx # imm = 0x1B4E81B5
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x25, %rcx
addl %edx, %ecx
imull $0x12c, %ecx, %ecx      # imm = 0x12C
negl %ecx
addl %ecx, %eax
decl %eax
cltq
movsbl 0x44(%r14,%rax), %edi
callq 0x3e9d
movl 0x388c(%rip), %edi      # 0x7348
xorl %esi, %esi
callq 0x391b
jmp 0x3c6d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x381b(%rip), %ecx      # 0x72f8
testl %ecx, %ecx
jle 0x3afe
movq 0x34c8(%rip), %rax      # 0x6fb0
movq (%rax), %rdi
leaq 0x1896(%rip), %rsi      # 0x5388
movl $0x1b, %edx
xorl %eax, %eax
callq 0x2310
movq 0x34ab(%rip), %rax      # 0x6fb0
movq (%rax), %rdi
leaq 0x1881(%rip), %rsi      # 0x5390
xorl %ebp, %ebp
movl $0x1b, %edx
xorl %eax, %eax
callq 0x2310
movl $0x0, 0x37d1(%rip)      # 0x72f8
movq (%r15), %r14
testq %r14, %r14
je 0x3c2d
negl 0x4(%rsp)
leaq 0x36de(%rip), %r15      # 0x721c
xorl %ebp, %ebp
movl %ebp, 0x188(%r14)
leaq 0x370a(%rip), %rax      # 0x7258
cmpl $0x0, (%rax)
je 0x3b72
movl 0x18c(%r14), %eax
cmpl $0x2, %eax
je 0x3b8d
cmpl $0xa, %eax
jne 0x3b72
movl (%r15), %r8d
movl %ebp, %edi
leaq 0x1886(%rip), %rdx      # 0x53f6
jmp 0x3b99
movl (%r15), %ecx
movl %ebp, %edi
leaq 0x189e(%rip), %rdx      # 0x541c
movl %ecx, %r8d
movq %r14, %r9
xorl %eax, %eax
callq 0x3fef
jmp 0x3bb0
movl (%r15), %r8d
movl %ebp, %edi
leaq 0x1870(%rip), %rdx      # 0x5409
movl $0x1b, %ecx
movl %r8d, %r9d
xorl %eax, %eax
pushq $0x1b
pushq %r14
callq 0x3fef
addq $0x10, %rsp
movq %r15, %rbx
cmpl $0x0, (%r15)
je 0x3bc3
movl $0x20, %edi
callq 0x3e9d
cmpl %r12d, %r13d
jge 0x3c0f
movl 0x4(%rsp), %eax
movl %eax, %r15d
leal (%r12,%r15), %eax
movl $0x20, %edi
cmpl 0x40(%r14), %eax
jge 0x3c05
movslq %eax, %rcx
imulq $0x1b4e81b5, %rcx, %rcx # imm = 0x1B4E81B5
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x25, %rcx
addl %edx, %ecx
imull $0x12c, %ecx, %ecx      # imm = 0x12C
subl %ecx, %eax
cltq
movsbl 0x44(%r14,%rax), %edi
callq 0x3e9d
incl %r15d
jne 0x3bcf
incl %ebp
movl %ebp, %edi
xorl %esi, %esi
callq 0x391b
movq 0x198(%r14), %r14
testq %r14, %r14
movq %rbx, %r15
jne 0x3b40
movl %ebp, 0x3715(%rip)      # 0x7348
movl %r13d, 0x35fe(%rip)     # 0x7238
movq 0x336f(%rip), %rbx      # 0x6fb0
movq (%rbx), %rdi
leaq 0x176e(%rip), %rsi      # 0x53b9
movl $0x1b, %edx
xorl %eax, %eax
callq 0x2310
movq (%rbx), %rdi
leaq 0x1742(%rip), %rsi      # 0x53a3
movl $0x1b, %edx
xorl %eax, %eax
callq 0x2310
movq 0x333c(%rip), %rax      # 0x6fb0
movq (%rax), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2230