	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_iwarp_create_qp            ## -- Begin function qed_iwarp_create_qp
	.p2align	4, 0x90
_qed_iwarp_create_qp:                   ## @qed_iwarp_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	movq	_IWARP_SHARED_QUEUE_PAGE_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdx
	callq	_dma_alloc_coherent
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_IWARP_SHARED_QUEUE_PAGE_SQ_PBL_OFFSET@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rdx
	movq	%rdx, 16(%rbx)
	movl	(%r12), %edx
	addl	%edx, %ecx
	movl	%ecx, (%rbx)
	movq	_IWARP_SHARED_QUEUE_PAGE_RQ_PBL_OFFSET@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, 8(%rbx)
	addl	%ecx, %edx
	movl	%edx, 4(%rbx)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_qed_iwarp_alloc_cid
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movl	-48(%rbp), %eax
	movl	%eax, 4(%r12)
	leaq	-72(%rbp), %rbx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	8(%r14), %eax
	movl	%eax, -72(%rbp)
	movl	4(%r12), %eax
	movl	%eax, -68(%rbp)
	movq	_QED_SPQ_MODE_EBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_IWARP_RAMROD_CMD_ID_CREATE_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PROTOCOLID_IWARP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	movq	%rbx, %r8
	callq	_qed_sp_init_request
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	-56(%rbp), %rbx
	movl	84(%rbx), %edi
	movq	_IWARP_CREATE_QP_RAMROD_DATA_FMR_AND_RESERVED_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	72(%r12), %edx
	callq	_SET_FIELD
	movl	84(%rbx), %edi
	movq	_IWARP_CREATE_QP_RAMROD_DATA_SIGNALED_COMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	68(%r12), %edx
	callq	_SET_FIELD
	movl	84(%rbx), %edi
	movq	_IWARP_CREATE_QP_RAMROD_DATA_RDMA_RD_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	64(%r12), %edx
	callq	_SET_FIELD
	movl	84(%rbx), %edi
	movq	_IWARP_CREATE_QP_RAMROD_DATA_RDMA_WR_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	60(%r12), %edx
	callq	_SET_FIELD
	movl	84(%rbx), %edi
	movq	_IWARP_CREATE_QP_RAMROD_DATA_ATOMIC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	56(%r12), %edx
	callq	_SET_FIELD
	movl	84(%rbx), %edi
	movq	_IWARP_CREATE_QP_RAMROD_DATA_SRQ_FLG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	52(%r12), %edx
	callq	_SET_FIELD
	movl	48(%r12), %eax
	movl	%eax, 80(%rbx)
	movl	44(%r12), %eax
	movl	%eax, 76(%rbx)
	movl	40(%r12), %eax
	movl	%eax, 72(%rbx)
	movl	8(%r12), %edi
	callq	_cpu_to_le16
	movq	%rax, 64(%rbx)
	movl	8(%r14), %edi
	callq	_cpu_to_le16
	movq	%rax, 56(%rbx)
	movl	32(%r12), %edi
	callq	_cpu_to_le32
	movq	%rax, 48(%rbx)
	movl	36(%r12), %edi
	callq	_cpu_to_le32
	movq	%rax, 40(%rbx)
	movl	8(%r14), %edi
	shll	$16, %edi
	orl	12(%r12), %edi
	callq	_cpu_to_le32
	movq	%rax, 32(%rbx)
	movl	8(%r14), %edi
	shll	$16, %edi
	orl	16(%r12), %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%rbx)
	movl	20(%r12), %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%rbx)
	movq	_PQ_FLAGS_OFLD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_qed_get_cm_pq_idx
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	movq	_PQ_FLAGS_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_qed_get_cm_pq_idx
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, (%rbx)
	movq	-56(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_qed_spq_post
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
LBB0_5:
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_qed_iwarp_cid_cleaned
LBB0_6:
	movq	(%r14), %rax
	movq	(%rax), %rdi
	movl	(%r13), %esi
	movq	24(%r12), %rdx
	movl	(%r12), %ecx
	callq	_dma_free_coherent
	movl	%ebx, %r15d
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWARP_SHARED_QUEUE_PAGE_SIZE,4,2 ## @IWARP_SHARED_QUEUE_PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IWARP_SHARED_QUEUE_PAGE_SQ_PBL_OFFSET,4,2 ## @IWARP_SHARED_QUEUE_PAGE_SQ_PBL_OFFSET
	.comm	_IWARP_SHARED_QUEUE_PAGE_RQ_PBL_OFFSET,4,2 ## @IWARP_SHARED_QUEUE_PAGE_RQ_PBL_OFFSET
	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ## @QED_SPQ_MODE_EBLOCK
	.comm	_IWARP_RAMROD_CMD_ID_CREATE_QP,4,2 ## @IWARP_RAMROD_CMD_ID_CREATE_QP
	.comm	_PROTOCOLID_IWARP,4,2           ## @PROTOCOLID_IWARP
	.comm	_IWARP_CREATE_QP_RAMROD_DATA_FMR_AND_RESERVED_EN,4,2 ## @IWARP_CREATE_QP_RAMROD_DATA_FMR_AND_RESERVED_EN
	.comm	_IWARP_CREATE_QP_RAMROD_DATA_SIGNALED_COMP,4,2 ## @IWARP_CREATE_QP_RAMROD_DATA_SIGNALED_COMP
	.comm	_IWARP_CREATE_QP_RAMROD_DATA_RDMA_RD_EN,4,2 ## @IWARP_CREATE_QP_RAMROD_DATA_RDMA_RD_EN
	.comm	_IWARP_CREATE_QP_RAMROD_DATA_RDMA_WR_EN,4,2 ## @IWARP_CREATE_QP_RAMROD_DATA_RDMA_WR_EN
	.comm	_IWARP_CREATE_QP_RAMROD_DATA_ATOMIC_EN,4,2 ## @IWARP_CREATE_QP_RAMROD_DATA_ATOMIC_EN
	.comm	_IWARP_CREATE_QP_RAMROD_DATA_SRQ_FLG,4,2 ## @IWARP_CREATE_QP_RAMROD_DATA_SRQ_FLG
	.comm	_PQ_FLAGS_OFLD,4,2              ## @PQ_FLAGS_OFLD
	.comm	_PQ_FLAGS_ACK,4,2               ## @PQ_FLAGS_ACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_iwarp_create_qp            ; -- Begin function qed_iwarp_create_qp
	.p2align	2
_qed_iwarp_create_qp:                   ; @qed_iwarp_create_qp
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x0, [x8]
Lloh0:
	adrp	x22, _IWARP_SHARED_QUEUE_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IWARP_SHARED_QUEUE_PAGE_SIZE@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x2, x19
	bl	_dma_alloc_coherent
	str	x0, [x19, #24]
	cbz	x0, LBB0_6
; %bb.1:
Lloh5:
	adrp	x8, _IWARP_SHARED_QUEUE_PAGE_SQ_PBL_OFFSET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IWARP_SHARED_QUEUE_PAGE_SQ_PBL_OFFSET@GOTPAGEOFF]
Lloh7:
	ldrsw	x8, [x8]
	add	x9, x0, x8, lsl #2
	str	x9, [x21, #16]
	ldr	w9, [x19]
	add	w8, w9, w8
Lloh8:
	adrp	x10, _IWARP_SHARED_QUEUE_PAGE_RQ_PBL_OFFSET@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IWARP_SHARED_QUEUE_PAGE_RQ_PBL_OFFSET@GOTPAGEOFF]
	str	w8, [x21]
Lloh10:
	ldrsw	x8, [x10]
	add	x10, x0, x8, lsl #2
	str	x10, [x21, #8]
	add	w8, w8, w9
	str	w8, [x21, #4]
	mov	x1, sp
	mov	x0, x20
	bl	_qed_iwarp_alloc_cid
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	x8, [sp]
	str	w8, [x19, #4]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	w8, [x20, #8]
	ldr	w9, [x19, #4]
	stp	w8, w9, [sp, #16]
Lloh11:
	adrp	x8, _QED_SPQ_MODE_EBLOCK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QED_SPQ_MODE_EBLOCK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh14:
	adrp	x8, _IWARP_RAMROD_CMD_ID_CREATE_QP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IWARP_RAMROD_CMD_ID_CREATE_QP@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _PROTOCOLID_IWARP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PROTOCOLID_IWARP@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	add	x1, sp, #8
	add	x4, sp, #16
	mov	x0, x20
	bl	_qed_sp_init_request
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x21, [sp, #8]
	ldr	w0, [x21, #84]
Lloh20:
	adrp	x8, _IWARP_CREATE_QP_RAMROD_DATA_FMR_AND_RESERVED_EN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IWARP_CREATE_QP_RAMROD_DATA_FMR_AND_RESERVED_EN@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w2, [x19, #72]
	bl	_SET_FIELD
	ldr	w0, [x21, #84]
Lloh23:
	adrp	x8, _IWARP_CREATE_QP_RAMROD_DATA_SIGNALED_COMP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IWARP_CREATE_QP_RAMROD_DATA_SIGNALED_COMP@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	w2, [x19, #68]
	bl	_SET_FIELD
	ldr	w0, [x21, #84]
Lloh26:
	adrp	x8, _IWARP_CREATE_QP_RAMROD_DATA_RDMA_RD_EN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IWARP_CREATE_QP_RAMROD_DATA_RDMA_RD_EN@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	w2, [x19, #64]
	bl	_SET_FIELD
	ldr	w0, [x21, #84]
Lloh29:
	adrp	x8, _IWARP_CREATE_QP_RAMROD_DATA_RDMA_WR_EN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IWARP_CREATE_QP_RAMROD_DATA_RDMA_WR_EN@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldr	w2, [x19, #60]
	bl	_SET_FIELD
	ldr	w0, [x21, #84]
Lloh32:
	adrp	x8, _IWARP_CREATE_QP_RAMROD_DATA_ATOMIC_EN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IWARP_CREATE_QP_RAMROD_DATA_ATOMIC_EN@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	w2, [x19, #56]
	bl	_SET_FIELD
	ldr	w0, [x21, #84]
Lloh35:
	adrp	x8, _IWARP_CREATE_QP_RAMROD_DATA_SRQ_FLG@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IWARP_CREATE_QP_RAMROD_DATA_SRQ_FLG@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	ldr	w2, [x19, #52]
	bl	_SET_FIELD
	ldr	w8, [x19, #48]
	str	w8, [x21, #80]
	ldr	d0, [x19, #40]
	str	d0, [x21, #72]
	ldr	w0, [x19, #8]
	bl	_cpu_to_le16
	str	x0, [x21, #64]
	ldr	w0, [x20, #8]
	bl	_cpu_to_le16
	str	x0, [x21, #56]
	ldr	w0, [x19, #32]
	bl	_cpu_to_le32
	str	x0, [x21, #48]
	ldr	w0, [x19, #36]
	bl	_cpu_to_le32
	str	x0, [x21, #40]
	ldr	w8, [x20, #8]
	ldr	w9, [x19, #12]
	orr	w0, w9, w8, lsl #16
	bl	_cpu_to_le32
	str	x0, [x21, #32]
	ldr	w8, [x20, #8]
	ldr	w9, [x19, #16]
	orr	w0, w9, w8, lsl #16
	bl	_cpu_to_le32
	str	x0, [x21, #24]
	ldr	w0, [x19, #20]
	bl	_cpu_to_le16
	str	x0, [x21, #16]
Lloh38:
	adrp	x8, _PQ_FLAGS_OFLD@GOTPAGE
Lloh39:
	ldr	x8, [x8, _PQ_FLAGS_OFLD@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_qed_get_cm_pq_idx
	bl	_cpu_to_le16
	str	x0, [x21, #8]
Lloh41:
	adrp	x8, _PQ_FLAGS_ACK@GOTPAGE
Lloh42:
	ldr	x8, [x8, _PQ_FLAGS_ACK@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_qed_get_cm_pq_idx
	bl	_cpu_to_le16
	str	x0, [x21]
	ldr	x1, [sp, #8]
	mov	x0, x20
	mov	x2, #0
	bl	_qed_spq_post
	mov	x21, x0
	cbz	w0, LBB0_7
LBB0_4:
	ldr	x1, [sp]
	mov	x0, x20
	bl	_qed_iwarp_cid_cleaned
LBB0_5:
	ldr	x8, [x20]
	ldr	x0, [x8]
	ldr	w1, [x22]
	ldr	x2, [x19, #24]
	ldr	w3, [x19]
	bl	_dma_free_coherent
	b	LBB0_7
LBB0_6:
Lloh44:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_IWARP_SHARED_QUEUE_PAGE_SIZE,4,2 ; @IWARP_SHARED_QUEUE_PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IWARP_SHARED_QUEUE_PAGE_SQ_PBL_OFFSET,4,2 ; @IWARP_SHARED_QUEUE_PAGE_SQ_PBL_OFFSET
	.comm	_IWARP_SHARED_QUEUE_PAGE_RQ_PBL_OFFSET,4,2 ; @IWARP_SHARED_QUEUE_PAGE_RQ_PBL_OFFSET
	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ; @QED_SPQ_MODE_EBLOCK
	.comm	_IWARP_RAMROD_CMD_ID_CREATE_QP,4,2 ; @IWARP_RAMROD_CMD_ID_CREATE_QP
	.comm	_PROTOCOLID_IWARP,4,2           ; @PROTOCOLID_IWARP
	.comm	_IWARP_CREATE_QP_RAMROD_DATA_FMR_AND_RESERVED_EN,4,2 ; @IWARP_CREATE_QP_RAMROD_DATA_FMR_AND_RESERVED_EN
	.comm	_IWARP_CREATE_QP_RAMROD_DATA_SIGNALED_COMP,4,2 ; @IWARP_CREATE_QP_RAMROD_DATA_SIGNALED_COMP
	.comm	_IWARP_CREATE_QP_RAMROD_DATA_RDMA_RD_EN,4,2 ; @IWARP_CREATE_QP_RAMROD_DATA_RDMA_RD_EN
	.comm	_IWARP_CREATE_QP_RAMROD_DATA_RDMA_WR_EN,4,2 ; @IWARP_CREATE_QP_RAMROD_DATA_RDMA_WR_EN
	.comm	_IWARP_CREATE_QP_RAMROD_DATA_ATOMIC_EN,4,2 ; @IWARP_CREATE_QP_RAMROD_DATA_ATOMIC_EN
	.comm	_IWARP_CREATE_QP_RAMROD_DATA_SRQ_FLG,4,2 ; @IWARP_CREATE_QP_RAMROD_DATA_SRQ_FLG
	.comm	_PQ_FLAGS_OFLD,4,2              ; @PQ_FLAGS_OFLD
	.comm	_PQ_FLAGS_ACK,4,2               ; @PQ_FLAGS_ACK
.subsections_via_symbols
