	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function delta_setup_spdif
_delta_setup_spdif:                     ## @delta_setup_spdif
	.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, %ebx
	movq	%rdi, %r15
	leaq	20(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%r15), %r12d
	movl	%r12d, %eax
	andl	$-7, %eax
	testb	$1, %r12b
	cmovel	%r12d, %eax
	cmpl	$48000, %ebx                    ## imm = 0xBB80
	je	LBB0_5
## %bb.1:
	cmpl	$44100, %ebx                    ## imm = 0xAC44
	je	LBB0_4
## %bb.2:
	cmpl	$32000, %ebx                    ## imm = 0x7D00
	jne	LBB0_6
## %bb.3:
	leal	(,%rax,4), %ebx
	andl	$4, %ebx
	jmp	LBB0_7
LBB0_5:
	testb	$1, %al
	movl	$8, %ecx
	movl	$2, %ebx
	cmovel	%ecx, %ebx
	jmp	LBB0_7
LBB0_4:
	movl	%eax, %ebx
	shll	$4, %ebx
	notl	%ebx
	andl	$16, %ebx
	jmp	LBB0_7
LBB0_6:
	xorl	%ecx, %ecx
	testb	$1, %al
	movl	$24, %ebx
	cmovnel	%ecx, %ebx
LBB0_7:
	orl	%eax, %ebx
	movl	%ebx, (%r15)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	cmpl	%ebx, %r12d
	je	LBB0_9
## %bb.8:
	movl	16(%r15), %edi
	movq	_SNDRV_CTL_EVENT_MASK_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r15), %rdx
	callq	_snd_ctl_notify
LBB0_9:
	movq	%r15, %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_ice1712_delta_cs8403_spdif_write ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_CTL_EVENT_MASK_VALUE,4,2 ## @SNDRV_CTL_EVENT_MASK_VALUE
	.no_dead_strip	_delta_setup_spdif
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function delta_setup_spdif
_delta_setup_spdif:                     ; @delta_setup_spdif
	.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
	add	x21, x0, #20
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w22, [x19]
	and	w8, w22, #0xfffffff9
	tst	w22, #0x1
	csel	w8, w22, w8, eq
	mov	w9, #48000
	tst	w8, #0x1
	mov	w10, #2
	mov	w11, #8
	csel	w10, w11, w10, eq
	mov	w11, #44100
	mov	w12, #16
	bic	w12, w12, w8, lsl #4
	mov	w13, #32000
	tst	w8, #0x1
	mov	w14, #24
	csel	w14, w14, wzr, eq
	ubfiz	w15, w8, #2, #1
	cmp	w20, w13
	csel	w13, w14, w15, ne
	cmp	w20, w11
	csel	w11, w12, w13, eq
	cmp	w20, w9
	csel	w9, w10, w11, eq
	orr	w20, w9, w8
	str	w20, [x19]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cmp	w22, w20
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x8, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x2, [x19, #8]
	bl	_snd_ctl_notify
LBB0_2:
	mov	x0, x19
	mov	x1, 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
	b	_snd_ice1712_delta_cs8403_spdif_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_CTL_EVENT_MASK_VALUE,4,2 ; @SNDRV_CTL_EVENT_MASK_VALUE
	.no_dead_strip	_delta_setup_spdif
.subsections_via_symbols
