	.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	%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	%rsi, %r14
	movq	%rdi, %r15
	movq	16(%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
	movq	(%r15), %rax
	movq	_OCRDMA_GEN2_FAMILY@GOTPCREL(%rip), %r13
	xorl	%ecx, %ecx
	cmpq	(%r13), %rax
	setne	%cl
	addl	%ecx, %ecx
	movl	%ecx, 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	12(%r15), %edi
	movq	%rbx, %rsi
	movl	$32, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_be_roce_mcc_cmd
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	8(%rbx), %eax
	movzwl	%ax, %ecx
	movl	%ecx, 4(%r14)
	movq	(%r15), %rcx
	cmpq	(%r13), %rcx
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ocrdma_assign_eq_vect_gen2
	jmp	LBB0_4
LBB0_3:
	shrl	$16, %eax
	movl	%eax, (%r14)
	incl	8(%r15)
LBB0_4:
	movl	$1, 8(%r14)
LBB0_5:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_GEN2_FAMILY,8,3         ## @OCRDMA_GEN2_FAMILY
	.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	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	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #16]
	mov	x0, x21
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	add	x0, x21, #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
	ldr	x8, [x20]
Lloh6:
	adrp	x23, _OCRDMA_GEN2_FAMILY@GOTPAGE
Lloh7:
	ldr	x23, [x23, _OCRDMA_GEN2_FAMILY@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	cset	w8, ne
	lsl	w8, w8, #1
	mov	w9, #4
	str	w9, [x21]
Lloh8:
	adrp	x10, _OCRDMA_CREATE_EQ_VALID@GOTPAGE
Lloh9:
	ldr	x10, [x10, _OCRDMA_CREATE_EQ_VALID@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	stp	w10, w8, [x21, #24]
Lloh11:
	adrp	x8, _OCRDMA_CREATE_EQ_CNT_SHIFT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OCRDMA_CREATE_EQ_CNT_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	lsl	w8, w9, w8
	str	w8, [x21, #4]
	ldr	x0, [x21, #16]
	ldr	w2, [x19, #12]
Lloh14:
	adrp	x8, _PAGE_SIZE_4K@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PAGE_SIZE_4K@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	w1, #4
	bl	_ocrdma_build_q_pages
	ldr	w0, [x20, #12]
	mov	x1, x21
	mov	w2, #32
	mov	x3, #0
	mov	x4, #0
	bl	_be_roce_mcc_cmd
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	w8, [x21, #8]
	and	w9, w8, #0xffff
	str	w9, [x19, #4]
	ldr	x9, [x20]
	ldr	x10, [x23]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_ocrdma_assign_eq_vect_gen2
	b	LBB0_4
LBB0_3:
	lsr	w8, w8, #16
	str	w8, [x19]
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
LBB0_4:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_5:
	mov	x0, x22
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.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_GEN2_FAMILY,8,3         ; @OCRDMA_GEN2_FAMILY
	.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
