	.file	"extr_cooccur.c_get_word.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	get_word
	.type	get_word, @function
get_word:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, r12
	call	fgetc@PLT
	cmp	eax, 13
	je	.L4
	test	ebx, ebx
	je	.L3
.L5:
	cmp	DWORD PTR EOF[rip], eax
	je	.L9
	cmp	eax, 9
	je	.L9
	cmp	eax, 32
	je	.L9
	cmp	eax, 10
	je	.L10
.L11:
	mov	ecx, DWORD PTR MAX_STRING_LENGTH[rip]
	lea	edx, -1[rcx]
	cmp	edx, ebx
	jle	.L4
	movsx	rdx, ebx
	mov	rdi, r12
	add	ebx, 1
	mov	BYTE PTR 0[rbp+rdx], al
	call	fgetc@PLT
	cmp	eax, 13
	je	.L4
	test	ebx, ebx
	jne	.L5
.L3:
	cmp	eax, 10
	je	.L6
.L34:
	cmp	DWORD PTR EOF[rip], eax
	je	.L6
	cmp	eax, 32
	je	.L16
	cmp	eax, 9
	jne	.L11
.L16:
	mov	rdi, r12
	call	fgetc@PLT
	cmp	eax, 13
	je	.L4
	cmp	eax, 10
	jne	.L34
	.p2align 4,,10
	.p2align 3
.L6:
	mov	BYTE PTR 0[rbp], 0
	mov	r8d, 1
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r8d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	cmp	eax, 10
	je	.L10
.L12:
	movsx	rdx, ebx
	xor	r8d, r8d
	mov	BYTE PTR 0[rbp+rdx], 0
	mov	eax, DWORD PTR MAX_STRING_LENGTH[rip]
	sub	eax, 1
	cmp	eax, ebx
	jne	.L1
	lea	rcx, -1[rbp+rdx]
	movzx	eax, BYTE PTR [rcx]
	test	al, al
	jns	.L1
	and	eax, 192
	cmp	eax, 192
	je	.L31
	cmp	ebx, 2
	jle	.L15
	lea	rcx, -2[rbp+rdx]
	movsx	eax, BYTE PTR [rcx]
	and	eax, 224
	cmp	eax, 224
	jne	.L15
.L31:
	mov	BYTE PTR [rcx], 0
	jmp	.L1
.L15:
	xor	r8d, r8d
	cmp	ebx, 3
	jle	.L1
	lea	rdx, -3[rbp+rdx]
	movsx	eax, BYTE PTR [rdx]
	and	eax, 248
	cmp	eax, 240
	jne	.L1
	mov	BYTE PTR [rdx], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rsi, r12
	mov	edi, 10
	call	ungetc@PLT
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	get_word, .-get_word
	.comm	MAX_STRING_LENGTH,4,4
	.comm	EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cooccur.c_get_word.c"
	.text
	.align	2
	.global	get_word
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_word, %function
get_word:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	mov	r4, r1
	mov	r8, #0
	ldr	r6, .L35
	ldr	r5, .L35+4
.L4:
	mov	r0, r4
	bl	fgetc
	cmp	r0, #13
	beq	.L4
	cmp	r8, #0
	beq	.L3
.L5:
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L9
	cmp	r0, #32
	cmpne	r0, #9
	beq	.L9
	cmp	r0, #10
	beq	.L10
.L11:
	ldr	r3, [r6]
	sub	r3, r3, #1
	cmp	r3, r8
	strbgt	r0, [r7, r8]
	mov	r0, r4
	addgt	r8, r8, #1
	bl	fgetc
	cmp	r0, #13
	beq	.L4
	cmp	r8, #0
	bne	.L5
.L3:
	cmp	r0, #10
	beq	.L6
.L33:
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L6
	cmp	r0, #9
	cmpne	r0, #32
	bne	.L11
	mov	r0, r4
	bl	fgetc
	cmp	r0, #13
	beq	.L4
	cmp	r0, #10
	bne	.L33
.L6:
	mov	r3, #0
	mov	r0, #1
	strb	r3, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	cmp	r0, #10
	beq	.L10
.L12:
	mov	r0, #0
	ldr	r3, .L35
	strb	r0, [r7, r8]
	ldr	r3, [r3]
	sub	r2, r3, #1
	cmp	r2, r8
	popne	{r4, r5, r6, r7, r8, pc}
	sub	r1, r8, #1
	ldrb	r2, [r7, r1]	@ zero_extendqisi2
	tst	r2, #128
	popeq	{r4, r5, r6, r7, r8, pc}
	and	r2, r2, #192
	cmp	r2, #192
	beq	.L34
	cmp	r8, #2
	ble	.L15
	sub	r3, r3, #3
	ldrb	r2, [r7, r3]	@ zero_extendqisi2
	and	r2, r2, #224
	cmp	r2, #224
	bne	.L15
	strb	r0, [r7, r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	cmp	r8, #3
	ble	.L19
	mov	r0, #0
	sub	r8, r8, #3
	ldrb	r3, [r7, r8]	@ zero_extendqisi2
	and	r3, r3, #248
	cmp	r3, #240
	strbeq	r0, [r7, r8]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r1, r4
	mov	r0, #10
	bl	ungetc
	b	.L12
.L19:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L34:
	strb	r0, [r7, r1]
	pop	{r4, r5, r6, r7, r8, pc}
.L36:
	.align	2
.L35:
	.word	MAX_STRING_LENGTH
	.word	EOF
	.size	get_word, .-get_word
	.comm	MAX_STRING_LENGTH,4,4
	.comm	EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
