	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_rdma_stop
_qed_rdma_stop:                         ## @qed_rdma_stop
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	movq	%rbx, %rdi
	callq	_qed_ptt_acquire
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	20(%rbx), %edx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	callq	_qed_wr
	movl	$0, (%rbx)
	movq	8(%rbx), %rax
	movq	$0, 8(%rax)
	movq	_PRS_REG_ROCE_DEST_QP_MAX_PF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_qed_wr
	movq	_PRS_REG_LIGHT_L2_ETHERTYPE_EN@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_qed_rd
	movl	(%r14), %edx
	andl	$65534, %eax                    ## imm = 0xFFFE
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %ecx
	callq	_qed_wr
	movq	%rbx, %rdi
	callq	_QED_IS_IWARP_PERSONALITY
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	callq	_qed_iwarp_stop
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_qed_ptt_release
	jmp	LBB0_9
LBB0_1:
	negl	%r14d
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	jmp	LBB0_9
LBB0_5:
	callq	_qed_roce_stop
LBB0_6:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_qed_ptt_release
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	16(%rbx), %eax
	movl	%eax, -44(%rbp)
	movq	_QED_SPQ_MODE_EBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_RDMA_RAMROD_FUNC_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%rbx), %rax
	movl	4(%rax), %ecx
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r14, %r8
	callq	_qed_sp_init_request
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	-40(%rbp), %r14
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_QED_RDMA_CNQ_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_RESC_START
	movq	%rax, (%r14)
	movq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_qed_spq_post
	movl	%eax, %r14d
LBB0_8:
	movq	%rbx, %rdi
	callq	_qed_rdma_free
	movl	(%r12), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_DP_VERBOSE
LBB0_9:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_QED_MSG_RDMA,4,2               ## @QED_MSG_RDMA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RDMA stop\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to acquire PTT\n"

	.comm	_PRS_REG_ROCE_DEST_QP_MAX_PF,4,2 ## @PRS_REG_ROCE_DEST_QP_MAX_PF
	.comm	_PRS_REG_LIGHT_L2_ETHERTYPE_EN,4,2 ## @PRS_REG_LIGHT_L2_ETHERTYPE_EN
	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ## @QED_SPQ_MODE_EBLOCK
	.comm	_RDMA_RAMROD_FUNC_CLOSE,4,2     ## @RDMA_RAMROD_FUNC_CLOSE
	.comm	_QED_RDMA_CNQ_RAM,4,2           ## @QED_RDMA_CNQ_RAM
L_.str.2:                               ## @.str.2
	.asciz	"RDMA stop done, rc = %d\n"

	.no_dead_strip	_qed_rdma_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_rdma_stop
_qed_rdma_stop:                         ; @qed_rdma_stop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x22, _QED_MSG_RDMA@GOTPAGE
Lloh4:
	ldr	x22, [x22, _QED_MSG_RDMA@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	bl	_DP_VERBOSE
	mov	x0, x19
	bl	_qed_ptt_acquire
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w2, [x19, #20]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_qed_wr
	str	wzr, [x19]
	ldr	x8, [x19, #8]
	str	xzr, [x8, #8]
Lloh7:
	adrp	x8, _PRS_REG_ROCE_DEST_QP_MAX_PF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PRS_REG_ROCE_DEST_QP_MAX_PF@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_qed_wr
Lloh10:
	adrp	x21, _PRS_REG_LIGHT_L2_ETHERTYPE_EN@GOTPAGE
Lloh11:
	ldr	x21, [x21, _PRS_REG_LIGHT_L2_ETHERTYPE_EN@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_qed_rd
	ldr	w2, [x21]
	and	w3, w0, #0xfffe
	mov	x0, x19
	mov	x1, x20
	bl	_qed_wr
	mov	x0, x19
	bl	_QED_IS_IWARP_PERSONALITY
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_qed_iwarp_stop
	cbz	w0, LBB0_6
; %bb.3:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_qed_ptt_release
	b	LBB0_10
LBB0_4:
	neg	w21, w21
	ldr	w1, [x22]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_qed_roce_stop
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_qed_ptt_release
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w8, [x19, #16]
Lloh14:
	adrp	x9, _QED_SPQ_MODE_EBLOCK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _QED_SPQ_MODE_EBLOCK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
Lloh17:
	adrp	x8, _RDMA_RAMROD_FUNC_CLOSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RDMA_RAMROD_FUNC_CLOSE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	ldr	x8, [x19, #8]
	ldr	w3, [x8, #4]
	add	x1, sp, #16
	add	x4, sp, #24
	mov	x0, x19
	bl	_qed_sp_init_request
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	x20, [sp, #16]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [x20, #8]
Lloh20:
	adrp	x8, _QED_RDMA_CNQ_RAM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _QED_RDMA_CNQ_RAM@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RESC_START
	str	x0, [x20]
	ldr	x1, [sp, #16]
	mov	x0, x19
	mov	x2, #0
	bl	_qed_spq_post
	mov	x21, x0
LBB0_8:
	mov	x0, x19
	bl	_qed_rdma_free
	ldr	w1, [x22]
	str	x21, [sp]
Lloh23:
	adrp	x2, l_.str.2@PAGE
Lloh24:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_DP_VERBOSE
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_QED_MSG_RDMA,4,2               ; @QED_MSG_RDMA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RDMA stop\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to acquire PTT\n"

	.comm	_PRS_REG_ROCE_DEST_QP_MAX_PF,4,2 ; @PRS_REG_ROCE_DEST_QP_MAX_PF
	.comm	_PRS_REG_LIGHT_L2_ETHERTYPE_EN,4,2 ; @PRS_REG_LIGHT_L2_ETHERTYPE_EN
	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ; @QED_SPQ_MODE_EBLOCK
	.comm	_RDMA_RAMROD_FUNC_CLOSE,4,2     ; @RDMA_RAMROD_FUNC_CLOSE
	.comm	_QED_RDMA_CNQ_RAM,4,2           ; @QED_RDMA_CNQ_RAM
l_.str.2:                               ; @.str.2
	.asciz	"RDMA stop done, rc = %d\n"

	.no_dead_strip	_qed_rdma_stop
.subsections_via_symbols
