	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_roce_sp_destroy_qp_requester
_qed_roce_sp_destroy_qp_requester:      ## @qed_roce_sp_destroy_qp_requester
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	xorl	%r13d, %r13d
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rdx
	callq	_DP_VERBOSE
	cmpl	$0, 4(%r14)
	je	LBB0_7
## %bb.1:
	movq	(%r12), %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_2
## %bb.3:
	movq	%rax, %r15
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	(%r14), %eax
	incl	%eax
	movl	%eax, -72(%rbp)
	movl	8(%r12), %eax
	movl	%eax, -64(%rbp)
	movq	_QED_SPQ_MODE_EBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	_ROCE_RAMROD_DESTROY_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PROTOCOLID_ROCE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	movq	%rbx, %r8
	callq	_qed_sp_init_request
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	-56(%rbp), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %esi
	callq	_DMA_REGPAIR_LE
	movq	-56(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_qed_spq_post
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	(%r12), %rax
	movq	(%rax), %rdi
	movq	_RDMA_RING_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	8(%r14), %esi
	movq	16(%r14), %rdx
	movl	12(%r14), %ecx
	callq	_dma_free_coherent
	movl	$0, 4(%r14)
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_DP_VERBOSE
	xorl	%r13d, %r13d
LBB0_6:
	movq	(%r12), %rax
	movq	(%rax), %rdi
	movl	-44(%rbp), %ecx
	movl	$4, %esi
	movq	%r15, %rdx
	callq	_dma_free_coherent
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_DP_NOTICE
	movl	%ebx, %r13d
LBB0_7:
	movl	%r13d, %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 requester failed: cannot allocate memory (ramrod)\n"

	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ## @QED_SPQ_MODE_EBLOCK
	.comm	_ROCE_RAMROD_DESTROY_QP,4,2     ## @ROCE_RAMROD_DESTROY_QP
	.comm	_PROTOCOLID_ROCE,4,2            ## @PROTOCOLID_ROCE
	.comm	_RDMA_RING_PAGE_SIZE,4,2        ## @RDMA_RING_PAGE_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"Destroy requester, rc = %d\n"

	.no_dead_strip	_qed_roce_sp_destroy_qp_requester
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_roce_sp_destroy_qp_requester
_qed_roce_sp_destroy_qp_requester:      ; @qed_roce_sp_destroy_qp_requester
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x23, _QED_MSG_RDMA@GOTPAGE
Lloh4:
	ldr	x23, [x23, _QED_MSG_RDMA@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w3, [x20]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	bl	_DP_VERBOSE
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_6
; %bb.1:
	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_7
; %bb.2:
	mov	x21, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	w8, [x20]
	add	w8, w8, #1
	ldr	w9, [x19, #8]
	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]
Lloh13:
	adrp	x8, _ROCE_RAMROD_DESTROY_QP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ROCE_RAMROD_DESTROY_QP@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _PROTOCOLID_ROCE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PROTOCOLID_ROCE@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	add	x1, sp, #8
	add	x4, sp, #16
	mov	x0, x19
	bl	_qed_sp_init_request
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.3:
	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	x22, x0
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x8, [x19]
Lloh19:
	adrp	x9, _RDMA_RING_PAGE_SIZE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _RDMA_RING_PAGE_SIZE@GOTPAGEOFF]
	ldr	x0, [x8]
Lloh21:
	ldr	w8, [x9]
	ldp	w9, w3, [x20, #8]
	mul	w1, w8, w9
	ldr	x2, [x20, #16]
	bl	_dma_free_coherent
	str	wzr, [x20, #4]
	ldr	w1, [x23]
Lloh22:
	adrp	x2, l_.str.2@PAGE
Lloh23:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	bl	_DP_VERBOSE
LBB0_5:
	ldr	x8, [x19]
	ldr	x0, [x8]
	ldr	w3, [sp, #4]
	mov	w1, #4
	mov	x2, x21
	bl	_dma_free_coherent
	b	LBB0_8
LBB0_6:
	mov	w22, #0
	b	LBB0_8
LBB0_7:
	neg	w22, w22
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.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 requester failed: cannot allocate memory (ramrod)\n"

	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ; @QED_SPQ_MODE_EBLOCK
	.comm	_ROCE_RAMROD_DESTROY_QP,4,2     ; @ROCE_RAMROD_DESTROY_QP
	.comm	_PROTOCOLID_ROCE,4,2            ; @PROTOCOLID_ROCE
	.comm	_RDMA_RING_PAGE_SIZE,4,2        ; @RDMA_RING_PAGE_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"Destroy requester, rc = %d\n"

	.no_dead_strip	_qed_roce_sp_destroy_qp_requester
.subsections_via_symbols
