	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radix_count
_radix_count:                           ## @radix_count
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rax
	movl	%esi, %ebx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	_RADIX_PASSES@GOTPCREL(%rip), %r12
	movq	_NBUCKETS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r12), %edx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	imull	%esi, %edx
	shll	$2, %edx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.1:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %r14
	xorl	%ecx, %ecx
	movq	_BUCKET_BITS@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	testl	%ebx, %ebx
	sete	%dil
	callq	_av_assert1
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	cmpq	-72(%rbp), %rcx                 ## 8-byte Folded Reload
	movq	_RADIX_PASSES@GOTPCREL(%rip), %r12
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %ebx
	cmpl	$0, (%r12)
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_get_bucket
	incl	(%r13,%rax,4)
	movzbl	(%r15), %ecx
	sarl	%cl, %ebx
	incq	%r12
	movq	_RADIX_PASSES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%r14, %r13
	cmpq	%rax, %r12
	jl	LBB0_4
	jmp	LBB0_5
LBB0_6:
	cmpl	$0, (%r12)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_16
## %bb.7:
	movl	$4294967294, %ebx               ## imm = 0xFFFFFFFE
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%edi, %edi
	cmpl	$0, (%r14,%r9,4)
	sete	%dil
	callq	_av_assert1
	incq	%r15
	movslq	(%r12), %rax
	cmpq	%rax, %r15
	jge	LBB0_16
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
	movq	_NBUCKETS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r15, %r9
	imulq	-64(%rbp), %r9                  ## 8-byte Folded Reload
	testl	%eax, %eax
	jle	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%r14,%r9,4), %rdx
	leaq	-1(%rax), %r8
	movq	%rax, %rdi
	andq	$3, %rdi
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	decq	%rax
	movl	%eax, %ecx
	subl	(%rdx,%rcx,4), %esi
	movl	%esi, (%rdx,%rcx,4)
	decq	%rdi
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$3, %r8
	jae	LBB0_14
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	cmpq	$3, %r8
	jb	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%rax,%rbx), %ecx
	incl	%ecx
	subl	(%rdx,%rcx,4), %esi
	movl	%esi, (%rdx,%rcx,4)
	leal	(%rax,%rbx), %ecx
	subl	(%rdx,%rcx,4), %esi
	movl	%esi, (%rdx,%rcx,4)
	leaq	-3(%rax), %rcx
	movl	%ecx, %edi
	subl	(%rdx,%rdi,4), %esi
	movl	%esi, (%rdx,%rdi,4)
	addq	$-4, %rax
	movl	%eax, %edi
	subl	(%rdx,%rdi,4), %esi
	movl	%esi, (%rdx,%rdi,4)
	cmpq	$1, %rcx
	ja	LBB0_14
	jmp	LBB0_15
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADIX_PASSES,4,2               ## @RADIX_PASSES
	.comm	_NBUCKETS,4,2                   ## @NBUCKETS
	.comm	_BUCKET_BITS,4,2                ## @BUCKET_BITS
	.no_dead_strip	_radix_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radix_count
_radix_count:                           ; @radix_count
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _RADIX_PASSES@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RADIX_PASSES@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x9, _NBUCKETS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NBUCKETS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	str	x9, [sp]                        ; 8-byte Folded Spill
	mul	w8, w8, w9
	lsl	w2, w8, #2
	mov	x0, x25
	mov	w1, #0
	bl	_memset
	str	w19, [sp, #12]                  ; 4-byte Folded Spill
	cmp	w19, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x26, #0
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	lsl	x27, x8, #2
Lloh5:
	adrp	x28, _BUCKET_BITS@GOTPAGE
Lloh6:
	ldr	x28, [x28, _BUCKET_BITS@GOTPAGEOFF]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	mov	w24, w8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w22, #0
	cset	w0, eq
	bl	_av_assert1
	add	x26, x26, #1
	cmp	x26, x24
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w22, [x21, x26, lsl #2]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, #0
	mov	x19, x25
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	mov	w1, #0
	bl	_get_bucket
	lsl	x8, x0, #2
	ldr	w9, [x19, x8]
	add	w9, w9, #1
	str	w9, [x19, x8]
	ldr	w8, [x28]
	asr	w22, w22, w8
	add	x20, x20, #1
	ldrsw	x8, [x23]
	add	x19, x19, x27
	cmp	x20, x8
	b.lt	LBB0_5
	b	LBB0_2
LBB0_6:
	ldr	w8, [x23]
	cmp	w8, #1
	ldr	w19, [sp, #12]                  ; 4-byte Folded Reload
Lloh7:
	adrp	x20, _NBUCKETS@GOTPAGE
Lloh8:
	ldr	x20, [x20, _NBUCKETS@GOTPAGEOFF]
	ldr	x22, [sp]                       ; 8-byte Folded Reload
	b.lt	LBB0_12
; %bb.7:
	mov	x21, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x25, x8, lsl #2]
	cmp	w8, #0
	cset	w0, eq
	bl	_av_assert1
	add	x21, x21, #1
	ldrsw	x8, [x23]
	cmp	x21, x8
	b.ge	LBB0_12
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	w10, [x20]
	mul	x8, x21, x22
	cmp	w10, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x9, x25, x8, lsl #2
	add	x10, x10, #1
	mov	x11, x19
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w12, w10, #2
	lsl	x12, x12, #2
	ldr	w13, [x9, x12]
	sub	w11, w11, w13
	str	w11, [x9, x12]
	sub	x10, x10, #1
	cmp	x10, #1
	b.hi	LBB0_11
	b	LBB0_8
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RADIX_PASSES,4,2               ; @RADIX_PASSES
	.comm	_NBUCKETS,4,2                   ; @NBUCKETS
	.comm	_BUCKET_BITS,4,2                ; @BUCKET_BITS
	.no_dead_strip	_radix_count
.subsections_via_symbols
