	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_ef10_tx_write
_efx_ef10_tx_write:                     ## @efx_ef10_tx_write
	.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, %r15
	movl	(%rdi), %ebx
	movl	$0, 4(%rdi)
	xorl	%edi, %edi
	cmpl	8(%r15), %ebx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r15), %ebx
	movq	_EFX_TX_BUF_OPTION@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%rbx), %r13
	movl	%eax, 16(%r15)
	xorl	%edi, %edi
	movq	_EFX_TX_BUF_CONT@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	setne	%dil
	callq	_BUILD_BUG_ON
	movl	(%r12), %edi
	movq	_ESF_DZ_TX_KER_CONT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EFX_TX_BUF_CONT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	(%r13), %edx
	movq	_EFX_TX_BUF_OPTION@GOTPCREL(%rip), %r13
	movq	_ESF_DZ_TX_KER_BYTE_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	4(%r14,%rbx), %eax
	movl	8(%r14,%rbx), %r8d
	movq	_ESF_DZ_TX_KER_BUF_ADDR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r9d
	movl	%eax, (%rsp)
	callq	_EFX_POPULATE_QWORD_3
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %ebx
	cmpl	8(%r15), %ebx
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	andl	12(%r15), %ebx
	movq	24(%r15), %r14
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_efx_tx_desc
	movq	%rax, %r12
	movl	(%r15), %eax
	incl	%eax
	movl	%eax, (%r15)
	shlq	$4, %rbx
	movl	(%r13), %ecx
	testl	%ecx, (%r14,%rbx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%r14,%rbx), %edi
	movl	%edi, (%r12)
	movq	_ESF_DZ_TX_OPTION_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EFX_QWORD_FIELD
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
	movl	%eax, 16(%r15)
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	callq	_wmb
	movq	%r15, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_efx_nic_may_push_tx_desc
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	andl	12(%r15), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_efx_tx_desc
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_efx_ef10_push_tx_desc
	incl	20(%r15)
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_efx_ef10_notify_tx_desc        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EFX_TX_BUF_OPTION,4,2          ## @EFX_TX_BUF_OPTION
	.comm	_ESF_DZ_TX_OPTION_TYPE,4,2      ## @ESF_DZ_TX_OPTION_TYPE
	.comm	_EFX_TX_BUF_CONT,4,2            ## @EFX_TX_BUF_CONT
	.comm	_ESF_DZ_TX_KER_CONT,4,2         ## @ESF_DZ_TX_KER_CONT
	.comm	_ESF_DZ_TX_KER_BYTE_CNT,4,2     ## @ESF_DZ_TX_KER_BYTE_CNT
	.comm	_ESF_DZ_TX_KER_BUF_ADDR,4,2     ## @ESF_DZ_TX_KER_BUF_ADDR
	.no_dead_strip	_efx_ef10_tx_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_ef10_tx_write
_efx_ef10_tx_write:                     ; @efx_ef10_tx_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	ldr	w20, [x0]
	str	wzr, [x0, #4]
	ldr	w8, [x0, #8]
	cmp	w20, w8
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_9
; %bb.1:
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	ldr	w8, [x19]
Lloh0:
	adrp	x23, _EFX_TX_BUF_OPTION@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EFX_TX_BUF_OPTION@GOTPAGEOFF]
Lloh2:
	adrp	x24, _EFX_TX_BUF_CONT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _EFX_TX_BUF_CONT@GOTPAGEOFF]
Lloh4:
	adrp	x26, _ESF_DZ_TX_KER_BYTE_CNT@GOTPAGE
Lloh5:
	ldr	x26, [x26, _ESF_DZ_TX_KER_BYTE_CNT@GOTPAGEOFF]
Lloh6:
	adrp	x27, _ESF_DZ_TX_KER_BUF_ADDR@GOTPAGE
Lloh7:
	ldr	x27, [x27, _ESF_DZ_TX_KER_BUF_ADDR@GOTPAGEOFF]
Lloh8:
	adrp	x28, _ESF_DZ_TX_OPTION_TYPE@GOTPAGE
Lloh9:
	ldr	x28, [x28, _ESF_DZ_TX_OPTION_TYPE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w8, [x19, #16]
	ldr	w8, [x24]
	cmp	w8, #1
	cset	w0, ne
	bl	_BUILD_BUG_ON
	ldr	w0, [x22]
Lloh10:
	adrp	x8, _ESF_DZ_TX_KER_CONT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ESF_DZ_TX_KER_CONT@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w8, [x25]
	ldr	w9, [x24]
	and	w2, w9, w8
	ldr	w3, [x26]
	add	x8, x20, x21, lsl #4
	ldr	w5, [x27]
	ldp	w6, w4, [x8, #4]
	bl	_EFX_POPULATE_QWORD_3
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x19, #8]
	cmp	w8, w9
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19, #12]
	and	w21, w9, w8
	ldr	x20, [x19, #24]
	mov	x0, x19
	mov	x1, x21
	bl	_efx_tx_desc
	mov	x22, x0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	add	x25, x20, w21, uxtw #4
	ldr	w9, [x25]
	ldr	w10, [x23]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x20, x21, lsl #4
	ldr	w0, [x8, #12]
	str	w0, [x22]
	ldr	w1, [x28]
	bl	_EFX_QWORD_FIELD
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	str	w8, [x19, #16]
	b	LBB0_3
LBB0_7:
	bl	_wmb
	mov	x0, x19
	ldr	w20, [sp, #12]                  ; 4-byte Folded Reload
	mov	x1, x20
	bl	_efx_nic_may_push_tx_desc
	cbz	x0, LBB0_10
; %bb.8:
	ldr	w8, [x19, #12]
	and	w1, w8, w20
	mov	x0, x19
	bl	_efx_tx_desc
	mov	x1, x0
	mov	x0, x19
	bl	_efx_ef10_push_tx_desc
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_efx_ef10_notify_tx_desc
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EFX_TX_BUF_OPTION,4,2          ; @EFX_TX_BUF_OPTION
	.comm	_ESF_DZ_TX_OPTION_TYPE,4,2      ; @ESF_DZ_TX_OPTION_TYPE
	.comm	_EFX_TX_BUF_CONT,4,2            ; @EFX_TX_BUF_CONT
	.comm	_ESF_DZ_TX_KER_CONT,4,2         ; @ESF_DZ_TX_KER_CONT
	.comm	_ESF_DZ_TX_KER_BYTE_CNT,4,2     ; @ESF_DZ_TX_KER_BYTE_CNT
	.comm	_ESF_DZ_TX_KER_BUF_ADDR,4,2     ; @ESF_DZ_TX_KER_BUF_ADDR
	.no_dead_strip	_efx_ef10_tx_write
.subsections_via_symbols
