	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_iwarp_accept               ## -- Begin function qed_iwarp_accept
	.p2align	4, 0x90
_qed_iwarp_accept:                      ## @qed_iwarp_accept
	.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
	movq	%rdi, %r14
	movl	$0, -44(%rbp)
	movq	32(%rsi), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r12
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	16(%r12), %rax
	movl	8(%rax), %ecx
	movl	68(%rbx), %r8d
	leaq	L_.str.1(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	movq	(%r12), %r9
	movq	_QED_IWARP_ORD_DEFAULT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r9
	jg	LBB0_4
## %bb.3:
	movl	8(%r12), %eax
	movq	_QED_IWARP_IRD_DEFAULT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_5
LBB0_4:
	movl	(%r13), %esi
	movq	16(%r12), %rax
	movl	8(%rax), %ecx
	movl	68(%rbx), %r8d
	movq	%r9, (%rsp)
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_DP_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_13
LBB0_5:
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_qed_iwarp_prealloc_ep
	movl	28(%r12), %eax
	movl	%eax, 64(%rbx)
	movq	16(%r12), %rax
	movq	%rax, 56(%rbx)
	movq	%rbx, (%rax)
	movq	(%rbx), %rcx
	movq	_MPA_NEGOTIATION_TYPE_ENHANCED@GOTPCREL(%rip), %rdx
	movq	(%r12), %rax
	cmpq	(%rdx), %rcx
	jne	LBB0_11
## %bb.6:
	movq	24(%rbx), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_8
## %bb.7:
	movq	%rcx, (%r12)
	movq	%rcx, %rax
LBB0_8:
	movq	_MPA_RTR_TYPE_ZERO_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rbx)
	je	LBB0_11
## %bb.9:
	cmpl	$0, 8(%r12)
	jne	LBB0_11
## %bb.10:
	movl	$1, 8(%r12)
LBB0_11:
	movq	%rax, 32(%rbx)
	movslq	8(%r12), %rax
	movq	%rax, 24(%rbx)
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_qed_iwarp_mpa_v2_set_private
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%rbx)
	movl	12(%r12), %edx
	movslq	-44(%rbp), %rcx
	leal	(%rcx,%rdx), %esi
	movl	%esi, 40(%rbx)
	leaq	(%rax,%rcx,4), %rdi
	movl	24(%r12), %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_qed_iwarp_mpa_offload
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	movq	16(%r12), %rsi
	movq	_QED_IWARP_QP_STATE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_qed_iwarp_modify_qp
	movl	%ebx, %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Ep Context receive in accept is NULL\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QED_MSG_RDMA,4,2               ## @QED_MSG_RDMA
L_.str.1:                               ## @.str.1
	.asciz	"QP(0x%x) EP(0x%x)\n"

	.comm	_QED_IWARP_ORD_DEFAULT,8,3      ## @QED_IWARP_ORD_DEFAULT
	.comm	_QED_IWARP_IRD_DEFAULT,4,2      ## @QED_IWARP_IRD_DEFAULT
L_.str.2:                               ## @.str.2
	.asciz	"QP(0x%x) EP(0x%x) ERROR: Invalid ord(0x%x)/ird(0x%x)\n"

	.comm	_MPA_NEGOTIATION_TYPE_ENHANCED,8,3 ## @MPA_NEGOTIATION_TYPE_ENHANCED
	.comm	_MPA_RTR_TYPE_ZERO_READ,4,2     ## @MPA_RTR_TYPE_ZERO_READ
	.comm	_QED_IWARP_QP_STATE_ERROR,4,2   ## @QED_IWARP_QP_STATE_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_iwarp_accept               ; -- Begin function qed_iwarp_accept
	.p2align	2
_qed_iwarp_accept:                      ; @qed_iwarp_accept
	.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
	str	wzr, [sp, #28]
	ldr	x21, [x1, #32]
	cbz	x21, LBB0_4
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x22, _QED_MSG_RDMA@GOTPAGE
Lloh1:
	ldr	x22, [x22, _QED_MSG_RDMA@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	x8, [x20, #16]
	ldr	w3, [x8, #8]
	ldr	w4, [x21, #68]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_VERBOSE
	ldr	x8, [x20]
Lloh4:
	adrp	x9, _QED_IWARP_ORD_DEFAULT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _QED_IWARP_ORD_DEFAULT@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_3
; %bb.2:
	ldr	w9, [x20, #8]
Lloh7:
	adrp	x10, _QED_IWARP_IRD_DEFAULT@GOTPAGE
Lloh8:
	ldr	x10, [x10, _QED_IWARP_IRD_DEFAULT@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	cmp	w9, w10
	b.le	LBB0_7
LBB0_3:
	ldr	w1, [x22]
	ldr	x9, [x20, #16]
	ldr	w3, [x9, #8]
	ldr	w4, [x21, #68]
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	stp	x8, x8, [sp]
	mov	x0, x19
	bl	_DP_VERBOSE
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_ERR
LBB0_5:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	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
LBB0_7:
	mov	x0, x19
	mov	w1, #0
	bl	_qed_iwarp_prealloc_ep
	ldr	w8, [x20, #28]
	str	w8, [x21, #64]
	ldr	x8, [x20, #16]
	str	x8, [x21, #56]
	str	x21, [x8]
	ldr	x9, [x21]
Lloh17:
	adrp	x8, _MPA_NEGOTIATION_TYPE_ENHANCED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MPA_NEGOTIATION_TYPE_ENHANCED@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x8]
	ldr	x8, [x20]
	cmp	x9, x10
	b.ne	LBB0_13
; %bb.8:
	ldr	x9, [x21, #24]
	cmp	x8, x9
	b.le	LBB0_10
; %bb.9:
	str	x9, [x20]
	mov	x8, x9
LBB0_10:
	ldr	w9, [x21, #8]
Lloh20:
	adrp	x10, _MPA_RTR_TYPE_ZERO_READ@GOTPAGE
Lloh21:
	ldr	x10, [x10, _MPA_RTR_TYPE_ZERO_READ@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_13
; %bb.11:
	ldr	w9, [x20, #8]
	cbnz	w9, LBB0_13
; %bb.12:
	mov	w9, #1
	str	w9, [x20, #8]
LBB0_13:
	ldrsw	x9, [x20, #8]
	stp	x9, x8, [x21, #24]
	add	x2, sp, #28
	mov	x0, x19
	mov	x1, x21
	bl	_qed_iwarp_mpa_v2_set_private
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	str	x8, [x21, #48]
	ldr	w2, [x20, #12]
	ldrsw	x9, [sp, #28]
	add	w10, w9, w2
	str	w10, [x21, #40]
	add	x0, x8, x9, lsl #2
	ldr	w1, [x20, #24]
	bl	_memcpy
	mov	x0, x19
	mov	x1, x21
	bl	_qed_iwarp_mpa_offload
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.14:
	ldr	x1, [x20, #16]
Lloh23:
	adrp	x8, _QED_IWARP_QP_STATE_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _QED_IWARP_QP_STATE_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_qed_iwarp_modify_qp
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Ep Context receive in accept is NULL\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QED_MSG_RDMA,4,2               ; @QED_MSG_RDMA
l_.str.1:                               ; @.str.1
	.asciz	"QP(0x%x) EP(0x%x)\n"

	.comm	_QED_IWARP_ORD_DEFAULT,8,3      ; @QED_IWARP_ORD_DEFAULT
	.comm	_QED_IWARP_IRD_DEFAULT,4,2      ; @QED_IWARP_IRD_DEFAULT
l_.str.2:                               ; @.str.2
	.asciz	"QP(0x%x) EP(0x%x) ERROR: Invalid ord(0x%x)/ird(0x%x)\n"

	.comm	_MPA_NEGOTIATION_TYPE_ENHANCED,8,3 ; @MPA_NEGOTIATION_TYPE_ENHANCED
	.comm	_MPA_RTR_TYPE_ZERO_READ,4,2     ; @MPA_RTR_TYPE_ZERO_READ
	.comm	_QED_IWARP_QP_STATE_ERROR,4,2   ; @QED_IWARP_QP_STATE_ERROR
.subsections_via_symbols
