	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gve_tx_free_ring
_gve_tx_free_ring:                      ## @gve_tx_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rbx
	movslq	%esi, %r15
	movq	%r15, %r14
	shlq	$6, %r14
	leaq	(%rbx,%r14), %r12
	movl	%r15d, %esi
	callq	_gve_tx_remove_from_block
	movslq	(%rbx,%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	56(%rbx,%r14), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_gve_clean_tx_done
	movl	52(%rbx,%r14), %edi
	callq	_netdev_tx_reset_queue
	movq	40(%rbx,%r14), %rdx
	movl	48(%rbx,%r14), %ecx
	movl	$4, %esi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_dma_free_coherent
	movq	$0, 40(%rbx,%r14)
	leaq	(%rbx,%r14), %rsi
	addq	$32, %rsi
	movq	%r13, %rdi
	callq	_gve_tx_fifo_release
	movq	32(%rbx,%r14), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_gve_unassign_qpl
	movq	$0, 32(%rbx,%r14)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	4(,%rax,4), %rsi
	movq	16(%rbx,%r14), %rdx
	movl	24(%rbx,%r14), %ecx
	movq	%r12, %rdi
	callq	_dma_free_coherent
	movq	$0, 16(%rbx,%r14)
	movq	8(%rbx,%r14), %rdi
	callq	_vfree
	movq	$0, 8(%rbx,%r14)
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rdi
	movl	%r15d, %r8d
	addq	$24, %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 tx queue %d\n"

	.no_dead_strip	_gve_tx_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_tx_free_ring
_gve_tx_free_ring:                      ; @gve_tx_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	x8, w19
	ldp	x22, x9, [x0, #8]
	add	x21, x9, x8, lsl #6
	bl	_gve_tx_remove_from_block
	ldrsw	x8, [x21]
	lsl	x23, x8, #2
	ldr	w2, [x21, #56]
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	bl	_gve_clean_tx_done
	ldr	w0, [x21, #52]
	bl	_netdev_tx_reset_queue
	ldr	x2, [x21, #40]
	ldr	w3, [x21, #48]
	mov	x0, x22
	mov	w1, #4
	bl	_dma_free_coherent
	str	xzr, [x21, #40]
	add	x1, x21, #32
	mov	x0, x20
	bl	_gve_tx_fifo_release
	ldr	x8, [x21, #32]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_gve_unassign_qpl
	str	xzr, [x21, #32]
	add	x1, x23, #4
	ldr	x2, [x21, #16]
	ldr	w3, [x21, #24]
	mov	x0, x22
	bl	_dma_free_coherent
	str	xzr, [x21, #16]
	ldr	x0, [x21, #8]
	bl	_vfree
	str	xzr, [x21, #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]
	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 tx queue %d\n"

	.no_dead_strip	_gve_tx_free_ring
.subsections_via_symbols
