	.file	"247019352.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 1
	jne	.L4
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	do_more
	jmp	.L3
.L6:
	add	QWORD PTR -32[rbp], 8
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L5
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	do_more
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L4
.L5:
	mov	edi, 1
	call	exit@PLT
.L4:
	sub	DWORD PTR -20[rbp], 1
	cmp	DWORD PTR -20[rbp], 0
	jne	.L6
.L3:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC1:
	.string	"/dev/tty"
	.text
	.globl	do_more
	.type	do_more, @function
do_more:
.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, 560
	mov	QWORD PTR -552[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -544[rbp], 0
	mov	DWORD PTR -540[rbp], 0
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -536[rbp], rax
	cmp	QWORD PTR -536[rbp], 0
	jne	.L10
	mov	edi, 1
	call	exit@PLT
.L15:
	cmp	DWORD PTR -544[rbp], 24
	jne	.L11
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	see_more
	mov	DWORD PTR -540[rbp], eax
	cmp	DWORD PTR -540[rbp], 0
	je	.L17
	mov	eax, DWORD PTR -540[rbp]
	sub	DWORD PTR -544[rbp], eax
.L11:
	mov	rdx, QWORD PTR stdout[rip]
	lea	rax, -528[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	cmp	eax, -1
	jne	.L14
	mov	edi, 1
	call	exit@PLT
.L14:
	add	DWORD PTR -544[rbp], 1
.L10:
	mov	rdx, QWORD PTR -552[rbp]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L15
	jmp	.L13
.L17:
	nop
.L13:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	do_more, .-do_more
	.section	.rodata
.LC2:
	.string	"\033[7m more? \033[m"
	.text
	.globl	see_more
	.type	see_more, @function
see_more:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L19
.L23:
	cmp	DWORD PTR -4[rbp], 113
	jne	.L20
	mov	eax, 0
	jmp	.L18
.L20:
	cmp	DWORD PTR -4[rbp], 32
	jne	.L22
	mov	eax, 24
	jmp	.L18
.L22:
	cmp	DWORD PTR -4[rbp], 10
	jne	.L19
	mov	eax, 1
	jmp	.L18
.L19:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L23
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	see_more, .-see_more
	.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	"247019352.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L4
	ldr	r3, .L8
	ldr	r3, [r3]
	mov	r0, r3
	bl	do_more
	b	.L3
.L6:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r1, .L8+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L5
	ldr	r0, [fp, #-8]
	bl	do_more
	ldr	r0, [fp, #-8]
	bl	fclose
	b	.L4
.L5:
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L6
.L3:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	stdin
	.word	.LC0
	.size	main, .-main
	.section	.rodata
	.align	2
.LC1:
	.ascii	"/dev/tty\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	do_more
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_more, %function
do_more:
	@ args = 0, pretend = 0, frame = 536
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #536
	str	r0, [fp, #-536]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-532]
	mov	r3, #0
	str	r3, [fp, #-528]
	ldr	r1, .L20+4
	ldr	r0, .L20+8
	bl	fopen
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	bne	.L12
	mov	r0, #1
	bl	exit
.L17:
	ldr	r3, [fp, #-532]
	cmp	r3, #24
	bne	.L13
	ldr	r0, [fp, #-524]
	bl	see_more
	str	r0, [fp, #-528]
	ldr	r3, [fp, #-528]
	cmp	r3, #0
	beq	.L19
	ldr	r2, [fp, #-532]
	ldr	r3, [fp, #-528]
	sub	r3, r2, r3
	str	r3, [fp, #-532]
.L13:
	ldr	r3, .L20+12
	ldr	r2, [r3]
	sub	r3, fp, #520
	mov	r1, r2
	mov	r0, r3
	bl	fputs
	mov	r3, r0
	cmn	r3, #1
	bne	.L16
	mov	r0, #1
	bl	exit
.L16:
	ldr	r3, [fp, #-532]
	add	r3, r3, #1
	str	r3, [fp, #-532]
.L12:
	sub	r3, fp, #520
	ldr	r2, [fp, #-536]
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	b	.L15
.L19:
	nop
.L15:
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	stdout
	.size	do_more, .-do_more
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\033[7m more? \033[m\000"
	.text
	.align	2
	.global	see_more
	.syntax unified
	.arm
	.fpu softvfp
	.type	see_more, %function
see_more:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r0, .L28
	bl	printf
	b	.L23
.L27:
	ldr	r3, [fp, #-8]
	cmp	r3, #113
	bne	.L24
	mov	r3, #0
	b	.L22
.L24:
	ldr	r3, [fp, #-8]
	cmp	r3, #32
	bne	.L26
	mov	r3, #24
	b	.L22
.L26:
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L23
	mov	r3, #1
	b	.L22
.L23:
	ldr	r0, [fp, #-16]
	bl	getc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L27
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC3
	.size	see_more, .-see_more
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
