	.file	"772069.c"
	.intel_syntax noprefix
	.text
	.globl	MySort
	.type	MySort, @function
MySort:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -36864[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 3184
	mov	QWORD PTR -40040[rbp], rdi
	mov	DWORD PTR -40044[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -40016[rbp]
	mov	edx, 40004
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -40028[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -40028[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40040[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	edx, DWORD PTR -40016[rbp+rdx*4]
	add	edx, 1
	cdqe
	mov	DWORD PTR -40016[rbp+rax*4], edx
	add	DWORD PTR -40028[rbp], 1
.L2:
	mov	eax, DWORD PTR -40028[rbp]
	cmp	eax, DWORD PTR -40044[rbp]
	jl	.L3
	mov	DWORD PTR -40024[rbp], 0
	mov	DWORD PTR -40020[rbp], 0
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -40024[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -40024[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40040[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -40020[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -40020[rbp]
	cdqe
	mov	eax, DWORD PTR -40016[rbp+rax*4]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -40020[rbp]
	cdqe
	mov	DWORD PTR -40016[rbp+rax*4], edx
.L5:
	mov	eax, DWORD PTR -40020[rbp]
	cdqe
	mov	eax, DWORD PTR -40016[rbp+rax*4]
	test	eax, eax
	jne	.L6
	add	DWORD PTR -40020[rbp], 1
.L4:
	cmp	DWORD PTR -40020[rbp], 10000
	jle	.L5
	mov	eax, 1
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	MySort, .-MySort
	.section	.rodata
.LC0:
	.string	"%-5d "
.LC1:
	.string	"pause"
	.text
	.globl	main1
	.type	main1, @function
main1:
.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, 4032
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -4024[rbp], 0
	jmp	.L11
.L13:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, -776881895
	shr	rdx, 32
	add	edx, eax
	sar	edx, 13
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 10001
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -4024[rbp]
	cdqe
	mov	DWORD PTR -4016[rbp+rax*4], edx
	mov	eax, DWORD PTR -4024[rbp]
	cdqe
	mov	eax, DWORD PTR -4016[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4024[rbp]
	lea	ecx, 1[rax]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 3
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 2
	sub	ecx, eax
	mov	edx, ecx
	test	edx, edx
	jne	.L12
	mov	edi, 10
	call	putchar@PLT
.L12:
	add	DWORD PTR -4024[rbp], 1
.L11:
	cmp	DWORD PTR -4024[rbp], 999
	jle	.L13
	mov	edi, 10
	call	putchar@PLT
	lea	rax, -4016[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	MySort
	mov	DWORD PTR -4020[rbp], 0
	jmp	.L14
.L16:
	mov	eax, DWORD PTR -4020[rbp]
	cdqe
	mov	eax, DWORD PTR -4016[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4020[rbp]
	lea	ecx, 1[rax]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 3
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 2
	sub	ecx, eax
	mov	edx, ecx
	test	edx, edx
	jne	.L15
	mov	edi, 10
	call	putchar@PLT
.L15:
	add	DWORD PTR -4020[rbp], 1
.L14:
	cmp	DWORD PTR -4020[rbp], 999
	jle	.L16
	lea	rdi, .LC1[rip]
	call	system@PLT
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main1, .-main1
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"772069.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	MySort
	.syntax unified
	.arm
	.fpu softvfp
	.type	MySort, %function
MySort:
	@ args = 0, pretend = 0, frame = 40032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #39936
	sub	sp, sp, #96
	sub	r3, fp, #36864
	sub	r3, r3, #4
	str	r0, [r3, #-3164]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	str	r1, [r3, #-3168]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #36864
	sub	r3, r3, #4
	sub	r3, r3, #3136
	sub	r3, r3, #8
	ldr	r2, .L10+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3156]
	b	.L2
.L3:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3156]
	lsl	r3, r3, #2
	sub	r2, fp, #36864
	sub	r2, r2, #4
	ldr	r2, [r2, #-3164]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-3144]
	add	r1, r3, #1
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-3144]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3156]
	add	r3, r3, #1
	str	r3, [r2, #-3156]
.L2:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r2, [r2, #-3156]
	ldr	r3, [r3, #-3168]
	cmp	r2, r3
	blt	.L3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3152]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3148]
	b	.L4
.L6:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3152]
	sub	r2, fp, #36864
	sub	r2, r2, #4
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-3152]
	lsl	r3, r3, #2
	sub	r2, fp, #36864
	sub	r2, r2, #4
	ldr	r2, [r2, #-3164]
	add	r3, r2, r3
	sub	r2, fp, #36864
	sub	r2, r2, #4
	ldr	r2, [r2, #-3148]
	str	r2, [r3]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3148]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-3144]
	sub	r2, r3, #1
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3148]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-3144]
.L5:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3148]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-3144]
	cmp	r3, #0
	bne	.L6
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3148]
	add	r3, r3, #1
	str	r3, [r2, #-3148]
.L4:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3148]
	ldr	r2, .L10+8
	cmp	r3, r2
	ble	.L5
	mov	r3, #1
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	40004
	.word	10000
	.size	MySort, .-MySort
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%-5d \000"
	.align	2
.LC2:
	.ascii	"pause\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main1
	.syntax unified
	.arm
	.fpu softvfp
	.type	main1, %function
main1:
	@ args = 0, pretend = 0, frame = 4016
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4016
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-4016]
	b	.L13
.L15:
	bl	rand
	mov	r1, r0
	ldr	r3, .L21+4
	smull	r2, r3, r1, r3
	add	r3, r3, r1
	asr	r2, r3, #13
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r0, r3, #2
	add	r3, r3, r0
	lsl	r3, r3, #4
	add	r3, r3, r2
	sub	r2, r1, r3
	ldr	r3, [fp, #-4016]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-4004]
	ldr	r3, [fp, #-4016]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-4004]
	mov	r1, r3
	ldr	r0, .L21+8
	bl	printf
	ldr	r3, [fp, #-4016]
	add	r1, r3, #1
	ldr	r3, .L21+12
	smull	r2, r3, r1, r3
	asr	r2, r3, #3
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L14
	mov	r0, #10
	bl	putchar
.L14:
	ldr	r3, [fp, #-4016]
	add	r3, r3, #1
	str	r3, [fp, #-4016]
.L13:
	ldr	r3, [fp, #-4016]
	cmp	r3, #1000
	blt	.L15
	mov	r0, #10
	bl	putchar
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #1000
	mov	r0, r3
	bl	MySort
	mov	r3, #0
	str	r3, [fp, #-4012]
	b	.L16
.L18:
	ldr	r3, [fp, #-4012]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-4004]
	mov	r1, r3
	ldr	r0, .L21+8
	bl	printf
	ldr	r3, [fp, #-4012]
	add	r1, r3, #1
	ldr	r3, .L21+12
	smull	r2, r3, r1, r3
	asr	r2, r3, #3
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L17
	mov	r0, #10
	bl	putchar
.L17:
	ldr	r3, [fp, #-4012]
	add	r3, r3, #1
	str	r3, [fp, #-4012]
.L16:
	ldr	r3, [fp, #-4012]
	cmp	r3, #1000
	blt	.L18
	ldr	r0, .L21+16
	bl	system
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC3
	.word	-776881895
	.word	.LC1
	.word	1717986919
	.word	.LC2
	.size	main1, .-main1
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
