	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_mcc_queues_create
_be_mcc_queues_create:                  ## @be_mcc_queues_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	_MCC_CQ_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	movl	$4, %ecx
	callq	_be_queue_alloc
	movl	$-1, %r15d
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	%rbx, %rdi
	callq	_mcc_eqo
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_be_cmd_cq_create
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	movq	_MCC_Q_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movl	$4, %ecx
	callq	_be_queue_alloc
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_be_cmd_mccq_create
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_be_queue_free
LBB0_6:
	movq	_QTYPE_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_be_cmd_q_destroy
LBB0_7:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_be_queue_free
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MCC_CQ_LEN,4,2                 ## @MCC_CQ_LEN
	.comm	_MCC_Q_LEN,4,2                  ## @MCC_Q_LEN
	.comm	_QTYPE_CQ,4,2                   ## @QTYPE_CQ
	.no_dead_strip	_be_mcc_queues_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_mcc_queues_create
_be_mcc_queues_create:                  ; @be_mcc_queues_create
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	add	x19, x0, #4
Lloh0:
	adrp	x8, _MCC_CQ_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCC_CQ_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x19
	mov	w3, #4
	bl	_be_queue_alloc
	cbnz	x0, LBB0_7
; %bb.1:
	mov	x0, x20
	bl	_mcc_eqo
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	mov	w3, #1
	mov	w4, #0
	bl	_be_cmd_cq_create
	cbnz	x0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _MCC_Q_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCC_Q_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x20
	mov	w3, #4
	bl	_be_queue_alloc
	cbnz	x0, LBB0_5
; %bb.3:
	mov	x0, x20
	mov	x1, x20
	mov	x2, x19
	bl	_be_cmd_mccq_create
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x20
	mov	x1, x20
	bl	_be_queue_free
LBB0_5:
Lloh6:
	adrp	x8, _QTYPE_CQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QTYPE_CQ@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_be_cmd_q_destroy
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_be_queue_free
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MCC_CQ_LEN,4,2                 ; @MCC_CQ_LEN
	.comm	_MCC_Q_LEN,4,2                  ; @MCC_Q_LEN
	.comm	_QTYPE_CQ,4,2                   ; @QTYPE_CQ
	.no_dead_strip	_be_mcc_queues_create
.subsections_via_symbols
