	.file	"11076409.c"
	.intel_syntax noprefix
	.text
	.globl	isWhiteSpace
	.type	isWhiteSpace, @function
isWhiteSpace:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	movsx	eax, BYTE PTR -4[rbp]
	cmp	eax, 10
	jg	.L2
	cmp	eax, 9
	jge	.L3
	jmp	.L4
.L2:
	cmp	eax, 32
	jne	.L4
.L3:
	mov	eax, 1
	jmp	.L5
.L4:
	mov	eax, 0
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	isWhiteSpace, .-isWhiteSpace
	.globl	trimLeadingWhiteSpaces
	.type	trimLeadingWhiteSpaces, @function
trimLeadingWhiteSpaces:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 40
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	isWhiteSpace
	test	eax, eax
	je	.L13
	mov	DWORD PTR -20[rbp], 0
	jmp	.L9
.L10:
	add	DWORD PTR -20[rbp], 1
.L9:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	isWhiteSpace
	test	eax, eax
	jne	.L10
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -12[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -16[rbp], 1
	add	DWORD PTR -12[rbp], 1
.L11:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L12
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L6
.L13:
	nop
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	trimLeadingWhiteSpaces, .-trimLeadingWhiteSpaces
	.globl	trimTrailingWhiteSpaces
	.type	trimTrailingWhiteSpaces, @function
trimTrailingWhiteSpaces:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -12[rbp], 0
	jmp	.L15
.L16:
	add	DWORD PTR -12[rbp], 1
.L15:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L16
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
	jmp	.L17
.L18:
	sub	DWORD PTR -12[rbp], 1
.L17:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	isWhiteSpace
	test	eax, eax
	jne	.L18
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	trimTrailingWhiteSpaces, .-trimTrailingWhiteSpaces
	.globl	trimBothLeadingandTrailingWhiteSpaces
	.type	trimBothLeadingandTrailingWhiteSpaces, @function
trimBothLeadingandTrailingWhiteSpaces:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	trimTrailingWhiteSpaces
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	trimLeadingWhiteSpaces
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	trimBothLeadingandTrailingWhiteSpaces, .-trimBothLeadingandTrailingWhiteSpaces
	.section	.rodata
.LC0:
	.string	"TEST 1"
.LC1:
	.string	"Before Trimmed: %s\n"
.LC2:
	.string	"After Trimmed: %s\n"
.LC3:
	.string	"TEST 2"
.LC4:
	.string	"TEST 3"
	.text
	.globl	testFunctionality
	.type	testFunctionality, @function
testFunctionality:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1072
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	movabs	rax, 2314885530818453536
	movabs	rdx, 8316213866978112544
	mov	QWORD PTR -1072[rbp], rax
	mov	QWORD PTR -1064[rbp], rdx
	movabs	rax, 8247343400599712800
	movabs	rdx, 2314885530823126633
	mov	QWORD PTR -1056[rbp], rax
	mov	QWORD PTR -1048[rbp], rdx
	mov	QWORD PTR -1040[rbp], 0
	mov	QWORD PTR -1032[rbp], 0
	lea	rdx, -1024[rbp]
	mov	eax, 0
	mov	ecx, 37
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	mov	WORD PTR [rdx], ax
	add	rdx, 2
	lea	rax, -1072[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1072[rbp]
	mov	rdi, rax
	call	trimBothLeadingandTrailingWhiteSpaces
	lea	rax, -1072[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	movabs	rax, 657536583831920672
	movabs	rdx, 729593078727319561
	mov	QWORD PTR -720[rbp], rax
	mov	QWORD PTR -712[rbp], rdx
	movabs	rax, 2334402962886123808
	movabs	rdx, 723402206840119656
	mov	QWORD PTR -704[rbp], rax
	mov	QWORD PTR -696[rbp], rdx
	movabs	rax, 651368418456963360
	mov	edx, 2099744
	mov	QWORD PTR -688[rbp], rax
	mov	QWORD PTR -680[rbp], rdx
	lea	rdx, -672[rbp]
	mov	eax, 0
	mov	ecx, 37
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	mov	WORD PTR [rdx], ax
	add	rdx, 2
	lea	rax, -720[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -720[rbp]
	mov	rdi, rax
	call	trimBothLeadingandTrailingWhiteSpaces
	lea	rax, -720[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	movabs	rax, 7018987701998417258
	movabs	rdx, 474080944244
	mov	QWORD PTR -368[rbp], rax
	mov	QWORD PTR -360[rbp], rdx
	lea	rdx, -352[rbp]
	mov	eax, 0
	mov	ecx, 41
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	mov	WORD PTR [rdx], ax
	add	rdx, 2
	lea	rax, -368[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -368[rbp]
	mov	rdi, rax
	call	trimBothLeadingandTrailingWhiteSpaces
	lea	rax, -368[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	testFunctionality, .-testFunctionality
	.globl	main
	.type	main, @function
main:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	testFunctionality
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	main, .-main
	.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	"11076409.c"
	.text
	.align	2
	.global	isWhiteSpace
	.syntax unified
	.arm
	.fpu softvfp
	.type	isWhiteSpace, %function
isWhiteSpace:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #10
	bgt	.L2
	cmp	r3, #9
	bge	.L3
	b	.L4
.L2:
	cmp	r3, #32
	bne	.L4
.L3:
	mov	r3, #1
	b	.L5
.L4:
	mov	r3, #0
.L5:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isWhiteSpace, .-isWhiteSpace
	.align	2
	.global	trimLeadingWhiteSpaces
	.syntax unified
	.arm
	.fpu softvfp
	.type	trimLeadingWhiteSpaces, %function
trimLeadingWhiteSpaces:
	@ args = 0, 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, #-32]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	isWhiteSpace
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L9
.L10:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L9:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	isWhiteSpace
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L11
.L12:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-32]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L11:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L6
.L13:
	nop
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	trimLeadingWhiteSpaces, .-trimLeadingWhiteSpaces
	.align	2
	.global	trimTrailingWhiteSpaces
	.syntax unified
	.arm
	.fpu softvfp
	.type	trimTrailingWhiteSpaces, %function
trimTrailingWhiteSpaces:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L15
.L16:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L15:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L17
.L18:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L17:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	isWhiteSpace
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	trimTrailingWhiteSpaces, .-trimTrailingWhiteSpaces
	.align	2
	.global	trimBothLeadingandTrailingWhiteSpaces
	.syntax unified
	.arm
	.fpu softvfp
	.type	trimBothLeadingandTrailingWhiteSpaces, %function
trimBothLeadingandTrailingWhiteSpaces:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	trimTrailingWhiteSpaces
	ldr	r0, [fp, #-8]
	bl	trimLeadingWhiteSpaces
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	trimBothLeadingandTrailingWhiteSpaces, .-trimBothLeadingandTrailingWhiteSpaces
	.section	.rodata
	.align	2
.LC0:
	.ascii	"TEST 1\000"
	.align	2
.LC2:
	.ascii	"Before Trimmed: %s\012\000"
	.align	2
.LC3:
	.ascii	"After Trimmed: %s\012\000"
	.align	2
.LC4:
	.ascii	"TEST 2\000"
	.align	2
.LC6:
	.ascii	"TEST 3\000"
	.align	2
.LC1:
	.ascii	"         this is the string     \000"
	.space	317
	.align	2
.LC5:
	.ascii	"   \012\012\012 \011\011   \012\011 \012 are we hap"
	.ascii	"py\012\012\012 \011\011   \012\011 \012 \000"
	.space	306
	.align	2
.LC7:
	.ascii	"just that man\000"
	.space	336
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	testFunctionality
	.syntax unified
	.arm
	.fpu softvfp
	.type	testFunctionality, %function
testFunctionality:
	@ args = 0, pretend = 0, frame = 1064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1056
	sub	sp, sp, #8
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L24+4
	bl	printf
	ldr	r3, .L24+8
	sub	ip, fp, #1056
	sub	ip, ip, #4
	sub	ip, ip, #4
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	strb	r3, [ip]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #3
	ldr	r2, .L24+12
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L24+16
	bl	printf
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	trimBothLeadingandTrailingWhiteSpaces
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L24+20
	bl	printf
	ldr	r0, .L24+24
	bl	printf
	ldr	r3, .L24+28
	sub	ip, fp, #712
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	sub	r3, fp, #668
	ldr	r2, .L24+32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #712
	mov	r1, r3
	ldr	r0, .L24+16
	bl	printf
	sub	r3, fp, #712
	mov	r0, r3
	bl	trimBothLeadingandTrailingWhiteSpaces
	sub	r3, fp, #712
	mov	r1, r3
	ldr	r0, .L24+20
	bl	printf
	ldr	r0, .L24+36
	bl	printf
	ldr	r3, .L24+40
	sub	ip, fp, #360
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strh	r3, [ip]	@ movhi
	sub	r3, fp, #344
	sub	r3, r3, #2
	mov	r2, #336
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #360
	mov	r1, r3
	ldr	r0, .L24+16
	bl	printf
	sub	r3, fp, #360
	mov	r0, r3
	bl	trimBothLeadingandTrailingWhiteSpaces
	sub	r3, fp, #360
	mov	r1, r3
	ldr	r0, .L24+20
	bl	printf
	nop
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	317
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	306
	.word	.LC6
	.word	.LC7
	.size	testFunctionality, .-testFunctionality
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	testFunctionality
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
