	.file	"extr_util.c_tomoyo_normalize_line.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tomoyo_normalize_line
	.type	tomoyo_normalize_line, @function
tomoyo_normalize_line:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	add	rbx, 1
.L2:
	movzx	edi, BYTE PTR [rbx]
	call	tomoyo_invalid@PLT
	test	rax, rax
	jne	.L3
	movzx	edi, BYTE PTR [rbx]
	test	dil, dil
	jne	.L6
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, rbp
	mov	rsi, rbx
	movsb
	mov	rbp, rdi
	movzx	edi, BYTE PTR [rsi]
	mov	rbx, rsi
.L6:
	call	tomoyo_valid@PLT
	test	rax, rax
	jne	.L7
	movzx	edi, BYTE PTR [rbx]
	call	tomoyo_invalid@PLT
	test	rax, rax
	je	.L14
	.p2align 4,,10
	.p2align 3
.L9:
	movzx	edi, BYTE PTR 1[rbx]
	add	rbx, 1
	call	tomoyo_invalid@PLT
	test	rax, rax
	jne	.L9
.L14:
	cmp	BYTE PTR [rbx], 0
	je	.L5
	mov	BYTE PTR 0[rbp], 32
	add	rbp, 1
	movzx	edi, BYTE PTR [rbx]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	BYTE PTR 0[rbp], 0
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	tomoyo_normalize_line, .-tomoyo_normalize_line
	.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_util.c_tomoyo_normalize_line.c"
	.text
	.align	2
	.global	tomoyo_normalize_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	tomoyo_normalize_line, %function
tomoyo_normalize_line:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r5, r0
.L2:
	ldrb	r0, [r5]	@ zero_extendqisi2
	bl	tomoyo_invalid
	cmp	r0, #0
	mov	r4, r5
	add	r5, r5, #1
	bne	.L2
	ldrb	r0, [r4]	@ zero_extendqisi2
	cmp	r0, #0
	beq	.L12
	mov	r7, #32
	b	.L5
.L6:
	ldrb	r3, [r4], #1	@ zero_extendqisi2
	strb	r3, [r6], #1
	ldrb	r0, [r4]	@ zero_extendqisi2
.L5:
	bl	tomoyo_valid
	cmp	r0, #0
	mov	r8, r6
	bne	.L6
	mov	r5, r4
.L7:
	mov	r4, r5
	ldrb	r0, [r5], #1	@ zero_extendqisi2
	bl	tomoyo_invalid
	cmp	r0, #0
	bne	.L7
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L4
	strb	r7, [r6], #1
	ldrb	r0, [r4]	@ zero_extendqisi2
	b	.L5
.L12:
	mov	r8, r6
.L4:
	mov	r3, #0
	strb	r3, [r8]
	pop	{r4, r5, r6, r7, r8, pc}
	.size	tomoyo_normalize_line, .-tomoyo_normalize_line
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
