	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_iwarp_destroy_qp           ## -- Begin function qed_iwarp_destroy_qp
	.p2align	4, 0x90
_qed_iwarp_destroy_qp:                  ## @qed_iwarp_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	24(%rsi), %r13
	movq	_QED_IWARP_QP_STATE_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, (%rsi)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_qed_iwarp_modify_qp
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_12
LBB0_2:
	testq	%r13, %r13
	je	LBB0_10
## %bb.3:
	movq	(%r13), %rdi
	callq	_READ_ONCE
	movq	_QED_IWARP_EP_CLOSED@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_7
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$100, %edi
	callq	_msleep
	movq	(%r13), %rdi
	callq	_READ_ONCE
	movq	%rax, %rcx
	movq	(%r12), %rax
	cmpq	%rax, %rcx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leal	1(%rbx), %ecx
	cmpl	$199, %ebx
	movl	%ecx, %ebx
	jb	LBB0_5
LBB0_7:
	movq	(%r13), %rdx
	cmpq	%rax, %rdx
	je	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_DP_NOTICE
LBB0_9:
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_qed_iwarp_destroy_ep
LBB0_10:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_qed_iwarp_fw_destroy
	movl	%eax, %r12d
	movq	16(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.11:
	movq	(%r14), %rax
	movq	(%rax), %rdi
	movq	_IWARP_SHARED_QUEUE_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %ecx
	callq	_dma_free_coherent
LBB0_12:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_IWARP_QP_STATE_ERROR,8,3   ## @QED_IWARP_QP_STATE_ERROR
	.comm	_QED_IWARP_EP_CLOSED,8,3        ## @QED_IWARP_EP_CLOSED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ep state close timeout state=%x\n"

	.comm	_IWARP_SHARED_QUEUE_PAGE_SIZE,4,2 ## @IWARP_SHARED_QUEUE_PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_iwarp_destroy_qp           ; -- Begin function qed_iwarp_destroy_qp
	.p2align	2
_qed_iwarp_destroy_qp:                  ; @qed_iwarp_destroy_qp
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x1, #24]
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _QED_IWARP_QP_STATE_ERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QED_IWARP_QP_STATE_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x9]
	cmp	x8, x2
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_qed_iwarp_modify_qp
	mov	x22, x0
	cbnz	w0, LBB0_12
LBB0_2:
	cbz	x21, LBB0_10
; %bb.3:
	ldr	x0, [x21]
	bl	_READ_ONCE
Lloh3:
	adrp	x22, _QED_IWARP_EP_CLOSED@GOTPAGE
Lloh4:
	ldr	x22, [x22, _QED_IWARP_EP_CLOSED@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.4:
	mov	w23, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #100
	bl	_msleep
	ldr	x0, [x21]
	bl	_READ_ONCE
	mov	x8, x0
	ldr	x0, [x22]
	cmp	x8, x0
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w23, #1
	cmp	w23, #199
	mov	x23, x8
	b.lo	LBB0_5
LBB0_7:
	ldr	x2, [x21]
	cmp	x2, x0
	b.eq	LBB0_9
; %bb.8:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_DP_NOTICE
LBB0_9:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_qed_iwarp_destroy_ep
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_qed_iwarp_fw_destroy
	mov	x22, x0
	ldr	x2, [x19, #16]
	cbz	x2, LBB0_12
; %bb.11:
	ldr	x8, [x20]
	ldr	x0, [x8]
Lloh7:
	adrp	x8, _IWARP_SHARED_QUEUE_PAGE_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IWARP_SHARED_QUEUE_PAGE_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w3, [x19, #8]
	bl	_dma_free_coherent
LBB0_12:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_IWARP_QP_STATE_ERROR,8,3   ; @QED_IWARP_QP_STATE_ERROR
	.comm	_QED_IWARP_EP_CLOSED,8,3        ; @QED_IWARP_EP_CLOSED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ep state close timeout state=%x\n"

	.comm	_IWARP_SHARED_QUEUE_PAGE_SIZE,4,2 ; @IWARP_SHARED_QUEUE_PAGE_SIZE
.subsections_via_symbols
