	.file	"369464.c"
	.intel_syntax noprefix
	.text
	.globl	sort
	.type	sort, @function
sort:
.LFB0:
	.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, 120
	.cfi_offset 3, -24
	mov	QWORD PTR -120[rbp], rdi
	mov	DWORD PTR -124[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	r8, rax
	mov	eax, DWORD PTR -124[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -80[rbp], rdx
	movsx	rdx, eax
	mov	r10, rdx
	mov	r11d, 0
	movsx	rdx, eax
	mov	rcx, rdx
	mov	ebx, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -120[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -100[rbp], eax
	mov	DWORD PTR -104[rbp], 1
	jmp	.L5
.L7:
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -100[rbp], eax
	jge	.L6
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -100[rbp], eax
.L6:
	add	DWORD PTR -104[rbp], 1
.L5:
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -124[rbp]
	jl	.L7
	mov	DWORD PTR -108[rbp], 1
	jmp	.L8
.L19:
	mov	DWORD PTR -112[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	mov	DWORD PTR -64[rbp+rax*4], 0
	add	DWORD PTR -112[rbp], 1
.L9:
	cmp	DWORD PTR -112[rbp], 9
	jle	.L10
	mov	DWORD PTR -96[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdq
	idiv	DWORD PTR -108[rbp]
	mov	ecx, eax
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	movsx	rax, edx
	mov	eax, DWORD PTR -64[rbp+rax*4]
	lea	ecx, 1[rax]
	movsx	rax, edx
	mov	DWORD PTR -64[rbp+rax*4], ecx
	add	DWORD PTR -96[rbp], 1
.L11:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, DWORD PTR -124[rbp]
	jl	.L12
	mov	DWORD PTR -92[rbp], 1
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	mov	edx, DWORD PTR -64[rbp+rax*4]
	mov	eax, DWORD PTR -92[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR -64[rbp+rax*4]
	add	edx, eax
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	mov	DWORD PTR -64[rbp+rax*4], edx
	add	DWORD PTR -92[rbp], 1
.L13:
	cmp	DWORD PTR -92[rbp], 9
	jle	.L14
	mov	eax, DWORD PTR -124[rbp]
	sub	eax, 1
	mov	DWORD PTR -88[rbp], eax
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -120[rbp]
	lea	rsi, [rdx+rax]
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdq
	idiv	DWORD PTR -108[rbp]
	mov	ecx, eax
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	edi, ecx
	sar	edi, 31
	sub	eax, edi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	movsx	rax, edx
	mov	eax, DWORD PTR -64[rbp+rax*4]
	lea	ecx, -1[rax]
	movsx	rax, edx
	mov	DWORD PTR -64[rbp+rax*4], ecx
	movsx	rax, edx
	mov	edx, DWORD PTR -64[rbp+rax*4]
	mov	ecx, DWORD PTR [rsi]
	mov	rax, QWORD PTR -72[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	sub	DWORD PTR -88[rbp], 1
.L15:
	cmp	DWORD PTR -88[rbp], 0
	jns	.L16
	mov	DWORD PTR -84[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -120[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -84[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR [rcx], eax
	add	DWORD PTR -84[rbp], 1
.L17:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -124[rbp]
	jl	.L18
	mov	edx, DWORD PTR -108[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	DWORD PTR -108[rbp], eax
.L8:
	mov	eax, DWORD PTR -100[rbp]
	cdq
	idiv	DWORD PTR -108[rbp]
	test	eax, eax
	jg	.L19
	mov	rsp, r8
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	sort, .-sort
	.section	.rodata
.LC0:
	.string	"Unsorted Array :-"
.LC1:
	.string	"%-4d"
.LC2:
	.string	"\nSorted Array :-"
	.text
	.globl	main
	.type	main, @function
main:
.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -48[rbp], 2
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -40[rbp], 2
	mov	DWORD PTR -36[rbp], 7
	mov	DWORD PTR -32[rbp], 34
	mov	DWORD PTR -28[rbp], 9
	mov	DWORD PTR -24[rbp], 66
	mov	DWORD PTR -20[rbp], 23
	mov	DWORD PTR -16[rbp], 55
	mov	DWORD PTR -12[rbp], 1
	mov	DWORD PTR -52[rbp], 10
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	DWORD PTR -60[rbp], 0
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -60[rbp], 1
.L22:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L23
	mov	edx, DWORD PTR -52[rbp]
	lea	rax, -48[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	sort
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	DWORD PTR -56[rbp], 0
	jmp	.L24
.L25:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -56[rbp], 1
.L24:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L25
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"369464.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sort
	.syntax unified
	.arm
	.fpu softvfp
	.type	sort, %function
sort:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #96
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r5, r3
	ldr	ip, [fp, #-108]
	sub	r3, ip, #1
	str	r3, [fp, #-64]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-104]
	ldr	r3, [r3]
	str	r3, [fp, #-84]
	mov	r3, #1
	str	r3, [fp, #-88]
	b	.L2
.L4:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-104]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-84]
	cmp	r2, r3
	bge	.L3
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-104]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-84]
.L3:
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L2:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-108]
	cmp	r2, r3
	blt	.L4
	mov	r3, #1
	str	r3, [fp, #-92]
	b	.L5
.L16:
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L6
.L7:
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-44]
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L6:
	ldr	r3, [fp, #-96]
	cmp	r3, #9
	ble	.L7
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L8
.L9:
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-104]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-92]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r1, r3
	ldr	r3, .L18+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	lsl	r3, r2, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-44]
	add	r1, r3, #1
	lsl	r3, r2, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	str	r1, [r3, #-44]
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L8:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-108]
	cmp	r2, r3
	blt	.L9
	mov	r3, #1
	str	r3, [fp, #-76]
	b	.L10
.L11:
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-44]
	ldr	r3, [fp, #-76]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-44]
	add	r2, r2, r3
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-44]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L10:
	ldr	r3, [fp, #-76]
	cmp	r3, #9
	ble	.L11
	ldr	r3, [fp, #-108]
	sub	r3, r3, #1
	str	r3, [fp, #-72]
	b	.L12
.L13:
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-104]
	add	r4, r2, r3
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-104]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-92]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r1, r3
	ldr	r3, .L18+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	lsl	r3, r2, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-44]
	sub	r1, r3, #1
	lsl	r3, r2, #2
	sub	r0, fp, #12
	add	r3, r0, r3
	str	r1, [r3, #-44]
	lsl	r3, r2, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-44]
	ldr	r1, [r4]
	ldr	r3, [fp, #-60]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-72]
	sub	r3, r3, #1
	str	r3, [fp, #-72]
.L12:
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bge	.L13
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L14
.L15:
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-104]
	add	r3, r2, r3
	ldr	r2, [fp, #-60]
	ldr	r1, [fp, #-68]
	ldr	r2, [r2, r1, lsl #2]
	str	r2, [r3]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L14:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-108]
	cmp	r2, r3
	blt	.L15
	ldr	r2, [fp, #-92]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	str	r3, [fp, #-92]
.L5:
	ldr	r1, [fp, #-92]
	ldr	r0, [fp, #-84]
	bl	__aeabi_idiv
	mov	r3, r0
	cmp	r3, #0
	bgt	.L16
	mov	sp, r5
	nop
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC1
	.word	1717986919
	.size	sort, .-sort
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Unsorted Array :-\000"
	.align	2
.LC3:
	.ascii	"%-4d\000"
	.align	2
.LC4:
	.ascii	"\012Sorted Array :-\000"
	.align	2
.LC0:
	.word	2
	.word	0
	.word	2
	.word	7
	.word	34
	.word	9
	.word	66
	.word	23
	.word	55
	.word	1
	.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 = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L27+4
	sub	ip, fp, #48
	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}
	stm	ip, {r0, r1}
	mov	r3, #10
	str	r3, [fp, #-52]
	ldr	r0, .L27+8
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L21
.L22:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	mov	r1, r3
	ldr	r0, .L27+12
	bl	printf
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L21:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	blt	.L22
	sub	r3, fp, #48
	ldr	r1, [fp, #-52]
	mov	r0, r3
	bl	sort
	ldr	r0, .L27+16
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L23
.L24:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	mov	r1, r3
	ldr	r0, .L27+12
	bl	printf
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L23:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	blt	.L24
	mov	r3, #0
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC5
	.word	.LC0
	.word	.LC2
	.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
