	.file	"148862.c"
	.intel_syntax noprefix
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -96[rbp]
	mov	esi, 11
	mov	rdi, rax
	call	fill_array
	lea	rax, -96[rbp]
	mov	edx, 11
	mov	rsi, rax
	mov	edi, 0
	call	prn_array
	lea	rax, -96[rbp]
	lea	rcx, cmp[rip]
	mov	edx, 8
	mov	esi, 11
	mov	rdi, rax
	call	qsort@PLT
	lea	rax, -96[rbp]
	mov	edx, 11
	mov	rsi, rax
	mov	edi, 1
	call	prn_array
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB7:
	.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 -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	movsd	xmm1, QWORD PTR [rax]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	pxor	xmm0, xmm0
	comisd	xmm0, QWORD PTR -8[rbp]
	jbe	.L14
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -8[rbp]
	jp	.L7
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -8[rbp]
	jne	.L7
	mov	eax, -1
	jmp	.L11
.L7:
	mov	eax, 0
	jmp	.L11
.L14:
	mov	eax, 1
.L11:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	cmp, .-cmp
	.globl	fill_array
	.type	fill_array, @function
fill_array:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	ebx, 0
	jmp	.L16
.L17:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1098413215
	shr	rdx, 32
	sar	edx, 8
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 1001
	sub	eax, ecx
	mov	edx, eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, edx
	lea	rdx, 0[0+rbx*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR .LC1[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	add	rbx, 1
.L16:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	cmp	rbx, rax
	jb	.L17
	nop
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	fill_array, .-fill_array
	.section	.rodata
.LC2:
	.string	"Before "
.LC3:
	.string	"After "
.LC4:
	.string	"sorting:"
.LC5:
	.string	"---"
.LC6:
	.string	"%s\n%s%s\n"
.LC7:
	.string	"%10.1f"
	.text
	.globl	prn_array
	.type	prn_array, @function
prn_array:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -24[rbp], edx
	cmp	DWORD PTR -20[rbp], 0
	jne	.L19
	lea	rax, .LC2[rip]
	jmp	.L20
.L19:
	lea	rax, .LC3[rip]
.L20:
	lea	rcx, .LC4[rip]
	mov	rdx, rax
	lea	rsi, .LC5[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ebx, 0
	jmp	.L21
.L23:
	movabs	rdx, -6148914691236517205
	mov	rax, rbx
	mul	rdx
	shr	rdx, 2
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	mov	rdx, rbx
	sub	rdx, rax
	test	rdx, rdx
	jne	.L22
	mov	edi, 10
	call	putchar@PLT
.L22:
	lea	rdx, 0[0+rbx*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movq	xmm0, rax
	lea	rdi, .LC7[rip]
	mov	eax, 1
	call	printf@PLT
	add	rbx, 1
.L21:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	cmp	rbx, rax
	jb	.L23
	mov	edi, 10
	call	putchar@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	prn_array, .-prn_array
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1076101120
	.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	"148862.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, #11
	mov	r0, r3
	bl	fill_array
	sub	r3, fp, #100
	mov	r2, #11
	mov	r1, r3
	mov	r0, #0
	bl	prn_array
	sub	r0, fp, #100
	ldr	r3, .L4+4
	mov	r2, #8
	mov	r1, #11
	bl	qsort
	sub	r3, fp, #100
	mov	r2, #11
	mov	r1, r3
	mov	r0, #1
	bl	prn_array
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	cmp
	.size	main, .-main
	.global	__aeabi_dsub
	.global	__aeabi_dcmplt
	.global	__aeabi_dcmpeq
	.align	2
	.global	cmp
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmp, %function
cmp:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-16]
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	mvn	r3, #0
	b	.L13
.L17:
	mov	r3, #0
	b	.L13
.L16:
	mov	r3, #1
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	cmp, .-cmp
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
	.global	fill_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	fill_array, %function
fill_array:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r4, #0
	b	.L19
.L20:
	bl	rand
	mov	r1, r0
	ldr	r3, .L21
	smull	r2, r3, r1, r3
	asr	r2, r3, #8
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	sub	r2, r1, r2
	mov	r0, r2
	bl	__aeabi_i2d
	lsl	r3, r4, #3
	ldr	r2, [fp, #-16]
	add	r5, r2, r3
	mov	r2, #0
	ldr	r3, .L21+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	r5, {r2-r3}
	add	r4, r4, #1
.L19:
	ldr	r3, [fp, #-20]
	cmp	r4, r3
	bcc	.L20
	nop
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L22:
	.align	2
.L21:
	.word	1098413215
	.word	1076101120
	.size	fill_array, .-fill_array
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Before \000"
	.align	2
.LC2:
	.ascii	"After \000"
	.align	2
.LC3:
	.ascii	"sorting:\000"
	.align	2
.LC4:
	.ascii	"---\000"
	.align	2
.LC5:
	.ascii	"%s\012%s%s\012\000"
	.align	2
.LC6:
	.ascii	"%10.1f\000"
	.text
	.align	2
	.global	prn_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	prn_array, %function
prn_array:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L24
	ldr	r2, .L29
	b	.L25
.L24:
	ldr	r2, .L29+4
.L25:
	ldr	r3, .L29+8
	ldr	r1, .L29+12
	ldr	r0, .L29+16
	bl	printf
	mov	r4, #0
	b	.L26
.L28:
	ldr	r3, .L29+20
	umull	r2, r3, r4, r3
	lsr	r2, r3, #2
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r4, r3
	cmp	r2, #0
	bne	.L27
	mov	r0, #10
	bl	putchar
.L27:
	lsl	r3, r4, #3
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, .L29+24
	bl	printf
	add	r4, r4, #1
.L26:
	ldr	r3, [fp, #-24]
	cmp	r4, r3
	bcc	.L28
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	-1431655765
	.word	.LC6
	.size	prn_array, .-prn_array
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
