	.file	"37143.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"\nToo many words within a line of the input file\n"
	.text
	.globl	getwords
	.type	getwords, @function
getwords:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	QWORD PTR -48[rbp], rcx
	mov	DWORD PTR -40[rbp], r8d
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR wline.1[rip]
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR oldmaxline.0[rip]
	cmp	DWORD PTR -36[rbp], eax
	jle	.L3
.L2:
	mov	rax, QWORD PTR wline.1[rip]
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR wline.1[rip]
	mov	rdi, rax
	call	free@PLT
.L4:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR wline.1[rip], rax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR oldmaxline.0[rip], eax
.L3:
	mov	rdx, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L5
	mov	eax, -1
	jmp	.L6
.L5:
	mov	rax, QWORD PTR wline.1[rip]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L7
.L16:
	mov	rdx, QWORD PTR wline.1[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 34
	jne	.L8
	cmp	DWORD PTR -4[rbp], 0
	jne	.L9
	cmp	DWORD PTR -8[rbp], 0
	je	.L10
	mov	rdx, QWORD PTR wline.1[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rcx, 1[rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rsi, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rsi
	add	rdx, rcx
	mov	QWORD PTR [rax], rdx
	mov	DWORD PTR -8[rbp], 0
	jmp	.L11
.L10:
	mov	rcx, QWORD PTR wline.1[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rsi, 1[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -12[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	lea	rdx, [rcx+rsi]
	mov	QWORD PTR [rax], rdx
.L11:
	mov	DWORD PTR -4[rbp], 1
	jmp	.L12
.L9:
	mov	rdx, QWORD PTR wline.1[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L12
.L8:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L13
	cmp	DWORD PTR -8[rbp], 0
	jne	.L13
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rcx, QWORD PTR wline.1[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L13
	cmp	DWORD PTR -12[rbp], 19
	jg	.L14
	mov	rsi, QWORD PTR wline.1[rip]
	mov	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -12[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	lea	rdx, [rsi+rcx]
	mov	QWORD PTR [rax], rdx
	mov	DWORD PTR -8[rbp], 1
	jmp	.L12
.L14:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 48
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L6
.L13:
	cmp	DWORD PTR -8[rbp], 0
	je	.L12
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rcx, QWORD PTR wline.1[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	je	.L12
	mov	rdx, QWORD PTR wline.1[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR -8[rbp], 0
.L12:
	add	DWORD PTR -16[rbp], 1
.L7:
	mov	rdx, QWORD PTR wline.1[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L16
	mov	eax, DWORD PTR -12[rbp]
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getwords, .-getwords
	.local	wline.1
	.comm	wline.1,8,8
	.local	oldmaxline.0
	.comm	oldmaxline.0,4,4
	.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	"37143.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Too many words within a line of the input file\012"
	.ascii	"\000"
	.text
	.align	2
	.global	getwords
	.syntax unified
	.arm
	.fpu softvfp
	.type	getwords, %function
getwords:
	@ args = 4, 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, .L17
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L17+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	ble	.L3
.L2:
	ldr	r3, .L17
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L17
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
.L4:
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L17
	str	r2, [r3]
	ldr	r2, .L17+4
	ldr	r3, [fp, #-32]
	str	r3, [r2]
.L3:
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-28]
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	mvn	r3, #0
	b	.L6
.L5:
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	strcpy
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L7
.L16:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #34
	bne	.L8
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L17
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r0, [fp, #-36]
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L11
.L10:
	ldr	r3, .L17
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	add	r0, r3, #1
	str	r0, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r0, [fp, #-36]
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
.L11:
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L12
.L9:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L12
.L8:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L13
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, .L17
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-16]
	cmp	r3, #19
	bgt	.L14
	ldr	r3, .L17
	ldr	r1, [r3]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r0, r3, #1
	str	r0, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r0, [fp, #-36]
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L12
.L14:
	ldr	r3, .L17+8
	ldr	r3, [r3]
	mov	r2, #48
	mov	r1, #1
	ldr	r0, .L17+12
	bl	fwrite
	mvn	r3, #0
	b	.L6
.L13:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L12
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, .L17
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-12]
.L12:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L7:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-16]
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	wline.5415
	.word	oldmaxline.5416
	.word	stderr
	.word	.LC0
	.size	getwords, .-getwords
	.local	wline.5415
	.comm	wline.5415,4,4
	.local	oldmaxline.5416
	.comm	oldmaxline.5416,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
