	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_rdma_destroy_cq
_qed_rdma_destroy_cq:                   ## @qed_rdma_destroy_cq
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rdx
	callq	_DP_VERBOSE
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rdx
	movl	$4, %esi
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	leaq	-72(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	(%r14), %eax
	movl	%eax, -72(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -64(%rbp)
	movq	_QED_SPQ_MODE_EBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	movq	_RDMA_RAMROD_DESTROY_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, %r8
	callq	_qed_sp_init_request
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	-56(%rbp), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %esi
	callq	_DMA_REGPAIR_LE
	movq	-56(%rbp), %rsi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_qed_spq_post
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movl	-44(%rbp), %ecx
	movl	$4, %esi
	movq	%r13, %rdx
	callq	_dma_free_coherent
	movl	%r12d, %r15d
	jmp	LBB0_6
LBB0_1:
	negl	%r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_DP_NOTICE
	jmp	LBB0_6
LBB0_4:
	movl	(%r13), %edi
	callq	_le16_to_cpu
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movl	-44(%rbp), %ecx
	movl	$4, %esi
	movq	%r13, %rdx
	callq	_dma_free_coherent
	movq	8(%rbx), %rdi
	addq	$4, %rdi
	callq	_spin_lock_bh
	movq	8(%rbx), %r12
	addq	$8, %r12
	movl	(%r14), %r14d
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_qed_cxt_get_proto_cid_start
	subl	%eax, %r14d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_qed_bmap_release_id
	movq	8(%rbx), %rdi
	addq	$4, %rdi
	callq	_spin_unlock_bh
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_DP_VERBOSE
LBB0_6:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QED_MSG_RDMA,4,2               ## @QED_MSG_RDMA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"icid = %08x\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"qed destroy cq failed: cannot allocate memory (ramrod)\n"

	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ## @QED_SPQ_MODE_EBLOCK
	.comm	_RDMA_RAMROD_DESTROY_CQ,4,2     ## @RDMA_RAMROD_DESTROY_CQ
L_.str.2:                               ## @.str.2
	.asciz	"Destroyed CQ, rc = %d\n"

	.no_dead_strip	_qed_rdma_destroy_cq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_rdma_destroy_cq
_qed_rdma_destroy_cq:                   ; @qed_rdma_destroy_cq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x25, _QED_MSG_RDMA@GOTPAGE
Lloh4:
	ldr	x25, [x25, _QED_MSG_RDMA@GOTPAGEOFF]
	ldr	w1, [x25]
	ldr	w3, [x20]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	bl	_DP_VERBOSE
	ldr	x8, [x19]
	ldr	x0, [x8]
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	add	x2, sp, #4
	mov	w1, #4
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	w8, [x20]
	ldr	w9, [x19, #16]
	str	w9, [sp, #24]
Lloh10:
	adrp	x9, _QED_SPQ_MODE_EBLOCK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _QED_SPQ_MODE_EBLOCK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
	ldr	x8, [x19, #8]
	ldr	w23, [x8]
Lloh13:
	adrp	x8, _RDMA_RAMROD_DESTROY_CQ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RDMA_RAMROD_DESTROY_CQ@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	add	x1, sp, #8
	add	x4, sp, #16
	mov	x0, x19
	mov	x3, x23
	bl	_qed_sp_init_request
	mov	x24, x0
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
	ldr	w1, [sp, #4]
	bl	_DMA_REGPAIR_LE
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	x2, #0
	bl	_qed_spq_post
	mov	x24, x0
	cbz	w0, LBB0_5
LBB0_3:
	ldr	x8, [x19]
	ldr	x0, [x8]
	ldr	w3, [sp, #4]
	mov	w1, #4
	mov	x2, x22
	bl	_dma_free_coherent
	b	LBB0_6
LBB0_4:
	neg	w24, w23
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
	b	LBB0_6
LBB0_5:
	ldr	w0, [x22]
	bl	_le16_to_cpu
	str	w0, [x21]
	ldr	x8, [x19]
	ldr	x0, [x8]
	ldr	w3, [sp, #4]
	mov	w1, #4
	mov	x2, x22
	bl	_dma_free_coherent
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	bl	_spin_lock_bh
	ldr	x8, [x19, #8]
	add	x21, x8, #8
	ldr	w20, [x20]
	mov	x0, x19
	mov	x1, x23
	bl	_qed_cxt_get_proto_cid_start
	sub	w2, w20, w0
	mov	x0, x19
	mov	x1, x21
	bl	_qed_bmap_release_id
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	bl	_spin_unlock_bh
	ldr	w1, [x25]
Lloh18:
	adrp	x2, l_.str.2@PAGE
Lloh19:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	bl	_DP_VERBOSE
LBB0_6:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QED_MSG_RDMA,4,2               ; @QED_MSG_RDMA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"icid = %08x\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"qed destroy cq failed: cannot allocate memory (ramrod)\n"

	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ; @QED_SPQ_MODE_EBLOCK
	.comm	_RDMA_RAMROD_DESTROY_CQ,4,2     ; @RDMA_RAMROD_DESTROY_CQ
l_.str.2:                               ; @.str.2
	.asciz	"Destroyed CQ, rc = %d\n"

	.no_dead_strip	_qed_rdma_destroy_cq
.subsections_via_symbols
