	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_rdma_create_srq
_qed_rdma_create_srq:                   ## @qed_rdma_create_srq
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	(%rdi), %rdi
	leaq	8(%rdi), %r14
	callq	_spin_lock_bh
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_qed_rdma_bmap_alloc_id
	movl	%eax, %ebx
	movq	(%r13), %rdi
	callq	_spin_unlock_bh
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_DP_NOTICE
	jmp	LBB0_7
LBB0_2:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	_QED_ELEM_SRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdx
	movq	%r13, %rdi
	callq	_qed_cxt_dynamic_ilt_alloc
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	-48(%rbp), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rbx
	movq	%rbx, -72(%rbp)
	movq	_QED_SPQ_MODE_EBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	_RDMA_RAMROD_CREATE_SRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r13), %rax
	movl	4(%rax), %ecx
	leaq	-64(%rbp), %rsi
	leaq	-80(%rbp), %r8
	movq	%r13, %rdi
	callq	_qed_sp_init_request
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %r15
	movq	-64(%rbp), %rbx
	movl	48(%rbx), %edi
	movl	28(%r12), %esi
	callq	_DMA_REGPAIR_LE
	movq	(%r12), %rdi
	callq	_cpu_to_le16
	movq	%rax, 40(%rbx)
	movq	8(%r12), %rdi
	callq	_cpu_to_le16
	movq	%rax, 32(%rbx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_cpu_to_le16
	movq	%rax, 24(%rbx)
	movq	%r15, %rdi
	callq	_cpu_to_le16
	movq	%rax, 16(%rbx)
	movq	16(%r12), %rdi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	movl	(%rbx), %edi
	movl	24(%r12), %esi
	callq	_DMA_REGPAIR_LE
	movq	-64(%rbp), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_qed_spq_post
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movq	(%r13), %rdi
	callq	_spin_lock_bh
	movq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_qed_bmap_release_id
	movq	(%r13), %rdi
	callq	_spin_unlock_bh
	movl	%r15d, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	callq	_DP_VERBOSE
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate srq id\n"

	.comm	_QED_ELEM_SRQ,4,2               ## @QED_ELEM_SRQ
	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ## @QED_SPQ_MODE_EBLOCK
	.comm	_RDMA_RAMROD_CREATE_SRQ,4,2     ## @RDMA_RAMROD_CREATE_SRQ
	.comm	_QED_MSG_RDMA,4,2               ## @QED_MSG_RDMA
L_.str.1:                               ## @.str.1
	.asciz	"SRQ created Id = %x\n"

	.no_dead_strip	_qed_rdma_create_srq
.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_srq
_qed_rdma_create_srq:                   ; @qed_rdma_create_srq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x1
	mov	x19, x0
	stp	xzr, xzr, [sp, #16]
	ldr	x0, [x0]
	add	x20, x0, #8
	bl	_spin_lock_bh
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	bl	_qed_rdma_bmap_alloc_id
	mov	x24, x0
	ldr	x0, [x19]
	bl	_spin_unlock_bh
	cbz	w24, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
	b	LBB0_6
LBB0_2:
Lloh2:
	adrp	x8, _QED_ELEM_SRQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QED_ELEM_SRQ@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	x2, [sp]
	mov	x0, x19
	bl	_qed_cxt_dynamic_ilt_alloc
	mov	x24, x0
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	x23, [sp]
	ldp	x8, x25, [x19]
	str	x25, [sp, #24]
Lloh5:
	adrp	x9, _QED_SPQ_MODE_EBLOCK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _QED_SPQ_MODE_EBLOCK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [sp, #16]
Lloh8:
	adrp	x9, _RDMA_RAMROD_CREATE_SRQ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RDMA_RAMROD_CREATE_SRQ@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x9]
	ldr	w3, [x8, #4]
	add	x1, sp, #8
	add	x4, sp, #16
	mov	x0, x19
	bl	_qed_sp_init_request
	mov	x24, x0
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x24, [sp, #8]
	ldr	w0, [x24, #48]
	ldr	w1, [x22, #28]
	bl	_DMA_REGPAIR_LE
	ldr	x0, [x22]
	bl	_cpu_to_le16
	str	x0, [x24, #40]
	ldr	x0, [x22, #8]
	bl	_cpu_to_le16
	str	x0, [x24, #32]
	mov	x0, x23
	bl	_cpu_to_le16
	str	x0, [x24, #24]
	mov	x0, x25
	bl	_cpu_to_le16
	str	x0, [x24, #16]
	ldr	x0, [x22, #16]
	bl	_cpu_to_le16
	str	x0, [x24, #8]
	ldr	w0, [x24]
	ldr	w1, [x22, #24]
	bl	_DMA_REGPAIR_LE
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	x2, #0
	bl	_qed_spq_post
	mov	x24, x0
	cbz	w0, LBB0_7
LBB0_5:
	ldr	x0, [x19]
	bl	_spin_lock_bh
	ldr	x2, [sp]
	mov	x0, x19
	mov	x1, x20
	bl	_qed_bmap_release_id
	ldr	x0, [x19]
	bl	_spin_unlock_bh
LBB0_6:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	str	x23, [x21]
Lloh11:
	adrp	x8, _QED_MSG_RDMA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QED_MSG_RDMA@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x23
	bl	_DP_VERBOSE
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate srq id\n"

	.comm	_QED_ELEM_SRQ,4,2               ; @QED_ELEM_SRQ
	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ; @QED_SPQ_MODE_EBLOCK
	.comm	_RDMA_RAMROD_CREATE_SRQ,4,2     ; @RDMA_RAMROD_CREATE_SRQ
	.comm	_QED_MSG_RDMA,4,2               ; @QED_MSG_RDMA
l_.str.1:                               ; @.str.1
	.asciz	"SRQ created Id = %x\n"

	.no_dead_strip	_qed_rdma_create_srq
.subsections_via_symbols
