	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_mbx_create_mq
_ocrdma_mbx_create_mq:                  ## @ocrdma_mbx_create_mq
	.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, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	16(%r14), %esi
	movl	20(%r14), %edi
	callq	_PAGES_4K_SPANNED
	movl	%eax, %r12d
	leaq	36(%rbx), %rdi
	movq	_OCRDMA_CMD_CREATE_MQ_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OCRDMA_SUBSYS_COMMON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %ecx
	callq	_ocrdma_init_mch
	movl	$1, 36(%rbx)
	movl	%r12d, (%rbx)
	movl	(%r13), %eax
	movq	_OCRDMA_CREATE_MQ_CQ_ID_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%r12d, %eax
	movl	%eax, (%rbx)
	movq	_OCRDMA_CREATE_MQ_ASYNC_CQ_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_OCRDMA_ASYNC_GRP5_EVE_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, 28(%rbx)
	movq	_OCRDMA_ASYNC_RDMA_EVE_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, 28(%rbx)
	movq	_OCRDMA_ASYNC_LINK_EVE_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, 28(%rbx)
	movl	(%r13), %eax
	movl	%eax, 4(%rbx)
	movl	12(%r14), %edi
	callq	_ocrdma_encoded_q_len
	movq	_OCRDMA_CREATE_MQ_RING_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, 4(%rbx)
	movq	_OCRDMA_CREATE_MQ_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	16(%rbx), %rdi
	movl	8(%r14), %edx
	movq	_PAGE_SIZE_4K@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %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:
	movl	8(%rbx), %ecx
	movl	%ecx, (%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_MQ_EXT,4,2   ## @OCRDMA_CMD_CREATE_MQ_EXT
	.comm	_OCRDMA_SUBSYS_COMMON,4,2       ## @OCRDMA_SUBSYS_COMMON
	.comm	_OCRDMA_CREATE_MQ_CQ_ID_SHIFT,4,2 ## @OCRDMA_CREATE_MQ_CQ_ID_SHIFT
	.comm	_OCRDMA_CREATE_MQ_ASYNC_CQ_VALID,4,2 ## @OCRDMA_CREATE_MQ_ASYNC_CQ_VALID
	.comm	_OCRDMA_ASYNC_GRP5_EVE_CODE,4,2 ## @OCRDMA_ASYNC_GRP5_EVE_CODE
	.comm	_OCRDMA_ASYNC_RDMA_EVE_CODE,4,2 ## @OCRDMA_ASYNC_RDMA_EVE_CODE
	.comm	_OCRDMA_ASYNC_LINK_EVE_CODE,4,2 ## @OCRDMA_ASYNC_LINK_EVE_CODE
	.comm	_OCRDMA_CREATE_MQ_RING_SIZE_SHIFT,4,2 ## @OCRDMA_CREATE_MQ_RING_SIZE_SHIFT
	.comm	_OCRDMA_CREATE_MQ_VALID,4,2     ## @OCRDMA_CREATE_MQ_VALID
	.comm	_PAGE_SIZE_4K,4,2               ## @PAGE_SIZE_4K
	.no_dead_strip	_ocrdma_mbx_create_mq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_mbx_create_mq
_ocrdma_mbx_create_mq:                  ; @ocrdma_mbx_create_mq
	.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	x23, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldp	w1, w0, [x19, #16]
	bl	_PAGES_4K_SPANNED
	mov	x22, x0
	add	x0, x20, #36
Lloh0:
	adrp	x8, _OCRDMA_CMD_CREATE_MQ_EXT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCRDMA_CMD_CREATE_MQ_EXT@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
	mov	w24, #1
	str	w22, [x20]
	ldr	w8, [x23]
Lloh6:
	adrp	x9, _OCRDMA_CREATE_MQ_CQ_ID_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OCRDMA_CREATE_MQ_CQ_ID_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	orr	w8, w8, w22
	str	w8, [x20]
Lloh9:
	adrp	x8, _OCRDMA_CREATE_MQ_ASYNC_CQ_VALID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OCRDMA_CREATE_MQ_ASYNC_CQ_VALID@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	stp	w8, w24, [x20, #32]
Lloh12:
	adrp	x8, _OCRDMA_ASYNC_GRP5_EVE_CODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OCRDMA_ASYNC_GRP5_EVE_CODE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_BIT
	str	w0, [x20, #28]
Lloh15:
	adrp	x8, _OCRDMA_ASYNC_RDMA_EVE_CODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OCRDMA_ASYNC_RDMA_EVE_CODE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_BIT
	ldr	w8, [x20, #28]
	orr	w8, w8, w0
	str	w8, [x20, #28]
Lloh18:
	adrp	x8, _OCRDMA_ASYNC_LINK_EVE_CODE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OCRDMA_ASYNC_LINK_EVE_CODE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_BIT
	ldr	w8, [x20, #28]
	orr	w8, w8, w0
	str	w8, [x20, #28]
	ldr	w8, [x23]
	str	w8, [x20, #4]
	ldr	w0, [x19, #12]
	bl	_ocrdma_encoded_q_len
Lloh21:
	adrp	x8, _OCRDMA_CREATE_MQ_RING_SIZE_SHIFT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _OCRDMA_CREATE_MQ_RING_SIZE_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
Lloh24:
	adrp	x8, _OCRDMA_CREATE_MQ_VALID@GOTPAGE
Lloh25:
	ldr	x8, [x8, _OCRDMA_CREATE_MQ_VALID@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	ldr	x0, [x20, #16]
	ldr	w2, [x19, #8]
Lloh27:
	adrp	x8, _PAGE_SIZE_4K@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PAGE_SIZE_4K@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	mov	x1, x22
	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]
	stp	w8, w24, [x19]
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	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OCRDMA_CMD_CREATE_MQ_EXT,4,2   ; @OCRDMA_CMD_CREATE_MQ_EXT
	.comm	_OCRDMA_SUBSYS_COMMON,4,2       ; @OCRDMA_SUBSYS_COMMON
	.comm	_OCRDMA_CREATE_MQ_CQ_ID_SHIFT,4,2 ; @OCRDMA_CREATE_MQ_CQ_ID_SHIFT
	.comm	_OCRDMA_CREATE_MQ_ASYNC_CQ_VALID,4,2 ; @OCRDMA_CREATE_MQ_ASYNC_CQ_VALID
	.comm	_OCRDMA_ASYNC_GRP5_EVE_CODE,4,2 ; @OCRDMA_ASYNC_GRP5_EVE_CODE
	.comm	_OCRDMA_ASYNC_RDMA_EVE_CODE,4,2 ; @OCRDMA_ASYNC_RDMA_EVE_CODE
	.comm	_OCRDMA_ASYNC_LINK_EVE_CODE,4,2 ; @OCRDMA_ASYNC_LINK_EVE_CODE
	.comm	_OCRDMA_CREATE_MQ_RING_SIZE_SHIFT,4,2 ; @OCRDMA_CREATE_MQ_RING_SIZE_SHIFT
	.comm	_OCRDMA_CREATE_MQ_VALID,4,2     ; @OCRDMA_CREATE_MQ_VALID
	.comm	_PAGE_SIZE_4K,4,2               ; @PAGE_SIZE_4K
	.no_dead_strip	_ocrdma_mbx_create_mq
.subsections_via_symbols
