	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gve_tx                         ## -- Begin function gve_tx
	.p2align	4, 0x90
_gve_tx:                                ## @gve_tx
	.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, %rbx
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_skb_get_queue_mapping
	xorl	%edi, %edi
	cmpq	16(%r14), %rax
	seta	%dil
	leaq	L_.str(%rip), %rsi
	callq	_WARN
	movq	8(%r14), %r13
	movq	%rbx, %rdi
	callq	_skb_get_queue_mapping
	leaq	(%rax,%rax,2), %r12
	leaq	(,%r12,4), %r15
	addq	%r13, %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_gve_maybe_stop_tx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
LBB0_2:
	movq	(%r14), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_gve_tx_add_skb
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r13,%r12,4), %edi
	movl	(%rbx), %esi
	callq	_netdev_tx_sent_queue
	movq	%rbx, %rdi
	callq	_skb_tx_timestamp
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, (%r15)
	movl	8(%r13,%r12,4), %edi
	callq	_netif_xmit_stopped
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	callq	_netdev_xmit_more
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	callq	_dma_wmb
	movl	4(%r13,%r12,4), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_gve_tx_put_doorbell
LBB0_6:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"skb queue index out of range"

	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gve_tx                         ; -- Begin function gve_tx
	.p2align	2
_gve_tx:                                ; @gve_tx
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x22
	bl	_skb_get_queue_mapping
	ldr	x8, [x19, #16]
	cmp	x0, x8
	cset	w0, hi
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN
	ldr	x24, [x19, #8]
	mov	x0, x22
	bl	_skb_get_queue_mapping
	mov	x20, x0
	mov	w8, #12
	madd	x21, x0, x8, x24
	mov	x0, x21
	mov	x1, x22
	bl	_gve_maybe_stop_tx
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x22, _NETDEV_TX_BUSY@GOTPAGE
Lloh3:
	ldr	x22, [x22, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	ldr	x2, [x19]
	mov	x0, x21
	mov	x1, x22
	bl	_gve_tx_add_skb
	mov	x23, x0
	mov	w8, #12
	madd	x25, x20, x8, x24
	ldr	w0, [x25, #8]
	ldr	w1, [x22]
	bl	_netdev_tx_sent_queue
	mov	x0, x22
	bl	_skb_tx_timestamp
	ldr	w8, [x21]
	add	w8, w8, w23
	str	w8, [x21]
	ldr	w0, [x25, #8]
	bl	_netif_xmit_stopped
	cbz	w0, LBB0_4
; %bb.3:
Lloh4:
	adrp	x22, _NETDEV_TX_OK@GOTPAGE
Lloh5:
	ldr	x22, [x22, _NETDEV_TX_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	bl	_netdev_xmit_more
Lloh6:
	adrp	x22, _NETDEV_TX_OK@GOTPAGE
Lloh7:
	ldr	x22, [x22, _NETDEV_TX_OK@GOTPAGEOFF]
	cbnz	x0, LBB0_6
LBB0_5:
	bl	_dma_wmb
	mov	w8, #12
	madd	x8, x20, x8, x24
	ldr	w1, [x8, #4]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_gve_tx_put_doorbell
LBB0_6:
	ldr	w0, [x22]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"skb queue index out of range"

	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
.subsections_via_symbols
