	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_hdsp_put_pref_sync_ref
_snd_hdsp_put_pref_sync_ref:            ## @snd_hdsp_put_pref_sync_ref
	.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, %r14
	movq	%rax, %rdi
	callq	_snd_hdsp_use_is_exclusive
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	jae	LBB0_4
## %bb.5:
	movslq	%eax, %rcx
	leaq	L_switch.table.snd_hdsp_put_pref_sync_ref(%rip), %rsi
	movq	(%rbx), %rax
	movl	(%rax), %eax
	cltd
	idivl	(%rsi,%rcx,4)
	movl	%edx, %r15d
	movq	%r14, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_spin_lock_irq
	movq	%r14, %rdi
	callq	_hdsp_pref_sync_ref
	xorl	%ebx, %ebx
	cmpl	%eax, %r15d
	setne	%bl
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_hdsp_set_pref_sync_ref
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	jmp	LBB0_6
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_snd_hdsp_put_pref_sync_ref
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.snd_hdsp_put_pref_sync_ref
L_switch.table.snd_hdsp_put_pref_sync_ref:
	.long	4                               ## 0x4
	.long	6                               ## 0x6
	.long	3                               ## 0x3
	.long	6                               ## 0x6

.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_pref_sync_ref
_snd_hdsp_put_pref_sync_ref:            ; @snd_hdsp_put_pref_sync_ref
	.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_3
; %bb.1:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hs	LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, l_switch.table.snd_hdsp_put_pref_sync_ref@PAGE
Lloh1:
	add	x9, x9, l_switch.table.snd_hdsp_put_pref_sync_ref@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	ldr	x9, [x20]
	ldr	w9, [x9]
	sdiv	w10, w9, w8
	msub	w21, w10, w8, w9
	add	x22, x19, #4
	mov	x0, x22
	bl	_spin_lock_irq
	mov	x0, x19
	bl	_hdsp_pref_sync_ref
	cmp	w21, w0
	cset	w20, ne
	mov	x0, x19
	mov	x1, x21
	bl	_hdsp_set_pref_sync_ref
	mov	x0, x22
	bl	_spin_unlock_irq
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_snd_hdsp_put_pref_sync_ref
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.snd_hdsp_put_pref_sync_ref
l_switch.table.snd_hdsp_put_pref_sync_ref:
	.long	4                               ; 0x4
	.long	6                               ; 0x6
	.long	3                               ; 0x3
	.long	6                               ; 0x6

.subsections_via_symbols
