	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_loopback_test           ## -- Begin function be_cmd_loopback_test
	.p2align	4, 0x90
_be_cmd_loopback_test:                  ## @be_cmd_loopback_test
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r14d
	movl	%ecx, %ebx
	movl	%edx, %r13d
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	_OPCODE_LOWLEVEL_LOOPBACK_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CMD_SUBSYSTEM_LOWLEVEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_be_cmd_allowed
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	callq	_wrb_from_mccq
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rdi
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%rax, %r14
	callq	_embedded_payload
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	%rax, %r13
	leaq	48(%rax), %rdi
	movl	(%r15), %esi
	movq	_OPCODE_LOWLEVEL_LOOPBACK_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %ecx
	movq	%r14, %r15
	movq	%r14, %r8
	xorl	%r9d, %r9d
	callq	_be_wrb_cmd_hdr_prepare
	movl	$15, %edi
	callq	_cpu_to_le32
	movq	%rax, 48(%r13)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le64
	movl	%eax, 40(%r13)
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	%rax, 32(%r13)
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%r13)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movq	%rax, 16(%r13)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movq	%rax, 8(%r13)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movq	%rax, (%r13)
	movq	%r12, %rdi
	callq	_be_mcc_notify
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.7:
	movq	%r12, %rdi
	callq	_mutex_unlock
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_wait_for_completion
	movq	%r15, %rdi
	callq	_embedded_payload
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_le32_to_cpu                    ## TAILCALL
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPCODE_LOWLEVEL_LOOPBACK_TEST,4,2 ## @OPCODE_LOWLEVEL_LOOPBACK_TEST
	.comm	_CMD_SUBSYSTEM_LOWLEVEL,4,2     ## @CMD_SUBSYSTEM_LOWLEVEL
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_loopback_test           ; -- Begin function be_cmd_loopback_test
	.p2align	2
_be_cmd_loopback_test:                  ; @be_cmd_loopback_test
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x5
	mov	x22, x4
	mov	x23, x3
	mov	x20, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x27, _OPCODE_LOWLEVEL_LOOPBACK_TEST@GOTPAGE
Lloh1:
	ldr	x27, [x27, _OPCODE_LOWLEVEL_LOOPBACK_TEST@GOTPAGEOFF]
	ldr	w1, [x27]
Lloh2:
	adrp	x28, _CMD_SUBSYSTEM_LOWLEVEL@GOTPAGE
Lloh3:
	ldr	x28, [x28, _CMD_SUBSYSTEM_LOWLEVEL@GOTPAGEOFF]
	ldr	w2, [x28]
	bl	_be_cmd_allowed
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_wrb_from_mccq
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	bl	_embedded_payload
	mov	x26, x0
	add	x0, x0, #48
	ldr	w1, [x28]
	ldr	w2, [x27]
	mov	w3, #56
	mov	x4, x21
	mov	x5, #0
	bl	_be_wrb_cmd_hdr_prepare
	mov	w0, #15
	bl	_cpu_to_le32
	str	x0, [x26, #48]
	mov	x0, x25
	bl	_cpu_to_le64
	str	w0, [x26, #40]
	mov	x0, x24
	bl	_cpu_to_le32
	str	x0, [x26, #32]
	mov	x0, x24
	bl	_cpu_to_le32
	str	x0, [x26, #24]
	mov	x0, x23
	bl	_cpu_to_le32
	str	x0, [x26, #16]
	mov	x0, x22
	bl	_cpu_to_le32
	str	x0, [x26, #8]
	mov	x0, x20
	bl	_cpu_to_le32
	str	x0, [x26]
	mov	x0, x19
	bl	_be_mcc_notify
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_mutex_unlock
	add	x0, x19, #4
	bl	_wait_for_completion
	mov	x0, x21
	bl	_embedded_payload
	ldr	w0, [x0]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_le32_to_cpu
LBB0_4:
Lloh4:
	adrp	x8, _EPERM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_5:
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_OPCODE_LOWLEVEL_LOOPBACK_TEST,4,2 ; @OPCODE_LOWLEVEL_LOOPBACK_TEST
	.comm	_CMD_SUBSYSTEM_LOWLEVEL,4,2     ; @CMD_SUBSYSTEM_LOWLEVEL
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
