	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ss_bucket_sort
_ss_bucket_sort:                        ## @ss_bucket_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, %ebx
	testl	%edx, %edx
	js	LBB0_1
## %bb.2:
	movl	%r8d, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r13d
	movq	(%rdi), %rdi
	addq	$-4, %rdi
	leaq	4(,%r13,4), %rdx
	movl	$255, %esi
	callq	_memset
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.4:
	movq	(%r15), %rax
	movq	8(%r15), %r8
	movq	16(%r15), %r9
	xorl	%esi, %esi
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%edi, (%r8,%rsi,4)
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %edx
	movl	%edx, (%r9,%rsi,4)
	movl	%esi, (%rax,%rcx,4)
	incq	%rsi
	cmpq	%rsi, %r13
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rsi,4), %edi
	leal	(%rdi,%r12), %edx
	movl	$-1, %ecx
	cmpl	%r13d, %edx
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%edx, %rcx
	movl	(%r10,%rcx,4), %ecx
	jmp	LBB0_7
LBB0_8:
	decl	%ebx
	jmp	LBB0_9
LBB0_1:
	decl	%ebx
LBB0_14:
	xorl	%edi, %edi
	cmpl	$-1, %ebx
	sete	%dil
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
LBB0_3:
	movl	$-1, %ebx
LBB0_9:
	movq	(%r15), %r8
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	leaq	-1(%r13), %rax
	testq	%r13, %r13
	movq	%rax, %r13
	jle	LBB0_14
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movl	-4(%r8,%r13,4), %edx
	testl	%edx, %edx
	js	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%r15), %rcx
	movq	16(%r15), %rsi
	movslq	%ebx, %rdi
	leaq	(%r14,%rdi,4), %rdi
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edx, %edx
	movl	(%rcx,%rdx,4), %eax
	movl	%eax, (%rdi)
	movl	(%rsi,%rdx,4), %edx
	addq	$-4, %rdi
	decl	%ebx
	testl	%edx, %edx
	jns	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ss_bucket_sort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ss_bucket_sort
_ss_bucket_sort:                        ; @ss_bucket_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
	mov	x21, x2
	tbnz	w2, #31, LBB0_8
; %bb.1:
	mov	x22, x4
	mov	x23, x3
	mov	x19, x1
	mov	x20, x0
	mov	w24, w21
	ldr	x8, [x0]
	sub	x0, x8, #4
	lsl	x8, x24, #2
	add	x2, x8, #4
	mov	w1, #255
	bl	_memset
	cbz	w21, LBB0_10
; %bb.2:
	mov	x8, #0
	ldp	x10, x9, [x20]
	ldr	x11, [x20, #16]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w13, [x23, w13, sxtw #2]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	lsl	x14, x8, #2
	str	w12, [x9, x14]
	sbfiz	x12, x13, #2, #32
	ldr	w13, [x10, x12]
	str	w13, [x11, x14]
	str	w8, [x10, x12]
	add	x8, x8, #1
	cmp	x24, x8
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x19, x8, lsl #2]
	add	w13, w12, w22
	cmp	w13, w24
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w13, #-1
	b	LBB0_4
LBB0_7:
	sub	w8, w21, #1
	b	LBB0_11
LBB0_8:
	sub	w8, w21, #1
LBB0_9:
	cmn	w8, #1
	cset	w0, eq
	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
	b	_assert
LBB0_10:
	mov	w8, #-1
LBB0_11:
	ldr	x9, [x20]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	cmp	x24, #0
	mov	x24, x10
	b.le	LBB0_9
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	sub	x10, x24, #1
	ldr	w13, [x9, x10, lsl #2]
	tbnz	w13, #31, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldp	x11, x12, [x20, #8]
	add	x14, x19, w8, sxtw #2
LBB0_15:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	w13, w13
	lsl	x13, x13, #2
	ldr	w15, [x11, x13]
	str	w15, [x14], #-4
	ldr	w13, [x12, x13]
	sub	w8, w8, #1
	tbz	w13, #31, LBB0_15
	b	LBB0_12
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ss_bucket_sort
.subsections_via_symbols
