	.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, %r14d
	movq	%rdi, %rbx
	callq	_wait_handshake
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_20:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movq	_INDIGO_EXPRESS_CLOCK_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cmpl	$63999, %r14d                   ## imm = 0xF9FF
	jg	LBB0_8
## %bb.4:
	cmpl	$32000, %r14d                   ## imm = 0x7D00
	je	LBB0_17
## %bb.5:
	cmpl	$44100, %r14d                   ## imm = 0xAC44
	je	LBB0_12
## %bb.6:
	cmpl	$48000, %r14d                   ## imm = 0xBB80
	jne	LBB0_16
## %bb.7:
	movq	_INDIGO_EXPRESS_48000@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_8:
	cmpl	$64000, %r14d                   ## imm = 0xFA00
	je	LBB0_13
## %bb.9:
	cmpl	$88200, %r14d                   ## imm = 0x15888
	je	LBB0_15
## %bb.10:
	cmpl	$96000, %r14d                   ## imm = 0x17700
	jne	LBB0_16
## %bb.11:
	movq	_INDIGO_EXPRESS_48000@GOTPCREL(%rip), %rdx
	jmp	LBB0_14
LBB0_17:
	movq	_INDIGO_EXPRESS_32000@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_13:
	movq	_INDIGO_EXPRESS_32000@GOTPCREL(%rip), %rdx
	jmp	LBB0_14
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_12:
	movq	_INDIGO_EXPRESS_44100@GOTPCREL(%rip), %rcx
LBB0_18:
	movl	(%rcx), %ecx
	jmp	LBB0_19
LBB0_15:
	movq	_INDIGO_EXPRESS_44100@GOTPCREL(%rip), %rdx
LBB0_14:
	movq	_INDIGO_EXPRESS_DOUBLE_SPEED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
LBB0_19:
	notl	%edi
	andl	%eax, %edi
	orl	%ecx, %edi
	xorl	%ecx, %ecx
	cmpl	%eax, %edi
	je	LBB0_20
## %bb.21:
	callq	_cpu_to_le32
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	%r14d, (%rbx)
	movq	%rbx, %rdi
	callq	_clear_handshake
	movq	_DSP_VC_UPDATE_CLOCKS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_send_vector                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_INDIGO_EXPRESS_CLOCK_MASK,4,2  ## @INDIGO_EXPRESS_CLOCK_MASK
	.comm	_INDIGO_EXPRESS_32000,4,2       ## @INDIGO_EXPRESS_32000
	.comm	_INDIGO_EXPRESS_44100,4,2       ## @INDIGO_EXPRESS_44100
	.comm	_INDIGO_EXPRESS_48000,4,2       ## @INDIGO_EXPRESS_48000
	.comm	_INDIGO_EXPRESS_DOUBLE_SPEED,4,2 ## @INDIGO_EXPRESS_DOUBLE_SPEED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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	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
	bl	_wait_handshake
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_le32_to_cpu
Lloh2:
	adrp	x8, _INDIGO_EXPRESS_CLOCK_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INDIGO_EXPRESS_CLOCK_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	w9, #63999
	cmp	w20, w9
	b.gt	LBB0_9
; %bb.5:
	mov	w9, #32000
	cmp	w20, w9
	b.eq	LBB0_13
; %bb.6:
	mov	w9, #44100
	cmp	w20, w9
	b.eq	LBB0_16
; %bb.7:
	mov	w9, #48000
	cmp	w20, w9
	b.ne	LBB0_15
; %bb.8:
Lloh5:
	adrp	x9, _INDIGO_EXPRESS_48000@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INDIGO_EXPRESS_48000@GOTPAGEOFF]
	b	LBB0_17
LBB0_9:
	mov	w9, #64000
	cmp	w20, w9
	b.eq	LBB0_14
; %bb.10:
	mov	w9, #22664
	movk	w9, #1, lsl #16
	cmp	w20, w9
	b.eq	LBB0_18
; %bb.11:
	mov	w9, #30464
	movk	w9, #1, lsl #16
	cmp	w20, w9
	b.ne	LBB0_15
; %bb.12:
Lloh7:
	adrp	x9, _INDIGO_EXPRESS_48000@GOTPAGE
Lloh8:
	ldr	x9, [x9, _INDIGO_EXPRESS_48000@GOTPAGEOFF]
	b	LBB0_19
LBB0_13:
Lloh9:
	adrp	x9, _INDIGO_EXPRESS_32000@GOTPAGE
Lloh10:
	ldr	x9, [x9, _INDIGO_EXPRESS_32000@GOTPAGEOFF]
	b	LBB0_17
LBB0_14:
Lloh11:
	adrp	x9, _INDIGO_EXPRESS_32000@GOTPAGE
Lloh12:
	ldr	x9, [x9, _INDIGO_EXPRESS_32000@GOTPAGEOFF]
	b	LBB0_19
LBB0_15:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_2
LBB0_16:
Lloh15:
	adrp	x9, _INDIGO_EXPRESS_44100@GOTPAGE
Lloh16:
	ldr	x9, [x9, _INDIGO_EXPRESS_44100@GOTPAGEOFF]
LBB0_17:
	ldr	w9, [x9]
	b	LBB0_20
LBB0_18:
Lloh17:
	adrp	x9, _INDIGO_EXPRESS_44100@GOTPAGE
Lloh18:
	ldr	x9, [x9, _INDIGO_EXPRESS_44100@GOTPAGEOFF]
LBB0_19:
	ldr	w9, [x9]
Lloh19:
	adrp	x10, _INDIGO_EXPRESS_DOUBLE_SPEED@GOTPAGE
Lloh20:
	ldr	x10, [x10, _INDIGO_EXPRESS_DOUBLE_SPEED@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	orr	w9, w10, w9
LBB0_20:
	bic	w8, w0, w8
	orr	w8, w9, w8
	cmp	w8, w0
	b.ne	LBB0_22
; %bb.21:
	mov	w0, #0
	b	LBB0_3
LBB0_22:
	mov	x0, x8
	bl	_cpu_to_le32
	ldr	x8, [x19, #8]
	str	w0, [x8]
	str	w20, [x19]
	mov	x0, x19
	bl	_clear_handshake
Lloh22:
	adrp	x8, _DSP_VC_UPDATE_CLOCKS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DSP_VC_UPDATE_CLOCKS@GOTPAGEOFF]
Lloh24:
	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 AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_INDIGO_EXPRESS_CLOCK_MASK,4,2  ; @INDIGO_EXPRESS_CLOCK_MASK
	.comm	_INDIGO_EXPRESS_32000,4,2       ; @INDIGO_EXPRESS_32000
	.comm	_INDIGO_EXPRESS_44100,4,2       ; @INDIGO_EXPRESS_44100
	.comm	_INDIGO_EXPRESS_48000,4,2       ; @INDIGO_EXPRESS_48000
	.comm	_INDIGO_EXPRESS_DOUBLE_SPEED,4,2 ; @INDIGO_EXPRESS_DOUBLE_SPEED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DSP_VC_UPDATE_CLOCKS,4,2       ; @DSP_VC_UPDATE_CLOCKS
	.no_dead_strip	_set_sample_rate
.subsections_via_symbols
