	.file	"extr_StringUtils.c_String_trim.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	String_trim
	.type	String_trim, @function
String_trim:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	movzx	eax, BYTE PTR [rdi]
	lea	edx, -9[rax]
	cmp	dl, 1
	ja	.L16
	.p2align 4,,10
	.p2align 3
.L13:
	movzx	eax, BYTE PTR 1[rbp]
	add	rbp, 1
	lea	edx, -9[rax]
	cmp	dl, 1
	jbe	.L13
.L16:
	cmp	al, 32
	je	.L13
	mov	rdi, rbp
	call	strlen@PLT
	movsx	rbx, eax
	mov	r12, rbx
	lea	edi, 1[rbx]
	test	ebx, ebx
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	movzx	eax, BYTE PTR -1[rbp+rbx]
	mov	edx, ebx
	mov	edi, ebx
	lea	ecx, -9[rax]
	cmp	cl, 1
	jbe	.L8
	cmp	al, 32
	jne	.L18
.L8:
	sub	rbx, 1
	lea	r12d, -1[rdx]
	test	ebx, ebx
	jg	.L7
	movsx	rbx, r12d
.L6:
	call	xMalloc@PLT
	mov	edx, r12d
	mov	rsi, rbp
	mov	r13, rax
	mov	rdi, rax
	call	strncpy@PLT
	mov	BYTE PTR 0[r13+rbx], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	r12d, ebx
	add	edi, 1
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	String_trim, .-String_trim
	.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_StringUtils.c_String_trim.c"
	.text
	.align	2
	.global	String_trim
	.syntax unified
	.arm
	.fpu softvfp
	.type	String_trim, %function
String_trim:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldrb	r3, [r0]	@ zero_extendqisi2
	mov	r4, r0
	sub	r2, r3, #9
	cmp	r3, #32
	cmpne	r2, #1
	bhi	.L2
.L3:
	ldrb	r3, [r4, #1]!	@ zero_extendqisi2
	sub	r2, r3, #9
	cmp	r3, #32
	cmpne	r2, #1
	bls	.L3
.L2:
	mov	r0, r4
	bl	strlen
	subs	r5, r0, #0
	beq	.L8
	add	r2, r4, r5
.L5:
	ldrb	r3, [r2, #-1]!	@ zero_extendqisi2
	sub	r1, r3, #9
	cmp	r3, #32
	cmpne	r1, #1
	bhi	.L16
	subs	r5, r5, #1
	bne	.L5
.L8:
	mov	r0, #1
.L4:
	bl	xMalloc
	mov	r1, r4
	mov	r2, r5
	mov	r4, r0
	bl	strncpy
	mov	r3, #0
	mov	r0, r4
	strb	r3, [r4, r5]
	pop	{r4, r5, r6, pc}
.L16:
	add	r0, r5, #1
	b	.L4
	.size	String_trim, .-String_trim
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
