	.file	"719631.c"
	.intel_syntax noprefix
	.text
	.globl	buf
	.bss
	.align 32
	.type	buf, @object
	.size	buf, 1024
buf:
	.zero	1024
	.globl	count
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.section	.rodata
.LC0:
	.string	" "
.LC1:
	.string	"\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	r12d, 0
	cmp	DWORD PTR -20[rbp], 1
	jle	.L2
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L2
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 110
	jne	.L2
	add	r12d, 1
	sub	DWORD PTR -20[rbp], 1
	add	QWORD PTR -32[rbp], 8
.L2:
	mov	ebx, 1
	jmp	.L3
.L5:
	movsx	rax, ebx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	mov	eax, 0
	call	collect
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	cmp	ebx, eax
	jge	.L4
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	collect
.L4:
	add	ebx, 1
.L3:
	cmp	ebx, DWORD PTR -20[rbp]
	jl	.L5
	test	r12d, r12d
	jne	.L6
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	collect
.L6:
	mov	eax, DWORD PTR count[rip]
	test	eax, eax
	jle	.L7
	mov	eax, DWORD PTR count[rip]
	mov	edx, eax
	lea	rsi, buf[rip]
	mov	edi, 1
	mov	eax, 0
	call	write@PLT
.L7:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	collect
	.type	collect, @function
collect:
.LFB1:
	.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
	jmp	.L9
.L11:
	mov	eax, DWORD PTR count[rip]
	cmp	eax, 1024
	jne	.L10
	mov	eax, DWORD PTR count[rip]
	mov	edx, eax
	lea	rsi, buf[rip]
	mov	edi, 1
	mov	eax, 0
	call	write@PLT
	mov	DWORD PTR count[rip], 0
.L10:
	mov	eax, DWORD PTR count[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR count[rip], edx
	cdqe
	lea	rcx, buf[rip]
	movzx	edx, BYTE PTR -1[rbp]
	mov	BYTE PTR [rax+rcx], dl
.L9:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], 0
	jne	.L11
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	collect, .-collect
	.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	"719631.c"
	.text
	.comm	buf,1024,4
	.comm	count,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	" \000"
	.align	2
.LC1:
	.ascii	"\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r5, #0
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L2
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L2
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #110
	bne	.L2
	add	r5, r5, #1
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-20]
.L2:
	mov	r4, #1
	b	.L3
.L5:
	mov	r3, r4
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	collect
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	cmp	r4, r3
	bge	.L4
	ldr	r0, .L8
	bl	collect
.L4:
	add	r4, r4, #1
.L3:
	ldr	r3, [fp, #-16]
	cmp	r4, r3
	blt	.L5
	cmp	r5, #0
	bne	.L6
	ldr	r0, .L8+4
	bl	collect
.L6:
	ldr	r3, .L8+8
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L7
	ldr	r3, .L8+8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L8+12
	mov	r0, #1
	bl	write
.L7:
	mov	r0, #0
	bl	exit
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	.LC1
	.word	count
	.word	buf
	.size	main, .-main
	.align	2
	.global	collect
	.syntax unified
	.arm
	.fpu softvfp
	.type	collect, %function
collect:
	@ 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]
	b	.L11
.L13:
	ldr	r3, .L14
	ldr	r3, [r3]
	cmp	r3, #1024
	bne	.L12
	ldr	r3, .L14
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L14+4
	mov	r0, #1
	bl	write
	ldr	r3, .L14
	mov	r2, #0
	str	r2, [r3]
.L12:
	ldr	r3, .L14
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L14
	str	r2, [r1]
	ldr	r1, .L14+4
	ldrb	r2, [fp, #-5]
	strb	r2, [r1, r3]
.L11:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldrb	r3, [r3]
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L13
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	count
	.word	buf
	.size	collect, .-collect
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
