	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_sample_rate
_set_sample_rate:                       ## @set_sample_rate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	leal	-50001(%rbx), %eax
	xorl	%edi, %edi
	cmpl	$-42001, %eax                   ## imm = 0xFFFF5BEF
	setb	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_3:
	movq	(%r14), %rax
	movq	_ECHO_CLOCK_INTERNAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.6:
	movq	%r14, %rdi
	callq	_wait_handshake
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_DE_ACT
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	16(%r14), %rcx
	movq	%rax, (%rcx)
	movl	%ebx, 8(%r14)
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movslq	%ebx, %rdi
	callq	_DE_ACT
	movl	%ebx, 8(%r14)
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	16(%r14), %rcx
	movq	%rax, (%rcx)
	movq	%r14, %rdi
	callq	_clear_handshake
	movq	_DSP_VC_SET_LAYLA_SAMPLE_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_send_vector                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ECHO_CLOCK_INTERNAL,8,3        ## @ECHO_CLOCK_INTERNAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set_sample_rate: Cannot set sample rate - clock not set to CLK_CLOCKININTERNAL\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_DSP_VC_SET_LAYLA_SAMPLE_RATE,4,2 ## @DSP_VC_SET_LAYLA_SAMPLE_RATE
	.no_dead_strip	_set_sample_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_sample_rate
_set_sample_rate:                       ; @set_sample_rate
	.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, x1
	mov	x19, x0
	mov	w8, #-50001
	mov	w9, #-42001
	add	w8, w1, w8
	cmp	w8, w9
	cset	w0, lo
	bl	_snd_BUG_ON
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_3:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _ECHO_CLOCK_INTERNAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ECHO_CLOCK_INTERNAL@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_wait_handshake
	cbz	x0, LBB0_8
; %bb.5:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_2
LBB0_6:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DE_ACT
	mov	x0, x20
	bl	_cpu_to_le32
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19, #16]
	str	x8, [x9]
	str	w20, [x19, #8]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	sxtw	x0, w20
	bl	_DE_ACT
	str	w20, [x19, #8]
	mov	x0, x20
	bl	_cpu_to_le32
	ldr	x8, [x19, #16]
	str	x0, [x8]
	mov	x0, x19
	bl	_clear_handshake
Lloh9:
	adrp	x8, _DSP_VC_SET_LAYLA_SAMPLE_RATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DSP_VC_SET_LAYLA_SAMPLE_RATE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_send_vector
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ECHO_CLOCK_INTERNAL,8,3        ; @ECHO_CLOCK_INTERNAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set_sample_rate: Cannot set sample rate - clock not set to CLK_CLOCKININTERNAL\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_DSP_VC_SET_LAYLA_SAMPLE_RATE,4,2 ; @DSP_VC_SET_LAYLA_SAMPLE_RATE
	.no_dead_strip	_set_sample_rate
.subsections_via_symbols
