	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_mbx_mq_cq_create
_ocrdma_mbx_mq_cq_create:               ## @ocrdma_mbx_mq_cq_create
	.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, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	leaq	36(%rbx), %rdi
	movq	_OCRDMA_CMD_CREATE_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OCRDMA_SUBSYS_COMMON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %ecx
	callq	_ocrdma_init_mch
	movq	_OCRDMA_CREATE_CQ_VER2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movl	(%r14), %esi
	movq	_OCRDMA_MIN_Q_PAGE_SIZE@GOTPCREL(%rip), %r13
	movl	%esi, %eax
	cltd
	idivl	(%r13)
	movq	_OCRDMA_CREATE_CQ_PAGE_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	%eax, (%rbx)
	movl	20(%r14), %edi
	callq	_PAGES_4K_SPANNED
	orl	%eax, (%rbx)
	movq	_OCRDMA_CREATE_CQ_DEF_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	8(%r12), %rax
	movq	%rax, 24(%rbx)
	movl	(%r14), %eax
	movl	%eax, %ecx
	sarl	$2, %ecx
	movl	%ecx, 4(%rbx)
	movq	16(%rbx), %rdi
	cltd
	idivl	(%r13)
	movl	16(%r14), %edx
	movq	_PAGE_SIZE_4K@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %esi
	callq	_ocrdma_build_q_pages
	movl	(%r15), %edi
	movq	%rbx, %rsi
	movl	$40, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_be_roce_mcc_cmd
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_OCRDMA_CREATE_CQ_RSP_CQ_ID_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	8(%rbx), %ecx
	movslq	%ecx, %rcx
	movq	%rcx, 8(%r14)
	movl	$1, 4(%r14)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCRDMA_CMD_CREATE_CQ,4,2       ## @OCRDMA_CMD_CREATE_CQ
	.comm	_OCRDMA_SUBSYS_COMMON,4,2       ## @OCRDMA_SUBSYS_COMMON
	.comm	_OCRDMA_CREATE_CQ_VER2,4,2      ## @OCRDMA_CREATE_CQ_VER2
	.comm	_OCRDMA_MIN_Q_PAGE_SIZE,4,2     ## @OCRDMA_MIN_Q_PAGE_SIZE
	.comm	_OCRDMA_CREATE_CQ_PAGE_SIZE_SHIFT,4,2 ## @OCRDMA_CREATE_CQ_PAGE_SIZE_SHIFT
	.comm	_OCRDMA_CREATE_CQ_DEF_FLAGS,4,2 ## @OCRDMA_CREATE_CQ_DEF_FLAGS
	.comm	_PAGE_SIZE_4K,4,2               ## @PAGE_SIZE_4K
	.comm	_OCRDMA_CREATE_CQ_RSP_CQ_ID_MASK,4,2 ## @OCRDMA_CREATE_CQ_RSP_CQ_ID_MASK
	.no_dead_strip	_ocrdma_mbx_mq_cq_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_mbx_mq_cq_create
_ocrdma_mbx_mq_cq_create:               ; @ocrdma_mbx_mq_cq_create
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	add	x0, x20, #36
Lloh0:
	adrp	x8, _OCRDMA_CMD_CREATE_CQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCRDMA_CMD_CREATE_CQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _OCRDMA_SUBSYS_COMMON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OCRDMA_SUBSYS_COMMON@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w3, #40
	bl	_ocrdma_init_mch
Lloh6:
	adrp	x8, _OCRDMA_CREATE_CQ_VER2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OCRDMA_CREATE_CQ_VER2@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #36]
	ldr	w1, [x19]
Lloh9:
	adrp	x23, _OCRDMA_MIN_Q_PAGE_SIZE@GOTPAGE
Lloh10:
	ldr	x23, [x23, _OCRDMA_MIN_Q_PAGE_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	sdiv	w8, w1, w8
Lloh11:
	adrp	x9, _OCRDMA_CREATE_CQ_PAGE_SIZE_SHIFT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _OCRDMA_CREATE_CQ_PAGE_SIZE_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	str	w8, [x20]
	ldr	w0, [x19, #20]
	bl	_PAGES_4K_SPANNED
	ldr	w8, [x20]
	orr	w8, w8, w0
Lloh14:
	adrp	x9, _OCRDMA_CREATE_CQ_DEF_FLAGS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _OCRDMA_CREATE_CQ_DEF_FLAGS@GOTPAGEOFF]
	ldr	w10, [x19]
	asr	w11, w10, #2
	str	w8, [x20]
Lloh16:
	ldr	w8, [x9]
	str	w8, [x20, #32]
	ldr	x8, [x22, #8]
	str	x8, [x20, #24]
	str	w11, [x20, #4]
	ldr	x0, [x20, #16]
	ldr	w8, [x23]
	sdiv	w1, w10, w8
	ldr	w2, [x19, #16]
Lloh17:
	adrp	x8, _PAGE_SIZE_4K@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PAGE_SIZE_4K@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	bl	_ocrdma_build_q_pages
	ldr	w0, [x21]
	mov	x1, x20
	mov	w2, #40
	mov	x3, #0
	mov	x4, #0
	bl	_be_roce_mcc_cmd
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x20, #8]
Lloh20:
	adrp	x9, _OCRDMA_CREATE_CQ_RSP_CQ_ID_MASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _OCRDMA_CREATE_CQ_RSP_CQ_ID_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	and	w8, w9, w8
	sxtw	x8, w8
	str	x8, [x19, #8]
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_OCRDMA_CMD_CREATE_CQ,4,2       ; @OCRDMA_CMD_CREATE_CQ
	.comm	_OCRDMA_SUBSYS_COMMON,4,2       ; @OCRDMA_SUBSYS_COMMON
	.comm	_OCRDMA_CREATE_CQ_VER2,4,2      ; @OCRDMA_CREATE_CQ_VER2
	.comm	_OCRDMA_MIN_Q_PAGE_SIZE,4,2     ; @OCRDMA_MIN_Q_PAGE_SIZE
	.comm	_OCRDMA_CREATE_CQ_PAGE_SIZE_SHIFT,4,2 ; @OCRDMA_CREATE_CQ_PAGE_SIZE_SHIFT
	.comm	_OCRDMA_CREATE_CQ_DEF_FLAGS,4,2 ; @OCRDMA_CREATE_CQ_DEF_FLAGS
	.comm	_PAGE_SIZE_4K,4,2               ; @PAGE_SIZE_4K
	.comm	_OCRDMA_CREATE_CQ_RSP_CQ_ID_MASK,4,2 ; @OCRDMA_CREATE_CQ_RSP_CQ_ID_MASK
	.no_dead_strip	_ocrdma_mbx_mq_cq_create
.subsections_via_symbols
