	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qedr_update_qp_state
_qedr_update_qp_state:                  ## @qedr_update_qp_state
	.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
                                        ## kill: def $edx killed $edx def $rdx
	xorl	%r14d, %r14d
	cmpl	%edx, %ecx
	je	LBB0_17
## %bb.1:
	addl	$-128, %edx
	cmpl	$5, %edx
	ja	LBB0_16
## %bb.2:
	movq	%rsi, %rbx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdx,4), %rdx
	addq	%rax, %rdx
	jmpq	*%rdx
LBB0_11:
	orl	$4, %ecx
	jmp	LBB0_10
LBB0_9:
	cmpl	$128, %ecx
	je	LBB0_17
LBB0_10:
	cmpl	$133, %ecx
	je	LBB0_17
	jmp	LBB0_16
LBB0_3:
	cmpl	$132, %ecx
	jne	LBB0_16
## %bb.4:
	movl	$0, 32(%rbx)
	movq	%rbx, %rdi
	callq	_qedr_reset_qp_hwq_info
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_qedr_reset_qp_hwq_info
	jmp	LBB0_17
LBB0_5:
	cmpl	$133, %ecx
	je	LBB0_17
## %bb.6:
	cmpl	$130, %ecx
	jne	LBB0_16
## %bb.7:
	movl	$1, %esi
	callq	_rdma_protocol_roce
	testl	%eax, %eax
	je	LBB0_17
## %bb.8:
	movl	24(%rbx), %esi
	movl	28(%rbx), %edi
	callq	_writel
	jmp	LBB0_17
LBB0_12:
	cmpl	$131, %ecx
	jne	LBB0_16
## %bb.13:
	movl	20(%rbx), %edx
	movl	16(%rbx), %ecx
	movl	(%rbx), %r9d
	movl	4(%rbx), %r8d
	cmpl	%ecx, %edx
	jne	LBB0_15
## %bb.14:
	cmpl	%r9d, %r8d
	je	LBB0_17
LBB0_15:
	leaq	L_.str(%rip), %rsi
	callq	_DP_NOTICE
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_17:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error->Reset with rq/sq not empty rq.prod=%x rq.cons=%x sq.prod=%x sq.cons=%x\n"

	.no_dead_strip	_qedr_update_qp_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qedr_update_qp_state
_qedr_update_qp_state:                  ; @qedr_update_qp_state
	.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
	cmp	w3, w2
	b.ne	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_17
LBB0_2:
	sub	w8, w2, #128
	cmp	w8, #5
	b.hi	LBB0_16
; %bb.3:
	mov	x19, x1
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	orr	w8, w3, #0x4
	cmp	w8, #133
	b.eq	LBB0_1
	b	LBB0_16
LBB0_5:
	mov	w0, #0
	cmp	w3, #128
	b.eq	LBB0_17
; %bb.6:
	cmp	w3, #133
	b.eq	LBB0_17
	b	LBB0_16
LBB0_7:
	cmp	w3, #132
	b.ne	LBB0_16
; %bb.8:
	str	wzr, [x19, #32]
	mov	x0, x19
	bl	_qedr_reset_qp_hwq_info
	add	x0, x19, #16
	bl	_qedr_reset_qp_hwq_info
	mov	w0, #0
	b	LBB0_17
LBB0_9:
	cmp	w3, #133
	b.eq	LBB0_1
; %bb.10:
	cmp	w3, #130
	b.ne	LBB0_16
; %bb.11:
	mov	w1, #1
	bl	_rdma_protocol_roce
	cbz	w0, LBB0_17
; %bb.12:
	ldp	w1, w0, [x19, #24]
	bl	_writel
	mov	w0, #0
	b	LBB0_17
LBB0_13:
	cmp	w3, #131
	b.ne	LBB0_16
; %bb.14:
	ldp	w3, w2, [x19, #16]
	ldp	w5, w4, [x19]
	cmp	w2, w3
	ccmp	w4, w5, #0, eq
	b.eq	LBB0_1
; %bb.15:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP_NOTICE
LBB0_16:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error->Reset with rq/sq not empty rq.prod=%x rq.cons=%x sq.prod=%x sq.cons=%x\n"

	.no_dead_strip	_qedr_update_qp_state
.subsections_via_symbols
