	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igbvf_setup_rx_resources       ## -- Begin function igbvf_setup_rx_resources
	.p2align	4, 0x90
_igbvf_setup_rx_resources:              ## @igbvf_setup_rx_resources
	.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
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movl	(%rsi), %ebx
	shll	$2, %ebx
	movl	%ebx, %edi
	callq	_vmalloc
	movq	%rax, 8(%r13)
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movl	(%r13), %edi
	shll	$2, %edi
	movl	%edi, 4(%r13)
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_ALIGN
	movl	%eax, 4(%r13)
	leaq	44(%r13), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_dma_alloc_coherent
	movl	%eax, 40(%r13)
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r13)
	movq	%r14, 16(%r13)
	jmp	LBB0_5
LBB0_1:
	xorl	%edi, %edi
	jmp	LBB0_4
LBB0_3:
	movq	8(%r13), %rdi
LBB0_4:
	callq	_vfree
	movq	$0, 8(%r13)
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate memory for the receive descriptor ring\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igbvf_setup_rx_resources       ; -- Begin function igbvf_setup_rx_resources
	.p2align	2
_igbvf_setup_rx_resources:              ; @igbvf_setup_rx_resources
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
	ldr	w8, [x1]
	lsl	w22, w8, #2
	mov	x0, x22
	bl	_vmalloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_4
; %bb.1:
	mov	w1, #0
	mov	x2, x22
	bl	_memset
	ldr	w8, [x20]
	lsl	w0, w8, #2
	str	w0, [x20, #4]
	mov	w1, #4096
	bl	_ALIGN
	mov	x1, x0
	str	w0, [x20, #4]
	add	x2, x20, #44
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_dma_alloc_coherent
	str	w0, [x20, #40]
	cbz	w0, LBB0_3
; %bb.2:
	mov	w0, #0
	stp	xzr, xzr, [x20, #24]
	str	x19, [x20, #16]
	b	LBB0_5
LBB0_3:
	ldr	x0, [x20, #8]
LBB0_4:
	bl	_vfree
	str	xzr, [x20, #8]
	ldr	x0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate memory for the receive descriptor ring\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
