	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igbvf_alloc_rx_buffers
_igbvf_alloc_rx_buffers:                ## @igbvf_alloc_rx_buffers
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	24(%rdi), %rax
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %r14d
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r13d
	testl	%r13d, %r13d
	jne	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %r13d
LBB0_2:
	testl	%r15d, %r15d
	je	LBB0_22
## %bb.3:
	leaq	(%r14,%r14,4), %r12
	shlq	$3, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	24(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	16(%rax), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r12), %rdi
	callq	_cpu_to_le64
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movq	8(%r12), %rdi
	callq	_cpu_to_le64
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, (%rbx)
	incl	%r14d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	4(%rcx), %r14d
	movl	$0, %eax
	cmovel	%eax, %r14d
	leaq	(%r14,%r14,4), %r12
	shlq	$3, %r12
	addq	16(%rcx), %r12
	testl	%r15d, %r15d
	je	LBB0_22
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	%r14d, %edi
	callq	_IGBVF_RX_DESC_ADV
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 16(%r12)
	jne	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	32(%r12), %rax
	testq	%rax, %rax
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	je	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	xorl	(%r12), %edx
	movl	%edx, (%r12)
	jmp	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_alloc_page
	movq	%rax, 32(%r12)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, (%r12)
	xorl	%edx, %edx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rsi
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rsi), %esi
	movl	%esi, %ecx
	shrl	$31, %ecx
	addl	%esi, %ecx
	sarl	%ecx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_dma_map_page
	movq	%rax, 16(%r12)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	jne	LBB0_12
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 24(%r12)
	jne	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_netdev_alloc_skb_ip_align
	testq	%rax, %rax
	je	LBB0_8
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, 24(%r12)
	movl	(%rax), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %ebx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_dma_map_single
	movq	%rax, 8(%r12)
	movq	%r15, %rdi
	movl	%ebx, %r15d
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	decl	%r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	jne	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r12), %rdi
	callq	_cpu_to_le64
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	16(%rax)
	jmp	LBB0_22
LBB0_17:
	movq	24(%r12), %rdi
	callq	_dev_kfree_skb
	movq	$0, 24(%r12)
	jmp	LBB0_13
LBB0_12:
	movq	32(%r12), %rdi
	callq	___free_page
	movq	$0, 32(%r12)
LBB0_13:
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
LBB0_22:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	%r14d, (%rax)
	jne	LBB0_23
## %bb.26:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	testl	%r14d, %r14d
	jne	LBB0_25
## %bb.24:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %r14d
LBB0_25:
	decl	%r14d
	xorl	%eax, %eax
	callq	_wmb
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	8(%rax), %rsi
	movl	%r14d, %edi
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RX DMA map failed\n"

	.no_dead_strip	_igbvf_alloc_rx_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igbvf_alloc_rx_buffers
_igbvf_alloc_rx_buffers:                ; @igbvf_alloc_rx_buffers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x1
	mov	x19, x0
	ldr	x26, [x0, #24]
	ldr	w20, [x0]
	ldr	w23, [x26]
	cbnz	w23, LBB0_2
; %bb.1:
	ldr	w23, [x26, #4]
LBB0_2:
	cbz	w21, LBB0_22
; %bb.3:
	mov	w8, #40
	ldr	x9, [x19, #16]
	ldp	x22, x24, [x26, #24]
	madd	x27, x20, x8, x9
	mov	w28, #40
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x27, #16]
	bl	_cpu_to_le64
	str	x0, [x25, #8]
	ldr	x0, [x27, #8]
	bl	_cpu_to_le64
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x0, [x25]
	add	w8, w20, #1
	ldr	w9, [x19, #4]
	cmp	w8, w9
	csinc	w20, wzr, w20, eq
	ldr	x8, [x19, #16]
	umaddl	x27, w20, w28, x8
	cbz	w21, LBB0_22
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x19]
	stp	q0, q1, [sp]
	mov	x0, sp
	mov	x1, x20
	bl	_IGBVF_RX_DESC_ADV
	mov	x25, x0
	ldr	w8, [x26]
	cbz	w8, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x27, #16]
	cbnz	x8, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x27, #32]
	cbz	x1, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh0:
	adrp	x10, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w8, [x10]
	cmp	w8, #0
	cinc	w8, w8, lt
	ldr	w9, [x27]
	eor	w2, w9, w8, asr #1
	str	w2, [x27]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh2:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_alloc_page
	str	x0, [x27, #32]
	cbz	x0, LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x0
	mov	w2, #0
	str	wzr, [x27]
Lloh5:
	adrp	x10, _PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PAGE_SIZE@GOTPAGEOFF]
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x10]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w3, w8, #1
Lloh7:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
	mov	x0, x22
	bl	_dma_map_page
	mov	x1, x0
	str	x0, [x27, #16]
	mov	x0, x22
	bl	_dma_mapping_error
	cbnz	x0, LBB0_20
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x27, #24]
	cbnz	x8, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	mov	x1, x23
	bl	_netdev_alloc_skb_ip_align
	cbz	x0, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	str	x0, [x27, #24]
	ldr	w1, [x0]
Lloh10:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x2, x23
	bl	_dma_map_single
	mov	x1, x0
	str	x0, [x27, #8]
	mov	x0, x22
	bl	_dma_mapping_error
	cbnz	x0, LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w21, w21, #1
	ldr	w8, [x26]
	cbnz	w8, LBB0_4
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x27, #8]
	bl	_cpu_to_le64
	mov	x8, x0
	mov	x0, #0
	str	x8, [x25, #8]
	b	LBB0_5
LBB0_18:
	ldr	w8, [x26, #16]
	add	w8, w8, #1
	str	w8, [x26, #16]
	b	LBB0_22
LBB0_19:
	ldr	x0, [x27, #24]
	bl	_dev_kfree_skb
	str	xzr, [x27, #24]
	b	LBB0_21
LBB0_20:
	ldr	x0, [x27, #32]
	bl	___free_page
	str	xzr, [x27, #32]
LBB0_21:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_err
LBB0_22:
	ldr	w8, [x19]
	cmp	w8, w20
	b.eq	LBB0_26
; %bb.23:
	str	w20, [x19]
	cbnz	w20, LBB0_25
; %bb.24:
	ldr	w20, [x19, #4]
LBB0_25:
	sub	w20, w20, #1
	bl	_wmb
	ldr	x8, [x26, #8]
	ldr	x9, [x19, #8]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
LBB0_26:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RX DMA map failed\n"

	.no_dead_strip	_igbvf_alloc_rx_buffers
.subsections_via_symbols
