	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_tx_reporter_err_cqe_recover
_mlx5e_tx_reporter_err_cqe_recover:     ## @mlx5e_tx_reporter_err_cqe_recover
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	24(%rdi), %rax
	movq	(%rax), %r15
	movq	8(%rax), %rbx
	movq	_MLX5E_SQ_STATE_RECOVERING@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movl	16(%r14), %esi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mlx5_core_query_sq_state
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %ebx
	movl	16(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %ecx
	callq	_netdev_err
	jmp	LBB0_3
LBB0_4:
	movq	-40(%rbp), %rax
	movq	_MLX5_SQC_STATE_ERR@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.5:
	movl	32(%r14), %edi
	callq	_mlx5e_tx_disable_queue
	movq	%r14, %rdi
	callq	_mlx5e_wait_for_sq_flush
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.6:
	movq	24(%r14), %rdi
	movl	16(%r14), %esi
	callq	_mlx5e_health_sq_to_ready
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
LBB0_3:
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	jmp	LBB0_9
LBB0_7:
	movq	%r14, %rdi
	callq	_mlx5e_reset_txqsq_cc_pc
	movq	8(%r14), %rax
	incl	(%rax)
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	%r14, %rdi
	callq	_mlx5e_activate_txqsq
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5E_SQ_STATE_RECOVERING,4,2  ## @MLX5E_SQ_STATE_RECOVERING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to query SQ 0x%x state. err = %d\n"

	.comm	_MLX5_SQC_STATE_ERR,8,3         ## @MLX5_SQC_STATE_ERR
	.no_dead_strip	_mlx5e_tx_reporter_err_cqe_recover
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_tx_reporter_err_cqe_recover
_mlx5e_tx_reporter_err_cqe_recover:     ; @mlx5e_tx_reporter_err_cqe_recover
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0, #24]
	ldp	x21, x20, [x8]
Lloh0:
	adrp	x22, _MLX5E_SQ_STATE_RECOVERING@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MLX5E_SQ_STATE_RECOVERING@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x19
	bl	_test_bit
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w1, [x19, #16]
	add	x2, sp, #8
	mov	x0, x20
	bl	_mlx5_core_query_sq_state
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
	ldr	w2, [x19, #16]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x20
	bl	_netdev_err
	b	LBB0_9
LBB0_3:
	mov	w20, #0
	b	LBB0_10
LBB0_4:
	ldr	x8, [sp, #8]
Lloh4:
	adrp	x9, _MLX5_SQC_STATE_ERR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MLX5_SQC_STATE_ERR@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	ldr	w0, [x19, #32]
	bl	_mlx5e_tx_disable_queue
	mov	x0, x19
	bl	_mlx5e_wait_for_sq_flush
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.6:
	ldr	x0, [x19, #24]
	ldr	w1, [x19, #16]
	bl	_mlx5e_health_sq_to_ready
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_mlx5e_reset_txqsq_cc_pc
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	w0, [x22]
	mov	x1, x19
	bl	_clear_bit
	mov	x0, x19
	bl	_mlx5e_activate_txqsq
	b	LBB0_10
LBB0_8:
	mov	w20, #0
LBB0_9:
	ldr	w0, [x22]
	mov	x1, x19
	bl	_clear_bit
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5E_SQ_STATE_RECOVERING,4,2  ; @MLX5E_SQ_STATE_RECOVERING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to query SQ 0x%x state. err = %d\n"

	.comm	_MLX5_SQC_STATE_ERR,8,3         ; @MLX5_SQC_STATE_ERR
	.no_dead_strip	_mlx5e_tx_reporter_err_cqe_recover
.subsections_via_symbols
