	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_mixart_prepare
_snd_mixart_prepare:                    ## @snd_mixart_prepare
	.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, %r15
	callq	_snd_pcm_substream_chip
	movq	%rax, %rbx
	movq	(%r15), %rax
	movq	8(%rax), %r14
	leaq	L_.str(%rip), %rdi
	callq	_snd_printdd
	movq	(%rbx), %rdi
	callq	_mixart_sync_nonblock_events
	movq	(%rbx), %rdi
	cmpl	$1, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
LBB0_2:
	movq	(%r14), %rsi
	xorl	%r14d, %r14d
	cmpl	$1, (%rsi)
	jne	LBB0_5
## %bb.3:
	movq	(%r15), %rax
	movl	(%rax), %edx
	callq	_mixart_set_clock
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"snd_mixart_prepare\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_mixart_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_mixart_prepare
_snd_mixart_prepare:                    ; @snd_mixart_prepare
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x21, [x8, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_printdd
	ldr	x0, [x20]
	bl	_mixart_sync_nonblock_events
	ldr	x0, [x20]
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	w8, [x8]
	str	w8, [x0, #4]
LBB0_2:
	ldr	x1, [x21]
	ldr	w8, [x1]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x19]
	ldr	w2, [x8]
	bl	_mixart_set_clock
	cbz	x0, LBB0_6
; %bb.4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"snd_mixart_prepare\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_mixart_prepare
.subsections_via_symbols
