	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qedr_alloc_srq_kernel_params
_qedr_alloc_srq_kernel_params:          ## @qedr_alloc_srq_kernel_params
	.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, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rsi), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rdx
	movl	$4, %esi
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	-44(%rbp), %eax
	movl	%eax, 16(%r14)
	movq	%r15, 8(%r14)
	movq	_RDMA_MAX_SRQ_WQE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	imull	(%rbx), %r13d
	movq	16(%r12), %rax
	movq	(%rax), %rax
	movl	8(%r12), %edi
	movq	_QED_CHAIN_USE_TO_CONSUME_PRODUCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_QED_CHAIN_MODE_PBL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_QED_CHAIN_CNT_TYPE_U32@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_QEDR_SRQ_WQE_ELEM_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r9d
	leaq	4(%r14), %rbx
	movl	%r13d, %r8d
	pushq	$0
	pushq	%rbx
	callq	*(%rax)
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	movq	(%r12), %rdi
	movl	-44(%rbp), %ecx
	movl	$4, %esi
	movq	%r15, %rdx
	callq	_dma_free_coherent
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_DP_ERR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_3:
	movl	%r13d, (%r14)
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"create srq: failed to allocate dma memory for producer\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RDMA_MAX_SRQ_WQE_SIZE,4,2      ## @RDMA_MAX_SRQ_WQE_SIZE
	.comm	_QED_CHAIN_USE_TO_CONSUME_PRODUCE,4,2 ## @QED_CHAIN_USE_TO_CONSUME_PRODUCE
	.comm	_QED_CHAIN_MODE_PBL,4,2         ## @QED_CHAIN_MODE_PBL
	.comm	_QED_CHAIN_CNT_TYPE_U32,4,2     ## @QED_CHAIN_CNT_TYPE_U32
	.comm	_QEDR_SRQ_WQE_ELEM_SIZE,4,2     ## @QEDR_SRQ_WQE_ELEM_SIZE
	.no_dead_strip	_qedr_alloc_srq_kernel_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qedr_alloc_srq_kernel_params
_qedr_alloc_srq_kernel_params:          ; @qedr_alloc_srq_kernel_params
	.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, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x1]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x2, sp, #12
	mov	w1, #4
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	w8, [sp, #12]
	str	w8, [x20, #16]
	str	x0, [x20, #8]
	ldr	w8, [x22]
Lloh3:
	adrp	x9, _RDMA_MAX_SRQ_WQE_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RDMA_MAX_SRQ_WQE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mul	w22, w9, w8
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _QED_CHAIN_USE_TO_CONSUME_PRODUCE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _QED_CHAIN_USE_TO_CONSUME_PRODUCE@GOTPAGEOFF]
	ldr	w0, [x19, #8]
Lloh8:
	ldr	w1, [x9]
Lloh9:
	adrp	x9, _QED_CHAIN_MODE_PBL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _QED_CHAIN_MODE_PBL@GOTPAGEOFF]
Lloh11:
	adrp	x10, _QED_CHAIN_CNT_TYPE_U32@GOTPAGE
Lloh12:
	ldr	x10, [x10, _QED_CHAIN_CNT_TYPE_U32@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x9]
Lloh14:
	ldr	w3, [x10]
Lloh15:
	adrp	x9, _QEDR_SRQ_WQE_ELEM_SIZE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _QEDR_SRQ_WQE_ELEM_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w5, [x9]
	add	x6, x20, #4
	mov	x4, x22
	mov	x7, #0
	blr	x8
	mov	x23, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	x0, [x19]
	ldr	w3, [sp, #12]
	mov	w1, #4
	mov	x2, x21
	bl	_dma_free_coherent
	b	LBB0_5
LBB0_3:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_ERR
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_5
LBB0_4:
	str	w22, [x20]
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"create srq: failed to allocate dma memory for producer\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RDMA_MAX_SRQ_WQE_SIZE,4,2      ; @RDMA_MAX_SRQ_WQE_SIZE
	.comm	_QED_CHAIN_USE_TO_CONSUME_PRODUCE,4,2 ; @QED_CHAIN_USE_TO_CONSUME_PRODUCE
	.comm	_QED_CHAIN_MODE_PBL,4,2         ; @QED_CHAIN_MODE_PBL
	.comm	_QED_CHAIN_CNT_TYPE_U32,4,2     ; @QED_CHAIN_CNT_TYPE_U32
	.comm	_QEDR_SRQ_WQE_ELEM_SIZE,4,2     ; @QEDR_SRQ_WQE_ELEM_SIZE
	.no_dead_strip	_qedr_alloc_srq_kernel_params
.subsections_via_symbols
