	.file	"33104.c"
	.intel_syntax noprefix
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	bucket
	.align 32
	.type	bucket, @object
	.size	bucket, 1024
bucket:
	.zero	1024
	.globl	ar
	.align 32
	.type	ar, @object
	.size	ar, 4000080
ar:
	.zero	4000080
	.globl	temp
	.align 32
	.type	temp, @object
	.size	temp, 4000080
temp:
	.zero	4000080
	.text
	.globl	radix_sort
	.type	radix_sort, @function
radix_sort:
.LFB0:
	.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 -4[rbp], 255
	mov	DWORD PTR -12[rbp], 0
	jmp	.L2
.L11:
	mov	edx, 1024
	mov	esi, 0
	lea	rdi, bucket[rip]
	call	memset@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L3
.L4:
	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]
	mov	ecx, eax
	shr	edx, cl
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	and	esi, eax
	mov	eax, esi
	lea	rdx, 0[0+rax*4]
	lea	rax, bucket[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, 1[rax]
	mov	eax, esi
	lea	rdx, 0[0+rax*4]
	lea	rax, bucket[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -8[rbp], 1
.L3:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L4
	mov	DWORD PTR -8[rbp], 1
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, bucket[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, bucket[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, bucket[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -8[rbp], 1
.L5:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jle	.L6
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -8[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	esi, DWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	mov	ecx, eax
	shr	esi, cl
	mov	ecx, esi
	mov	eax, DWORD PTR -4[rbp]
	and	eax, ecx
	mov	ecx, eax
	lea	rsi, 0[0+rcx*4]
	lea	rcx, bucket[rip]
	mov	ecx, DWORD PTR [rsi+rcx]
	lea	edi, -1[rcx]
	mov	ecx, eax
	lea	rsi, 0[0+rcx*4]
	lea	rcx, bucket[rip]
	mov	DWORD PTR [rsi+rcx], edi
	mov	eax, eax
	lea	rcx, 0[0+rax*4]
	lea	rax, bucket[rip]
	mov	ecx, DWORD PTR [rcx+rax]
	mov	eax, DWORD PTR [rdx]
	mov	edx, ecx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, temp[rip]
	mov	DWORD PTR [rcx+rdx], eax
	sub	DWORD PTR -8[rbp], 1
.L7:
	cmp	DWORD PTR -8[rbp], 0
	jns	.L8
	mov	DWORD PTR -8[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -8[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]
	lea	rax, temp[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -8[rbp], 1
.L9:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L10
	add	DWORD PTR -12[rbp], 8
.L2:
	cmp	DWORD PTR -12[rbp], 31
	jle	.L11
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	radix_sort, .-radix_sort
	.section	.rodata
.LC0:
	.string	"YO"
.LC2:
	.string	"%0.5f s\n"
	.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
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	DWORD PTR n[rip], 1000010
	mov	edi, 0
	call	time@PLT
	mov	rdi, rax
	mov	eax, 0
	call	srand@PLT
	mov	DWORD PTR -28[rbp], 0
	jmp	.L13
.L14:
	mov	eax, 0
	call	rand@PLT
	mov	ebx, eax
	mov	eax, 0
	call	rand@PLT
	imul	eax, ebx
	mov	ecx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ar[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -28[rbp], 1
.L13:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L14
	call	clock@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR n[rip]
	mov	esi, eax
	lea	rdi, ar[rip]
	call	radix_sort
	mov	DWORD PTR -28[rbp], 0
	jmp	.L15
.L17:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ar[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, ar[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cmp	edx, eax
	jbe	.L16
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L16:
	add	DWORD PTR -28[rbp], 1
.L15:
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jl	.L17
	call	clock@PLT
	sub	rax, QWORD PTR -24[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC1[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC2[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1093567616
	.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	"33104.c"
	.text
	.comm	n,4,4
	.comm	bucket,1024,4
	.comm	ar,4000080,4
	.comm	temp,4000080,4
	.align	2
	.global	radix_sort
	.syntax unified
	.arm
	.fpu softvfp
	.type	radix_sort, %function
radix_sort:
	@ 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]
	mov	r3, #255
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L2
.L11:
	mov	r2, #1024
	mov	r1, #0
	ldr	r0, .L12
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L3
.L4:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsr	r2, r2, r3
	ldr	r3, [fp, #-8]
	and	r3, r3, r2
	ldr	r2, .L12
	ldr	r2, [r2, r3, lsl #2]
	add	r2, r2, #1
	ldr	r1, .L12
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L3:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L4
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L5
.L6:
	ldr	r2, .L12
	ldr	r3, [fp, #-12]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r1, .L12
	ldr	r3, [r1, r3, lsl #2]
	add	r2, r2, r3
	ldr	r1, .L12
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L5:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L6
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L7
.L8:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	lsr	r1, r1, r3
	ldr	r3, [fp, #-8]
	and	r3, r3, r1
	ldr	r1, .L12
	ldr	r1, [r1, r3, lsl #2]
	sub	r1, r1, #1
	ldr	r0, .L12
	str	r1, [r0, r3, lsl #2]
	ldr	r1, .L12
	ldr	r3, [r1, r3, lsl #2]
	ldr	r2, [r2]
	ldr	r1, .L12+4
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L7:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L8
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L9
.L10:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r1, .L12+4
	ldr	r2, [fp, #-12]
	ldr	r2, [r1, r2, lsl #2]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L9:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L10
	ldr	r3, [fp, #-16]
	add	r3, r3, #8
	str	r3, [fp, #-16]
.L2:
	ldr	r3, [fp, #-16]
	cmp	r3, #31
	ble	.L11
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	bucket
	.word	temp
	.size	radix_sort, .-radix_sort
	.section	.rodata
	.align	2
.LC0:
	.ascii	"YO\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC1:
	.ascii	"%0.5f s\012\000"
	.text
	.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	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	ldr	r3, .L21
	ldr	r2, .L21+4
	str	r2, [r3]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L15
.L16:
	bl	rand
	mov	r4, r0
	bl	rand
	mov	r3, r0
	mul	r3, r4, r3
	mov	r1, r3
	ldr	r2, .L21+8
	ldr	r3, [fp, #-20]
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L15:
	ldr	r3, .L21
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L16
	bl	clock
	str	r0, [fp, #-16]
	ldr	r3, .L21
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L21+8
	bl	radix_sort
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L17
.L19:
	ldr	r2, .L21+8
	ldr	r3, [fp, #-20]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r1, .L21+8
	ldr	r3, [r1, r3, lsl #2]
	cmp	r2, r3
	bls	.L18
	ldr	r0, .L21+12
	bl	puts
.L18:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L17:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	ldr	r3, .L21
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L19
	bl	clock
	mov	r2, r0
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L21+16
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L21+20
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L22:
	.align	2
.L21:
	.word	n
	.word	1000010
	.word	ar
	.word	.LC0
	.word	1093567616
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
