	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_rdma_create_cq
_qed_rdma_create_cq:                    ## @qed_rdma_create_cq
	.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, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	36(%r13), %r8d
	movl	40(%r13), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	movq	%r14, %rdi
	callq	_spin_lock_bh
	leaq	4(%r14), %r12
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_qed_rdma_bmap_alloc_id
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_2:
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	callq	_qed_cxt_get_proto_cid_start
	addq	-56(%rbp), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_QED_ELEM_CXT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_qed_cxt_dynamic_ilt_alloc
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -76(%rbp)
	movq	_QED_SPQ_MODE_EBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	_RDMA_RAMROD_CREATE_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%r14), %ecx
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r15, %r8
	callq	_qed_sp_init_request
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	-64(%rbp), %r15
	movl	40(%r13), %edi
	callq	_cpu_to_le32
	movq	%rax, 64(%r15)
	movl	36(%r13), %edi
	callq	_cpu_to_le32
	movq	%rax, 56(%r15)
	movl	32(%r13), %edi
	callq	_cpu_to_le16
	movq	%rax, 48(%r15)
	movl	28(%r13), %eax
	movl	%eax, 40(%r15)
	movl	24(%r13), %edi
	callq	_cpu_to_le32
	movq	%rax, 32(%r15)
	movl	24(%r15), %edi
	movl	20(%r13), %esi
	callq	_DMA_REGPAIR_LE
	movl	16(%r13), %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r15)
	movq	_QED_RDMA_CNQ_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_RESC_START
	addq	8(%r13), %rax
	movq	%rax, 8(%r15)
	movl	(%r13), %eax
	movl	%eax, 4(%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_qed_rdma_toggle_bit_create_resize_cq
	movl	%eax, (%r15)
	movq	-64(%rbp), %rsi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_qed_spq_post
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	movl	%eax, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_qed_rdma_toggle_bit_create_resize_cq
	movl	%r13d, %r15d
LBB0_6:
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_qed_bmap_release_id
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	leaq	L_.str.3(%rip), %rsi
LBB0_7:
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_DP_NOTICE
LBB0_8:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_MSG_RDMA,4,2               ## @QED_MSG_RDMA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cq_handle = %08x%08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Can't create CQ, rc = %d\n"

	.comm	_QED_ELEM_CXT,4,2               ## @QED_ELEM_CXT
	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ## @QED_SPQ_MODE_EBLOCK
	.comm	_RDMA_RAMROD_CREATE_CQ,4,2      ## @RDMA_RAMROD_CREATE_CQ
	.comm	_QED_RDMA_CNQ_RAM,4,2           ## @QED_RDMA_CNQ_RAM
L_.str.2:                               ## @.str.2
	.asciz	"Created CQ, rc = %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Create CQ failed, rc = %d\n"

	.no_dead_strip	_qed_rdma_create_cq
.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_cq
_qed_rdma_create_cq:                    ; @qed_rdma_create_cq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x25, _QED_MSG_RDMA@GOTPAGE
Lloh1:
	ldr	x25, [x25, _QED_MSG_RDMA@GOTPAGEOFF]
	ldr	w1, [x25]
	ldp	w8, w3, [x23, #36]
	str	x8, [sp]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_DP_VERBOSE
	mov	x0, x20
	bl	_spin_lock_bh
	add	x22, x20, #4
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x22
	bl	_qed_rdma_bmap_alloc_id
	mov	x24, x0
	mov	x0, x20
	bl	_spin_unlock_bh
	cbz	w24, LBB0_2
; %bb.1:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_2:
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_qed_cxt_get_proto_cid_start
	ldr	x8, [sp, #16]
	add	x2, x8, x0
	str	x2, [x21]
Lloh6:
	adrp	x8, _QED_ELEM_CXT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QED_ELEM_CXT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qed_cxt_dynamic_ilt_alloc
	mov	x24, x0
	cbnz	w0, LBB0_6
; %bb.3:
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x8, [x21]
	str	x8, [sp, #40]
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _QED_SPQ_MODE_EBLOCK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _QED_SPQ_MODE_EBLOCK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #32]
Lloh12:
	adrp	x8, _RDMA_RAMROD_CREATE_CQ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RDMA_RAMROD_CREATE_CQ@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldr	w3, [x20, #8]
	add	x1, sp, #24
	add	x4, sp, #32
	mov	x0, x19
	bl	_qed_sp_init_request
	mov	x24, x0
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	x24, [sp, #24]
	ldr	w0, [x23, #40]
	bl	_cpu_to_le32
	str	x0, [x24, #64]
	ldr	w0, [x23, #36]
	bl	_cpu_to_le32
	str	x0, [x24, #56]
	ldr	w0, [x23, #32]
	bl	_cpu_to_le16
	str	x0, [x24, #48]
	ldr	w8, [x23, #28]
	str	w8, [x24, #40]
	ldr	w0, [x23, #24]
	bl	_cpu_to_le32
	str	x0, [x24, #32]
	ldr	w0, [x24, #24]
	ldr	w1, [x23, #20]
	bl	_DMA_REGPAIR_LE
	ldr	w0, [x23, #16]
	bl	_cpu_to_le16
	str	x0, [x24, #16]
Lloh15:
	adrp	x8, _QED_RDMA_CNQ_RAM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QED_RDMA_CNQ_RAM@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RESC_START
	ldr	x8, [x23, #8]
	add	x8, x8, x0
	str	x8, [x24, #8]
	ldr	w8, [x23]
	str	w8, [x24, #4]
	ldr	x1, [x21]
	mov	x0, x19
	bl	_qed_rdma_toggle_bit_create_resize_cq
	str	w0, [x24]
	ldr	x1, [sp, #24]
	mov	x0, x19
	mov	x2, #0
	bl	_qed_spq_post
	mov	x24, x0
	cbz	w0, LBB0_9
; %bb.5:
	ldr	x1, [x21]
	mov	x0, x19
	bl	_qed_rdma_toggle_bit_create_resize_cq
LBB0_6:
	mov	x0, x20
	bl	_spin_lock_bh
	ldr	x2, [sp, #16]
	mov	x0, x19
	mov	x1, x22
	bl	_qed_bmap_release_id
	mov	x0, x20
	bl	_spin_unlock_bh
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_7:
	mov	x0, x19
	mov	x2, x24
	bl	_DP_NOTICE
LBB0_8:
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_9:
	ldr	w1, [x25]
Lloh20:
	adrp	x2, l_.str.2@PAGE
Lloh21:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	bl	_DP_VERBOSE
	b	LBB0_8
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_MSG_RDMA,4,2               ; @QED_MSG_RDMA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cq_handle = %08x%08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Can't create CQ, rc = %d\n"

	.comm	_QED_ELEM_CXT,4,2               ; @QED_ELEM_CXT
	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ; @QED_SPQ_MODE_EBLOCK
	.comm	_RDMA_RAMROD_CREATE_CQ,4,2      ; @RDMA_RAMROD_CREATE_CQ
	.comm	_QED_RDMA_CNQ_RAM,4,2           ; @QED_RDMA_CNQ_RAM
l_.str.2:                               ; @.str.2
	.asciz	"Created CQ, rc = %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Create CQ failed, rc = %d\n"

	.no_dead_strip	_qed_rdma_create_cq
.subsections_via_symbols
