	.file	"129633.c"
	.intel_syntax noprefix
	.text
	.globl	swap
	.type	swap, @function
swap:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	swap, .-swap
	.globl	quicksort
	.type	quicksort, @function
quicksort:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	cmp	DWORD PTR -28[rbp], eax
	jne	.L3
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jle	.L12
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	jmp	.L12
.L3:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	je	.L13
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jg	.L13
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
	jmp	.L8
.L11:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jle	.L9
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	cmp	DWORD PTR -12[rbp], eax
	jne	.L10
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	add	DWORD PTR -8[rbp], 1
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	add	DWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
.L9:
	add	DWORD PTR -12[rbp], 1
.L8:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jle	.L11
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, -1[rax]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	quicksort
	mov	eax, DWORD PTR -8[rbp]
	lea	ecx, 1[rax]
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	quicksort
	jmp	.L2
.L12:
	nop
	jmp	.L2
.L13:
	nop
.L2:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	quicksort, .-quicksort
	.globl	bubblesort
	.type	bubblesort, @function
bubblesort:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L15
.L23:
	mov	DWORD PTR -4[rbp], 1
	mov	DWORD PTR -8[rbp], 0
	jmp	.L16
.L19:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, 1
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jle	.L17
	mov	DWORD PTR -4[rbp], 0
	jmp	.L18
.L17:
	add	DWORD PTR -8[rbp], 1
.L16:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cmp	DWORD PTR -8[rbp], eax
	jl	.L19
.L18:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L15
	mov	DWORD PTR -8[rbp], 0
	jmp	.L20
.L22:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, 1
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jle	.L21
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
.L21:
	add	DWORD PTR -8[rbp], 1
.L20:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cmp	DWORD PTR -8[rbp], eax
	jl	.L22
.L15:
	cmp	DWORD PTR -4[rbp], 0
	je	.L23
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	bubblesort, .-bubblesort
	.section	.rodata
.LC0:
	.string	"arr size: %d\n"
.LC1:
	.string	"arr[%d]: %d\n"
	.align 8
.LC2:
	.string	"ERROR: element %d greater than %d, %d > %d\n"
	.align 8
.LC3:
	.string	"ERROR: element %d not equal: %d != %d\n"
	.align 8
.LC4:
	.string	"No changes detected. All clear."
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -77824[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 2208
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -80024[rbp], 0
	mov	DWORD PTR -80020[rbp], 0
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -80024[rbp], 0
	jmp	.L25
.L26:
	call	rand@PLT
	mov	edx, DWORD PTR -80024[rbp]
	movsx	rdx, edx
	mov	DWORD PTR -80016[rbp+rdx*4], eax
	mov	eax, DWORD PTR -80024[rbp]
	cdqe
	mov	edx, DWORD PTR -80016[rbp+rax*4]
	mov	eax, DWORD PTR -80024[rbp]
	cdqe
	mov	DWORD PTR -40016[rbp+rax*4], edx
	add	DWORD PTR -80024[rbp], 1
.L25:
	mov	eax, DWORD PTR -80024[rbp]
	cmp	eax, 9999
	jbe	.L26
	mov	esi, 10000
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -80016[rbp]
	mov	edx, 9999
	mov	esi, 0
	mov	rdi, rax
	call	quicksort
	lea	rax, -40016[rbp]
	mov	esi, 10000
	mov	rdi, rax
	call	bubblesort
	mov	DWORD PTR -80020[rbp], 0
	mov	DWORD PTR -80024[rbp], 0
	jmp	.L27
.L30:
	mov	eax, DWORD PTR -80024[rbp]
	cdqe
	mov	edx, DWORD PTR -80016[rbp+rax*4]
	mov	eax, DWORD PTR -80024[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -80024[rbp]
	cdqe
	mov	edx, DWORD PTR -80016[rbp+rax*4]
	mov	eax, DWORD PTR -80024[rbp]
	add	eax, 1
	cdqe
	mov	eax, DWORD PTR -80016[rbp+rax*4]
	cmp	edx, eax
	jle	.L28
	mov	eax, DWORD PTR -80024[rbp]
	add	eax, 1
	cdqe
	mov	ecx, DWORD PTR -80016[rbp+rax*4]
	mov	eax, DWORD PTR -80024[rbp]
	cdqe
	mov	edx, DWORD PTR -80016[rbp+rax*4]
	mov	eax, DWORD PTR -80024[rbp]
	lea	esi, 1[rax]
	mov	eax, DWORD PTR -80024[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, esi
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -80020[rbp], 1
	jmp	.L29
.L28:
	add	DWORD PTR -80024[rbp], 1
.L27:
	mov	eax, DWORD PTR -80024[rbp]
	cmp	eax, 9998
	jbe	.L30
.L29:
	cmp	DWORD PTR -80020[rbp], 0
	jne	.L31
	mov	eax, DWORD PTR -40020[rbp]
	mov	edx, eax
	mov	esi, 9999
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L31:
	mov	DWORD PTR -80020[rbp], 0
	mov	DWORD PTR -80024[rbp], 0
	jmp	.L32
.L34:
	mov	eax, DWORD PTR -80024[rbp]
	cdqe
	mov	edx, DWORD PTR -80016[rbp+rax*4]
	mov	eax, DWORD PTR -80024[rbp]
	cdqe
	mov	eax, DWORD PTR -40016[rbp+rax*4]
	cmp	edx, eax
	je	.L33
	mov	eax, DWORD PTR -80024[rbp]
	cdqe
	mov	ecx, DWORD PTR -40016[rbp+rax*4]
	mov	eax, DWORD PTR -80024[rbp]
	cdqe
	mov	edx, DWORD PTR -80016[rbp+rax*4]
	mov	eax, DWORD PTR -80024[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -80020[rbp], 1
.L33:
	add	DWORD PTR -80024[rbp], 1
.L32:
	mov	eax, DWORD PTR -80024[rbp]
	cmp	eax, 9999
	jbe	.L34
	cmp	DWORD PTR -80020[rbp], 0
	jne	.L35
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L35:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"129633.c"
	.text
	.align	2
	.global	swap
	.syntax unified
	.arm
	.fpu softvfp
	.type	swap, %function
swap:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	swap, .-swap
	.align	2
	.global	quicksort
	.syntax unified
	.arm
	.fpu softvfp
	.type	quicksort, %function
quicksort:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bne	.L3
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L12
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r0, r2, r3
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r1, r3
	bl	swap
	b	.L12
.L3:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	beq	.L13
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bgt	.L13
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L8
.L11:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L9
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L10
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r0, r2, r3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r1, r3
	bl	swap
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L9
.L10:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r0, r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r1, r3
	bl	swap
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r0, r2, r3
	ldr	r3, [fp, #-12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r1, r3
	bl	swap
.L9:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L8:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	ble	.L11
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	quicksort
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r2, [fp, #-32]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	quicksort
	b	.L2
.L12:
	nop
	b	.L2
.L13:
	nop
.L2:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	quicksort, .-quicksort
	.align	2
	.global	bubblesort
	.syntax unified
	.arm
	.fpu softvfp
	.type	bubblesort, %function
bubblesort:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L15
.L23:
	mov	r3, #1
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L16
.L19:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L17
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L18
.L17:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L16:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L19
.L18:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L15
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L20
.L22:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L21
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r0, r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r1, r3
	bl	swap
.L21:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L20:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L22
.L15:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L23
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	bubblesort, .-bubblesort
	.section	.rodata
	.align	2
.LC0:
	.ascii	"arr size: %d\012\000"
	.align	2
.LC1:
	.ascii	"arr[%d]: %d\012\000"
	.align	2
.LC2:
	.ascii	"ERROR: element %d greater than %d, %d > %d\012\000"
	.align	2
.LC3:
	.ascii	"ERROR: element %d not equal: %d != %d\012\000"
	.align	2
.LC4:
	.ascii	"No changes detected. All clear.\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80016
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #79872
	sub	sp, sp, #152
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #77824
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2188]
	sub	r3, fp, #77824
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2184]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	sub	r3, fp, #77824
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2188]
	b	.L25
.L26:
	bl	rand
	mov	r2, r0
	sub	r3, fp, #77824
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #77824
	sub	r3, r3, #4
	ldr	r3, [r3, #-2188]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-2180]
	sub	r3, fp, #77824
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #77824
	sub	r3, r3, #4
	ldr	r3, [r3, #-2188]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-2180]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #77824
	sub	r3, r3, #4
	ldr	r3, [r3, #-2188]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-3140]
	sub	r3, fp, #77824
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #77824
	sub	r3, r3, #4
	ldr	r3, [r3, #-2188]
	add	r3, r3, #1
	str	r3, [r2, #-2188]
.L25:
	sub	r3, fp, #77824
	sub	r3, r3, #4
	ldr	r3, [r3, #-2188]
	ldr	r2, .L38+4
	cmp	r3, r2
	bls	.L26
	ldr	r1, .L38+8
	ldr	r0, .L38+12
	bl	printf
	sub	r3, fp, #79872
	sub	r3, r3, #4
	sub	r3, r3, #132
	ldr	r2, .L38+4
	mov	r1, #0
	mov	r0, r3
	bl	quicksort
	sub	r3, fp, #39936
	sub	r3, r3, #4
	sub	r3, r3, #68
	ldr	r1, .L38+8
	mov	r0, r3
	bl	bubblesort
	sub	r3, fp, #77824
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2184]
	sub	r3, fp, #77824
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2188]
	b	.L27
.L30:
	sub	r3, fp, #77824
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #77824
	sub	r3, r3, #4
	ldr	r3, [r3, #-2188]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-2180]
	sub	r2, fp, #77824
	sub	r2, r2, #4
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-2188]
	ldr	r0, .L38+16
	bl	printf
	sub	r3, fp, #77824
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #77824
	sub	r3, r3, #4
	ldr	r3, [r3, #-2188]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-2180]
	sub	r3, fp, #77824
	sub	r3, r3, #4
	ldr	r3, [r3, #-2188]
	add	r3, r3, #1
	sub	r1, fp, #77824
	sub	r1, r1, #4
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-2180]
	cmp	r2, r3
	ble	.L28
	sub	r3, fp, #77824
	sub	r3, r3, #4
	ldr	r3, [r3, #-2188]
	add	r2, r3, #1
	sub	r3, fp, #77824
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #77824
	sub	r3, r3, #4
	ldr	r3, [r3, #-2188]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3, #-2180]
	sub	r3, fp, #77824
	sub	r3, r3, #4
	ldr	r3, [r3, #-2188]
	add	r3, r3, #1
	sub	r0, fp, #77824
	sub	r0, r0, #4
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r3, [r3, #-2180]
	sub	r0, fp, #77824
	sub	r0, r0, #4
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [r0, #-2188]
	ldr	r0, .L38+20
	bl	printf
	sub	r3, fp, #77824
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-2184]
	b	.L29
.L28:
	sub	r3, fp, #77824
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #77824
	sub	r3, r3, #4
	ldr	r3, [r3, #-2188]
	add	r3, r3, #1
	str	r3, [r2, #-2188]
.L27:
	sub	r3, fp, #77824
	sub	r3, r3, #4
	ldr	r3, [r3, #-2188]
	ldr	r2, .L38+24
	cmp	r3, r2
	bls	.L30
.L29:
	sub	r3, fp, #77824
	sub	r3, r3, #4
	ldr	r3, [r3, #-2184]
	cmp	r3, #0
	bne	.L31
	sub	r3, fp, #77824
	sub	r3, r3, #4
	add	r3, r3, #36864
	ldr	r3, [r3, #952]
	mov	r2, r3
	ldr	r1, .L38+4
	ldr	r0, .L38+16
	bl	printf
.L31:
	sub	r3, fp, #77824
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2184]
	sub	r3, fp, #77824
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2188]
	b	.L32
.L34:
	sub	r3, fp, #77824
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #77824
	sub	r3, r3, #4
	ldr	r3, [r3, #-2188]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-2180]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #77824
	sub	r3, r3, #4
	ldr	r3, [r3, #-2188]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-3140]
	cmp	r2, r3
	beq	.L33
	sub	r3, fp, #77824
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #77824
	sub	r3, r3, #4
	ldr	r3, [r3, #-2188]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-2180]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #77824
	sub	r3, r3, #4
	ldr	r3, [r3, #-2188]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-3140]
	sub	r1, fp, #77824
	sub	r1, r1, #4
	ldr	r1, [r1, #-2188]
	ldr	r0, .L38+28
	bl	printf
	sub	r3, fp, #77824
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-2184]
.L33:
	sub	r3, fp, #77824
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #77824
	sub	r3, r3, #4
	ldr	r3, [r3, #-2188]
	add	r3, r3, #1
	str	r3, [r2, #-2188]
.L32:
	sub	r3, fp, #77824
	sub	r3, r3, #4
	ldr	r3, [r3, #-2188]
	ldr	r2, .L38+4
	cmp	r3, r2
	bls	.L34
	sub	r3, fp, #77824
	sub	r3, r3, #4
	ldr	r3, [r3, #-2184]
	cmp	r3, #0
	bne	.L35
	ldr	r0, .L38+32
	bl	puts
.L35:
	mov	r3, #0
	ldr	r2, .L38
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L37
	bl	__stack_chk_fail
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC5
	.word	9999
	.word	10000
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	9998
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
