	.file	"67325906.c"
	.intel_syntax noprefix
	.text
	.globl	progname
	.bss
	.align 8
	.type	progname, @object
	.size	progname, 8
progname:
	.zero	8
	.section	.rodata
	.align 8
.LC0:
	.string	"%s: usage: %s [-c] [-n level] [-s bufsize]\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rcx, QWORD PTR progname[rip]
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.section	.rodata
.LC1:
	.string	"cn:s:"
	.align 8
.LC2:
	.string	"%s: could not allocate %u bytes for read\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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -24[rbp], -1
	mov	DWORD PTR -20[rbp], -1
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR progname[rip], rax
	jmp	.L3
.L7:
	cmp	DWORD PTR -12[rbp], 115
	je	.L4
	cmp	DWORD PTR -12[rbp], 115
	jg	.L3
	cmp	DWORD PTR -12[rbp], 99
	je	.L5
	cmp	DWORD PTR -12[rbp], 110
	je	.L6
	jmp	.L3
.L5:
	mov	DWORD PTR -16[rbp], 1
	jmp	.L3
.L6:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -24[rbp], eax
	jmp	.L3
.L4:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -20[rbp], eax
	nop
.L3:
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	lea	rdx, .LC1[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L7
	cmp	DWORD PTR -24[rbp], -1
	je	.L8
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	mov	esi, 0
	mov	edi, 8
	call	klogctl@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L9
	mov	rax, QWORD PTR progname[rip]
	mov	rdi, rax
	call	perror@PLT
.L9:
	mov	eax, DWORD PTR -12[rbp]
	jmp	.L10
.L8:
	mov	edx, 0
	mov	esi, 0
	mov	edi, 10
	call	klogctl@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L11
	mov	rax, QWORD PTR progname[rip]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, DWORD PTR -12[rbp]
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L12
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -12[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L10
.L12:
	cmp	DWORD PTR -20[rbp], -1
	je	.L13
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L14
.L13:
	mov	eax, 16392
.L14:
	mov	rcx, QWORD PTR -8[rbp]
	mov	edx, eax
	mov	rsi, rcx
	mov	edi, 3
	call	klogctl@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	rdx, QWORD PTR stdout[rip]
	cmp	DWORD PTR -20[rbp], -1
	je	.L15
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	jmp	.L16
.L15:
	mov	eax, 16392
.L16:
	mov	rdi, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rsi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	cmp	DWORD PTR -16[rbp], 0
	je	.L17
	mov	edx, 0
	mov	esi, 0
	mov	edi, 5
	call	klogctl@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L18
	mov	rax, QWORD PTR progname[rip]
	mov	rdi, rax
	call	perror@PLT
.L18:
	mov	eax, DWORD PTR -12[rbp]
	jmp	.L10
.L17:
	mov	eax, 0
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"67325906.c"
	.text
	.comm	progname,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s: usage: %s [-c] [-n level] [-s bufsize]\012\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L2
	ldr	r0, [r3]
	ldr	r3, .L2+4
	ldr	r2, [r3]
	ldr	r3, .L2+4
	ldr	r3, [r3]
	ldr	r1, .L2+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	progname
	.word	.LC0
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC1:
	.ascii	"cn:s:\000"
	.align	2
.LC2:
	.ascii	"%s: could not allocate %u bytes for read\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-16]
	mvn	r3, #0
	str	r3, [fp, #-24]
	mvn	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r2, .L21
	str	r3, [r2]
	b	.L5
.L9:
	ldr	r3, [fp, #-12]
	cmp	r3, #115
	beq	.L6
	ldr	r3, [fp, #-12]
	cmp	r3, #115
	bgt	.L5
	ldr	r3, [fp, #-12]
	cmp	r3, #99
	beq	.L7
	ldr	r3, [fp, #-12]
	cmp	r3, #110
	beq	.L8
	b	.L5
.L7:
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L5
.L8:
	ldr	r3, .L21+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-24]
	b	.L5
.L6:
	ldr	r3, .L21+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-20]
	nop
.L5:
	ldr	r2, .L21+8
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	getopt
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L9
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	beq	.L10
	ldr	r2, [fp, #-24]
	mov	r1, #0
	mov	r0, #8
	bl	klogctl
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L11
	ldr	r3, .L21
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
.L11:
	ldr	r3, [fp, #-12]
	b	.L12
.L10:
	mov	r2, #0
	mov	r1, #0
	mov	r0, #10
	bl	klogctl
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L13
	ldr	r3, .L21
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	ldr	r3, [fp, #-12]
	b	.L12
.L13:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L21+12
	ldr	r0, [r3]
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r1, .L21+16
	bl	fprintf
	mov	r3, #1
	b	.L12
.L14:
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L15
	ldr	r3, [fp, #-20]
	b	.L16
.L15:
	ldr	r3, .L21+20
.L16:
	mov	r2, r3
	ldr	r1, [fp, #-8]
	mov	r0, #3
	bl	klogctl
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L17
	ldr	r1, [fp, #-20]
	b	.L18
.L17:
	ldr	r1, .L21+20
.L18:
	ldr	r3, .L21+24
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r0, [fp, #-8]
	bl	fwrite
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L19
	mov	r2, #0
	mov	r1, #0
	mov	r0, #5
	bl	klogctl
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L20
	ldr	r3, .L21
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
.L20:
	ldr	r3, [fp, #-12]
	b	.L12
.L19:
	mov	r3, #0
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	progname
	.word	optarg
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	16392
	.word	stdout
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
