	.file	"121580.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	" \r\t\n\013"
.LC1:
	.string	"wc: read error\n"
.LC2:
	.string	"%d %d %d %s\n"
	.text
	.globl	wc
	.type	wc, @function
wc:
.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, 576
	mov	DWORD PTR -564[rbp], edi
	mov	QWORD PTR -576[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -540[rbp], 0
	mov	eax, DWORD PTR -540[rbp]
	mov	DWORD PTR -544[rbp], eax
	mov	eax, DWORD PTR -544[rbp]
	mov	DWORD PTR -548[rbp], eax
	mov	DWORD PTR -536[rbp], 0
	jmp	.L2
.L8:
	mov	DWORD PTR -552[rbp], 0
	jmp	.L3
.L7:
	add	DWORD PTR -540[rbp], 1
	mov	eax, DWORD PTR -552[rbp]
	cdqe
	movzx	eax, BYTE PTR -528[rbp+rax]
	cmp	al, 10
	jne	.L4
	add	DWORD PTR -548[rbp], 1
.L4:
	mov	eax, DWORD PTR -552[rbp]
	cdqe
	movzx	eax, BYTE PTR -528[rbp+rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	call	strchr@PLT
	test	rax, rax
	je	.L5
	mov	DWORD PTR -536[rbp], 0
	jmp	.L6
.L5:
	cmp	DWORD PTR -536[rbp], 0
	jne	.L6
	add	DWORD PTR -544[rbp], 1
	mov	DWORD PTR -536[rbp], 1
.L6:
	add	DWORD PTR -552[rbp], 1
.L3:
	mov	eax, DWORD PTR -552[rbp]
	cmp	eax, DWORD PTR -532[rbp]
	jl	.L7
.L2:
	lea	rcx, -528[rbp]
	mov	eax, DWORD PTR -564[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], 0
	jg	.L8
	cmp	DWORD PTR -532[rbp], 0
	jns	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	rsi, QWORD PTR -576[rbp]
	mov	ecx, DWORD PTR -540[rbp]
	mov	edx, DWORD PTR -544[rbp]
	mov	eax, DWORD PTR -548[rbp]
	mov	r8, rsi
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	wc, .-wc
	.section	.rodata
.LC3:
	.string	""
.LC4:
	.string	"wc: cannot open %s\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
	cmp	DWORD PTR -20[rbp], 1
	jg	.L12
	lea	rsi, .LC3[rip]
	mov	edi, 0
	call	wc
	mov	eax, 0
	jmp	.L13
.L12:
	mov	DWORD PTR -8[rbp], 1
	jmp	.L14
.L16:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L15
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	wc
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	close@PLT
	add	DWORD PTR -8[rbp], 1
.L14:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L16
	mov	eax, 0
.L13:
	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	"121580.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	" \015\011\012\013\000"
	.align	2
.LC1:
	.ascii	"wc: read error\012\000"
	.align	2
.LC2:
	.ascii	"%d %d %d %s\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	wc
	.syntax unified
	.arm
	.fpu softvfp
	.type	wc, %function
wc:
	@ args = 0, pretend = 0, frame = 552
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #560
	str	r0, [fp, #-552]
	str	r1, [fp, #-556]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-532]
	ldr	r3, [fp, #-532]
	str	r3, [fp, #-536]
	ldr	r3, [fp, #-536]
	str	r3, [fp, #-540]
	mov	r3, #0
	str	r3, [fp, #-528]
	b	.L2
.L8:
	mov	r3, #0
	str	r3, [fp, #-544]
	b	.L3
.L7:
	ldr	r3, [fp, #-532]
	add	r3, r3, #1
	str	r3, [fp, #-532]
	sub	r2, fp, #520
	ldr	r3, [fp, #-544]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L4
	ldr	r3, [fp, #-540]
	add	r3, r3, #1
	str	r3, [fp, #-540]
.L4:
	sub	r2, fp, #520
	ldr	r3, [fp, #-544]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L11+4
	bl	strchr
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	mov	r3, #0
	str	r3, [fp, #-528]
	b	.L6
.L5:
	ldr	r3, [fp, #-528]
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-536]
	add	r3, r3, #1
	str	r3, [fp, #-536]
	mov	r3, #1
	str	r3, [fp, #-528]
.L6:
	ldr	r3, [fp, #-544]
	add	r3, r3, #1
	str	r3, [fp, #-544]
.L3:
	ldr	r2, [fp, #-544]
	ldr	r3, [fp, #-524]
	cmp	r2, r3
	blt	.L7
.L2:
	sub	r3, fp, #520
	mov	r2, #512
	mov	r1, r3
	ldr	r0, [fp, #-552]
	bl	read
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	bgt	.L8
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	bge	.L9
	ldr	r3, .L11+8
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L11+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L9:
	ldr	r3, [fp, #-556]
	str	r3, [sp]
	ldr	r3, [fp, #-532]
	ldr	r2, [fp, #-536]
	ldr	r1, [fp, #-540]
	ldr	r0, .L11+16
	bl	printf
	nop
	ldr	r3, .L11
	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}
.L12:
	.align	2
.L11:
	.word	.LC3
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.size	wc, .-wc
	.section	.rodata
	.align	2
.LC4:
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"wc: cannot open %s\012\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
	bgt	.L14
	ldr	r1, .L19
	mov	r0, #0
	bl	wc
	mov	r3, #0
	b	.L15
.L14:
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L16
.L18:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L17
	ldr	r3, .L19+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L19+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L17:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	wc
	ldr	r0, [fp, #-8]
	bl	close
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L16:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L18
	mov	r3, #0
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC4
	.word	stderr
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
