	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_vortex_spdif_put
_snd_vortex_spdif_put:                  ## @snd_vortex_spdif_put
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_snd_kcontrol_chip
	movq	(%rbx), %rcx
	movq	_IEC958_AES3_CON_FS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	12(%rcx), %edx
	cmpl	$129, %edx
	movl	$44100, %ecx                    ## imm = 0xAC44
	movl	$48000, %edi                    ## imm = 0xBB80
	cmovel	%ecx, %edi
	cmpl	$130, %edx
	movl	$32000, %esi                    ## imm = 0x7D00
	cmovnel	%edi, %esi
	xorl	%ebx, %ebx
	cmpl	(%rax), %esi
	je	LBB0_2
## %bb.1:
	movl	%esi, (%rax)
	movl	$1, %ebx
	movq	%rax, %rdi
	movl	$1, %edx
	callq	_vortex_spdif_init
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEC958_AES3_CON_FS,4,2         ## @IEC958_AES3_CON_FS
	.no_dead_strip	_snd_vortex_spdif_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_vortex_spdif_put
_snd_vortex_spdif_put:                  ; @snd_vortex_spdif_put
	.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	x19, x1
	bl	_snd_kcontrol_chip
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _IEC958_AES3_CON_FS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEC958_AES3_CON_FS@GOTPAGEOFF]
	ldr	w8, [x8, #12]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	mov	w9, #48000
	mov	w10, #44100
	cmp	w8, #129
	csel	w9, w10, w9, eq
	mov	w10, #32000
	cmp	w8, #130
	csel	w1, w10, w9, eq
	ldr	w8, [x0]
	cmp	w1, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_3
LBB0_2:
	str	w1, [x0]
	mov	w19, #1
	mov	w2, #1
	bl	_vortex_spdif_init
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEC958_AES3_CON_FS,4,2         ; @IEC958_AES3_CON_FS
	.no_dead_strip	_snd_vortex_spdif_put
.subsections_via_symbols
