	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rave_sp_exec                   ## -- Begin function rave_sp_exec
	.p2align	4, 0x90
_rave_sp_exec:                          ## @rave_sp_exec
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rcx, -80(%rbp)
	movq	%r8, -72(%rbp)
	callq	_COMPLETION_INITIALIZER_ONSTACK
	movl	%eax, -64(%rbp)
	movq	32(%r14), %rax
	movzbl	(%r12), %edi
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	leaq	24(%r14), %rdi
	callq	_atomic_inc_return
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r15
	movq	%rax, -56(%rbp)
	movl	%ebx, %edi
	callq	_rave_sp_reply_code
	movl	%eax, -60(%rbp)
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	4(%r14), %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	leaq	-80(%rbp), %rax
	movq	%rax, 8(%r14)
	movq	%r13, %rdi
	callq	_mutex_unlock
	movb	%bl, (%r12)
	movb	%r15b, 1(%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_rave_sp_write
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdi
	callq	_wait_for_completion_timeout
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	16(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	$0, 8(%r14)
	movq	%r13, %rdi
	callq	_mutex_unlock
LBB0_3:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_4:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HZ,4,2                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Command timeout\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rave_sp_exec                   ; -- Begin function rave_sp_exec
	.p2align	2
_rave_sp_exec:                          ; @rave_sp_exec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	stp	x3, x4, [sp]
	bl	_COMPLETION_INITIALIZER_ONSTACK
	str	w0, [sp, #16]
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldrb	w0, [x22]
	blr	x8
	mov	x20, x0
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x26, sp
	add	x24, x26, #16
	add	x0, x19, #24
	bl	_atomic_inc_return
	mov	x25, x0
	str	x0, [sp, #24]
	mov	w0, w20
	bl	_rave_sp_reply_code
	str	w0, [sp, #20]
	mov	x0, x19
	bl	_mutex_lock
	add	x23, x19, #4
	mov	x0, x23
	bl	_mutex_lock
	str	x26, [x19, #8]
	mov	x0, x23
	bl	_mutex_unlock
	strb	w20, [x22]
	strb	w25, [x22, #1]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_rave_sp_write
Lloh0:
	adrp	x8, _HZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_wait_for_completion_timeout
	cbz	w0, LBB0_3
; %bb.2:
	mov	w20, #0
	b	LBB0_4
LBB0_3:
	ldr	x0, [x19, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh5:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	mov	x0, x23
	bl	_mutex_lock
	str	xzr, [x19, #8]
	mov	x0, x23
	bl	_mutex_unlock
LBB0_4:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Command timeout\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
.subsections_via_symbols
