	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qedr_post_send                 ## -- Begin function qedr_post_send
	.p2align	4, 0x90
_qedr_post_send:                        ## @qedr_post_send
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	(%rdi), %edi
	callq	_get_qedr_dev
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_get_qedr_qp
	movq	%rax, %r15
	movq	$0, (%r14)
	movq	(%rax), %rax
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qedr_gsi_post_send             ## TAILCALL
LBB0_2:
	leaq	16(%r15), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_rdma_protocol_roce
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	8(%r15), %rax
	movq	_QED_ROCE_QP_STATE_RTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.4:
	movq	_QED_ROCE_QP_STATE_ERR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.5:
	movq	_QED_ROCE_QP_STATE_SQD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	%rbx, (%r14)
	movq	_QEDR_MSG_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	56(%r15), %ecx
	movq	8(%r15), %r8
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_DP_DEBUG
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_16
LBB0_7:
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.8:
	movq	%r15, %r12
	addq	$24, %r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	___qedr_post_send
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	8(%rbx), %eax
	movq	24(%r15), %rcx
	movq	48(%r15), %rdx
	movl	%eax, (%rdx,%rcx,4)
	movq	%r12, %rdi
	callq	_qedr_inc_sw_prod
	incl	40(%r15)
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_9
## %bb.11:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	xorl	%r12d, %r12d
	jmp	LBB0_15
LBB0_13:
	movl	%eax, %r12d
LBB0_14:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_15:
	xorl	%eax, %eax
	callq	_smp_wmb
	movl	32(%r15), %esi
	movl	36(%r15), %edi
	callq	_writel
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
LBB0_16:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPT_GSI,8,3                 ## @IB_QPT_GSI
	.comm	_QED_ROCE_QP_STATE_RTS,8,3      ## @QED_ROCE_QP_STATE_RTS
	.comm	_QED_ROCE_QP_STATE_ERR,8,3      ## @QED_ROCE_QP_STATE_ERR
	.comm	_QED_ROCE_QP_STATE_SQD,8,3      ## @QED_ROCE_QP_STATE_SQD
	.comm	_QEDR_MSG_CQ,4,2                ## @QEDR_MSG_CQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QP in wrong state! QP icid=0x%x state %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qedr_post_send                 ; -- Begin function qedr_post_send
	.p2align	2
_qedr_post_send:                        ; @qedr_post_send
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	ldr	w0, [x0]
	bl	_get_qedr_dev
	mov	x24, x0
	mov	x0, x23
	bl	_get_qedr_qp
	str	xzr, [x20]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _IB_QPT_GSI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_QPT_GSI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_qedr_gsi_post_send
LBB0_2:
	mov	x19, x0
	add	x22, x0, #16
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x0, x24
	mov	w1, #1
	bl	_rdma_protocol_roce
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _QED_ROCE_QP_STATE_RTS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QED_ROCE_QP_STATE_RTS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _QED_ROCE_QP_STATE_ERR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _QED_ROCE_QP_STATE_ERR@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _QED_ROCE_QP_STATE_SQD@GOTPAGE
Lloh10:
	ldr	x11, [x11, _QED_ROCE_QP_STATE_SQD@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_9
LBB0_4:
	cbz	x21, LBB0_8
; %bb.5:
	add	x25, x19, #24
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	bl	___qedr_post_send
	cbnz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21, #8]
	ldr	x9, [x19, #48]
	ldr	x10, [x19, #24]
	str	w8, [x9, x10, lsl #2]
	mov	x0, x25
	bl	_qedr_inc_sw_prod
	ldr	w8, [x19, #40]
	add	w8, w8, #1
	str	w8, [x19, #40]
	ldr	x21, [x21]
	cbnz	x21, LBB0_6
LBB0_8:
	mov	w24, #0
	b	LBB0_11
LBB0_9:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	str	x21, [x20]
Lloh12:
	adrp	x8, _QEDR_MSG_CQ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QEDR_MSG_CQ@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w3, [x19, #56]
	ldr	x4, [x19, #8]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	bl	_DP_DEBUG
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_12
LBB0_10:
	mov	x24, x0
LBB0_11:
	bl	_smp_wmb
	ldp	w1, w0, [x19, #32]
	bl	_writel
	mov	x0, x22
	bl	_spin_unlock_irqrestore
LBB0_12:
	mov	x0, x24
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPT_GSI,8,3                 ; @IB_QPT_GSI
	.comm	_QED_ROCE_QP_STATE_RTS,8,3      ; @QED_ROCE_QP_STATE_RTS
	.comm	_QED_ROCE_QP_STATE_ERR,8,3      ; @QED_ROCE_QP_STATE_ERR
	.comm	_QED_ROCE_QP_STATE_SQD,8,3      ; @QED_ROCE_QP_STATE_SQD
	.comm	_QEDR_MSG_CQ,4,2                ; @QEDR_MSG_CQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QP in wrong state! QP icid=0x%x state %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
