	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function patch_vt1617a
_patch_vt1617a:                         ## @patch_vt1617a
	.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	%rdi, %r15
	movq	_snd_ac97_controls_vt1617a@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_patch_build_controls
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	$92, %esi
	callq	_snd_ac97_read
	testb	$32, %al
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movl	$92, %esi
	movl	$32, %edx
	callq	_snd_ac97_write_cache
LBB0_2:
	movq	_AC97_EI_SPDIF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
	movq	_SNDRV_PCM_RATE_44100@GOTPCREL(%rip), %rax
	movq	_SNDRV_PCM_RATE_48000@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	(%r15), %rax
	movq	_AC97_RATES_SPDIF@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	_patch_vt1616_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_snd_ac97_controls_vt1617a,8,3  ## @snd_ac97_controls_vt1617a
	.comm	_AC97_EI_SPDIF,4,2              ## @AC97_EI_SPDIF
	.comm	_SNDRV_PCM_RATE_44100,4,2       ## @SNDRV_PCM_RATE_44100
	.comm	_SNDRV_PCM_RATE_48000,4,2       ## @SNDRV_PCM_RATE_48000
	.comm	_AC97_RATES_SPDIF,8,3           ## @AC97_RATES_SPDIF
	.comm	_patch_vt1616_ops,4,2           ## @patch_vt1616_ops
	.no_dead_strip	_patch_vt1617a
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function patch_vt1617a
_patch_vt1617a:                         ; @patch_vt1617a
	.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, x0
Lloh0:
	adrp	x8, _snd_ac97_controls_vt1617a@GOTPAGE
Lloh1:
	ldr	x8, [x8, _snd_ac97_controls_vt1617a@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_patch_build_controls
	mov	x20, x0
	mov	x0, x19
	mov	w1, #92
	bl	_snd_ac97_read
	tbnz	w0, #5, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #92
	mov	w2, #32
	bl	_snd_ac97_write_cache
LBB0_2:
Lloh3:
	adrp	x8, _AC97_EI_SPDIF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AC97_EI_SPDIF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
Lloh6:
	adrp	x8, _SNDRV_PCM_RATE_44100@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SNDRV_PCM_RATE_44100@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SNDRV_PCM_RATE_48000@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SNDRV_PCM_RATE_48000@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x19]
Lloh12:
	adrp	x10, _AC97_RATES_SPDIF@GOTPAGE
Lloh13:
	ldr	x10, [x10, _AC97_RATES_SPDIF@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
Lloh15:
	adrp	x8, _patch_vt1616_ops@GOTPAGE
Lloh16:
	ldr	x8, [x8, _patch_vt1616_ops@GOTPAGEOFF]
	str	x8, [x19, #8]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_snd_ac97_controls_vt1617a,8,3  ; @snd_ac97_controls_vt1617a
	.comm	_AC97_EI_SPDIF,4,2              ; @AC97_EI_SPDIF
	.comm	_SNDRV_PCM_RATE_44100,4,2       ; @SNDRV_PCM_RATE_44100
	.comm	_SNDRV_PCM_RATE_48000,4,2       ; @SNDRV_PCM_RATE_48000
	.comm	_AC97_RATES_SPDIF,8,3           ; @AC97_RATES_SPDIF
	.comm	_patch_vt1616_ops,4,2           ; @patch_vt1616_ops
	.no_dead_strip	_patch_vt1617a
.subsections_via_symbols
