	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ac97_digital_prepare
_ac97_digital_prepare:                  ## @ac97_digital_prepare
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rbx
	movq	(%rdi), %r14
	movq	_AC97_SPDIF@GOTPCREL(%rip), %rax
	movzwl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$8194, %edx                     ## imm = 0x2002
	callq	_stac9766_ac97_write
	movq	_AC97_EXTENDED_STATUS@GOTPCREL(%rip), %r15
	movzwl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_stac9766_ac97_read
                                        ## kill: def $ax killed $ax def $eax
	orl	$5, %eax
	movzwl	(%r15), %esi
	movzwl	%ax, %edx
	movq	%rbx, %rdi
	callq	_stac9766_ac97_write
	movq	_AC97_PCM_FRONT_DAC_RATE@GOTPCREL(%rip), %rax
	movzwl	(%rax), %esi
	movzwl	(%r14), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stac9766_ac97_write            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AC97_SPDIF,2,1                 ## @AC97_SPDIF
	.comm	_AC97_EXTENDED_STATUS,2,1       ## @AC97_EXTENDED_STATUS
	.comm	_AC97_PCM_FRONT_DAC_RATE,2,1    ## @AC97_PCM_FRONT_DAC_RATE
	.no_dead_strip	_ac97_digital_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ac97_digital_prepare
_ac97_digital_prepare:                  ; @ac97_digital_prepare
	.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
	ldr	x19, [x1]
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _AC97_SPDIF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC97_SPDIF@GOTPAGEOFF]
	ldrh	w1, [x8]
	mov	x0, x19
	mov	w2, #8194
	bl	_stac9766_ac97_write
Lloh2:
	adrp	x21, _AC97_EXTENDED_STATUS@GOTPAGE
Lloh3:
	ldr	x21, [x21, _AC97_EXTENDED_STATUS@GOTPAGEOFF]
	ldrh	w1, [x21]
	mov	x0, x19
	bl	_stac9766_ac97_read
	mov	w8, #5
	orr	w2, w0, w8
	ldrh	w1, [x21]
	mov	x0, x19
	bl	_stac9766_ac97_write
Lloh4:
	adrp	x8, _AC97_PCM_FRONT_DAC_RATE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AC97_PCM_FRONT_DAC_RATE@GOTPAGEOFF]
	ldrh	w1, [x8]
	ldrh	w2, [x20]
	mov	x0, x19
	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	_stac9766_ac97_write
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AC97_SPDIF,2,1                 ; @AC97_SPDIF
	.comm	_AC97_EXTENDED_STATUS,2,1       ; @AC97_EXTENDED_STATUS
	.comm	_AC97_PCM_FRONT_DAC_RATE,2,1    ; @AC97_PCM_FRONT_DAC_RATE
	.no_dead_strip	_ac97_digital_prepare
.subsections_via_symbols
