	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function patch_cm9780
_patch_cm9780:                          ## @patch_cm9780
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_patch_cm9780_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rdi)
	movq	_AC97_EI_SPDIF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_SNDRV_PCM_RATE_48000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rdi), %rcx
	movq	_AC97_RATES_SPDIF@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	_AC97_CM9780_SPDIF@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_snd_ac97_read
                                        ## kill: def $ax killed $ax def $eax
	orl	$1, %eax
	movl	(%r14), %esi
	movzwl	%ax, %edx
	movq	%rbx, %rdi
	callq	_snd_ac97_write_cache
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_patch_cm9780_ops,4,2           ## @patch_cm9780_ops
	.comm	_AC97_EI_SPDIF,4,2              ## @AC97_EI_SPDIF
	.comm	_SNDRV_PCM_RATE_48000,4,2       ## @SNDRV_PCM_RATE_48000
	.comm	_AC97_RATES_SPDIF,8,3           ## @AC97_RATES_SPDIF
	.comm	_AC97_CM9780_SPDIF,4,2          ## @AC97_CM9780_SPDIF
	.no_dead_strip	_patch_cm9780
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function patch_cm9780
_patch_cm9780:                          ; @patch_cm9780
	.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
Lloh0:
	adrp	x8, _patch_cm9780_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _patch_cm9780_ops@GOTPAGEOFF]
	str	x8, [x0, #16]
	ldr	w8, [x0]
Lloh2:
	adrp	x9, _AC97_EI_SPDIF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AC97_EI_SPDIF@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x8, _SNDRV_PCM_RATE_48000@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SNDRV_PCM_RATE_48000@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]
	str	w8, [x9, x10, lsl #2]
Lloh11:
	adrp	x20, _AC97_CM9780_SPDIF@GOTPAGE
Lloh12:
	ldr	x20, [x20, _AC97_CM9780_SPDIF@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_snd_ac97_read
	orr	w2, w0, #0x1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_ac97_write_cache
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_patch_cm9780_ops,4,2           ; @patch_cm9780_ops
	.comm	_AC97_EI_SPDIF,4,2              ; @AC97_EI_SPDIF
	.comm	_SNDRV_PCM_RATE_48000,4,2       ; @SNDRV_PCM_RATE_48000
	.comm	_AC97_RATES_SPDIF,8,3           ; @AC97_RATES_SPDIF
	.comm	_AC97_CM9780_SPDIF,4,2          ; @AC97_CM9780_SPDIF
	.no_dead_strip	_patch_cm9780
.subsections_via_symbols
