	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_rdma_create_qp
_qed_rdma_create_qp:                    ## @qed_rdma_create_qp
	.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, %r12
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movq	8(%r12), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_4
## %bb.5:
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	64(%rbx), %r8d
	movl	68(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movslq	(%rax), %rcx
	movslq	8(%rbx), %rdx
	cmpl	%ecx, %edx
	jge	LBB0_6
## %bb.7:
	movq	%r12, %rdi
	callq	_QED_IS_IWARP_PERSONALITY
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	movslq	(%rbx), %rdx
	leaq	(,%rdx,4), %rax
	movq	_IWARP_SHARED_QUEUE_PAGE_SQ_PBL_MAX_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jbe	LBB0_11
## %bb.9:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_10
LBB0_4:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r12, %rdx
	movq	%rbx, %rcx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_DP_ERR
LBB0_21:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_DP_ERR
	jmp	LBB0_21
LBB0_11:
	movslq	4(%rbx), %rdx
	leaq	(,%rdx,4), %rax
	movq	_IWARP_SHARED_QUEUE_PAGE_RQ_PBL_MAX_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jbe	LBB0_13
## %bb.12:
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_10:
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_DP_NOTICE
	xorl	%r15d, %r15d
	jmp	LBB0_21
LBB0_13:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$120, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%rax, %r15
	movq	_QED_ROCE_QP_STATE_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 112(%r15)
	movl	68(%rbx), %edi
	callq	_cpu_to_le32
	movq	%rax, 104(%r15)
	movl	64(%rbx), %edi
	callq	_cpu_to_le32
	movq	%rax, 96(%r15)
	movl	60(%rbx), %edi
	callq	_cpu_to_le32
	movq	%rax, 88(%r15)
	movl	56(%rbx), %edi
	callq	_cpu_to_le32
	movq	%rax, 80(%r15)
	movq	48(%rbx), %rax
	movq	%rax, 32(%r15)
	movl	44(%rbx), %ecx
	movl	%ecx, 72(%r15)
	movups	28(%rbx), %xmm0
	movups	%xmm0, 56(%r15)
	movl	(%rbx), %ecx
	movl	%ecx, (%r15)
	movl	4(%rbx), %ecx
	movl	%ecx, 4(%r15)
	movups	12(%rbx), %xmm0
	movups	%xmm0, 40(%r15)
	movq	$0, 8(%r15)
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movl	%ecx, 16(%r15)
	movl	8(%rbx), %eax
	movl	%eax, 28(%r15)
	movq	%r12, %rdi
	callq	_QED_IS_IWARP_PERSONALITY
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_qed_iwarp_create_qp
	movl	24(%r15), %ecx
	movl	%ecx, %edx
	jmp	LBB0_18
LBB0_14:
	xorl	%r15d, %r15d
	jmp	LBB0_21
LBB0_17:
	movq	%r15, %rsi
	addq	$24, %rsi
	movq	%r12, %rdi
	callq	_qed_roce_alloc_cid
	movl	24(%r15), %ecx
	movl	%ecx, %edx
	orl	$16711680, %edx                 ## imm = 0xFF0000
LBB0_18:
	movl	%edx, 20(%r15)
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movq	%r15, %rdi
	callq	_kfree
	xorl	%r15d, %r15d
	jmp	LBB0_21
LBB0_20:
	movl	%ecx, (%r14)
	movl	%edx, 4(%r14)
	movl	(%r13), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qed roce create qp failed due to NULL entry (rdma_cxt=%p, in=%p, out=%p, roce_info=?\n"

	.comm	_QED_MSG_RDMA,4,2               ## @QED_MSG_RDMA
L_.str.1:                               ## @.str.1
	.asciz	"qed rdma create qp called with qp_handle = %08x%08x\n"

L_.str.2:                               ## @.str.2
	.asciz	"qed rdma create qp failed due to invalid statistics queue %d. maximum is %d\n"

	.comm	_IWARP_SHARED_QUEUE_PAGE_SQ_PBL_MAX_SIZE,4,2 ## @IWARP_SHARED_QUEUE_PAGE_SQ_PBL_MAX_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"Sq num pages: %d exceeds maximum\n"

	.comm	_IWARP_SHARED_QUEUE_PAGE_RQ_PBL_MAX_SIZE,4,2 ## @IWARP_SHARED_QUEUE_PAGE_RQ_PBL_MAX_SIZE
L_.str.4:                               ## @.str.4
	.asciz	"Rq num pages: %d exceeds maximum\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_QED_ROCE_QP_STATE_RESET,4,2    ## @QED_ROCE_QP_STATE_RESET
L_.str.5:                               ## @.str.5
	.asciz	"Create QP, rc = %d\n"

	.no_dead_strip	_qed_rdma_create_qp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_rdma_create_qp
_qed_rdma_create_qp:                    ; @qed_rdma_create_qp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.1:
	cbz	x21, LBB0_8
; %bb.2:
	cbz	x20, LBB0_8
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_8
; %bb.4:
Lloh0:
	adrp	x23, _QED_MSG_RDMA@GOTPAGE
Lloh1:
	ldr	x23, [x23, _QED_MSG_RDMA@GOTPAGEOFF]
	ldr	w1, [x23]
	ldp	w8, w3, [x21, #64]
	str	x8, [sp]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_VERBOSE
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldrsw	x3, [x8]
	ldrsw	x2, [x21, #8]
	cmp	w2, w3
	b.ge	LBB0_12
; %bb.5:
	mov	x0, x19
	bl	_QED_IS_IWARP_PERSONALITY
	cbz	x0, LBB0_16
; %bb.6:
	ldrsw	x2, [x21]
Lloh4:
	adrp	x8, _IWARP_SHARED_QUEUE_PAGE_SQ_PBL_MAX_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IWARP_SHARED_QUEUE_PAGE_SQ_PBL_MAX_SIZE@GOTPAGEOFF]
Lloh6:
	ldrsw	x8, [x8]
	cmp	x8, x2, lsl #2
	b.hs	LBB0_13
; %bb.7:
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_8:
	ldr	w0, [x19]
	str	x20, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x21
LBB0_9:
	bl	_DP_ERR
LBB0_10:
	mov	x22, #0
LBB0_11:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
LBB0_12:
	ldr	w0, [x19]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_13:
	ldrsw	x2, [x21, #4]
Lloh13:
	adrp	x8, _IWARP_SHARED_QUEUE_PAGE_RQ_PBL_MAX_SIZE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IWARP_SHARED_QUEUE_PAGE_RQ_PBL_MAX_SIZE@GOTPAGEOFF]
Lloh15:
	ldrsw	x8, [x8]
	cmp	x8, x2, lsl #2
	b.hs	LBB0_16
; %bb.14:
	ldr	w0, [x19]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_15:
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_DP_NOTICE
	b	LBB0_10
LBB0_16:
Lloh18:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	w0, #120
	bl	_kzalloc
	mov	x22, x0
	cbz	x0, LBB0_11
; %bb.17:
Lloh21:
	adrp	x8, _QED_ROCE_QP_STATE_RESET@GOTPAGE
Lloh22:
	ldr	x8, [x8, _QED_ROCE_QP_STATE_RESET@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x22, #112]
	ldr	w0, [x21, #68]
	bl	_cpu_to_le32
	str	x0, [x22, #104]
	ldr	w0, [x21, #64]
	bl	_cpu_to_le32
	str	x0, [x22, #96]
	ldr	w0, [x21, #60]
	bl	_cpu_to_le32
	str	x0, [x22, #88]
	ldr	w0, [x21, #56]
	bl	_cpu_to_le32
	str	x0, [x22, #80]
	ldr	x8, [x21, #48]
	str	x8, [x22, #32]
	ldr	w9, [x21, #44]
	str	w9, [x22, #72]
	ldur	d0, [x21, #36]
	str	d0, [x22, #64]
	ldur	q0, [x21, #20]
	str	q0, [x22, #48]
	ldr	d0, [x21]
	str	d0, [x22]
	ldur	d0, [x21, #12]
	str	d0, [x22, #40]
	str	xzr, [x22, #8]
	cmp	x8, #0
	cset	w8, eq
	str	w8, [x22, #16]
	ldr	w8, [x21, #8]
	str	w8, [x22, #28]
	mov	x0, x19
	bl	_QED_IS_IWARP_PERSONALITY
	cbz	x0, LBB0_20
; %bb.18:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_qed_iwarp_create_qp
	ldr	w8, [x22, #24]
	mov	x9, x8
	str	w9, [x22, #20]
	cbz	w0, LBB0_21
LBB0_19:
	mov	x0, x22
	bl	_kfree
	b	LBB0_10
LBB0_20:
	add	x1, x22, #24
	mov	x0, x19
	bl	_qed_roce_alloc_cid
	ldr	w8, [x22, #24]
	orr	w9, w8, #0xff0000
	str	w9, [x22, #20]
	cbnz	w0, LBB0_19
LBB0_21:
	stp	w8, w9, [x20]
	ldr	w1, [x23]
Lloh24:
	adrp	x2, l_.str.5@PAGE
Lloh25:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	bl	_DP_VERBOSE
	b	LBB0_11
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qed roce create qp failed due to NULL entry (rdma_cxt=%p, in=%p, out=%p, roce_info=?\n"

	.comm	_QED_MSG_RDMA,4,2               ; @QED_MSG_RDMA
l_.str.1:                               ; @.str.1
	.asciz	"qed rdma create qp called with qp_handle = %08x%08x\n"

l_.str.2:                               ; @.str.2
	.asciz	"qed rdma create qp failed due to invalid statistics queue %d. maximum is %d\n"

	.comm	_IWARP_SHARED_QUEUE_PAGE_SQ_PBL_MAX_SIZE,4,2 ; @IWARP_SHARED_QUEUE_PAGE_SQ_PBL_MAX_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"Sq num pages: %d exceeds maximum\n"

	.comm	_IWARP_SHARED_QUEUE_PAGE_RQ_PBL_MAX_SIZE,4,2 ; @IWARP_SHARED_QUEUE_PAGE_RQ_PBL_MAX_SIZE
l_.str.4:                               ; @.str.4
	.asciz	"Rq num pages: %d exceeds maximum\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_QED_ROCE_QP_STATE_RESET,4,2    ; @QED_ROCE_QP_STATE_RESET
l_.str.5:                               ; @.str.5
	.asciz	"Create QP, rc = %d\n"

	.no_dead_strip	_qed_rdma_create_qp
.subsections_via_symbols
