// File: /workspace/github_c_makefile_star2_O0/anachronic[P]st/st.c
// Function: treflow
void
treflow(int col, int row)
{
	int i, j;
	int oce, nce, bot, scr;
	int ox = 0, oy = -term.histf, nx = 0, ny = -1, len;
	int cy = -1; /* proxy for new y coordinate of cursor */
	int nlines;
	Line *buf, line;

	/* y coordinate of cursor line end */
	for (oce = term.c.y; oce < term.row - 1 &&
	                     tiswrapped(term.line[oce]); oce++);

	nlines = term.histf + oce + 1;
	if (col < term.col) {
		/* each line can take this many lines after reflow */
		j = (term.col + col - 1) / col;
		nlines = j * nlines;
		if (nlines > HISTSIZE + RESIZEBUFFER + row) {
			nlines = HISTSIZE + RESIZEBUFFER + row;
			oy = -(nlines / j - oce - 1);
		}
	}
	buf = xmalloc(nlines * sizeof(Line));
	do {
		if (!nx)
			buf[++ny] = xmalloc(col * sizeof(Glyph));
		if (!ox) {
			line = TLINEABS(oy);
			len = tlinelen(line);
		}
		if (oy == term.c.y) {
			if (!ox)
				len = MAX(len, term.c.x + 1);
			/* update cursor */
			if (cy < 0 && term.c.x - ox < col - nx) {
				term.c.x = nx + term.c.x - ox, cy = ny;
				UPDATEWRAPNEXT(0, col);
			}
		}
		/* get reflowed lines in buf */
		if (col - nx > len - ox) {
			memcpy(&buf[ny][nx], &line[ox], (len-ox) * sizeof(Glyph));
			nx += len - ox;
			if (len == 0 || !(line[len - 1].mode & ATTR_WRAP)) {
				for (j = nx; j < col; j++)
					tclearglyph(&buf[ny][j], 0);
				nx = 0;
			} else if (nx > 0) {
				buf[ny][nx - 1].mode &= ~ATTR_WRAP;
			}
			ox = 0, oy++;
		} else if (col - nx == len - ox) {
			memcpy(&buf[ny][nx], &line[ox], (col-nx) * sizeof(Glyph));
			ox = 0, oy++, nx = 0;
		} else/* if (col - nx < len - ox) */ {
			memcpy(&buf[ny][nx], &line[ox], (col-nx) * sizeof(Glyph));
    	ox += col - nx;
			buf[ny][col - 1].mode |= ATTR_WRAP;
			nx = 0;
		}
	} while (oy <= oce);
	if (nx)
		for (j = nx; j < col; j++)
			tclearglyph(&buf[ny][j], 0);

	/* free extra lines */
	for (i = row; i < term.row; i++)
		free(term.line[i]);
	/* resize to new height */
	term.line = xrealloc(term.line, row * sizeof(Line));

	bot = MIN(ny, row - 1);
	scr = MAX(row - term.row, 0);
	/* update y coordinate of cursor line end */
	nce = MIN(oce + scr, bot);
	/* update cursor y coordinate */
	term.c.y = nce - (ny - cy);
	if (term.c.y < 0) {
		j = nce, nce = MIN(nce + -term.c.y, bot);
		term.c.y += nce - j;
		while (term.c.y < 0) {
			free(buf[ny--]);
			term.c.y++;
		}
	}
	/* allocate new rows */
	for (i = row - 1; i > nce; i--) {
		term.line[i] = xmalloc(col * sizeof(Glyph));
		for (j = 0; j < col; j++)
			tclearglyph(&term.line[i][j], 0);
	}
	/* fill visible area */
	for (/*i = nce */; i >= term.row; i--, ny--)
		term.line[i] = buf[ny];
	for (/*i = term.row - 1 */; i >= 0; i--, ny--) {
		free(term.line[i]);
		term.line[i] = buf[ny];
	}
	/* fill lines in history buffer and update term.histf */
	for (/*i = -1 */; ny >= 0 && i >= -HISTSIZE; i--, ny--) {
		j = (term.histi + i + 1 + HISTSIZE) % HISTSIZE;
		free(term.hist[j]);
		term.hist[j] = buf[ny];
	}
	term.histf = -i - 1;
	term.scr = MIN(term.scr, term.histf);
	/* resize rest of the history lines */
	for (/*i = -term.histf - 1 */; i >= -HISTSIZE; i--) {
		j = (term.histi + i + 1 + HISTSIZE) % HISTSIZE;
		term.hist[j] = xrealloc(term.hist[j], col * sizeof(Glyph));
	}
	free(buf);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl $0x0, -0x24(%rbp)
xorl %eax, %eax
subl 0x13b84(%rip), %eax     # 0x20d74
movl %eax, -0x28(%rbp)
movl $0x0, -0x2c(%rbp)
movl $0xffffffff, -0x30(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0x38(%rbp) # imm = 0xFFFFFFFF
movl 0x13b96(%rip), %eax     # 0x20da4
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %ecx
movl 0xfcc6(%rip), %edx      # 0x1cee0
subl $0x1, %edx
xorl %eax, %eax
cmpl %edx, %ecx
movb %al, -0x51(%rbp)
jge 0xd243
movq 0xfcbb(%rip), %rax      # 0x1cee8
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x8fc0
cmpl $0x0, %eax
setne %al
movb %al, -0x51(%rbp)
movb -0x51(%rbp), %al
testb $0x1, %al
jne 0xd24c
jmp 0xd259
jmp 0xd24e
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xd211
movl 0x13b15(%rip), %eax     # 0x20d74
addl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
movl -0x4(%rbp), %eax
cmpl 0xfc73(%rip), %eax      # 0x1cee4
jge 0xd2c3
movl 0xfc6b(%rip), %eax      # 0x1cee4
addl -0x4(%rbp), %eax
subl $0x1, %eax
cltd
idivl -0x4(%rbp)
movl %eax, -0x10(%rbp)
movl -0x10(%rbp), %eax
imull -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movl -0x8(%rbp), %ecx
addl $0xbb8, %ecx            # imm = 0xBB8
cmpl %ecx, %eax
jle 0xd2c1
movl -0x8(%rbp), %eax
addl $0xbb8, %eax            # imm = 0xBB8
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
cltd
idivl -0x10(%rbp)
movl %eax, %ecx
subl -0x14(%rbp), %ecx
subl $0x1, %ecx
xorl %eax, %eax
subl %ecx, %eax
movl %eax, -0x28(%rbp)
jmp 0xd2c3
movslq -0x3c(%rbp), %rdi
shlq $0x3, %rdi
callq 0x5a30
movq %rax, -0x48(%rbp)
cmpl $0x0, -0x2c(%rbp)
jne 0xd2fe
movslq -0x4(%rbp), %rdi
shlq $0x4, %rdi
callq 0x5a30
movq %rax, %rdx
movq -0x48(%rbp), %rax
movl -0x30(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, -0x30(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
cmpl $0x0, -0x24(%rbp)
jne 0xd35f
cmpl $0x0, -0x28(%rbp)
jge 0xd338
movl 0x13a60(%rip), %eax     # 0x20d70
addl -0x28(%rbp), %eax
addl $0x1, %eax
addl $0x7d0, %eax            # imm = 0x7D0
movl $0x7d0, %ecx            # imm = 0x7D0
cltd
idivl %ecx
movslq %edx, %rcx
leaq 0xfbb3(%rip), %rax      # 0x1cee0
movq 0x10(%rax,%rcx,8), %rax
movq %rax, -0x60(%rbp)
jmp 0xd34b
movq 0xfba9(%rip), %rax      # 0x1cee8
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
callq 0x6750
movl %eax, -0x34(%rbp)
movl -0x28(%rbp), %eax
cmpl 0x13a3c(%rip), %eax     # 0x20da4
jne 0xd417
cmpl $0x0, -0x24(%rbp)
jne 0xd39e
movl -0x34(%rbp), %eax
movl 0x13a23(%rip), %ecx     # 0x20da0
addl $0x1, %ecx
cmpl %ecx, %eax
jge 0xd392
movl 0x13a16(%rip), %eax     # 0x20da0
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0xd398
movl -0x34(%rbp), %eax
movl %eax, -0x64(%rbp)
movl -0x64(%rbp), %eax
movl %eax, -0x34(%rbp)
cmpl $0x0, -0x38(%rbp)
jge 0xd415
movl 0x139f6(%rip), %eax     # 0x20da0
subl -0x24(%rbp), %eax
movl -0x4(%rbp), %ecx
subl -0x2c(%rbp), %ecx
cmpl %ecx, %eax
jge 0xd415
movl -0x2c(%rbp), %eax
addl 0x139e0(%rip), %eax     # 0x20da0
subl -0x24(%rbp), %eax
movl %eax, 0x139d7(%rip)     # 0x20da0
movl -0x30(%rbp), %eax
movl %eax, -0x38(%rbp)
movsbl 0x139d2(%rip), %eax     # 0x20da8
andl $0x1, %eax
cmpl $0x0, %eax
je 0xd411
movl 0x139bc(%rip), %eax     # 0x20da0
addl 0x13992(%rip), %eax     # 0x20d7c
cmpl -0x4(%rbp), %eax
jge 0xd411
movl 0x13987(%rip), %eax     # 0x20d7c
addl 0x139a5(%rip), %eax     # 0x20da0
movl %eax, 0x1399f(%rip)     # 0x20da0
movsbl 0x139a0(%rip), %eax     # 0x20da8
andl $-0x2, %eax
movb %al, 0x13997(%rip)      # 0x20da8
jmp 0xd413
jmp 0xd415
jmp 0xd417
movl -0x4(%rbp), %eax
subl -0x2c(%rbp), %eax
movl -0x34(%rbp), %ecx
subl -0x24(%rbp), %ecx
cmpl %ecx, %eax
jle 0xd51e
movq -0x48(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movslq -0x2c(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rdi
movq -0x50(%rbp), %rsi
movslq -0x24(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rsi
movl -0x34(%rbp), %eax
subl -0x24(%rbp), %eax
movslq %eax, %rdx
shlq $0x4, %rdx
callq 0x5890
movl -0x34(%rbp), %eax
subl -0x24(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
cmpl $0x0, -0x34(%rbp)
je 0xd497
movq -0x50(%rbp), %rax
movl -0x34(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movzwl 0x4(%rax), %eax
andl $0x200, %eax            # imm = 0x200
cmpl $0x0, %eax
jne 0xd4d7
movl -0x2c(%rbp), %eax
movl %eax, -0x10(%rbp)
movl -0x10(%rbp), %eax
cmpl -0x4(%rbp), %eax
jge 0xd4ce
movq -0x48(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movslq -0x10(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rdi
xorl %esi, %esi
callq 0x9170
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0xd49d
movl $0x0, -0x2c(%rbp)
jmp 0xd509
cmpl $0x0, -0x2c(%rbp)
jle 0xd507
movq -0x48(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -0x2c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movzwl 0x4(%rax), %ecx
andl $0xfffffdff, %ecx       # imm = 0xFFFFFDFF
movw %cx, 0x4(%rax)
jmp 0xd509
movl $0x0, -0x24(%rbp)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0xd5f6
movl -0x4(%rbp), %eax
subl -0x2c(%rbp), %eax
movl -0x34(%rbp), %ecx
subl -0x24(%rbp), %ecx
cmpl %ecx, %eax
jne 0xd57f
movq -0x48(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movslq -0x2c(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rdi
movq -0x50(%rbp), %rsi
movslq -0x24(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rsi
movl -0x4(%rbp), %eax
subl -0x2c(%rbp), %eax
movslq %eax, %rdx
shlq $0x4, %rdx
callq 0x5890
movl $0x0, -0x24(%rbp)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
movl $0x0, -0x2c(%rbp)
jmp 0xd5f4
movq -0x48(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movslq -0x2c(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rdi
movq -0x50(%rbp), %rsi
movslq -0x24(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rsi
movl -0x4(%rbp), %eax
subl -0x2c(%rbp), %eax
movslq %eax, %rdx
shlq $0x4, %rdx
callq 0x5890
movl -0x4(%rbp), %eax
subl -0x2c(%rbp), %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x48(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -0x4(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movzwl 0x4(%rax), %ecx
orl $0x200, %ecx            # imm = 0x200
movw %cx, 0x4(%rax)
movl $0x0, -0x2c(%rbp)
jmp 0xd5f6
jmp 0xd5f8
movl -0x28(%rbp), %eax
cmpl -0x14(%rbp), %eax
jle 0xd2d4
cmpl $0x0, -0x2c(%rbp)
je 0xd643
movl -0x2c(%rbp), %eax
movl %eax, -0x10(%rbp)
movl -0x10(%rbp), %eax
cmpl -0x4(%rbp), %eax
jge 0xd641
movq -0x48(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movslq -0x10(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rdi
xorl %esi, %esi
callq 0x9170
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0xd610
jmp 0xd643
movl -0x8(%rbp), %eax
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %eax
cmpl 0xf88e(%rip), %eax      # 0x1cee0
jge 0xd673
movq 0xf88d(%rip), %rax      # 0x1cee8
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x5340
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xd649
movq 0xf86e(%rip), %rdi      # 0x1cee8
movslq -0x8(%rbp), %rsi
shlq $0x3, %rsi
callq 0x5b30
movq %rax, 0xf85a(%rip)      # 0x1cee8
movl -0x30(%rbp), %eax
movl -0x8(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0xd6a3
movl -0x30(%rbp), %eax
movl %eax, -0x68(%rbp)
jmp 0xd6ac
movl -0x8(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x68(%rbp)
movl -0x68(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x8(%rbp), %eax
subl 0xf825(%rip), %eax      # 0x1cee0
cmpl $0x0, %eax
jge 0xd6c7
xorl %eax, %eax
movl %eax, -0x6c(%rbp)
jmp 0xd6d3
movl -0x8(%rbp), %eax
subl 0xf810(%rip), %eax      # 0x1cee0
movl %eax, -0x6c(%rbp)
movl -0x6c(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x14(%rbp), %eax
addl -0x20(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0xd6ef
movl -0x14(%rbp), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x70(%rbp)
jmp 0xd6f5
movl -0x1c(%rbp), %eax
movl %eax, -0x70(%rbp)
movl -0x70(%rbp), %eax
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %eax
movl -0x30(%rbp), %ecx
subl -0x38(%rbp), %ecx
subl %ecx, %eax
movl %eax, 0x13698(%rip)     # 0x20da4
cmpl $0x0, 0x13691(%rip)     # 0x20da4
jge 0xd794
movl -0x18(%rbp), %eax
movl %eax, -0x10(%rbp)
movl -0x18(%rbp), %eax
xorl %ecx, %ecx
subl 0x1367e(%rip), %ecx     # 0x20da4
addl %ecx, %eax
cmpl -0x1c(%rbp), %eax
jge 0xd73f
movl -0x18(%rbp), %eax
xorl %ecx, %ecx
subl 0x1366c(%rip), %ecx     # 0x20da4
addl %ecx, %eax
movl %eax, -0x74(%rbp)
jmp 0xd745
movl -0x1c(%rbp), %eax
movl %eax, -0x74(%rbp)
movl -0x74(%rbp), %eax
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %eax
subl -0x10(%rbp), %eax
addl 0x1364d(%rip), %eax     # 0x20da4
movl %eax, 0x13647(%rip)     # 0x20da4
cmpl $0x0, 0x13640(%rip)     # 0x20da4
jge 0xd792
movq -0x48(%rbp), %rax
movl -0x30(%rbp), %ecx
movl %ecx, %edx
addl $-0x1, %edx
movl %edx, -0x30(%rbp)
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
callq 0x5340
movl 0x1361d(%rip), %eax     # 0x20da4
addl $0x1, %eax
movl %eax, 0x13614(%rip)     # 0x20da4
jmp 0xd75d
jmp 0xd794
movl -0x8(%rbp), %eax
subl $0x1, %eax
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %eax
cmpl -0x18(%rbp), %eax
jle 0xd80c
movslq -0x4(%rbp), %rdi
shlq $0x4, %rdi
callq 0x5a30
movq %rax, %rdx
movq 0xf72c(%rip), %rax      # 0x1cee8
movslq -0xc(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
cmpl -0x4(%rbp), %eax
jge 0xd7ff
movq 0xf70e(%rip), %rax      # 0x1cee8
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movslq -0x10(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rdi
xorl %esi, %esi
callq 0x9170
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0xd7cb
jmp 0xd801
movl -0xc(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xd79d
jmp 0xd80e
movl -0xc(%rbp), %eax
cmpl 0xf6c9(%rip), %eax      # 0x1cee0
jl 0xd848
movq -0x48(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0xf6bc(%rip), %rax      # 0x1cee8
movslq -0xc(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0xc(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0xc(%rbp)
movl -0x30(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0xd80e
jmp 0xd84a
cmpl $0x0, -0xc(%rbp)
jl 0xd893
movq 0xf691(%rip), %rax      # 0x1cee8
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x5340
movq -0x48(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0xf671(%rip), %rax      # 0x1cee8
movslq -0xc(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0xc(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0xc(%rbp)
movl -0x30(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0xd84a
jmp 0xd895
xorl %eax, %eax
cmpl $0x0, -0x30(%rbp)
movb %al, -0x75(%rbp)
jl 0xd8ad
cmpl $0xfffff830, -0xc(%rbp) # imm = 0xFFFFF830
setge %al
movb %al, -0x75(%rbp)
movb -0x75(%rbp), %al
testb $0x1, %al
jne 0xd8b6
jmp 0xd91a
movl 0x134b4(%rip), %eax     # 0x20d70
addl -0xc(%rbp), %eax
addl $0x1, %eax
addl $0x7d0, %eax            # imm = 0x7D0
movl $0x7d0, %ecx            # imm = 0x7D0
cltd
idivl %ecx
movl %edx, -0x10(%rbp)
movslq -0x10(%rbp), %rcx
leaq 0xf603(%rip), %rax      # 0x1cee0
movq 0x10(%rax,%rcx,8), %rdi
callq 0x5340
movq -0x48(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movslq -0x10(%rbp), %rcx
leaq 0xf5e2(%rip), %rax      # 0x1cee0
movq %rdx, 0x10(%rax,%rcx,8)
movl -0xc(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0xc(%rbp)
movl -0x30(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0xd895
xorl %eax, %eax
subl -0xc(%rbp), %eax
subl $0x1, %eax
movl %eax, 0x1344c(%rip)     # 0x20d74
movl 0x1344a(%rip), %eax     # 0x20d78
cmpl 0x13440(%rip), %eax     # 0x20d74
jge 0xd941
movl 0x1343c(%rip), %eax     # 0x20d78
movl %eax, -0x7c(%rbp)
jmp 0xd94a
movl 0x1342d(%rip), %eax     # 0x20d74
movl %eax, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
movl %eax, 0x13425(%rip)     # 0x20d78
cmpl $0xfffff830, -0xc(%rbp) # imm = 0xFFFFF830
jl 0xd9b3
movl 0x1340e(%rip), %eax     # 0x20d70
addl -0xc(%rbp), %eax
addl $0x1, %eax
addl $0x7d0, %eax            # imm = 0x7D0
movl $0x7d0, %ecx            # imm = 0x7D0
cltd
idivl %ecx
movl %edx, -0x10(%rbp)
movslq -0x10(%rbp), %rcx
leaq 0xf55d(%rip), %rax      # 0x1cee0
movq 0x10(%rax,%rcx,8), %rdi
movslq -0x4(%rbp), %rsi
shlq $0x4, %rsi
callq 0x5b30
movq %rax, %rdx
movslq -0x10(%rbp), %rcx
leaq 0xf53d(%rip), %rax      # 0x1cee0
movq %rdx, 0x10(%rax,%rcx,8)
movl -0xc(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xd953
movq -0x48(%rbp), %rdi
callq 0x5340
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)