	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_clear_tx_pending         ## -- Begin function ixgbe_clear_tx_pending
	.p2align	4, 0x90
_ixgbe_clear_tx_pending:                ## @ixgbe_clear_tx_pending
	.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	_IXGBE_FLAGS_DOUBLE_RESET_REQUIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rdi)
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r15
	movq	_IXGBE_HLREG0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_IXGBE_READ_REG
	movq	%rax, %rdx
	movl	(%rbx), %esi
	movq	_IXGBE_HLREG0_LPBK@GOTPCREL(%rip), %rax
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	orq	(%rax), %rdx
	movq	%r15, %rdi
	callq	_IXGBE_WRITE_REG
	movq	%r15, %rdi
	callq	_IXGBE_WRITE_FLUSH
	movl	$3000, %edi                     ## imm = 0xBB8
	movl	$6000, %esi                     ## imm = 0x1770
	callq	_usleep_range
	movq	%r15, %rdi
	callq	_ixgbe_pcie_timeout_poll
	testq	%rax, %rax
	jle	LBB0_6
## %bb.2:
	movq	%rax, %r12
	decq	%r12
	movq	_IXGBE_PCI_DEVICE_STATUS@GOTPCREL(%rip), %r13
	movq	_IXGBE_PCI_DEVICE_STATUS_TRANSACTION_PENDING@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$100, %edi
	movl	$200, %esi
	callq	_usleep_range
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_ixgbe_read_pci_cfg_word
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_ixgbe_removed
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	subq	$1, %r12
	setb	%al
	testl	%ebx, (%r14)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	%al, %al
	je	LBB0_3
LBB0_6:
	movq	_IXGBE_GCR_EXT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_IXGBE_READ_REG
	movq	%rax, %rbx
	movl	(%r14), %esi
	movq	_IXGBE_GCR_EXT_BUFFERS_CLEAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	orq	%rbx, %rdx
	movq	%r15, %rdi
	callq	_IXGBE_WRITE_REG
	movq	%r15, %rdi
	callq	_IXGBE_WRITE_FLUSH
	movl	$20, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_IXGBE_WRITE_REG
	movq	_IXGBE_HLREG0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IXGBE_WRITE_REG                ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_FLAGS_DOUBLE_RESET_REQUIRED,4,2 ## @IXGBE_FLAGS_DOUBLE_RESET_REQUIRED
	.comm	_IXGBE_HLREG0,4,2               ## @IXGBE_HLREG0
	.comm	_IXGBE_HLREG0_LPBK,8,3          ## @IXGBE_HLREG0_LPBK
	.comm	_IXGBE_PCI_DEVICE_STATUS,4,2    ## @IXGBE_PCI_DEVICE_STATUS
	.comm	_IXGBE_PCI_DEVICE_STATUS_TRANSACTION_PENDING,4,2 ## @IXGBE_PCI_DEVICE_STATUS_TRANSACTION_PENDING
	.comm	_IXGBE_GCR_EXT,4,2              ## @IXGBE_GCR_EXT
	.comm	_IXGBE_GCR_EXT_BUFFERS_CLEAR,8,3 ## @IXGBE_GCR_EXT_BUFFERS_CLEAR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_clear_tx_pending         ; -- Begin function ixgbe_clear_tx_pending
	.p2align	2
_ixgbe_clear_tx_pending:                ; @ixgbe_clear_tx_pending
	.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
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x9, _IXGBE_FLAGS_DOUBLE_RESET_REQUIRED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IXGBE_FLAGS_DOUBLE_RESET_REQUIRED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x22, _IXGBE_HLREG0@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IXGBE_HLREG0@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_IXGBE_READ_REG
	mov	x20, x0
	ldr	w1, [x22]
Lloh5:
	adrp	x8, _IXGBE_HLREG0_LPBK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IXGBE_HLREG0_LPBK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	orr	x2, x8, x0
	mov	x0, x19
	bl	_IXGBE_WRITE_REG
	mov	x0, x19
	bl	_IXGBE_WRITE_FLUSH
	mov	w0, #3000
	mov	w1, #6000
	bl	_usleep_range
	mov	x0, x19
	bl	_ixgbe_pcie_timeout_poll
	subs	x23, x0, #1
	b.lt	LBB0_5
; %bb.2:
Lloh8:
	adrp	x24, _IXGBE_PCI_DEVICE_STATUS@GOTPAGE
Lloh9:
	ldr	x24, [x24, _IXGBE_PCI_DEVICE_STATUS@GOTPAGEOFF]
Lloh10:
	adrp	x25, _IXGBE_PCI_DEVICE_STATUS_TRANSACTION_PENDING@GOTPAGE
Lloh11:
	ldr	x25, [x25, _IXGBE_PCI_DEVICE_STATUS_TRANSACTION_PENDING@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #100
	mov	w1, #200
	bl	_usleep_range
	ldr	w1, [x24]
	mov	x0, x19
	bl	_ixgbe_read_pci_cfg_word
	mov	x21, x0
	ldr	w0, [x19]
	bl	_ixgbe_removed
	cbnz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25]
	and	w8, w8, w21
	cmp	w8, #0
	ccmp	x23, #0, #4, ne
	sub	x23, x23, #1
	b.ne	LBB0_3
LBB0_5:
Lloh12:
	adrp	x23, _IXGBE_GCR_EXT@GOTPAGE
Lloh13:
	ldr	x23, [x23, _IXGBE_GCR_EXT@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_IXGBE_READ_REG
	mov	x21, x0
	ldr	w1, [x23]
Lloh14:
	adrp	x8, _IXGBE_GCR_EXT_BUFFERS_CLEAR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IXGBE_GCR_EXT_BUFFERS_CLEAR@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	orr	x2, x8, x0
	mov	x0, x19
	bl	_IXGBE_WRITE_REG
	mov	x0, x19
	bl	_IXGBE_WRITE_FLUSH
	mov	w0, #20
	bl	_udelay
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_IXGBE_WRITE_REG
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	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
	b	_IXGBE_WRITE_REG
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_FLAGS_DOUBLE_RESET_REQUIRED,4,2 ; @IXGBE_FLAGS_DOUBLE_RESET_REQUIRED
	.comm	_IXGBE_HLREG0,4,2               ; @IXGBE_HLREG0
	.comm	_IXGBE_HLREG0_LPBK,8,3          ; @IXGBE_HLREG0_LPBK
	.comm	_IXGBE_PCI_DEVICE_STATUS,4,2    ; @IXGBE_PCI_DEVICE_STATUS
	.comm	_IXGBE_PCI_DEVICE_STATUS_TRANSACTION_PENDING,4,2 ; @IXGBE_PCI_DEVICE_STATUS_TRANSACTION_PENDING
	.comm	_IXGBE_GCR_EXT,4,2              ; @IXGBE_GCR_EXT
	.comm	_IXGBE_GCR_EXT_BUFFERS_CLEAR,8,3 ; @IXGBE_GCR_EXT_BUFFERS_CLEAR
.subsections_via_symbols
