	.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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	cmpl	$47999, %esi                    ## imm = 0xBB7F
	jle	LBB0_1
## %bb.4:
	cmpl	$48000, %r15d                   ## imm = 0xBB80
	je	LBB0_11
## %bb.5:
	cmpl	$96000, %r15d                   ## imm = 0x17700
	je	LBB0_6
## %bb.7:
	cmpl	$88200, %r15d                   ## imm = 0x15888
	jne	LBB0_10
## %bb.8:
	movq	_MIA_88200@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_1:
	cmpl	$32000, %r15d                   ## imm = 0x7D00
	je	LBB0_9
## %bb.2:
	cmpl	$44100, %r15d                   ## imm = 0xAC44
	jne	LBB0_10
## %bb.3:
	movq	_MIA_44100@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_MIA_48000@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	movq	_MIA_96000@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_9:
	movq	_MIA_32000@GOTPCREL(%rip), %rax
LBB0_12:
	movq	_ECHO_CLOCK_SPDIF@GOTPCREL(%rip), %rdx
	movq	(%r14), %rsi
	movq	16(%r14), %rcx
	xorl	%r12d, %r12d
	movl	$0, %ebx
	cmpq	(%rdx), %rsi
	jne	LBB0_14
## %bb.13:
	movq	_MIA_SPDIF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
LBB0_14:
	orl	(%rax), %ebx
	movq	(%rcx), %rdi
	callq	_le32_to_cpu
	cmpl	%eax, %ebx
	je	LBB0_18
## %bb.15:
	movq	%r14, %rdi
	callq	_wait_handshake
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_10:
	movslq	%r15d, %rdi
	callq	_DE_ACT
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_17:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_18:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movl	%r15d, %edi
	callq	_cpu_to_le32
	movq	16(%r14), %rcx
	movq	%rax, 8(%rcx)
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	16(%r14), %rcx
	movq	%rax, (%rcx)
	movl	%r15d, 8(%r14)
	movq	%r14, %rdi
	callq	_clear_handshake
	movq	_DSP_VC_UPDATE_CLOCKS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_send_vector                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MIA_96000,4,2                  ## @MIA_96000
	.comm	_MIA_88200,4,2                  ## @MIA_88200
	.comm	_MIA_48000,4,2                  ## @MIA_48000
	.comm	_MIA_44100,4,2                  ## @MIA_44100
	.comm	_MIA_32000,4,2                  ## @MIA_32000
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ECHO_CLOCK_SPDIF,8,3           ## @ECHO_CLOCK_SPDIF
	.comm	_MIA_SPDIF,4,2                  ## @MIA_SPDIF
	.comm	_EIO,4,2                        ## @EIO
	.comm	_DSP_VC_UPDATE_CLOCKS,4,2       ## @DSP_VC_UPDATE_CLOCKS
	.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	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	x20, x1
	mov	x19, x0
	mov	w8, #47999
	cmp	w1, w8
	b.le	LBB0_5
; %bb.1:
	mov	w8, #48000
	cmp	w20, w8
	b.eq	LBB0_8
; %bb.2:
	mov	w8, #30464
	movk	w8, #1, lsl #16
	cmp	w20, w8
	b.eq	LBB0_9
; %bb.3:
	mov	w8, #22664
	movk	w8, #1, lsl #16
	cmp	w20, w8
	b.ne	LBB0_14
; %bb.4:
Lloh0:
	adrp	x8, _MIA_88200@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIA_88200@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
	mov	w8, #32000
	cmp	w20, w8
	b.eq	LBB0_10
; %bb.6:
	mov	w8, #44100
	cmp	w20, w8
	b.ne	LBB0_14
; %bb.7:
Lloh2:
	adrp	x8, _MIA_44100@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MIA_44100@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh4:
	adrp	x8, _MIA_48000@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MIA_48000@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh6:
	adrp	x8, _MIA_96000@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MIA_96000@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh8:
	adrp	x8, _MIA_32000@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MIA_32000@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	ldr	x9, [x19]
Lloh10:
	adrp	x10, _ECHO_CLOCK_SPDIF@GOTPAGE
Lloh11:
	ldr	x10, [x10, _ECHO_CLOCK_SPDIF@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
Lloh13:
	adrp	x11, _MIA_SPDIF@GOTPAGE
Lloh14:
	ldr	x11, [x11, _MIA_SPDIF@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w9, w11, wzr, eq
	orr	w21, w9, w8
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	bl	_le32_to_cpu
	mov	x8, x0
	mov	w0, #0
	cmp	w21, w8
	b.eq	LBB0_16
; %bb.12:
	mov	x0, x19
	bl	_wait_handshake
	cbz	x0, LBB0_17
; %bb.13:
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
	sxtw	x0, w20
	bl	_DE_ACT
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	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
LBB0_17:
	mov	x0, x20
	bl	_cpu_to_le32
	ldr	x8, [x19, #16]
	str	x0, [x8, #8]
	mov	x0, x21
	bl	_cpu_to_le32
	ldr	x8, [x19, #16]
	str	x0, [x8]
	str	w20, [x19, #8]
	mov	x0, x19
	bl	_clear_handshake
Lloh20:
	adrp	x8, _DSP_VC_UPDATE_CLOCKS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DSP_VC_UPDATE_CLOCKS@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_send_vector
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MIA_96000,4,2                  ; @MIA_96000
	.comm	_MIA_88200,4,2                  ; @MIA_88200
	.comm	_MIA_48000,4,2                  ; @MIA_48000
	.comm	_MIA_44100,4,2                  ; @MIA_44100
	.comm	_MIA_32000,4,2                  ; @MIA_32000
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ECHO_CLOCK_SPDIF,8,3           ; @ECHO_CLOCK_SPDIF
	.comm	_MIA_SPDIF,4,2                  ; @MIA_SPDIF
	.comm	_EIO,4,2                        ; @EIO
	.comm	_DSP_VC_UPDATE_CLOCKS,4,2       ; @DSP_VC_UPDATE_CLOCKS
	.no_dead_strip	_set_sample_rate
.subsections_via_symbols
