	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_roce_destroy_qp            ## -- Begin function qed_roce_destroy_qp
	.p2align	4, 0x90
_qed_roce_destroy_qp:                   ## @qed_roce_destroy_qp
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	_QED_ROCE_QP_STATE_RESET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_4
## %bb.1:
	movq	_QED_ROCE_QP_STATE_ERR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_4
## %bb.2:
	movq	_QED_ROCE_QP_STATE_INIT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_DP_NOTICE
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_4:
	cmpq	%rcx, %rax
	jne	LBB0_5
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_qed_roce_sp_destroy_qp_responder
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_qed_roce_sp_destroy_qp_requester
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_ROCE_QP_STATE_RESET,8,3    ## @QED_ROCE_QP_STATE_RESET
	.comm	_QED_ROCE_QP_STATE_ERR,8,3      ## @QED_ROCE_QP_STATE_ERR
	.comm	_QED_ROCE_QP_STATE_INIT,8,3     ## @QED_ROCE_QP_STATE_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QP must be in error, reset or init state before destroying it\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_roce_destroy_qp            ; -- Begin function qed_roce_destroy_qp
	.p2align	2
_qed_roce_destroy_qp:                   ; @qed_roce_destroy_qp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _QED_ROCE_QP_STATE_RESET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QED_ROCE_QP_STATE_RESET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _QED_ROCE_QP_STATE_ERR@GOTPAGE
Lloh4:
	ldr	x10, [x10, _QED_ROCE_QP_STATE_ERR@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _QED_ROCE_QP_STATE_INIT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _QED_ROCE_QP_STATE_INIT@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_3
; %bb.1:
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	mov	x20, x1
	add	x2, sp, #12
	mov	x0, x19
	bl	_qed_roce_sp_destroy_qp_responder
	cbnz	w0, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_qed_roce_sp_destroy_qp_requester
	cbz	w0, LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_ROCE_QP_STATE_RESET,8,3    ; @QED_ROCE_QP_STATE_RESET
	.comm	_QED_ROCE_QP_STATE_ERR,8,3      ; @QED_ROCE_QP_STATE_ERR
	.comm	_QED_ROCE_QP_STATE_INIT,8,3     ; @QED_ROCE_QP_STATE_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QP must be in error, reset or init state before destroying it\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
