	.file	"797564.c"
	.intel_syntax noprefix
	.text
	.globl	documentation
	.data
	.align 32
	.type	documentation, @object
	.size	documentation, 903
documentation:
	.ascii	"chkpage [-cCC] [-lLL] [filename ...]\n\n    Checks that file"
	.ascii	"s contain lines with no more than CC\n    columns and pages "
	.ascii	"with no more than LL lines.\n\n    If no filenames are given"
	.ascii	", the standard input is\n    checked.\n\n    CC defaults to "
	.ascii	"80 columns and LL to 58 lines.\n\n    This program interpret"
	.ascii	"s newline as a line sepa-,\n    rator, horizontal tab as goi"
	.ascii	"ng to the next tab\n    stop, form feed as starting both a n"
	.ascii	"ew page and\n    a new line, and carriage return as going ba"
	.ascii	"ck to\n    the first column without starting a new line.\n  "
	.ascii	"  All other control characters are illegal.  Tab\n    stops "
	.ascii	"are set every 8 columns.  All this is con-\n    sistent with"
	.ascii	" co"
	.string	"mmon UNIX print programs.\n\n    Too long lines, lines overflowing a page, lines\n    containing illegal characters, and a non-empty\n    last line that does not end with a line feed or\n    form feed are output.  Nothing is output if the\n    files are all OK.\n"
	.section	.rodata
.LC0:
	.string	"LINE CONTAINS \\0%o: "
.LC1:
	.string	"%s: "
.LC2:
	.string	"%d: %s"
.LC3:
	.string	"LINE TOO LONG: "
.LC4:
	.string	"PAGE TOO LONG: "
	.align 8
.LC5:
	.string	"NON-EMPTY LAST FILE LINE DOES NOT END WITH LINE FEED OR FORM FEED:\n    "
	.text
	.globl	checkfile
	.type	checkfile, @function
checkfile:
.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, 176
	mov	QWORD PTR -152[rbp], rdi
	mov	QWORD PTR -160[rbp], rsi
	mov	DWORD PTR -164[rbp], edx
	mov	DWORD PTR -168[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -96[rbp]
	mov	QWORD PTR -112[rbp], rax
	lea	rax, -96[rbp]
	add	rax, 80
	mov	QWORD PTR -104[rbp], rax
	mov	DWORD PTR -144[rbp], 1
	mov	DWORD PTR -140[rbp], 1
	mov	DWORD PTR -136[rbp], 1
	mov	DWORD PTR -132[rbp], 0
	mov	DWORD PTR -128[rbp], 0
	mov	DWORD PTR -124[rbp], 0
	mov	DWORD PTR -120[rbp], 46
.L25:
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 9
	jne	.L2
	mov	eax, DWORD PTR -136[rbp]
	sub	eax, 1
	cdq
	shr	edx, 29
	add	eax, edx
	and	eax, 7
	sub	eax, edx
	mov	edx, eax
	mov	eax, 8
	sub	eax, edx
	add	DWORD PTR -136[rbp], eax
	mov	eax, DWORD PTR -136[rbp]
	sub	eax, 1
	cmp	DWORD PTR -164[rbp], eax
	jge	.L3
	mov	DWORD PTR -128[rbp], 1
.L3:
	mov	DWORD PTR -132[rbp], 1
	mov	rax, QWORD PTR -112[rbp]
	cmp	rax, QWORD PTR -104[rbp]
	jnb	.L25
	mov	rax, QWORD PTR -112[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -112[rbp], rdx
	mov	edx, DWORD PTR -116[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L25
.L2:
	cmp	DWORD PTR -116[rbp], 13
	jne	.L5
	mov	DWORD PTR -136[rbp], 1
	jmp	.L25
.L5:
	cmp	DWORD PTR -116[rbp], 10
	je	.L6
	cmp	DWORD PTR -116[rbp], 12
	je	.L6
	cmp	DWORD PTR -116[rbp], -1
	jne	.L7
.L6:
	mov	rax, QWORD PTR -112[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -112[rbp], rdx
	mov	BYTE PTR [rax], 10
	mov	rax, QWORD PTR -112[rbp]
	mov	BYTE PTR [rax], 0
	cmp	DWORD PTR -120[rbp], 46
	je	.L8
	mov	eax, DWORD PTR -120[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -160[rbp], 0
	je	.L9
	mov	rax, QWORD PTR -160[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -144[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -120[rbp], 46
.L8:
	cmp	DWORD PTR -128[rbp], 0
	je	.L10
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -160[rbp], 0
	je	.L11
	mov	rax, QWORD PTR -160[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -144[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -128[rbp], 0
.L10:
	mov	eax, DWORD PTR -140[rbp]
	cmp	eax, DWORD PTR -168[rbp]
	jle	.L12
	cmp	DWORD PTR -132[rbp], 0
	jne	.L13
	cmp	DWORD PTR -116[rbp], 10
	jne	.L12
.L13:
	cmp	DWORD PTR -124[rbp], 0
	jne	.L12
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -160[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -160[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L14:
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -144[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -124[rbp], 1
.L12:
	cmp	DWORD PTR -116[rbp], 12
	jne	.L15
	mov	DWORD PTR -140[rbp], 1
	mov	DWORD PTR -124[rbp], 0
	jmp	.L16
.L15:
	cmp	DWORD PTR -116[rbp], 10
	jne	.L17
	add	DWORD PTR -140[rbp], 1
	add	DWORD PTR -144[rbp], 1
	jmp	.L16
.L17:
	cmp	DWORD PTR -116[rbp], -1
	jne	.L16
	cmp	DWORD PTR -132[rbp], 0
	je	.L27
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -160[rbp], 0
	je	.L19
	mov	rax, QWORD PTR -160[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L19:
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -144[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L27
.L16:
	mov	DWORD PTR -136[rbp], 1
	mov	DWORD PTR -132[rbp], 0
	lea	rax, -96[rbp]
	mov	QWORD PTR -112[rbp], rax
	jmp	.L4
.L7:
	cmp	DWORD PTR -116[rbp], 31
	jle	.L21
	cmp	DWORD PTR -116[rbp], 126
	jle	.L22
.L21:
	mov	eax, DWORD PTR -116[rbp]
	mov	DWORD PTR -120[rbp], eax
	mov	DWORD PTR -132[rbp], 1
	mov	rax, QWORD PTR -112[rbp]
	cmp	rax, QWORD PTR -104[rbp]
	jnb	.L4
	mov	rax, QWORD PTR -112[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -112[rbp], rdx
	mov	edx, DWORD PTR -116[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L4
.L22:
	mov	eax, DWORD PTR -136[rbp]
	cmp	eax, DWORD PTR -164[rbp]
	jle	.L24
	mov	DWORD PTR -128[rbp], 1
.L24:
	add	DWORD PTR -136[rbp], 1
	mov	DWORD PTR -132[rbp], 1
	mov	rax, QWORD PTR -112[rbp]
	cmp	rax, QWORD PTR -104[rbp]
	jnb	.L25
	mov	rax, QWORD PTR -112[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -112[rbp], rdx
	mov	edx, DWORD PTR -116[rbp]
	mov	BYTE PTR [rax], dl
.L4:
	jmp	.L25
.L27:
	nop
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	checkfile, .-checkfile
	.section	.rodata
.LC6:
	.string	"chkpage: bad argument %s\n"
.LC7:
	.string	"r"
.LC8:
	.string	"%s: cannot open\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -16[rbp], 80
	mov	DWORD PTR -12[rbp], 58
	jmp	.L29
.L34:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 99
	jne	.L30
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	jne	.L31
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L30:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 108
	jne	.L32
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jne	.L31
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L32:
	lea	rdi, documentation[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L31:
	add	QWORD PTR -32[rbp], 8
	sub	DWORD PTR -20[rbp], 1
.L29:
	cmp	DWORD PTR -20[rbp], 1
	jle	.L33
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L34
.L33:
	cmp	DWORD PTR -20[rbp], 1
	jg	.L37
	mov	rax, QWORD PTR stdin[rip]
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	checkfile
	jmp	.L36
.L40:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L38
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rsi, QWORD PTR [rax]
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	checkfile
	jmp	.L39
.L38:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L39:
	sub	DWORD PTR -20[rbp], 1
	add	QWORD PTR -32[rbp], 8
.L37:
	cmp	DWORD PTR -20[rbp], 1
	jg	.L40
.L36:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.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	"797564.c"
	.text
	.global	documentation
	.data
	.align	2
	.type	documentation, %object
	.size	documentation, 903
documentation:
	.ascii	"chkpage [-cCC] [-lLL] [filename ...]\012\012    Che"
	.ascii	"cks that files contain lines with no more than CC\012"
	.ascii	"    columns and pages with no more than LL lines.\012"
	.ascii	"\012    If no filenames are given, the standard inp"
	.ascii	"ut is\012    checked.\012\012    CC defaults to 80 "
	.ascii	"columns and LL to 58 lines.\012\012    This program"
	.ascii	" interprets newline as a line sepa-,\012    rator, "
	.ascii	"horizontal tab as going to the next tab\012    stop"
	.ascii	", form feed as starting both a new page and\012    "
	.ascii	"a new line, and carriage return as going back to\012"
	.ascii	"    the first column without starting a new line.\012"
	.ascii	"    All other control characters are illegal.  Tab\012"
	.ascii	"    stops are set every 8 columns.  All this is con"
	.ascii	"-\012    sistent with common UNIX print programs.\012"
	.ascii	"\012    Too long lines, lines overflowing a page, l"
	.ascii	"ines\012    containing illegal characters, and a no"
	.ascii	"n-empty\012    last line that does not end with a l"
	.ascii	"ine feed or\012    form feed are output.  Nothing i"
	.ascii	"s output if the\012    files are all OK.\012\000"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"LINE CONTAINS \\0%o: \000"
	.align	2
.LC1:
	.ascii	"%s: \000"
	.align	2
.LC2:
	.ascii	"%d: %s\000"
	.align	2
.LC3:
	.ascii	"LINE TOO LONG: \000"
	.align	2
.LC4:
	.ascii	"PAGE TOO LONG: \000"
	.align	2
.LC5:
	.ascii	"NON-EMPTY LAST FILE LINE DOES NOT END WITH LINE FEE"
	.ascii	"D OR FORM FEED:\012    \000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	checkfile
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkfile, %function
checkfile:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	str	r2, [fp, #-144]
	str	r3, [fp, #-148]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #92
	str	r3, [fp, #-132]
	sub	r3, fp, #92
	add	r3, r3, #80
	str	r3, [fp, #-100]
	mov	r3, #1
	str	r3, [fp, #-128]
	mov	r3, #1
	str	r3, [fp, #-124]
	mov	r3, #1
	str	r3, [fp, #-120]
	mov	r3, #0
	str	r3, [fp, #-116]
	mov	r3, #0
	str	r3, [fp, #-112]
	mov	r3, #0
	str	r3, [fp, #-108]
	mov	r3, #46
	str	r3, [fp, #-104]
.L25:
	ldr	r0, [fp, #-136]
	bl	getc
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmp	r3, #9
	bne	.L2
	ldr	r3, [fp, #-120]
	sub	r3, r3, #1
	rsbs	r2, r3, #0
	and	r3, r3, #7
	and	r2, r2, #7
	rsbpl	r3, r2, #0
	rsb	r3, r3, #8
	ldr	r2, [fp, #-120]
	add	r3, r2, r3
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-120]
	sub	r3, r3, #1
	ldr	r2, [fp, #-144]
	cmp	r2, r3
	bge	.L3
	mov	r3, #1
	str	r3, [fp, #-112]
.L3:
	mov	r3, #1
	str	r3, [fp, #-116]
	ldr	r2, [fp, #-132]
	ldr	r3, [fp, #-100]
	cmp	r2, r3
	bcs	.L25
	ldr	r3, [fp, #-132]
	add	r2, r3, #1
	str	r2, [fp, #-132]
	ldr	r2, [fp, #-96]
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L25
.L2:
	ldr	r3, [fp, #-96]
	cmp	r3, #13
	bne	.L5
	mov	r3, #1
	str	r3, [fp, #-120]
	b	.L25
.L5:
	ldr	r3, [fp, #-96]
	cmp	r3, #10
	beq	.L6
	ldr	r3, [fp, #-96]
	cmp	r3, #12
	beq	.L6
	ldr	r3, [fp, #-96]
	cmn	r3, #1
	bne	.L7
.L6:
	ldr	r3, [fp, #-132]
	add	r2, r3, #1
	str	r2, [fp, #-132]
	mov	r2, #10
	strb	r2, [r3]
	ldr	r3, [fp, #-132]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-104]
	cmp	r3, #46
	beq	.L8
	ldr	r1, [fp, #-104]
	ldr	r0, .L28+4
	bl	printf
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L9
	ldr	r1, [fp, #-140]
	ldr	r0, .L28+8
	bl	printf
.L9:
	sub	r3, fp, #92
	mov	r2, r3
	ldr	r1, [fp, #-128]
	ldr	r0, .L28+12
	bl	printf
	mov	r3, #46
	str	r3, [fp, #-104]
.L8:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L10
	ldr	r0, .L28+16
	bl	printf
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L11
	ldr	r1, [fp, #-140]
	ldr	r0, .L28+8
	bl	printf
.L11:
	sub	r3, fp, #92
	mov	r2, r3
	ldr	r1, [fp, #-128]
	ldr	r0, .L28+12
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-112]
.L10:
	ldr	r2, [fp, #-124]
	ldr	r3, [fp, #-148]
	cmp	r2, r3
	ble	.L12
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-96]
	cmp	r3, #10
	bne	.L12
.L13:
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L28+20
	bl	printf
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L14
	ldr	r1, [fp, #-140]
	ldr	r0, .L28+8
	bl	printf
.L14:
	sub	r3, fp, #92
	mov	r2, r3
	ldr	r1, [fp, #-128]
	ldr	r0, .L28+12
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-108]
.L12:
	ldr	r3, [fp, #-96]
	cmp	r3, #12
	bne	.L15
	mov	r3, #1
	str	r3, [fp, #-124]
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L16
.L15:
	ldr	r3, [fp, #-96]
	cmp	r3, #10
	bne	.L17
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
	b	.L16
.L17:
	ldr	r3, [fp, #-96]
	cmn	r3, #1
	bne	.L16
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	beq	.L27
	ldr	r0, .L28+24
	bl	printf
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L19
	ldr	r1, [fp, #-140]
	ldr	r0, .L28+8
	bl	printf
.L19:
	sub	r3, fp, #92
	mov	r2, r3
	ldr	r1, [fp, #-128]
	ldr	r0, .L28+12
	bl	printf
	b	.L27
.L16:
	mov	r3, #1
	str	r3, [fp, #-120]
	mov	r3, #0
	str	r3, [fp, #-116]
	sub	r3, fp, #92
	str	r3, [fp, #-132]
	b	.L4
.L7:
	ldr	r3, [fp, #-96]
	cmp	r3, #31
	ble	.L21
	ldr	r3, [fp, #-96]
	cmp	r3, #126
	ble	.L22
.L21:
	ldr	r3, [fp, #-96]
	str	r3, [fp, #-104]
	mov	r3, #1
	str	r3, [fp, #-116]
	ldr	r2, [fp, #-132]
	ldr	r3, [fp, #-100]
	cmp	r2, r3
	bcs	.L4
	ldr	r3, [fp, #-132]
	add	r2, r3, #1
	str	r2, [fp, #-132]
	ldr	r2, [fp, #-96]
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L4
.L22:
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-144]
	cmp	r2, r3
	ble	.L24
	mov	r3, #1
	str	r3, [fp, #-112]
.L24:
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
	mov	r3, #1
	str	r3, [fp, #-116]
	ldr	r2, [fp, #-132]
	ldr	r3, [fp, #-100]
	cmp	r2, r3
	bcs	.L25
	ldr	r3, [fp, #-132]
	add	r2, r3, #1
	str	r2, [fp, #-132]
	ldr	r2, [fp, #-96]
	and	r2, r2, #255
	strb	r2, [r3]
.L4:
	b	.L25
.L27:
	nop
	nop
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	checkfile, .-checkfile
	.section	.rodata
	.align	2
.LC7:
	.ascii	"chkpage: bad argument %s\012\000"
	.align	2
.LC8:
	.ascii	"r\000"
	.align	2
.LC9:
	.ascii	"%s: cannot open\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #80
	str	r3, [fp, #-16]
	mov	r3, #58
	str	r3, [fp, #-12]
	b	.L31
.L36:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #99
	bne	.L32
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #2
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L33
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L43
	bl	printf
	mov	r0, #1
	bl	exit
.L32:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #108
	bne	.L34
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #2
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L33
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L43
	bl	printf
	mov	r0, #1
	bl	exit
.L34:
	ldr	r0, .L43+4
	bl	printf
	mov	r0, #1
	bl	exit
.L33:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
.L31:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	ble	.L35
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L36
.L35:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bgt	.L39
	ldr	r3, .L43+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	mov	r1, #0
	bl	checkfile
	b	.L38
.L42:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L43+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L40
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	checkfile
	b	.L41
.L40:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L43+16
	bl	printf
.L41:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	str	r3, [fp, #-28]
.L39:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bgt	.L42
.L38:
	mov	r0, #0
	bl	exit
.L44:
	.align	2
.L43:
	.word	.LC7
	.word	documentation
	.word	stdin
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
