	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_vortex_spdif_get
_snd_vortex_spdif_get:                  ## @snd_vortex_spdif_get
	.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
	movl	$0, (%rcx)
	movq	_IEC958_AES1_CON_ORIGINAL@GOTPCREL(%rip), %rdx
	movq	_IEC958_AES1_CON_DIGDIGCONV_ID@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	movl	%esi, 4(%rcx)
	movl	$0, 8(%rcx)
	movl	(%rax), %eax
	cmpl	$32000, %eax                    ## imm = 0x7D00
	je	LBB0_1
## %bb.2:
	cmpl	$48000, %eax                    ## imm = 0xBB80
	je	LBB0_5
## %bb.3:
	cmpl	$44100, %eax                    ## imm = 0xAC44
	jne	LBB0_7
## %bb.4:
	movq	_IEC958_AES3_CON_FS_44100@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_IEC958_AES3_CON_FS_32000@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_IEC958_AES3_CON_FS_48000@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, 12(%rcx)
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEC958_AES1_CON_ORIGINAL,4,2   ## @IEC958_AES1_CON_ORIGINAL
	.comm	_IEC958_AES1_CON_DIGDIGCONV_ID,4,2 ## @IEC958_AES1_CON_DIGDIGCONV_ID
	.comm	_IEC958_AES3_CON_FS_32000,4,2   ## @IEC958_AES3_CON_FS_32000
	.comm	_IEC958_AES3_CON_FS_44100,4,2   ## @IEC958_AES3_CON_FS_44100
	.comm	_IEC958_AES3_CON_FS_48000,4,2   ## @IEC958_AES3_CON_FS_48000
	.no_dead_strip	_snd_vortex_spdif_get
.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_get
_snd_vortex_spdif_get:                  ; @snd_vortex_spdif_get
	.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]
	str	wzr, [x8]
Lloh0:
	adrp	x9, _IEC958_AES1_CON_ORIGINAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEC958_AES1_CON_ORIGINAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _IEC958_AES1_CON_DIGDIGCONV_ID@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IEC958_AES1_CON_DIGDIGCONV_ID@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	stp	w9, wzr, [x8, #4]
	ldr	w9, [x0]
	mov	w10, #32000
	cmp	w9, w10
	b.eq	LBB0_4
; %bb.1:
	mov	w10, #48000
	cmp	w9, w10
	b.eq	LBB0_5
; %bb.2:
	mov	w10, #44100
	cmp	w9, w10
	b.ne	LBB0_7
; %bb.3:
Lloh6:
	adrp	x9, _IEC958_AES3_CON_FS_44100@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEC958_AES3_CON_FS_44100@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x9, _IEC958_AES3_CON_FS_32000@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IEC958_AES3_CON_FS_32000@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x9, _IEC958_AES3_CON_FS_48000@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IEC958_AES3_CON_FS_48000@GOTPAGEOFF]
LBB0_6:
	ldr	w9, [x9]
	str	w9, [x8, #12]
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IEC958_AES1_CON_ORIGINAL,4,2   ; @IEC958_AES1_CON_ORIGINAL
	.comm	_IEC958_AES1_CON_DIGDIGCONV_ID,4,2 ; @IEC958_AES1_CON_DIGDIGCONV_ID
	.comm	_IEC958_AES3_CON_FS_32000,4,2   ; @IEC958_AES3_CON_FS_32000
	.comm	_IEC958_AES3_CON_FS_44100,4,2   ; @IEC958_AES3_CON_FS_44100
	.comm	_IEC958_AES3_CON_FS_48000,4,2   ; @IEC958_AES3_CON_FS_48000
	.no_dead_strip	_snd_vortex_spdif_get
.subsections_via_symbols
