	.file	"extr_dir.c_trim_trailing_spaces.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	trim_trailing_spaces, @function
trim_trailing_spaces:
.LFB0:
	.cfi_startproc
	endbr64
	movzx	eax, BYTE PTR [rdi]
	test	al, al
	je	.L1
	xor	esi, esi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	test	dl, dl
	je	.L1
	movzx	eax, BYTE PTR 2[rdi]
	xor	esi, esi
	add	rdi, 2
.L5:
	test	al, al
	je	.L19
.L6:
	movzx	edx, BYTE PTR 1[rdi]
	lea	rcx, 1[rdi]
	cmp	al, 32
	je	.L3
	cmp	al, 92
	je	.L4
	mov	eax, edx
	mov	rdi, rcx
	xor	esi, esi
	test	al, al
	jne	.L6
.L19:
	test	rsi, rsi
	je	.L1
	mov	BYTE PTR [rsi], 0
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	test	rsi, rsi
	je	.L20
	mov	rdi, rcx
	mov	eax, edx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rsi, rdi
	mov	eax, edx
	mov	rdi, rcx
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	trim_trailing_spaces, .-trim_trailing_spaces
	.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_dir.c_trim_trailing_spaces.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	trim_trailing_spaces, %function
trim_trailing_spaces:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #0
	bxeq	lr
	mov	ip, #0
	b	.L6
.L4:
	cmp	r1, #0
	bxeq	lr
	mov	ip, #0
	ldrb	r3, [r0, #2]!	@ zero_extendqisi2
.L5:
	cmp	r3, #0
	beq	.L19
.L6:
	mov	r2, r0
	cmp	r3, #32
	ldrb	r1, [r2, #1]!	@ zero_extendqisi2
	beq	.L3
	cmp	r3, #92
	beq	.L4
	mov	r3, r1
	cmp	r3, #0
	mov	r0, r2
	mov	ip, #0
	bne	.L6
.L19:
	cmp	ip, #0
	strbne	r3, [ip]
	bx	lr
.L3:
	cmp	ip, #0
	moveq	ip, r0
	moveq	r3, r1
	moveq	r0, r2
	movne	r0, r2
	movne	r3, r1
	b	.L5
	.size	trim_trailing_spaces, .-trim_trailing_spaces
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
