	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function et131x_tx_timeout
_et131x_tx_timeout:                     ## @et131x_tx_timeout
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	(%rax), %eax
	movq	_FMP_ADAPTER_INTERRUPT_IN_USE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.1:
	movq	_FMP_ADAPTER_NON_RECOVER_ERROR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_FMP_ADAPTER_HARDWARE_ERROR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.6:
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_3:
	movq	%rbx, %r15
	addq	$24, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	32(%rbx), %r12
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	testq	%r12, %r12
	je	LBB0_5
## %bb.4:
	movq	(%r12), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%r12)
	movq	_NIC_SEND_HANG_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_5
## %bb.7:
	movq	16(%rbx), %rdi
	movl	8(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
	movq	8(%rbx), %rax
	incl	(%rax)
	movq	%r14, %rdi
	callq	_et131x_disable_txrx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_et131x_enable_txrx             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FMP_ADAPTER_INTERRUPT_IN_USE,4,2 ## @FMP_ADAPTER_INTERRUPT_IN_USE
	.comm	_FMP_ADAPTER_NON_RECOVER_ERROR,4,2 ## @FMP_ADAPTER_NON_RECOVER_ERROR
	.comm	_FMP_ADAPTER_HARDWARE_ERROR,4,2 ## @FMP_ADAPTER_HARDWARE_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hardware error - reset\n"

	.comm	_NIC_SEND_HANG_THRESHOLD,8,3    ## @NIC_SEND_HANG_THRESHOLD
L_.str.1:                               ## @.str.1
	.asciz	"Send stuck - reset. tcb->WrIndex %x\n"

	.no_dead_strip	_et131x_tx_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function et131x_tx_timeout
_et131x_tx_timeout:                     ; @et131x_tx_timeout
	.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
	mov	x19, x0
	bl	_netdev_priv
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _FMP_ADAPTER_INTERRUPT_IN_USE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FMP_ADAPTER_INTERRUPT_IN_USE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _FMP_ADAPTER_NON_RECOVER_ERROR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FMP_ADAPTER_NON_RECOVER_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
	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
	ret
LBB0_3:
	mov	x20, x0
Lloh6:
	adrp	x9, _FMP_ADAPTER_HARDWARE_ERROR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FMP_ADAPTER_HARDWARE_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	x0, [x20, #16]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	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	_dev_err
LBB0_5:
	add	x21, x20, #24
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x22, [x20, #32]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cbz	x22, LBB0_2
; %bb.6:
	ldr	x8, [x22]
	add	x9, x8, #1
	str	x9, [x22]
Lloh11:
	adrp	x9, _NIC_SEND_HANG_THRESHOLD@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NIC_SEND_HANG_THRESHOLD@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_2
; %bb.7:
	ldr	x0, [x20, #16]
	ldr	w2, [x22, #8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x19
	bl	_et131x_disable_txrx
	mov	x0, x19
	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	_et131x_enable_txrx
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_FMP_ADAPTER_INTERRUPT_IN_USE,4,2 ; @FMP_ADAPTER_INTERRUPT_IN_USE
	.comm	_FMP_ADAPTER_NON_RECOVER_ERROR,4,2 ; @FMP_ADAPTER_NON_RECOVER_ERROR
	.comm	_FMP_ADAPTER_HARDWARE_ERROR,4,2 ; @FMP_ADAPTER_HARDWARE_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hardware error - reset\n"

	.comm	_NIC_SEND_HANG_THRESHOLD,8,3    ; @NIC_SEND_HANG_THRESHOLD
l_.str.1:                               ; @.str.1
	.asciz	"Send stuck - reset. tcb->WrIndex %x\n"

	.no_dead_strip	_et131x_tx_timeout
.subsections_via_symbols
