	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_rx_reporter_err_icosq_cqe_recover
_mlx5e_rx_reporter_err_icosq_cqe_recover: ## @mlx5e_rx_reporter_err_icosq_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, %r15
	movq	8(%rdi), %r14
	movq	(%r14), %r12
	movq	8(%r14), %rdi
	movl	4(%r15), %esi
	leaq	-40(%rbp), %rdx
	callq	_mlx5_core_query_sq_state
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	movl	4(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %ecx
	callq	_netdev_err
	jmp	LBB0_2
LBB0_3:
	movq	-40(%rbp), %rax
	movq	_MLX5_SQC_STATE_ERR@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.4:
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_mlx5e_deactivate_rq
	movq	%r15, %rdi
	callq	_mlx5e_wait_for_icosq_flush
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.5:
	movq	%r15, %rdi
	callq	_mlx5e_deactivate_icosq
	movq	8(%r15), %rdi
	movl	4(%r15), %esi
	callq	_mlx5e_health_sq_to_ready
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
LBB0_2:
	movq	_MLX5E_SQ_STATE_RECOVERING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r15, %rdi
	callq	_mlx5e_reset_icosq_cc_pc
	movq	%r14, %rdi
	callq	_mlx5e_free_rx_descs
	movq	_MLX5E_SQ_STATE_RECOVERING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	movq	%r15, %rdi
	callq	_mlx5e_activate_icosq
	movq	%r14, %rdi
	callq	_mlx5e_activate_rq
	movq	(%r14), %rax
	incl	(%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to query ICOSQ 0x%x state. err = %d\n"

	.comm	_MLX5_SQC_STATE_ERR,8,3         ## @MLX5_SQC_STATE_ERR
	.comm	_MLX5E_SQ_STATE_RECOVERING,4,2  ## @MLX5E_SQ_STATE_RECOVERING
	.no_dead_strip	_mlx5e_rx_reporter_err_icosq_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_rx_reporter_err_icosq_cqe_recover
_mlx5e_rx_reporter_err_icosq_cqe_recover: ; @mlx5e_rx_reporter_err_icosq_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	x22, [x0, #8]
	ldp	x20, x0, [x22]
	ldr	w1, [x19, #4]
	add	x2, sp, #8
	bl	_mlx5_core_query_sq_state
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w2, [x19, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	bl	_netdev_err
	b	LBB0_7
LBB0_2:
	ldr	x8, [sp, #8]
Lloh2:
	adrp	x9, _MLX5_SQC_STATE_ERR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MLX5_SQC_STATE_ERR@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	add	x20, x22, #16
	mov	x0, x20
	bl	_mlx5e_deactivate_rq
	mov	x0, x19
	bl	_mlx5e_wait_for_icosq_flush
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_mlx5e_deactivate_icosq
	ldr	x0, [x19, #8]
	ldr	w1, [x19, #4]
	bl	_mlx5e_health_sq_to_ready
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_mlx5e_reset_icosq_cc_pc
	mov	x0, x20
	bl	_mlx5e_free_rx_descs
Lloh5:
	adrp	x8, _MLX5E_SQ_STATE_RECOVERING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MLX5E_SQ_STATE_RECOVERING@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_clear_bit
	mov	x0, x19
	bl	_mlx5e_activate_icosq
	mov	x0, x20
	bl	_mlx5e_activate_rq
	ldr	x8, [x20]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_8
LBB0_6:
	mov	w21, #0
LBB0_7:
Lloh8:
	adrp	x8, _MLX5E_SQ_STATE_RECOVERING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLX5E_SQ_STATE_RECOVERING@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_clear_bit
LBB0_8:
	mov	x0, x21
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to query ICOSQ 0x%x state. err = %d\n"

	.comm	_MLX5_SQC_STATE_ERR,8,3         ; @MLX5_SQC_STATE_ERR
	.comm	_MLX5E_SQ_STATE_RECOVERING,4,2  ; @MLX5E_SQ_STATE_RECOVERING
	.no_dead_strip	_mlx5e_rx_reporter_err_icosq_cqe_recover
.subsections_via_symbols
