	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_roce_alloc_cid             ## -- Begin function qed_roce_alloc_cid
	.p2align	4, 0x90
_qed_roce_alloc_cid:                    ## @qed_roce_alloc_cid
	.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	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rdi), %r13
	movq	%r13, %rdi
	callq	_spin_lock_bh
	leaq	4(%r13), %r15
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_qed_rdma_bmap_alloc_id
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	jmp	LBB0_9
LBB0_2:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_qed_rdma_bmap_alloc_id
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.3:
	movl	-48(%rbp), %eax
	subl	-44(%rbp), %eax
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.6:
	movl	8(%r13), %esi
	movq	%r14, %rdi
	callq	_qed_cxt_get_proto_cid_start
	addl	%eax, -44(%rbp)
	movl	8(%r13), %esi
	movq	%r14, %rdi
	callq	_qed_cxt_get_proto_cid_start
	addl	%eax, -48(%rbp)
	movq	_QED_ELEM_CXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	callq	_qed_cxt_dynamic_ilt_alloc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.7:
	movq	_QED_ELEM_CXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edx
	movq	%r14, %rdi
	callq	_qed_cxt_dynamic_ilt_alloc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.8:
	movslq	-44(%rbp), %rax
	movq	%rax, (%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_DP_NOTICE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_qed_bmap_release_id
	movl	-48(%rbp), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_qed_bmap_release_id
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_DP_VERBOSE
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %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	"Failed to allocate two adjacent qp's'\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QED_ELEM_CXT,4,2               ## @QED_ELEM_CXT
	.comm	_QED_MSG_RDMA,4,2               ## @QED_MSG_RDMA
L_.str.1:                               ## @.str.1
	.asciz	"Allocate CID - failed, rc = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_roce_alloc_cid             ; -- Begin function qed_roce_alloc_cid
	.p2align	2
_qed_roce_alloc_cid:                    ; @qed_roce_alloc_cid
	.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	x22, x1
	mov	x19, x0
	ldr	x20, [x0]
	mov	x0, x20
	bl	_spin_lock_bh
	add	x21, x20, #4
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_qed_rdma_bmap_alloc_id
	cbz	w0, LBB0_2
; %bb.1:
	mov	x23, x0
	mov	x0, x20
	bl	_spin_unlock_bh
	b	LBB0_9
LBB0_2:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_qed_rdma_bmap_alloc_id
	mov	x23, x0
	mov	x0, x20
	bl	_spin_unlock_bh
	cbnz	w23, LBB0_8
; %bb.3:
	ldp	w8, w9, [sp, #8]
	sub	w8, w8, w9
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.4:
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_qed_cxt_get_proto_cid_start
	ldr	w8, [sp, #12]
	add	w8, w8, w0
	str	w8, [sp, #12]
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_qed_cxt_get_proto_cid_start
	ldp	w8, w2, [sp, #8]
	add	w8, w8, w0
	str	w8, [sp, #8]
Lloh0:
	adrp	x24, _QED_ELEM_CXT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _QED_ELEM_CXT@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_qed_cxt_dynamic_ilt_alloc
	mov	x23, x0
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	w1, [x24]
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_qed_cxt_dynamic_ilt_alloc
	mov	x23, x0
	cbnz	w0, LBB0_8
; %bb.6:
	ldrsw	x8, [sp, #12]
	str	x8, [x22]
	b	LBB0_9
LBB0_7:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_8:
	mov	x0, x20
	bl	_spin_lock_bh
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x21
	bl	_qed_bmap_release_id
	ldr	w2, [sp, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_qed_bmap_release_id
	mov	x0, x20
	bl	_spin_unlock_bh
Lloh7:
	adrp	x8, _QED_MSG_RDMA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _QED_MSG_RDMA@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x23
	bl	_DP_VERBOSE
LBB0_9:
	mov	x0, x23
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate two adjacent qp's'\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QED_ELEM_CXT,4,2               ; @QED_ELEM_CXT
	.comm	_QED_MSG_RDMA,4,2               ; @QED_MSG_RDMA
l_.str.1:                               ; @.str.1
	.asciz	"Allocate CID - failed, rc = %d\n"

.subsections_via_symbols
