	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_rme9652_put_sync_pref
_snd_rme9652_put_sync_pref:             ## @snd_rme9652_put_sync_pref
	.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, %r14
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_snd_rme9652_use_is_exclusive
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%r15), %rax
	movq	_RME9652_NCHANNELS@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	sete	%sil
	addl	$3, %esi
	movq	(%r14), %rax
	movl	(%rax), %eax
	cltd
	idivl	%esi
	movl	%edx, %r14d
	movq	%r15, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_spin_lock_irq
	movq	%r15, %rdi
	callq	_rme9652_sync_pref
	xorl	%ebx, %ebx
	cmpl	%eax, %r14d
	setne	%bl
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_rme9652_set_sync_pref
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	jmp	LBB0_3
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_RME9652_NCHANNELS,8,3          ## @RME9652_NCHANNELS
	.no_dead_strip	_snd_rme9652_put_sync_pref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_rme9652_put_sync_pref
_snd_rme9652_put_sync_pref:             ; @snd_rme9652_put_sync_pref
	.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_rme9652_use_is_exclusive
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x19
	ldr	x8, [x21], #8
Lloh0:
	adrp	x9, _RME9652_NCHANNELS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RME9652_NCHANNELS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #3
	cinc	w8, w8, eq
	ldr	x9, [x20]
	ldr	w9, [x9]
	sdiv	w10, w9, w8
	msub	w22, w10, w8, w9
	mov	x0, x21
	bl	_spin_lock_irq
	mov	x0, x19
	bl	_rme9652_sync_pref
	cmp	w22, w0
	cset	w20, ne
	mov	x0, x19
	mov	x1, x22
	bl	_rme9652_set_sync_pref
	mov	x0, x21
	bl	_spin_unlock_irq
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_3:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_RME9652_NCHANNELS,8,3          ; @RME9652_NCHANNELS
	.no_dead_strip	_snd_rme9652_put_sync_pref
.subsections_via_symbols
