	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_hdsp_put_clock_source
_snd_hdsp_put_clock_source:             ## @snd_hdsp_put_clock_source
	.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
	movq	%rsi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_snd_hdsp_use_is_exclusive
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movl	(%rax), %ebx
	xorl	%r14d, %r14d
	testl	%ebx, %ebx
	cmovlel	%r14d, %ebx
	movq	(%r15), %rax
	movq	_H9632@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	leal	(%rdx,%rdx,2), %eax
	addl	$6, %eax
	cmpl	%ebx, %eax
	cmovbl	%eax, %ebx
	movq	%r15, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_spin_lock_irq
	movq	%r15, %rdi
	callq	_hdsp_clock_source
	cmpl	%eax, %ebx
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_hdsp_set_clock_source
	xorl	%r14d, %r14d
	testq	%rax, %rax
	sete	%r14b
LBB0_4:
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	jmp	LBB0_5
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_H9632,8,3                      ## @H9632
	.no_dead_strip	_snd_hdsp_put_clock_source
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_hdsp_put_clock_source
_snd_hdsp_put_clock_source:             ; @snd_hdsp_put_clock_source
	.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
	bl	_snd_kcontrol_chip
	mov	x19, x0
	bl	_snd_hdsp_use_is_exclusive
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	mov	x20, x19
	ldr	x9, [x20], #8
Lloh0:
	adrp	x10, _H9632@GOTPAGE
Lloh1:
	ldr	x10, [x10, _H9632@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	mov	w9, #6
	mov	w10, #9
	csel	w9, w10, w9, eq
	cmp	w9, w8
	csel	w21, w9, w8, lo
	mov	x0, x20
	bl	_spin_lock_irq
	mov	x0, x19
	bl	_hdsp_clock_source
	mov	w22, #0
	cmp	w21, w0
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_hdsp_set_clock_source
	cmp	x0, #0
	cset	w22, eq
LBB0_3:
	mov	x0, x20
	bl	_spin_unlock_irq
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_H9632,8,3                      ; @H9632
	.no_dead_strip	_snd_hdsp_put_clock_source
.subsections_via_symbols
