	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffs_hashalloc
_ffs_hashalloc:                         ## @ffs_hashalloc
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	(%rdi), %r14
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	callq	*%r8
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	movl	(%r14), %ecx
	xorl	%r13d, %r13d
	cmpl	$2, %ecx
	jl	LBB0_10
## %bb.2:
	movq	%r14, %rax
	movl	$1, %r14d
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r15
	addl	%r14d, %ebx
	cmpl	%ecx, %ebx
	cmovll	%r13d, %ecx
	subl	%ecx, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	%r14d, %r14d
	movq	%r15, %rax
	movl	(%r15), %ecx
	cmpl	%ecx, %r14d
	jl	LBB0_3
## %bb.5:
	xorl	%r13d, %r13d
	cmpl	$3, %ecx
	jl	LBB0_10
## %bb.6:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addl	$2, %eax
	cltd
	idivl	%ecx
	movl	%edx, %ebx
	movl	$2, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incl	%ebx
	movq	%r15, %rax
	movl	(%r15), %eax
	cmpl	%eax, %ebx
	cmovel	%r13d, %ebx
	incl	%r14d
	cmpl	%eax, %r14d
	jl	LBB0_7
	jmp	LBB0_10
LBB0_9:
	movq	%rax, %r13
LBB0_10:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ffs_hashalloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffs_hashalloc
_ffs_hashalloc:                         ; @ffs_hashalloc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x22, x1
	mov	x21, x0
	ldr	x24, [x0]
	blr	x4
	cbnz	x0, LBB0_10
; %bb.1:
	ldr	w8, [x24]
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.2:
	mov	w25, #1
	mov	x23, x22
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w9, w25, w23
	cmp	w9, w8
	csel	w8, wzr, w8, lt
	sub	w23, w9, w8
	mov	x0, x21
	mov	x1, x23
	mov	x2, #0
	mov	x3, x20
	blr	x19
	cbnz	x0, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	w25, w25, #1
	ldr	w8, [x24]
	cmp	w25, w8
	b.lt	LBB0_3
; %bb.5:
	cmp	w8, #3
	b.lt	LBB0_9
; %bb.6:
	add	w9, w22, #2
	sdiv	w10, w9, w8
	msub	w22, w10, w8, w9
	mov	w23, #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, #0
	mov	x3, x20
	blr	x19
	cbnz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w8, w22, #1
	ldr	w9, [x24]
	cmp	w8, w9
	csinc	w22, wzr, w22, eq
	add	w23, w23, #1
	cmp	w23, w9
	b.lt	LBB0_7
	b	LBB0_10
LBB0_9:
	mov	x0, #0
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ffs_hashalloc
.subsections_via_symbols
