	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qede_alloc_arfs                ## -- Begin function qede_alloc_arfs
	.p2align	4, 0x90
_qede_alloc_arfs:                       ## @qede_alloc_arfs
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$16, %edi
	callq	_vzalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	addq	$8, %rax
	movq	%rax, %rdi
	callq	_spin_lock_init
	movq	_QEDE_RFS_FLW_MASK@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	js	LBB0_4
## %bb.2:
	movl	$-1, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_QEDE_ARFS_BUCKET_HEAD
	movl	%eax, %edi
	callq	_INIT_HLIST_HEAD
	cmpl	(%r15), %ebx
	jl	LBB0_3
LBB0_4:
	movq	_QEDE_RFS_MAX_FLTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BITS_TO_LONGS
	movl	$8, %edi
	movl	%eax, %esi
	callq	_array_size
	movl	%eax, %edi
	callq	_vzalloc
	movq	%rax, %rcx
	movq	(%r14), %rdi
	movq	%rax, (%rdi)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_7
## %bb.5:
	callq	_vfree
	movq	$0, (%r14)
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QEDE_RFS_FLW_MASK,4,2          ## @QEDE_RFS_FLW_MASK
	.comm	_QEDE_RFS_MAX_FLTR,4,2          ## @QEDE_RFS_MAX_FLTR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qede_alloc_arfs                ; -- Begin function qede_alloc_arfs
	.p2align	2
_qede_alloc_arfs:                       ; @qede_alloc_arfs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	mov	w0, #16
	bl	_vzalloc
	str	x0, [x19]
	cbz	x0, LBB0_7
; %bb.1:
	add	x0, x0, #8
	bl	_spin_lock_init
Lloh0:
	adrp	x21, _QEDE_RFS_FLW_MASK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _QEDE_RFS_FLW_MASK@GOTPAGEOFF]
	ldr	w8, [x21]
	tbnz	w8, #31, LBB0_4
; %bb.2:
	mov	w20, #-1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w20, w20, #1
	mov	x0, x19
	mov	x1, x20
	bl	_QEDE_ARFS_BUCKET_HEAD
	bl	_INIT_HLIST_HEAD
	ldr	w8, [x21]
	cmp	w20, w8
	b.lt	LBB0_3
LBB0_4:
Lloh2:
	adrp	x8, _QEDE_RFS_MAX_FLTR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QEDE_RFS_MAX_FLTR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_BITS_TO_LONGS
	mov	x1, x0
	mov	w0, #8
	bl	_array_size
	bl	_vzalloc
	mov	x8, x0
	ldr	x0, [x19]
	str	x8, [x0]
	cbz	x8, LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	bl	_vfree
	str	xzr, [x19]
LBB0_7:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QEDE_RFS_FLW_MASK,4,2          ; @QEDE_RFS_FLW_MASK
	.comm	_QEDE_RFS_MAX_FLTR,4,2          ; @QEDE_RFS_MAX_FLTR
.subsections_via_symbols
