	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_set_loopback            ## -- Begin function be_cmd_set_loopback
	.p2align	4, 0x90
_be_cmd_set_loopback:                   ## @be_cmd_set_loopback
	.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
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_OPCODE_LOWLEVEL_SET_LOOPBACK_MODE@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	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	callq	_wrb_from_mccq
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_embedded_payload
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r14
	leaq	32(%rax), %rdi
	movl	(%r15), %esi
	movq	_OPCODE_LOWLEVEL_SET_LOOPBACK_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r15d, %r15d
	movl	$40, %ecx
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	_be_wrb_cmd_hdr_prepare
	movq	%r12, 24(%r14)
	movq	%r12, 16(%r14)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r14)
	movq	%r13, %rdi
	callq	_be_mcc_notify
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.6:
	movq	%r13, %rdi
	callq	_mutex_unlock
	addq	$4, %r13
	movq	_SET_LB_MODE_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	testl	%eax, %eax
	cmovnel	%r15d, %ebx
	jmp	LBB0_7
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movq	%r13, %rdi
	callq	_mutex_unlock
LBB0_7:
	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_SET_LOOPBACK_MODE,4,2 ## @OPCODE_LOWLEVEL_SET_LOOPBACK_MODE
	.comm	_CMD_SUBSYSTEM_LOWLEVEL,4,2     ## @CMD_SUBSYSTEM_LOWLEVEL
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_SET_LB_MODE_TIMEOUT,4,2        ## @SET_LB_MODE_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_set_loopback            ; -- Begin function be_cmd_set_loopback
	.p2align	2
_be_cmd_set_loopback:                   ; @be_cmd_set_loopback
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x25, _OPCODE_LOWLEVEL_SET_LOOPBACK_MODE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _OPCODE_LOWLEVEL_SET_LOOPBACK_MODE@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh2:
	adrp	x26, _CMD_SUBSYSTEM_LOWLEVEL@GOTPAGE
Lloh3:
	ldr	x26, [x26, _CMD_SUBSYSTEM_LOWLEVEL@GOTPAGEOFF]
	ldr	w2, [x26]
	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	x23, x0
	bl	_embedded_payload
	mov	x24, x0
	add	x0, x0, #32
	ldr	w1, [x26]
	ldr	w2, [x25]
	mov	w3, #40
	mov	x4, x23
	mov	x5, #0
	bl	_be_wrb_cmd_hdr_prepare
	stp	x22, x22, [x24, #16]
	stp	x20, x21, [x24]
	mov	x0, x19
	bl	_be_mcc_notify
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_mutex_unlock
	add	x19, x19, #4
Lloh4:
	adrp	x8, _SET_LB_MODE_TIMEOUT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SET_LB_MODE_TIMEOUT@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x19
	bl	_wait_for_completion_timeout
Lloh7:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w20, wzr, w8, ne
	b	LBB0_7
LBB0_4:
Lloh10:
	adrp	x8, _EPERM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_5:
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_OPCODE_LOWLEVEL_SET_LOOPBACK_MODE,4,2 ; @OPCODE_LOWLEVEL_SET_LOOPBACK_MODE
	.comm	_CMD_SUBSYSTEM_LOWLEVEL,4,2     ; @CMD_SUBSYSTEM_LOWLEVEL
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_SET_LB_MODE_TIMEOUT,4,2        ; @SET_LB_MODE_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
.subsections_via_symbols
