	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gve_rx_free_ring
_gve_rx_free_ring:                      ## @gve_rx_free_ring
	.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	%rdi, %r12
	movq	8(%rdi), %r15
	movq	16(%rdi), %r13
	movslq	%esi, %r14
	movl	%r14d, %esi
	callq	_gve_rx_remove_from_block
	movslq	(%r12), %rsi
	shlq	$2, %rsi
	movq	%r14, %rbx
	shlq	$6, %rbx
	movq	48(%r13,%rbx), %rdx
	movl	56(%r13,%rbx), %ecx
	movq	%r15, %rdi
	callq	_dma_free_coherent
	movq	$0, 48(%r13,%rbx)
	movq	32(%r13,%rbx), %rdx
	movl	40(%r13,%rbx), %ecx
	movl	$4, %esi
	movq	%r15, %rdi
	callq	_dma_free_coherent
	movq	$0, 32(%r13,%rbx)
	movq	24(%r13,%rbx), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_gve_unassign_qpl
	movq	$0, 24(%r13,%rbx)
	movl	20(%r13,%rbx), %edi
	callq	_kvfree
	movslq	(%r13,%rbx), %rax
	leaq	4(,%rax,4), %rsi
	movq	8(%r13,%rbx), %rdx
	movl	16(%r13,%rbx), %ecx
	movq	%r15, %rdi
	callq	_dma_free_coherent
	movq	$0, 8(%r13,%rbx)
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r12), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movl	%r14d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_dbg                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"freed rx ring %d\n"

	.no_dead_strip	_gve_rx_free_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gve_rx_free_ring
_gve_rx_free_ring:                      ; @gve_rx_free_ring
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	sxtw	x22, w19
	ldp	x21, x23, [x0, #8]
	bl	_gve_rx_remove_from_block
	ldrsw	x8, [x20]
	lsl	x1, x8, #2
	add	x22, x23, x22, lsl #6
	ldr	x2, [x22, #48]
	ldr	w3, [x22, #56]
	mov	x0, x21
	bl	_dma_free_coherent
	str	xzr, [x22, #48]
	ldr	x2, [x22, #32]
	ldr	w3, [x22, #40]
	mov	x0, x21
	mov	w1, #4
	bl	_dma_free_coherent
	str	xzr, [x22, #32]
	ldr	x8, [x22, #24]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_gve_unassign_qpl
	str	xzr, [x22, #24]
	ldr	w0, [x22, #20]
	bl	_kvfree
	ldrsw	x8, [x22]
	lsl	x8, x8, #2
	add	x1, x8, #4
	ldr	x2, [x22, #8]
	ldr	w3, [x22, #16]
	mov	x0, x21
	bl	_dma_free_coherent
	str	xzr, [x22, #8]
Lloh0:
	adrp	x8, _drv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	ldr	w2, [x20, #4]
	mov	x0, x20
	mov	x4, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_netif_dbg
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"freed rx ring %d\n"

	.no_dead_strip	_gve_rx_free_ring
.subsections_via_symbols
