	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_flush_tx_ring
_e1000_flush_tx_ring:                   ## @e1000_flush_tx_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	_E1000_TXD_CMD_IFCS@GOTPCREL(%rip), %rax
	movq	_TCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$512, %r14d                     ## imm = 0x200
	orl	(%rax), %r14d
	callq	_er32
	movl	(%rbx), %edi
	movq	_E1000_TCTL_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %esi
	callq	_ew32
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	callq	_TDT
	movl	%eax, %edi
	callq	_er32
	xorl	%edi, %edi
	cmpl	(%r15), %eax
	setne	%dil
	callq	_BUG_ON
	movq	(%r15), %rdi
	movl	(%r15), %edx
	movl	8(%r15), %esi
	callq	_E1000_TX_DESC
	movq	%rax, %rbx
	movl	8(%r15), %eax
	movl	%eax, 12(%rbx)
	movl	%r14d, %edi
	callq	_cpu_to_le32
	movl	%eax, 8(%rbx)
	movq	$0, (%rbx)
	xorl	%eax, %eax
	callq	_wmb
	movl	(%r15), %eax
	incl	%eax
	cmpl	4(%r15), %eax
	cmovel	%r12d, %eax
	movl	%eax, (%r15)
	xorl	%edi, %edi
	callq	_TDT
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_ew32
	movl	$200, %edi
	movl	$250, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usleep_range                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_TXD_CMD_IFCS,4,2         ## @E1000_TXD_CMD_IFCS
	.comm	_TCTL,4,2                       ## @TCTL
	.comm	_E1000_TCTL_EN,4,2              ## @E1000_TCTL_EN
	.no_dead_strip	_e1000_flush_tx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_flush_tx_ring
_e1000_flush_tx_ring:                   ; @e1000_flush_tx_ring
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _E1000_TXD_CMD_IFCS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E1000_TXD_CMD_IFCS@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x19, _TCTL@GOTPAGE
Lloh4:
	ldr	x19, [x19, _TCTL@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_er32
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _E1000_TCTL_EN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _E1000_TCTL_EN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w1, w9, w0
	mov	x0, x8
	bl	_ew32
	mov	w0, #0
	bl	_TDT
	bl	_er32
	ldr	w8, [x20]
	cmp	w0, w8
	cset	w0, ne
	bl	_BUG_ON
	ldr	w2, [x20]
	ldr	x0, [x20]
	ldr	w1, [x20, #8]
	bl	_E1000_TX_DESC
	mov	x19, x0
	ldr	w8, [x20, #8]
	str	w8, [x0, #12]
	orr	w0, w21, #0x200
	bl	_cpu_to_le32
	str	w0, [x19, #8]
	str	xzr, [x19]
	bl	_wmb
	ldp	w8, w9, [x20]
	add	w10, w8, #1
	cmp	w10, w9
	csinc	w8, wzr, w8, eq
	str	w8, [x20]
	mov	w0, #0
	bl	_TDT
	ldr	w1, [x20]
	bl	_ew32
	mov	w0, #200
	mov	w1, #250
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_usleep_range
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_TXD_CMD_IFCS,4,2         ; @E1000_TXD_CMD_IFCS
	.comm	_TCTL,4,2                       ; @TCTL
	.comm	_E1000_TCTL_EN,4,2              ; @E1000_TCTL_EN
	.no_dead_strip	_e1000_flush_tx_ring
.subsections_via_symbols
