	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_rdma_deregister_tid
_qed_rdma_deregister_tid:               ## @qed_rdma_deregister_tid
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	8(%r14), %eax
	movl	%eax, -60(%rbp)
	movq	_QED_SPQ_MODE_EBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_RDMA_RAMROD_DEREGISTER_MR@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	(%r14), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r15, %r8
	callq	_qed_sp_init_request
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	movq	-48(%rbp), %r15
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movl	%eax, (%r15)
	movq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_qed_spq_post
	testl	%eax, %eax
	je	LBB0_3
LBB0_1:
	movl	%eax, %r15d
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %ecx
LBB0_18:
	xorl	%eax, %eax
	callq	_DP_VERBOSE
LBB0_19:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	-56(%rbp), %rdx
	movq	_RDMA_RETURN_DEREGISTER_MR_BAD_STATE_ERR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_DP_NOTICE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_19
LBB0_5:
	movq	_RDMA_RETURN_NIG_DRAIN_REQ@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_17
## %bb.6:
	movq	%r14, %rdi
	callq	_qed_ptt_acquire
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_qed_mcp_drain
	movl	%eax, %r15d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_qed_ptt_release
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.9:
	movl	(%r12), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_10
LBB0_7:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movl	(%r12), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_10
LBB0_11:
	movl	(%r13), %edx
	movq	(%r14), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rsi
	leaq	-64(%rbp), %r8
	movq	%r14, %rdi
	callq	_qed_sp_init_request
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r15d
	movl	(%r12), %esi
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_10
LBB0_13:
	movq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_qed_spq_post
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r15d
	movl	(%r12), %esi
	leaq	L_.str.6(%rip), %rdx
LBB0_10:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	jmp	LBB0_19
LBB0_15:
	movq	-56(%rbp), %rdx
	movq	_RDMA_RETURN_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_16
LBB0_17:
	movl	(%r12), %esi
	leaq	L_.str.7(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	jmp	LBB0_18
LBB0_16:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_DP_NOTICE
	xorl	%r15d, %r15d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_MSG_RDMA,4,2               ## @QED_MSG_RDMA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"itid = %08x\n"

	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ## @QED_SPQ_MODE_EBLOCK
	.comm	_RDMA_RAMROD_DEREGISTER_MR,4,2  ## @RDMA_RAMROD_DEREGISTER_MR
L_.str.1:                               ## @.str.1
	.asciz	"rc = %d\n"

	.comm	_RDMA_RETURN_DEREGISTER_MR_BAD_STATE_ERR,8,3 ## @RDMA_RETURN_DEREGISTER_MR_BAD_STATE_ERR
L_.str.2:                               ## @.str.2
	.asciz	"fw_return_code = %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RDMA_RETURN_NIG_DRAIN_REQ,8,3  ## @RDMA_RETURN_NIG_DRAIN_REQ
	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.3:                               ## @.str.3
	.asciz	"Failed to acquire PTT\n"

L_.str.4:                               ## @.str.4
	.asciz	"Drain failed\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to init sp-element\n"

L_.str.6:                               ## @.str.6
	.asciz	"Ramrod failed\n"

	.comm	_RDMA_RETURN_OK,8,3             ## @RDMA_RETURN_OK
L_.str.7:                               ## @.str.7
	.asciz	"De-registered TID, rc = %d\n"

	.no_dead_strip	_qed_rdma_deregister_tid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_rdma_deregister_tid
_qed_rdma_deregister_tid:               ; @qed_rdma_deregister_tid
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _QED_MSG_RDMA@GOTPAGE
Lloh1:
	ldr	x22, [x22, _QED_MSG_RDMA@GOTPAGEOFF]
	ldr	w1, [x22]
	str	x21, [sp]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_DP_VERBOSE
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w8, [x19, #8]
Lloh4:
	adrp	x9, _QED_SPQ_MODE_EBLOCK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _QED_SPQ_MODE_EBLOCK@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
Lloh7:
	adrp	x23, _RDMA_RAMROD_DEREGISTER_MR@GOTPAGE
Lloh8:
	ldr	x23, [x23, _RDMA_RAMROD_DEREGISTER_MR@GOTPAGEOFF]
	ldr	w2, [x23]
	ldr	x8, [x19]
	ldr	w3, [x8]
	add	x1, sp, #16
	add	x4, sp, #24
	mov	x0, x19
	bl	_qed_sp_init_request
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w1, [x22]
	str	x20, [sp]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_2:
	mov	x0, x19
	bl	_DP_VERBOSE
	b	LBB0_19
LBB0_3:
	ldr	x20, [sp, #16]
	mov	x0, x21
	bl	_cpu_to_le32
	str	w0, [x20]
	ldr	x1, [sp, #16]
	add	x2, sp, #8
	mov	x0, x19
	bl	_qed_spq_post
	cbz	w0, LBB0_5
; %bb.4:
	mov	x20, x0
	ldr	w1, [x22]
	str	x20, [sp]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_VERBOSE
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_19
LBB0_5:
	ldr	x2, [sp, #8]
Lloh13:
	adrp	x8, _RDMA_RETURN_DEREGISTER_MR_BAD_STATE_ERR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RDMA_RETURN_DEREGISTER_MR_BAD_STATE_ERR@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_7
; %bb.6:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_19
LBB0_7:
Lloh21:
	adrp	x8, _RDMA_RETURN_NIG_DRAIN_REQ@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RDMA_RETURN_NIG_DRAIN_REQ@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_17
; %bb.8:
	mov	x0, x19
	bl	_qed_ptt_acquire
	cbz	x0, LBB0_11
; %bb.9:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_qed_mcp_drain
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	bl	_qed_ptt_release
	cbz	w20, LBB0_12
; %bb.10:
	ldr	w1, [x22]
Lloh24:
	adrp	x2, l_.str.4@PAGE
Lloh25:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_2
LBB0_11:
Lloh26:
	adrp	x8, _EBUSY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	w1, [x22]
Lloh29:
	adrp	x2, l_.str.3@PAGE
Lloh30:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_2
LBB0_12:
	ldr	w2, [x23]
	ldr	x8, [x19]
	ldr	w3, [x8]
	add	x1, sp, #16
	add	x4, sp, #24
	mov	x0, x19
	bl	_qed_sp_init_request
	cbz	w0, LBB0_14
; %bb.13:
	mov	x20, x0
	ldr	w1, [x22]
Lloh31:
	adrp	x2, l_.str.5@PAGE
Lloh32:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_2
LBB0_14:
	ldr	x1, [sp, #16]
	add	x2, sp, #8
	mov	x0, x19
	bl	_qed_spq_post
	cbz	w0, LBB0_16
; %bb.15:
	mov	x20, x0
	ldr	w1, [x22]
Lloh33:
	adrp	x2, l_.str.6@PAGE
Lloh34:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_2
LBB0_16:
	ldr	x2, [sp, #8]
Lloh35:
	adrp	x8, _RDMA_RETURN_OK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _RDMA_RETURN_OK@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_20
LBB0_17:
	ldr	w1, [x22]
	str	xzr, [sp]
Lloh38:
	adrp	x2, l_.str.7@PAGE
Lloh39:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_DP_VERBOSE
LBB0_18:
	mov	w20, #0
LBB0_19:
	mov	x0, x20
	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
LBB0_20:
Lloh40:
	adrp	x1, l_.str.2@PAGE
Lloh41:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
	b	LBB0_18
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_MSG_RDMA,4,2               ; @QED_MSG_RDMA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"itid = %08x\n"

	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ; @QED_SPQ_MODE_EBLOCK
	.comm	_RDMA_RAMROD_DEREGISTER_MR,4,2  ; @RDMA_RAMROD_DEREGISTER_MR
l_.str.1:                               ; @.str.1
	.asciz	"rc = %d\n"

	.comm	_RDMA_RETURN_DEREGISTER_MR_BAD_STATE_ERR,8,3 ; @RDMA_RETURN_DEREGISTER_MR_BAD_STATE_ERR
l_.str.2:                               ; @.str.2
	.asciz	"fw_return_code = %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RDMA_RETURN_NIG_DRAIN_REQ,8,3  ; @RDMA_RETURN_NIG_DRAIN_REQ
	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.3:                               ; @.str.3
	.asciz	"Failed to acquire PTT\n"

l_.str.4:                               ; @.str.4
	.asciz	"Drain failed\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to init sp-element\n"

l_.str.6:                               ; @.str.6
	.asciz	"Ramrod failed\n"

	.comm	_RDMA_RETURN_OK,8,3             ; @RDMA_RETURN_OK
l_.str.7:                               ; @.str.7
	.asciz	"De-registered TID, rc = %d\n"

	.no_dead_strip	_qed_rdma_deregister_tid
.subsections_via_symbols
