// File: /workspace/github_c_makefile_star2_O2/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 0x4b73(%rip), %rbx      # 0x8270
movq (%rbx), %r14
testq %r14, %r14
je 0x378a
movq %rdi, %r15
callq 0x3538
movl 0x40(%r14), %ebp
movl 0x4c29(%rip), %esi      # 0x8344
subl %esi, %eax
cmpl %eax, %ebp
cmovll %ebp, %eax
movl $0x12c, %ecx            # imm = 0x12C
cmpl %ecx, %eax
cmovgel %ecx, %eax
xorl %ecx, %ecx
movl %ebp, %r13d
subl %eax, %r13d
cmovlel %ecx, %r13d
testq %r15, %r15
je 0x3799
cmpl 0x4af4(%rip), %r13d     # 0x8238
jne 0x3799
movl 0x188(%r15), %edi
notl %r13d
addl %r13d, %esi
addl 0x40(%r15), %esi
callq 0x35fb
movl 0x40(%r15), %eax
decl %eax
movl $0x12c, %ecx            # imm = 0x12C
cltd
idivl %ecx
movslq %edx, %rax
movsbl 0x44(%r15,%rax), %edi
callq 0x3b18
movl 0x4bca(%rip), %edi      # 0x8348
xorl %esi, %esi
callq 0x35fb
jmp 0x3908
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x4b59(%rip), %ecx      # 0x82f8
testl %ecx, %ecx
jle 0x37be
movq 0x4806(%rip), %rax      # 0x7fb0
movq (%rax), %rdi
leaq 0x1bd4(%rip), %rsi      # 0x5388
pushq $0x1b
popq %rdx
xorl %eax, %eax
callq 0x2310
movq 0x47eb(%rip), %rax      # 0x7fb0
movq (%rax), %rdi
leaq 0x1bc1(%rip), %rsi      # 0x5390
pushq $0x1b
popq %rdx
xorl %eax, %eax
callq 0x2310
andl $0x0, 0x4b18(%rip)      # 0x82f8
leaq 0x4a35(%rip), %rdx      # 0x821c
pushq $0x20
popq %r15
movl $0x12c, %r14d           # imm = 0x12C
xorl %r12d, %r12d
movl %r13d, 0x4(%rsp)
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x38da
movl %r12d, 0x188(%rbx)
leaq 0x4a45(%rip), %rax      # 0x8258
cmpl $0x0, (%rax)
je 0x383a
movl 0x18c(%rbx), %eax
cmpl $0x2, %eax
je 0x3858
cmpl $0xa, %eax
jne 0x383a
movl (%rdx), %r8d
movq %rdx, %r13
movl %r12d, %edi
leaq 0x1bbe(%rip), %rdx      # 0x53f6
jmp 0x3868
movl (%rdx), %ecx
movq %rdx, %r13
movl %r12d, %edi
leaq 0x1bd3(%rip), %rdx      # 0x541c
movl %ecx, %r8d
movq %rbx, %r9
xorl %eax, %eax
callq 0x3c5e
jmp 0x387a
movl (%rdx), %r8d
movq %rdx, %r13
movl %r12d, %edi
leaq 0x1ba1(%rip), %rdx      # 0x5409
pushq $0x1b
popq %rcx
movl %r8d, %r9d
xorl %eax, %eax
pushq $0x1b
pushq %rbx
callq 0x3c5e
popq %rax
popq %rcx
cmpl $0x0, (%r13)
je 0x3889
movl %r15d, %edi
callq 0x3b18
movl 0x4(%rsp), %r13d
cmpl %ebp, %r13d
jge 0x38b5
movl %r15d, %edi
cmpl 0x40(%rbx), %r13d
jge 0x38ab
movl %r13d, %eax
cltd
idivl %r14d
movslq %edx, %rax
movsbl 0x44(%rbx,%rax), %edi
callq 0x3b18
incl %r13d
jmp 0x388e
incl %r12d
movl %r12d, %edi
xorl %esi, %esi
callq 0x35fb
addq $0x198, %rbx            # imm = 0x198
movl 0x4(%rsp), %r13d
leaq 0x4947(%rip), %rdx      # 0x821c
jmp 0x37f9
movl %r12d, 0x4a67(%rip)     # 0x8348
movl %r13d, 0x4950(%rip)     # 0x8238
movq 0x46c1(%rip), %rax      # 0x7fb0
movq (%rax), %rdi
leaq 0x1ac0(%rip), %rsi      # 0x53b9
pushq $0x1b
popq %rdx
xorl %eax, %eax
callq 0x2310
callq 0x36d0
movq 0x46a1(%rip), %rax      # 0x7fb0
movq (%rax), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2230