	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function patch_cirrus_spdif
_patch_cirrus_spdif:                    ## @patch_cirrus_spdif
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_patch_cirrus_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rdi)
	movq	_AC97_CS_SPDIF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rdi)
	movq	_SNDRV_PCM_RATE_32000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	8(%rdi), %rcx
	movq	_AC97_RATES_SPDIF@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	andl	%eax, (%rcx,%rdx,4)
	movq	_AC97_EI_SPDIF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rdi)
	movq	_AC97_CSR_ACMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$128, %edx
	callq	_snd_ac97_write_cache
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_patch_cirrus_ops,4,2           ## @patch_cirrus_ops
	.comm	_AC97_CS_SPDIF,4,2              ## @AC97_CS_SPDIF
	.comm	_SNDRV_PCM_RATE_32000,4,2       ## @SNDRV_PCM_RATE_32000
	.comm	_AC97_RATES_SPDIF,8,3           ## @AC97_RATES_SPDIF
	.comm	_AC97_EI_SPDIF,4,2              ## @AC97_EI_SPDIF
	.comm	_AC97_CSR_ACMODE,4,2            ## @AC97_CSR_ACMODE
	.no_dead_strip	_patch_cirrus_spdif
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function patch_cirrus_spdif
_patch_cirrus_spdif:                    ; @patch_cirrus_spdif
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _patch_cirrus_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _patch_cirrus_ops@GOTPAGEOFF]
	str	x8, [x0, #24]
Lloh2:
	adrp	x8, _AC97_CS_SPDIF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AC97_CS_SPDIF@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x0, #16]
	orr	w8, w9, w8
	str	w8, [x0, #16]
Lloh5:
	adrp	x8, _SNDRV_PCM_RATE_32000@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SNDRV_PCM_RATE_32000@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [x0, #8]
Lloh8:
	adrp	x10, _AC97_RATES_SPDIF@GOTPAGE
Lloh9:
	ldr	x10, [x10, _AC97_RATES_SPDIF@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	bic	w8, w11, w8
	str	w8, [x9, x10]
Lloh11:
	adrp	x8, _AC97_EI_SPDIF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AC97_EI_SPDIF@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
Lloh14:
	adrp	x8, _AC97_CSR_ACMODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AC97_CSR_ACMODE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w2, #128
	bl	_snd_ac97_write_cache
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_patch_cirrus_ops,4,2           ; @patch_cirrus_ops
	.comm	_AC97_CS_SPDIF,4,2              ; @AC97_CS_SPDIF
	.comm	_SNDRV_PCM_RATE_32000,4,2       ; @SNDRV_PCM_RATE_32000
	.comm	_AC97_RATES_SPDIF,8,3           ; @AC97_RATES_SPDIF
	.comm	_AC97_EI_SPDIF,4,2              ; @AC97_EI_SPDIF
	.comm	_AC97_CSR_ACMODE,4,2            ; @AC97_CSR_ACMODE
	.no_dead_strip	_patch_cirrus_spdif
.subsections_via_symbols
