	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_mbx_create_eq
_ocrdma_mbx_create_eq:                  ## @ocrdma_mbx_create_eq
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	leaq	28(%rbx), %rdi
	movq	_OCRDMA_CMD_CREATE_EQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OCRDMA_SUBSYS_COMMON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %ecx
	callq	_ocrdma_init_mch
	movl	$2, 28(%rbx)
	movl	$4, (%rbx)
	movq	_OCRDMA_CREATE_EQ_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_OCRDMA_CREATE_EQ_CNT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$4, %eax
	shll	%cl, %eax
	movl	%eax, 4(%rbx)
	movq	16(%rbx), %rdi
	movl	12(%r14), %edx
	movq	_PAGE_SIZE_4K@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$4, %esi
	callq	_ocrdma_build_q_pages
	movl	(%r15), %edi
	movq	%rbx, %rsi
	movl	$32, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_be_roce_mcc_cmd
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	8(%rbx), %ecx
	movzwl	%cx, %edx
	movl	%edx, 4(%r14)
	shrl	$16, %ecx
	movl	%ecx, (%r14)
	movl	$1, 8(%r14)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCRDMA_CMD_CREATE_EQ,4,2       ## @OCRDMA_CMD_CREATE_EQ
	.comm	_OCRDMA_SUBSYS_COMMON,4,2       ## @OCRDMA_SUBSYS_COMMON
	.comm	_OCRDMA_CREATE_EQ_VALID,4,2     ## @OCRDMA_CREATE_EQ_VALID
	.comm	_OCRDMA_CREATE_EQ_CNT_SHIFT,4,2 ## @OCRDMA_CREATE_EQ_CNT_SHIFT
	.comm	_PAGE_SIZE_4K,4,2               ## @PAGE_SIZE_4K
	.no_dead_strip	_ocrdma_mbx_create_eq
.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_eq
_ocrdma_mbx_create_eq:                  ; @ocrdma_mbx_create_eq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	add	x0, x20, #28
Lloh0:
	adrp	x8, _OCRDMA_CMD_CREATE_EQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCRDMA_CMD_CREATE_EQ@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, #32
	bl	_ocrdma_init_mch
	mov	w8, #2
	mov	w9, #4
	str	w9, [x20]
Lloh6:
	adrp	x10, _OCRDMA_CREATE_EQ_VALID@GOTPAGE
Lloh7:
	ldr	x10, [x10, _OCRDMA_CREATE_EQ_VALID@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	stp	w10, w8, [x20, #24]
Lloh9:
	adrp	x8, _OCRDMA_CREATE_EQ_CNT_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OCRDMA_CREATE_EQ_CNT_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w8, w9, w8
	str	w8, [x20, #4]
	ldr	x0, [x20, #16]
	ldr	w2, [x19, #12]
Lloh12:
	adrp	x8, _PAGE_SIZE_4K@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PAGE_SIZE_4K@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	w1, #4
	bl	_ocrdma_build_q_pages
	ldr	w0, [x21]
	mov	x1, x20
	mov	w2, #32
	mov	x3, #0
	mov	x4, #0
	bl	_be_roce_mcc_cmd
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x20, #8]
	and	w9, w8, #0xffff
	lsr	w8, w8, #16
	stp	w8, w9, [x19]
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.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_EQ,4,2       ; @OCRDMA_CMD_CREATE_EQ
	.comm	_OCRDMA_SUBSYS_COMMON,4,2       ; @OCRDMA_SUBSYS_COMMON
	.comm	_OCRDMA_CREATE_EQ_VALID,4,2     ; @OCRDMA_CREATE_EQ_VALID
	.comm	_OCRDMA_CREATE_EQ_CNT_SHIFT,4,2 ; @OCRDMA_CREATE_EQ_CNT_SHIFT
	.comm	_PAGE_SIZE_4K,4,2               ; @PAGE_SIZE_4K
	.no_dead_strip	_ocrdma_mbx_create_eq
.subsections_via_symbols
