	.file	"104381.c"
	.intel_syntax noprefix
	.text
	.local	argv0
	.comm	argv0,8,8
	.local	current_page
	.comm	current_page,8,8
	.local	page_count
	.comm	page_count,8,8
	.local	pages
	.comm	pages,8,8
	.data
	.align 4
	.type	caught_sigwinch, @object
	.size	caught_sigwinch, 4
caught_sigwinch:
	.long	1
	.align 8
	.type	width, @object
	.size	width, 8
width:
	.quad	72
	.align 8
	.type	height, @object
	.size	height, 8
height:
	.quad	56
	.text
	.type	sigwinch, @function
sigwinch:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	lea	rsi, sigwinch[rip]
	mov	edi, eax
	call	signal@PLT
	mov	DWORD PTR caught_sigwinch[rip], 1
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sigwinch, .-sigwinch
	.type	get_terminal_size, @function
get_terminal_size:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR caught_sigwinch[rip]
	test	eax, eax
	je	.L9
	mov	DWORD PTR caught_sigwinch[rip], 0
	jmp	.L5
.L6:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	jne	.L10
.L5:
	lea	rax, -16[rbp]
	mov	rdx, rax
	mov	esi, 21523
	mov	edi, 1
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	js	.L6
	movzx	eax, WORD PTR -16[rbp]
	movzx	eax, ax
	mov	QWORD PTR height[rip], rax
	movzx	eax, WORD PTR -14[rbp]
	movzx	eax, ax
	mov	QWORD PTR width[rip], rax
	jmp	.L2
.L9:
	nop
	jmp	.L2
.L10:
	nop
.L2:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_terminal_size, .-get_terminal_size
	.section	.rodata
.LC0:
	.string	"%zu (%zu)%zn"
.LC1:
	.string	"\033[%zu;1H\033[0;7m\033[%zu@\033[27m"
.LC2:
	.string	"\033[%zu;%zuH\033[0m%zu (%zu)"
.LC3:
	.string	"%zu (%zu)"
.LC4:
	.string	"\033[27m"
.LC5:
	.string	"\033[%zu;%zuH\033[0;7m%s"
	.text
	.type	display_page, @function
display_page:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	DWORD PTR -120[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -104[rbp], 0
	mov	rdx, QWORD PTR pages[rip]
	mov	rax, QWORD PTR current_page[rip]
	sal	rax, 4
	add	rax, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], rdx
	jmp	.L12
.L16:
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	test	rax, rax
	jns	.L13
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	jne	.L31
	jmp	.L12
.L13:
	mov	rdx, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -112[rbp]
	sub	rax, rdx
	mov	QWORD PTR -88[rbp], rax
.L12:
	mov	rax, QWORD PTR -88[rbp]
	test	rax, rax
	jne	.L16
	mov	eax, DWORD PTR -116[rbp]
	or	eax, DWORD PTR -120[rbp]
	test	eax, eax
	jne	.L17
	mov	eax, 0
	jmp	.L29
.L17:
	call	get_terminal_size
	mov	rdx, QWORD PTR page_count[rip]
	mov	rax, QWORD PTR current_page[rip]
	add	rax, 1
	lea	rcx, -112[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	rcx, rax
	lea	rdx, .LC0[rip]
	mov	esi, 0
	mov	edi, 0
	mov	eax, 0
	call	snprintf@PLT
	test	eax, eax
	js	.L32
	cmp	DWORD PTR -116[rbp], 0
	je	.L20
	mov	rax, QWORD PTR current_page[rip]
	test	rax, rax
	je	.L20
	mov	rdx, QWORD PTR current_page[rip]
	mov	rax, QWORD PTR width[rip]
	imul	rax, rdx
	mov	rdx, QWORD PTR page_count[rip]
	lea	rdi, -1[rdx]
	mov	edx, 0
	div	rdi
	mov	QWORD PTR -104[rbp], rax
	mov	rdx, QWORD PTR height[rip]
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, QWORD PTR -104[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	jns	.L22
	jmp	.L15
.L20:
	cmp	DWORD PTR -120[rbp], 0
	je	.L22
	mov	rsi, QWORD PTR page_count[rip]
	mov	rax, QWORD PTR current_page[rip]
	lea	rdi, 1[rax]
	mov	rax, QWORD PTR width[rip]
	mov	rdx, QWORD PTR -112[rbp]
	sub	rax, rdx
	lea	rcx, -1[rax]
	mov	rdx, QWORD PTR height[rip]
	mov	rax, QWORD PTR stdout[rip]
	mov	r9, rsi
	mov	r8, rdi
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	js	.L33
.L22:
	cmp	DWORD PTR -116[rbp], 0
	je	.L23
	cmp	DWORD PTR -120[rbp], 0
	je	.L23
	mov	rax, QWORD PTR current_page[rip]
	test	rax, rax
	je	.L23
	mov	rdx, QWORD PTR page_count[rip]
	mov	rax, QWORD PTR current_page[rip]
	lea	rsi, 1[rax]
	lea	rax, -80[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR width[rip]
	mov	rdx, QWORD PTR -112[rbp]
	sub	rax, rdx
	sub	rax, 1
	cmp	QWORD PTR -104[rbp], rax
	jnb	.L24
	mov	QWORD PTR -104[rbp], 0
	jmp	.L25
.L24:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR width[rip]
	sub	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	add	rax, 1
	mov	QWORD PTR -104[rbp], rax
.L25:
	mov	rax, QWORD PTR -112[rbp]
	cmp	QWORD PTR -104[rbp], rax
	jbe	.L26
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR -104[rbp], rax
.L26:
	lea	rdx, -80[rbp]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	lea	rcx, -80[rbp]
	mov	rax, QWORD PTR -104[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, 5[rax]
	lea	rax, -80[rbp]
	add	rax, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
	lea	rdx, -80[rbp]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	edx, 5
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR width[rip]
	mov	rdx, QWORD PTR -112[rbp]
	sub	rax, rdx
	lea	rcx, -1[rax]
	mov	rdx, QWORD PTR height[rip]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, -80[rbp]
	mov	r8, rsi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	js	.L34
.L23:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	test	eax, eax
	jne	.L35
	mov	eax, 0
	jmp	.L29
.L31:
	nop
	jmp	.L15
.L32:
	nop
	jmp	.L15
.L33:
	nop
	jmp	.L15
.L34:
	nop
	jmp	.L15
.L35:
	nop
.L15:
	mov	eax, -1
.L29:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	display_page, .-display_page
	.section	.rodata
.LC6:
	.string	"\033[H\033[2J"
.LC7:
	.string	"AD"
.LC8:
	.string	"BC"
	.text
	.type	display_file, @function
display_file:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	DWORD PTR -44[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L37:
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	js	.L68
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	test	eax, eax
	jne	.L69
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	edi, eax
	call	display_page
	test	eax, eax
	jne	.L70
	mov	DWORD PTR -20[rbp], 99
	mov	DWORD PTR -24[rbp], 0
	jmp	.L42
.L63:
	lea	rcx, -25[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L43
	mov	eax, 0
	jmp	.L66
.L43:
	cmp	QWORD PTR -16[rbp], 0
	jns	.L45
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	jne	.L71
	jmp	.L42
.L45:
	cmp	DWORD PTR -24[rbp], 1
	jne	.L47
	movzx	eax, BYTE PTR -25[rbp]
	cmp	al, 91
	jne	.L48
	mov	eax, 2
	jmp	.L49
.L48:
	mov	eax, 0
.L49:
	mov	DWORD PTR -24[rbp], eax
	jmp	.L42
.L47:
	cmp	DWORD PTR -24[rbp], 2
	jne	.L50
	movzx	eax, BYTE PTR -25[rbp]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC7[rip]
	call	strchr@PLT
	test	rax, rax
	je	.L51
	mov	DWORD PTR -20[rbp], -1
	jmp	.L42
.L51:
	movzx	eax, BYTE PTR -25[rbp]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC8[rip]
	call	strchr@PLT
	test	rax, rax
	je	.L52
	mov	DWORD PTR -20[rbp], 1
	jmp	.L42
.L52:
	movzx	eax, BYTE PTR -25[rbp]
	cmp	al, 53
	jne	.L53
	mov	DWORD PTR -24[rbp], 5
	jmp	.L42
.L53:
	movzx	eax, BYTE PTR -25[rbp]
	cmp	al, 54
	jne	.L54
	mov	DWORD PTR -24[rbp], 6
	jmp	.L42
.L54:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L42
.L50:
	cmp	DWORD PTR -24[rbp], 5
	je	.L55
	cmp	DWORD PTR -24[rbp], 6
	jne	.L56
.L55:
	movzx	eax, BYTE PTR -25[rbp]
	cmp	al, 126
	jne	.L57
	cmp	DWORD PTR -24[rbp], 5
	jne	.L58
	mov	eax, -1
	jmp	.L59
.L58:
	mov	eax, 1
.L59:
	mov	DWORD PTR -20[rbp], eax
	jmp	.L42
.L57:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L42
.L56:
	movzx	eax, BYTE PTR -25[rbp]
	cmp	al, 27
	jne	.L61
	mov	DWORD PTR -24[rbp], 1
	jmp	.L42
.L61:
	movzx	eax, BYTE PTR -25[rbp]
	cmp	al, 12
	jne	.L62
	mov	DWORD PTR -20[rbp], 0
	jmp	.L42
.L62:
	movzx	eax, BYTE PTR -25[rbp]
	cmp	al, 113
	jne	.L42
	mov	eax, 0
	jmp	.L66
.L42:
	cmp	DWORD PTR -20[rbp], 99
	je	.L63
	cmp	DWORD PTR -20[rbp], -1
	jne	.L64
	mov	rax, QWORD PTR current_page[rip]
	test	rax, rax
	je	.L64
	mov	rax, QWORD PTR current_page[rip]
	sub	rax, 1
	mov	QWORD PTR current_page[rip], rax
	jmp	.L65
.L64:
	cmp	DWORD PTR -20[rbp], 1
	jne	.L37
	mov	rax, QWORD PTR current_page[rip]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR page_count[rip]
	cmp	rdx, rax
	jnb	.L37
	mov	rax, QWORD PTR current_page[rip]
	add	rax, 1
	mov	QWORD PTR current_page[rip], rax
.L65:
	jmp	.L37
.L68:
	nop
	jmp	.L39
.L69:
	nop
	jmp	.L39
.L70:
	nop
	jmp	.L39
.L71:
	nop
.L39:
	mov	eax, -1
.L66:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L67
	call	__stack_chk_fail@PLT
.L67:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	display_file, .-display_file
	.type	add_page, @function
add_page:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	jmp	.L73
.L75:
	sub	QWORD PTR -48[rbp], 1
.L73:
	cmp	QWORD PTR -48[rbp], 0
	je	.L74
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L75
.L74:
	cmp	QWORD PTR -48[rbp], 0
	jne	.L76
	cmp	DWORD PTR -52[rbp], 0
	jne	.L76
	mov	eax, 0
	jmp	.L77
.L76:
	mov	rax, QWORD PTR page_count[rip]
	add	rax, 1
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR pages[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L81
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR pages[rip], rax
	mov	rdx, QWORD PTR pages[rip]
	mov	rax, QWORD PTR page_count[rip]
	sal	rax, 4
	add	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	rdx, QWORD PTR pages[rip]
	mov	rax, QWORD PTR page_count[rip]
	sal	rax, 4
	lea	rbx, [rdx+rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rdx, QWORD PTR pages[rip]
	mov	rax, QWORD PTR page_count[rip]
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L82
	mov	rdx, QWORD PTR pages[rip]
	mov	rax, QWORD PTR page_count[rip]
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR page_count[rip]
	add	rax, 1
	mov	QWORD PTR page_count[rip], rax
	mov	eax, 0
	jmp	.L77
.L81:
	nop
	jmp	.L79
.L82:
	nop
.L79:
	mov	eax, -1
.L77:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	add_page, .-add_page
	.type	load_pages, @function
load_pages:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	DWORD PTR -72[rbp], esi
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
.L99:
	mov	rax, QWORD PTR -48[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jne	.L84
	cmp	QWORD PTR -40[rbp], 0
	je	.L85
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rax
	jmp	.L86
.L85:
	mov	eax, 8096
.L86:
	mov	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L104
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -56[rbp], rax
.L84:
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR -48[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -48[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -68[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jns	.L89
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L105
	jmp	.L88
.L89:
	cmp	QWORD PTR -16[rbp], 0
	je	.L106
	mov	rax, QWORD PTR -16[rbp]
	add	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -32[rbp], rax
.L98:
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, QWORD PTR -56[rbp]
	mov	rcx, rax
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, rcx
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 12
	mov	rdi, rax
	call	memchr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L107
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	edx, DWORD PTR -72[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	add_page
	test	eax, eax
	jne	.L108
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, QWORD PTR -56[rbp]
	cmp	QWORD PTR -48[rbp], rax
	jbe	.L98
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	sete	al
	movzx	eax, al
	add	QWORD PTR -32[rbp], rax
	jmp	.L98
.L107:
	nop
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, QWORD PTR -56[rbp]
	sub	QWORD PTR -48[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
	jmp	.L99
.L105:
	nop
	jmp	.L99
.L106:
	nop
	mov	rcx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	add_page
	test	eax, eax
	jne	.L109
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L101
.L104:
	nop
	jmp	.L88
.L108:
	nop
	jmp	.L88
.L109:
	nop
.L88:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -60[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	call	__errno_location@PLT
	mov	edx, DWORD PTR -60[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, -1
.L101:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	load_pages, .-load_pages
	.section	.rodata
.LC9:
	.string	"pp"
.LC10:
	.string	"--"
.LC11:
	.string	"-"
.LC12:
	.string	"/dev/tty"
.LC13:
	.string	"\033[?1049h\033[?25l"
.LC14:
	.string	"\033[?25h\033[?1049l"
	.align 8
.LC15:
	.string	"%s: Invalid arguments, see `man 1 pp'.\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 352
	mov	DWORD PTR -340[rbp], edi
	mov	QWORD PTR -352[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -328[rbp], 0
	mov	DWORD PTR -324[rbp], 0
	mov	DWORD PTR -320[rbp], 0
	mov	DWORD PTR -316[rbp], 0
	mov	QWORD PTR -296[rbp], 0
	mov	DWORD PTR -312[rbp], -1
	mov	DWORD PTR -308[rbp], 0
	lea	rax, -160[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	fstat@PLT
	test	eax, eax
	je	.L111
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 9
	je	.L150
.L111:
	cmp	QWORD PTR -352[rbp], 0
	je	.L113
	sub	DWORD PTR -340[rbp], 1
	mov	rax, QWORD PTR -352[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -352[rbp], rdx
	mov	rax, QWORD PTR [rax]
	jmp	.L114
.L113:
	lea	rax, .LC9[rip]
.L114:
	mov	QWORD PTR argv0[rip], rax
	jmp	.L115
.L126:
	cmp	DWORD PTR -328[rbp], 0
	jne	.L116
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L116
	mov	DWORD PTR -328[rbp], 1
	add	QWORD PTR -352[rbp], 8
	sub	DWORD PTR -340[rbp], 1
	jmp	.L115
.L116:
	cmp	DWORD PTR -328[rbp], 0
	jne	.L117
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L117
	mov	rax, QWORD PTR -352[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -352[rbp], rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -304[rbp], rax
	sub	DWORD PTR -340[rbp], 1
	add	QWORD PTR -304[rbp], 1
	jmp	.L118
.L124:
	mov	rax, QWORD PTR -304[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 101
	jne	.L119
	mov	DWORD PTR -324[rbp], 1
	jmp	.L120
.L119:
	mov	rax, QWORD PTR -304[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 98
	jne	.L121
	mov	DWORD PTR -320[rbp], 1
	jmp	.L120
.L121:
	mov	rax, QWORD PTR -304[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 112
	jne	.L151
	mov	DWORD PTR -316[rbp], 1
.L120:
	add	QWORD PTR -304[rbp], 1
.L118:
	mov	rax, QWORD PTR -304[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L124
	jmp	.L115
.L117:
	cmp	QWORD PTR -296[rbp], 0
	jne	.L152
	mov	rax, QWORD PTR -352[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -352[rbp], rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -296[rbp], rax
	sub	DWORD PTR -340[rbp], 1
.L115:
	cmp	DWORD PTR -340[rbp], 0
	jne	.L126
	cmp	QWORD PTR -296[rbp], 0
	je	.L127
	mov	rax, QWORD PTR -296[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L128
.L127:
	mov	DWORD PTR -312[rbp], 0
	jmp	.L129
.L128:
	mov	rax, QWORD PTR -296[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -312[rbp], eax
	cmp	DWORD PTR -312[rbp], -1
	je	.L153
.L129:
	mov	edx, DWORD PTR -324[rbp]
	mov	eax, DWORD PTR -312[rbp]
	mov	esi, edx
	mov	edi, eax
	call	load_pages
	test	eax, eax
	jne	.L154
	mov	eax, DWORD PTR -312[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -312[rbp], -1
	mov	rax, QWORD PTR page_count[rip]
	cmp	rax, 1
	jbe	.L155
	mov	esi, 0
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -312[rbp], eax
	cmp	DWORD PTR -312[rbp], -1
	je	.L156
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	js	.L157
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	test	eax, eax
	jne	.L158
	lea	rdx, -288[rbp]
	mov	eax, DWORD PTR -312[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	tcgetattr@PLT
	test	eax, eax
	jne	.L159
	mov	rax, QWORD PTR -288[rbp]
	mov	rdx, QWORD PTR -280[rbp]
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], rdx
	mov	rax, QWORD PTR -272[rbp]
	mov	rdx, QWORD PTR -264[rbp]
	mov	QWORD PTR -208[rbp], rax
	mov	QWORD PTR -200[rbp], rdx
	mov	rax, QWORD PTR -256[rbp]
	mov	rdx, QWORD PTR -248[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -184[rbp], rdx
	mov	rax, QWORD PTR -240[rbp]
	mov	QWORD PTR -176[rbp], rax
	mov	eax, DWORD PTR -232[rbp]
	mov	DWORD PTR -168[rbp], eax
	mov	eax, DWORD PTR -276[rbp]
	and	eax, -12
	mov	DWORD PTR -276[rbp], eax
	lea	rdx, -288[rbp]
	mov	eax, DWORD PTR -312[rbp]
	mov	esi, 2
	mov	edi, eax
	call	tcsetattr@PLT
	test	eax, eax
	jne	.L160
	mov	DWORD PTR -308[rbp], 1
	lea	rsi, sigwinch[rip]
	mov	edi, 28
	call	signal@PLT
	mov	edx, DWORD PTR -316[rbp]
	mov	ecx, DWORD PTR -320[rbp]
	mov	eax, DWORD PTR -312[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	display_file
	test	eax, eax
	jne	.L161
	lea	rdx, -224[rbp]
	mov	eax, DWORD PTR -312[rbp]
	mov	esi, 2
	mov	edi, eax
	call	tcsetattr@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -308[rbp], 0
	mov	eax, DWORD PTR -312[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -312[rbp], -1
	jmp	.L132
.L155:
	nop
.L132:
	mov	rax, QWORD PTR page_count[rip]
	test	rax, rax
	jne	.L139
	mov	eax, 0
	jmp	.L148
.L139:
	mov	esi, 0
	mov	edi, 0
	call	display_page
	test	eax, eax
	jne	.L162
	mov	rax, QWORD PTR stdout[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L142
.L143:
	mov	rdx, QWORD PTR pages[rip]
	mov	rax, QWORD PTR page_count[rip]
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
.L142:
	mov	rax, QWORD PTR page_count[rip]
	lea	rdx, -1[rax]
	mov	QWORD PTR page_count[rip], rdx
	test	rax, rax
	jne	.L143
	mov	rax, QWORD PTR pages[rip]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L148
.L150:
	nop
	jmp	.L112
.L153:
	nop
	jmp	.L112
.L154:
	nop
	jmp	.L112
.L156:
	nop
	jmp	.L112
.L157:
	nop
	jmp	.L112
.L158:
	nop
	jmp	.L112
.L159:
	nop
	jmp	.L112
.L160:
	nop
	jmp	.L112
.L161:
	nop
	jmp	.L112
.L162:
	nop
.L112:
	mov	rax, QWORD PTR argv0[rip]
	mov	rdi, rax
	call	perror@PLT
	cmp	DWORD PTR -308[rbp], 0
	je	.L144
	lea	rdx, -224[rbp]
	mov	eax, DWORD PTR -312[rbp]
	mov	esi, 2
	mov	edi, eax
	call	tcsetattr@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L144:
	cmp	DWORD PTR -312[rbp], 0
	js	.L146
	mov	eax, DWORD PTR -312[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L146
.L147:
	mov	rdx, QWORD PTR pages[rip]
	mov	rax, QWORD PTR page_count[rip]
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
.L146:
	mov	rax, QWORD PTR page_count[rip]
	lea	rdx, -1[rax]
	mov	QWORD PTR page_count[rip], rdx
	test	rax, rax
	jne	.L147
	mov	rax, QWORD PTR pages[rip]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 1
	jmp	.L148
.L151:
	nop
	jmp	.L123
.L152:
	nop
.L123:
	mov	rdx, QWORD PTR argv0[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 2
.L148:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L149
	call	__stack_chk_fail@PLT
.L149:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"104381.c"
	.text
	.local	argv0
	.comm	argv0,4,4
	.local	current_page
	.comm	current_page,4,4
	.local	page_count
	.comm	page_count,4,4
	.local	pages
	.comm	pages,4,4
	.data
	.align	2
	.type	caught_sigwinch, %object
	.size	caught_sigwinch, 4
caught_sigwinch:
	.word	1
	.align	2
	.type	width, %object
	.size	width, 4
width:
	.word	72
	.align	2
	.type	height, %object
	.size	height, 4
height:
	.word	56
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigwinch, %function
sigwinch:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, .L2
	ldr	r0, [fp, #-8]
	bl	signal
	ldr	r3, .L2+4
	mov	r2, #1
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	sigwinch
	.word	caught_sigwinch
	.size	sigwinch, .-sigwinch
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_terminal_size, %function
get_terminal_size:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L13+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L13+4
	mov	r2, #0
	str	r2, [r3]
	b	.L7
.L8:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L12
.L7:
	sub	r3, fp, #16
	mov	r2, r3
	ldr	r1, .L13+8
	mov	r0, #1
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	blt	.L8
	ldrh	r3, [fp, #-16]
	mov	r2, r3
	ldr	r3, .L13+12
	str	r2, [r3]
	ldrh	r3, [fp, #-14]
	mov	r2, r3
	ldr	r3, .L13+16
	str	r2, [r3]
	b	.L4
.L11:
	nop
	b	.L4
.L12:
	nop
.L4:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	caught_sigwinch
	.word	21523
	.word	height
	.word	width
	.size	get_terminal_size, .-get_terminal_size
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%zu (%zu)%zn\000"
	.global	__aeabi_uidiv
	.align	2
.LC2:
	.ascii	"\033[%zu;1H\033[0;7m\033[%zu@\033[27m\000"
	.align	2
.LC3:
	.ascii	"\033[%zu;%zuH\033[0m%zu (%zu)\000"
	.align	2
.LC4:
	.ascii	"%zu (%zu)\000"
	.align	2
.LC5:
	.ascii	"\033[27m\000"
	.align	2
.LC6:
	.ascii	"\033[%zu;%zuH\033[0;7m%s\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	display_page, %function
display_page:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #72
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-64]
	ldr	r3, .L40+4
	ldr	r2, [r3]
	ldr	r3, .L40+8
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r2, r2, r3
	sub	r3, fp, #60
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	b	.L16
.L20:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-56]
	mov	r1, r3
	mov	r0, #1
	bl	write
	mov	r3, r0
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bge	.L17
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L35
	b	.L16
.L17:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-68]
	add	r3, r3, r2
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-68]
	sub	r3, r3, r2
	str	r3, [fp, #-56]
.L16:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L20
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-76]
	orr	r3, r2, r3
	cmp	r3, #0
	bne	.L21
	mov	r3, #0
	b	.L33
.L21:
	bl	get_terminal_size
	ldr	r3, .L40+8
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r3, .L40+12
	ldr	r3, [r3]
	sub	r2, fp, #68
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r1
	ldr	r2, .L40+16
	mov	r1, #0
	mov	r0, #0
	bl	snprintf
	mov	r3, r0
	cmp	r3, #0
	blt	.L36
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L40+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L40+20
	ldr	r4, [r3]
	ldr	r3, .L40+24
	ldr	r5, [r3]
	ldr	r3, .L40+8
	ldr	r3, [r3]
	ldr	r2, .L40+28
	ldr	r2, [r2]
	mul	r2, r3, r2
	ldr	r3, .L40+12
	ldr	r3, [r3]
	sub	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_uidiv
	mov	r3, r0
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	mov	r2, r5
	ldr	r1, .L40+32
	mov	r0, r4
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	bge	.L26
	b	.L19
.L24:
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L26
	ldr	r3, .L40+20
	ldr	r0, [r3]
	ldr	r3, .L40+24
	ldr	r1, [r3]
	ldr	r3, .L40+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-68]
	sub	r3, r3, r2
	sub	ip, r3, #1
	ldr	r3, .L40+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L40+12
	ldr	r2, [r2]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r1
	ldr	r1, .L40+36
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	blt	.L37
.L26:
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L27
	ldr	r3, .L40+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L27
	ldr	r3, .L40+8
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, .L40+12
	ldr	r3, [r3]
	sub	r0, fp, #52
	ldr	r1, .L40+40
	bl	sprintf
	ldr	r3, .L40+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-68]
	sub	r3, r3, r2
	sub	r3, r3, #1
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	bcs	.L28
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L29
.L28:
	ldr	r3, [fp, #-68]
	mov	r2, r3
	ldr	r3, .L40+28
	ldr	r3, [r3]
	sub	r2, r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L29:
	ldr	r3, [fp, #-68]
	mov	r2, r3
	ldr	r3, [fp, #-64]
	cmp	r3, r2
	bls	.L30
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-64]
.L30:
	ldr	r3, [fp, #-64]
	add	r3, r3, #5
	sub	r2, fp, #52
	add	r4, r2, r3
	sub	r2, fp, #52
	ldr	r3, [fp, #-64]
	add	r5, r2, r3
	sub	r2, fp, #52
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r2, r3
	mov	r1, r5
	mov	r0, r4
	bl	memmove
	sub	r2, fp, #52
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	mov	r2, #5
	ldr	r1, .L40+44
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L40+20
	ldr	r0, [r3]
	ldr	r3, .L40+24
	ldr	r2, [r3]
	ldr	r3, .L40+28
	ldr	r3, [r3]
	ldr	r1, [fp, #-68]
	sub	r3, r3, r1
	sub	r1, r3, #1
	sub	r3, fp, #52
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L40+48
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	blt	.L38
.L27:
	ldr	r3, .L40+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, r0
	cmp	r3, #0
	bne	.L39
	mov	r3, #0
	b	.L33
.L35:
	nop
	b	.L19
.L36:
	nop
	b	.L19
.L37:
	nop
	b	.L19
.L38:
	nop
	b	.L19
.L39:
	nop
.L19:
	mvn	r3, #0
.L33:
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC7
	.word	pages
	.word	current_page
	.word	page_count
	.word	.LC1
	.word	stdout
	.word	height
	.word	width
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	display_page, .-display_page
	.section	.rodata
	.align	2
.LC8:
	.ascii	"\033[H\033[2J\000"
	.align	2
.LC9:
	.ascii	"AD\000"
	.align	2
.LC10:
	.ascii	"BC\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	display_file, %function
display_file:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L78
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L43:
	ldr	r3, .L78+4
	ldr	r3, [r3]
	ldr	r1, .L78+8
	mov	r0, r3
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	blt	.L74
	ldr	r3, .L78+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, r0
	cmp	r3, #0
	bne	.L75
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-36]
	bl	display_page
	mov	r3, r0
	cmp	r3, #0
	bne	.L76
	mov	r3, #99
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L48
.L69:
	sub	r3, fp, #21
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	read
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L49
	mov	r3, #0
	b	.L72
.L49:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L51
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L77
	b	.L48
.L51:
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L53
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #91
	bne	.L54
	mov	r3, #2
	b	.L55
.L54:
	mov	r3, #0
.L55:
	str	r3, [fp, #-20]
	b	.L48
.L53:
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	bne	.L56
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L78+12
	bl	strchr
	mov	r3, r0
	cmp	r3, #0
	beq	.L57
	mvn	r3, #0
	str	r3, [fp, #-16]
	b	.L48
.L57:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L78+16
	bl	strchr
	mov	r3, r0
	cmp	r3, #0
	beq	.L58
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L48
.L58:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #53
	bne	.L59
	mov	r3, #5
	str	r3, [fp, #-20]
	b	.L48
.L59:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #54
	bne	.L60
	mov	r3, #6
	str	r3, [fp, #-20]
	b	.L48
.L60:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L48
.L56:
	ldr	r3, [fp, #-20]
	cmp	r3, #5
	beq	.L61
	ldr	r3, [fp, #-20]
	cmp	r3, #6
	bne	.L62
.L61:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #126
	bne	.L63
	ldr	r3, [fp, #-20]
	cmp	r3, #5
	bne	.L64
	mvn	r3, #0
	b	.L65
.L64:
	mov	r3, #1
.L65:
	str	r3, [fp, #-16]
	b	.L48
.L63:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L48
.L62:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #27
	bne	.L67
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L48
.L67:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #12
	bne	.L68
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L48
.L68:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #113
	bne	.L48
	mov	r3, #0
	b	.L72
.L48:
	ldr	r3, [fp, #-16]
	cmp	r3, #99
	beq	.L69
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L70
	ldr	r3, .L78+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L70
	ldr	r3, .L78+20
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L78+20
	str	r3, [r2]
	b	.L71
.L70:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L43
	ldr	r3, .L78+20
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, .L78+24
	ldr	r3, [r3]
	cmp	r2, r3
	bcs	.L43
	ldr	r3, .L78+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L78+20
	str	r3, [r2]
.L71:
	b	.L43
.L74:
	nop
	b	.L45
.L75:
	nop
	b	.L45
.L76:
	nop
	b	.L45
.L77:
	nop
.L45:
	mvn	r3, #0
.L72:
	ldr	r2, .L78
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L73
	bl	__stack_chk_fail
.L73:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L79:
	.align	2
.L78:
	.word	.LC11
	.word	stdout
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	current_page
	.word	page_count
	.size	display_file, .-display_file
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_page, %function
add_page:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	b	.L81
.L83:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
.L81:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L82
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L83
.L82:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L84
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L84
	mov	r3, #0
	b	.L85
.L84:
	ldr	r3, .L91
	ldr	r2, [r3]
	ldr	r3, .L91+4
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #3
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L89
	ldr	r2, .L91
	ldr	r3, [fp, #-16]
	str	r3, [r2]
	ldr	r3, .L91
	ldr	r2, [r3]
	ldr	r3, .L91+4
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3, #4]
	ldr	r3, .L91
	ldr	r2, [r3]
	ldr	r3, .L91+4
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r4, r2, r3
	ldr	r0, [fp, #-28]
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, .L91
	ldr	r2, [r3]
	ldr	r3, .L91+4
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L90
	ldr	r3, .L91
	ldr	r2, [r3]
	ldr	r3, .L91+4
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L91+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L91+4
	str	r3, [r2]
	mov	r3, #0
	b	.L85
.L89:
	nop
	b	.L87
.L90:
	nop
.L87:
	mvn	r3, #0
.L85:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L92:
	.align	2
.L91:
	.word	pages
	.word	page_count
	.size	add_page, .-add_page
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_pages, %function
load_pages:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
.L109:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bne	.L94
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L95
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #1
	b	.L96
.L95:
	ldr	r3, .L120
.L96:
	str	r3, [fp, #-28]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-36]
	bl	realloc
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L114
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-36]
.L94:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	add	r1, r2, r3
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-40]
	bl	read
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L99
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L115
	b	.L98
.L99:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L116
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-24]
.L108:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	sub	r3, r3, r2
	mov	r2, r3
	mov	r1, #12
	ldr	r0, [fp, #-24]
	bl	memchr
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L117
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	ldr	r2, [fp, #-44]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	add_page
	mov	r3, r0
	cmp	r3, #0
	bne	.L118
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	cmp	r3, r2
	bls	.L108
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	str	r3, [fp, #-24]
	b	.L108
.L117:
	nop
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	sub	r3, r3, r2
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-36]
	bl	memmove
	b	.L109
.L115:
	nop
	b	.L109
.L116:
	nop
	mov	r2, #0
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	add_page
	mov	r3, r0
	cmp	r3, #0
	bne	.L119
	ldr	r0, [fp, #-36]
	bl	free
	mov	r3, #0
	b	.L111
.L114:
	nop
	b	.L98
.L118:
	nop
	b	.L98
.L119:
	nop
.L98:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-36]
	bl	free
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	mvn	r3, #0
.L111:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L121:
	.align	2
.L120:
	.word	8096
	.size	load_pages, .-load_pages
	.section	.rodata
	.align	2
.LC12:
	.ascii	"pp\000"
	.align	2
.LC13:
	.ascii	"--\000"
	.align	2
.LC14:
	.ascii	"-\000"
	.align	2
.LC15:
	.ascii	"/dev/tty\000"
	.align	2
.LC16:
	.ascii	"\033[?1049h\033[?25l\000"
	.align	2
.LC17:
	.ascii	"\033[?25h\033[?1049l\000"
	.align	2
.LC18:
	.ascii	"%s: Invalid arguments, see `man 1 pp'.\012\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 256
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #256
	str	r0, [fp, #-256]
	str	r1, [fp, #-260]
	ldr	r3, .L175
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-252]
	mov	r3, #0
	str	r3, [fp, #-248]
	mov	r3, #0
	str	r3, [fp, #-244]
	mov	r3, #0
	str	r3, [fp, #-240]
	mov	r3, #0
	str	r3, [fp, #-232]
	mvn	r3, #0
	str	r3, [fp, #-228]
	mov	r3, #0
	str	r3, [fp, #-224]
	sub	r3, fp, #220
	mov	r1, r3
	mov	r0, #1
	bl	fstat
	mov	r3, r0
	cmp	r3, #0
	beq	.L123
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #9
	beq	.L162
.L123:
	ldr	r3, [fp, #-260]
	cmp	r3, #0
	beq	.L125
	ldr	r3, [fp, #-256]
	sub	r3, r3, #1
	str	r3, [fp, #-256]
	ldr	r3, [fp, #-260]
	add	r2, r3, #4
	str	r2, [fp, #-260]
	ldr	r3, [r3]
	b	.L126
.L125:
	ldr	r3, .L175+4
.L126:
	ldr	r2, .L175+8
	str	r3, [r2]
	b	.L127
.L138:
	ldr	r3, [fp, #-252]
	cmp	r3, #0
	bne	.L128
	ldr	r3, [fp, #-260]
	ldr	r3, [r3]
	ldr	r1, .L175+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L128
	mov	r3, #1
	str	r3, [fp, #-252]
	ldr	r3, [fp, #-260]
	add	r3, r3, #4
	str	r3, [fp, #-260]
	ldr	r3, [fp, #-256]
	sub	r3, r3, #1
	str	r3, [fp, #-256]
	b	.L127
.L128:
	ldr	r3, [fp, #-252]
	cmp	r3, #0
	bne	.L129
	ldr	r3, [fp, #-260]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L129
	ldr	r3, [fp, #-260]
	add	r2, r3, #4
	str	r2, [fp, #-260]
	ldr	r3, [r3]
	str	r3, [fp, #-236]
	ldr	r3, [fp, #-256]
	sub	r3, r3, #1
	str	r3, [fp, #-256]
	ldr	r3, [fp, #-236]
	add	r3, r3, #1
	str	r3, [fp, #-236]
	b	.L130
.L136:
	ldr	r3, [fp, #-236]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #101
	bne	.L131
	mov	r3, #1
	str	r3, [fp, #-248]
	b	.L132
.L131:
	ldr	r3, [fp, #-236]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L133
	mov	r3, #1
	str	r3, [fp, #-244]
	b	.L132
.L133:
	ldr	r3, [fp, #-236]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #112
	bne	.L163
	mov	r3, #1
	str	r3, [fp, #-240]
.L132:
	ldr	r3, [fp, #-236]
	add	r3, r3, #1
	str	r3, [fp, #-236]
.L130:
	ldr	r3, [fp, #-236]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L136
	b	.L127
.L129:
	ldr	r3, [fp, #-232]
	cmp	r3, #0
	bne	.L164
	ldr	r3, [fp, #-260]
	add	r2, r3, #4
	str	r2, [fp, #-260]
	ldr	r3, [r3]
	str	r3, [fp, #-232]
	ldr	r3, [fp, #-256]
	sub	r3, r3, #1
	str	r3, [fp, #-256]
.L127:
	ldr	r3, [fp, #-256]
	cmp	r3, #0
	bne	.L138
	ldr	r3, [fp, #-232]
	cmp	r3, #0
	beq	.L139
	ldr	r1, .L175+16
	ldr	r0, [fp, #-232]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L140
.L139:
	mov	r3, #0
	str	r3, [fp, #-228]
	b	.L141
.L140:
	mov	r1, #0
	ldr	r0, [fp, #-232]
	bl	open
	str	r0, [fp, #-228]
	ldr	r3, [fp, #-228]
	cmn	r3, #1
	beq	.L165
.L141:
	ldr	r1, [fp, #-248]
	ldr	r0, [fp, #-228]
	bl	load_pages
	mov	r3, r0
	cmp	r3, #0
	bne	.L166
	ldr	r0, [fp, #-228]
	bl	close
	mvn	r3, #0
	str	r3, [fp, #-228]
	ldr	r3, .L175+20
	ldr	r3, [r3]
	cmp	r3, #1
	bls	.L167
	mov	r1, #0
	ldr	r0, .L175+24
	bl	open
	str	r0, [fp, #-228]
	ldr	r3, [fp, #-228]
	cmn	r3, #1
	beq	.L168
	ldr	r3, .L175+28
	ldr	r3, [r3]
	ldr	r1, .L175+32
	mov	r0, r3
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	blt	.L169
	ldr	r3, .L175+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, r0
	cmp	r3, #0
	bne	.L170
	sub	r3, fp, #128
	mov	r1, r3
	ldr	r0, [fp, #-228]
	bl	tcgetattr
	mov	r3, r0
	cmp	r3, #0
	bne	.L171
	sub	ip, fp, #68
	sub	lr, fp, #128
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, [fp, #-116]
	bic	r3, r3, #11
	str	r3, [fp, #-116]
	sub	r3, fp, #128
	mov	r2, r3
	mov	r1, #2
	ldr	r0, [fp, #-228]
	bl	tcsetattr
	mov	r3, r0
	cmp	r3, #0
	bne	.L172
	mov	r3, #1
	str	r3, [fp, #-224]
	ldr	r1, .L175+36
	mov	r0, #28
	bl	signal
	ldr	r2, [fp, #-240]
	ldr	r1, [fp, #-244]
	ldr	r0, [fp, #-228]
	bl	display_file
	mov	r3, r0
	cmp	r3, #0
	bne	.L173
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #2
	ldr	r0, [fp, #-228]
	bl	tcsetattr
	ldr	r3, .L175+28
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L175+40
	bl	fwrite
	ldr	r3, .L175+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	str	r3, [fp, #-224]
	ldr	r0, [fp, #-228]
	bl	close
	mvn	r3, #0
	str	r3, [fp, #-228]
	b	.L144
.L167:
	nop
.L144:
	ldr	r3, .L175+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L151
	mov	r3, #0
	b	.L160
.L151:
	mov	r1, #0
	mov	r0, #0
	bl	display_page
	mov	r3, r0
	cmp	r3, #0
	bne	.L174
	ldr	r3, .L175+28
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, .L175+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L154
.L155:
	ldr	r3, .L175+44
	ldr	r2, [r3]
	ldr	r3, .L175+20
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
.L154:
	ldr	r3, .L175+20
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r1, .L175+20
	str	r2, [r1]
	cmp	r3, #0
	bne	.L155
	ldr	r3, .L175+44
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	mov	r3, #0
	b	.L160
.L162:
	nop
	b	.L124
.L165:
	nop
	b	.L124
.L166:
	nop
	b	.L124
.L168:
	nop
	b	.L124
.L169:
	nop
	b	.L124
.L170:
	nop
	b	.L124
.L171:
	nop
	b	.L124
.L172:
	nop
	b	.L124
.L173:
	nop
	b	.L124
.L174:
	nop
.L124:
	ldr	r3, .L175+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	ldr	r3, [fp, #-224]
	cmp	r3, #0
	beq	.L156
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #2
	ldr	r0, [fp, #-228]
	bl	tcsetattr
	ldr	r3, .L175+28
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L175+40
	bl	fwrite
	ldr	r3, .L175+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L156:
	ldr	r3, [fp, #-228]
	cmp	r3, #0
	blt	.L158
	ldr	r0, [fp, #-228]
	bl	close
	b	.L158
.L159:
	ldr	r3, .L175+44
	ldr	r2, [r3]
	ldr	r3, .L175+20
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
.L158:
	ldr	r3, .L175+20
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r1, .L175+20
	str	r2, [r1]
	cmp	r3, #0
	bne	.L159
	ldr	r3, .L175+44
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	mov	r3, #1
	b	.L160
.L163:
	nop
	b	.L135
.L164:
	nop
.L135:
	ldr	r3, .L175+48
	ldr	r3, [r3]
	ldr	r2, .L175+8
	ldr	r2, [r2]
	ldr	r1, .L175+52
	mov	r0, r3
	bl	fprintf
	mov	r3, #2
.L160:
	ldr	r2, .L175
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L161
	bl	__stack_chk_fail
.L161:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L176:
	.align	2
.L175:
	.word	.LC19
	.word	.LC12
	.word	argv0
	.word	.LC13
	.word	.LC14
	.word	page_count
	.word	.LC15
	.word	stdout
	.word	.LC16
	.word	sigwinch
	.word	.LC17
	.word	pages
	.word	stderr
	.word	.LC18
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
