	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radix_sort
_radix_sort:                            ## @radix_sort
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_RADIX_PASSES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_NBUCKETS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	imulq	%r13, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	callq	_radix_count
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_radix_sort_pass
	leaq	(%rbx,%r13,4), %rcx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	movl	$1, %r8d
	callq	_radix_sort_pass
	leaq	(%rbx,%r13,8), %rcx
	movq	_NBUCKETS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpl	$0, -4(%rcx,%rax,4)
	leaq	(%r13,%r13,2), %rdx
	leaq	(%rbx,%rdx,4), %rbx
	jne	LBB0_2
## %bb.1:
	cmpl	$0, -4(%rbx,%rax,4)
	je	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	$2, %r8d
	callq	_radix_sort_pass
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	movl	$3, %r8d
	callq	_radix_sort_pass
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RADIX_PASSES,4,2               ## @RADIX_PASSES
	.comm	_NBUCKETS,4,2                   ## @NBUCKETS
	.no_dead_strip	_radix_sort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radix_sort
_radix_sort:                            ; @radix_sort
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _RADIX_PASSES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RADIX_PASSES@GOTPAGEOFF]
Lloh5:
	adrp	x23, _NBUCKETS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _NBUCKETS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w24, [x23]
	mul	x8, x24, x8
	lsl	x9, x8, #2
	add	x8, x9, #15
	and	x8, x8, #0xfffffffffffffff0
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x22, x9, x8
	mov	sp, x22
	mov	x1, x2
	mov	x2, x22
	bl	_radix_count
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x22
	mov	w4, #0
	bl	_radix_sort_pass
	add	x3, x22, x24, lsl #2
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w4, #1
	bl	_radix_sort_pass
	add	x3, x22, x24, lsl #3
	ldrsw	x8, [x23]
	sub	x8, x8, #1
	ldr	w9, [x3, x8, lsl #2]
	add	x23, x24, x24, lsl #1
	cbnz	w9, LBB0_2
; %bb.1:
	add	x9, x22, x23, lsl #2
	ldr	w8, [x9, x8, lsl #2]
	cbz	w8, LBB0_3
LBB0_2:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	w4, #2
	bl	_radix_sort_pass
	add	x3, x22, x23, lsl #2
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w4, #3
	bl	_radix_sort_pass
LBB0_3:
	ldur	x8, [x29, #-56]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RADIX_PASSES,4,2               ; @RADIX_PASSES
	.comm	_NBUCKETS,4,2                   ; @NBUCKETS
	.no_dead_strip	_radix_sort
.subsections_via_symbols
