	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_tx_timeout
_qlcnic_tx_timeout:                     ## @qlcnic_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	___QLCNIC_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	%rbx, %rdi
	callq	_qlcnic_dump_rings
	movq	(%rbx), %rax
	incq	%rax
	movq	%rax, (%rbx)
	movq	_QLCNIC_MAX_TX_TIMEOUTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.2:
	movq	16(%rbx), %rdi
	callq	_netif_msg_tx_err
	testq	%rax, %rax
	je	LBB0_7
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	movq	%rbx, %rdi
	callq	_qlcnic_82xx_check
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	$1, 8(%rbx)
	jmp	LBB0_8
LBB0_5:
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_check
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_QLCNIC_FORCE_FW_DUMP_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_qlcnic_83xx_idc_request_reset  ## TAILCALL
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	movq	16(%rbx), %rax
	movl	$1, (%rax)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___QLCNIC_RESETTING,4,2         ## @__QLCNIC_RESETTING
	.comm	_QLCNIC_MAX_TX_TIMEOUTS,8,3     ## @QLCNIC_MAX_TX_TIMEOUTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tx timeout, reset the adapter.\n"

	.comm	_QLCNIC_FORCE_FW_DUMP_KEY,4,2   ## @QLCNIC_FORCE_FW_DUMP_KEY
L_.str.1:                               ## @.str.1
	.asciz	"Tx timeout, reset adapter context.\n"

	.no_dead_strip	_qlcnic_tx_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_tx_timeout
_qlcnic_tx_timeout:                     ; @qlcnic_tx_timeout
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, ___QLCNIC_RESETTING@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___QLCNIC_RESETTING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_test_bit
	cbnz	x0, LBB0_8
; %bb.1:
	mov	x0, x19
	bl	_qlcnic_dump_rings
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
Lloh3:
	adrp	x9, _QLCNIC_MAX_TX_TIMEOUTS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QLCNIC_MAX_TX_TIMEOUTS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.2:
	ldr	x0, [x19, #16]
	bl	_netif_msg_tx_err
	cbz	x0, LBB0_7
LBB0_3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	mov	x0, x19
	bl	_qlcnic_82xx_check
	cbz	x0, LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	bl	_qlcnic_83xx_check
	cbz	x0, LBB0_8
; %bb.6:
Lloh8:
	adrp	x8, _QLCNIC_FORCE_FW_DUMP_KEY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QLCNIC_FORCE_FW_DUMP_KEY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_qlcnic_83xx_idc_request_reset
LBB0_7:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	ldr	x8, [x19, #16]
	mov	w9, #1
	str	w9, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	___QLCNIC_RESETTING,4,2         ; @__QLCNIC_RESETTING
	.comm	_QLCNIC_MAX_TX_TIMEOUTS,8,3     ; @QLCNIC_MAX_TX_TIMEOUTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tx timeout, reset the adapter.\n"

	.comm	_QLCNIC_FORCE_FW_DUMP_KEY,4,2   ; @QLCNIC_FORCE_FW_DUMP_KEY
l_.str.1:                               ; @.str.1
	.asciz	"Tx timeout, reset adapter context.\n"

	.no_dead_strip	_qlcnic_tx_timeout
.subsections_via_symbols
