	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function patch_alc850
_patch_alc850:                          ## @patch_alc850
	.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	%rdi, %rbx
	movq	_patch_alc850_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rdi)
	movq	$0, 8(%rdi)
	movq	_AC97_HAS_8CH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rdi)
	movq	_AC97_INT_PAGING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AC97_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AC97_PAGE_VENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_snd_ac97_update_bits
	movq	_AC97_ALC650_MULTICH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_snd_ac97_write_cache
	movq	%rbx, %rdi
	movl	$122, %esi
	movl	$8402, %edx                     ## imm = 0x20D2
	callq	_snd_ac97_write_cache
	movq	%rbx, %rdi
	movl	$118, %esi
	movl	$35472, %edx                    ## imm = 0x8A90
	callq	_snd_ac97_write_cache
	movq	_AC97_ALC650_SURR_DAC_VOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$2056, %edx                     ## imm = 0x808
	callq	_snd_ac97_write_cache
	movq	_AC97_ALC650_LFE_DAC_VOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$2056, %edx                     ## imm = 0x808
	callq	_snd_ac97_write_cache
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_patch_alc850_ops,4,2           ## @patch_alc850_ops
	.comm	_AC97_HAS_8CH,4,2               ## @AC97_HAS_8CH
	.comm	_AC97_INT_PAGING,4,2            ## @AC97_INT_PAGING
	.comm	_AC97_PAGE_MASK,4,2             ## @AC97_PAGE_MASK
	.comm	_AC97_PAGE_VENDOR,4,2           ## @AC97_PAGE_VENDOR
	.comm	_AC97_ALC650_MULTICH,4,2        ## @AC97_ALC650_MULTICH
	.comm	_AC97_ALC650_SURR_DAC_VOL,4,2   ## @AC97_ALC650_SURR_DAC_VOL
	.comm	_AC97_ALC650_LFE_DAC_VOL,4,2    ## @AC97_ALC650_LFE_DAC_VOL
	.no_dead_strip	_patch_alc850
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function patch_alc850
_patch_alc850:                          ; @patch_alc850
	.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, _patch_alc850_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _patch_alc850_ops@GOTPAGEOFF]
	stp	xzr, x8, [x0, #8]
Lloh2:
	adrp	x8, _AC97_HAS_8CH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AC97_HAS_8CH@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
Lloh5:
	adrp	x8, _AC97_INT_PAGING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AC97_INT_PAGING@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _AC97_PAGE_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AC97_PAGE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _AC97_PAGE_VENDOR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AC97_PAGE_VENDOR@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	bl	_snd_ac97_update_bits
Lloh14:
	adrp	x8, _AC97_ALC650_MULTICH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AC97_ALC650_MULTICH@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #32768
	bl	_snd_ac97_write_cache
	mov	x0, x19
	mov	w1, #122
	mov	w2, #8402
	bl	_snd_ac97_write_cache
	mov	x0, x19
	mov	w1, #118
	mov	w2, #35472
	bl	_snd_ac97_write_cache
Lloh17:
	adrp	x8, _AC97_ALC650_SURR_DAC_VOL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AC97_ALC650_SURR_DAC_VOL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2056
	bl	_snd_ac97_write_cache
Lloh20:
	adrp	x8, _AC97_ALC650_LFE_DAC_VOL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AC97_ALC650_LFE_DAC_VOL@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2056
	bl	_snd_ac97_write_cache
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.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_alc850_ops,4,2           ; @patch_alc850_ops
	.comm	_AC97_HAS_8CH,4,2               ; @AC97_HAS_8CH
	.comm	_AC97_INT_PAGING,4,2            ; @AC97_INT_PAGING
	.comm	_AC97_PAGE_MASK,4,2             ; @AC97_PAGE_MASK
	.comm	_AC97_PAGE_VENDOR,4,2           ; @AC97_PAGE_VENDOR
	.comm	_AC97_ALC650_MULTICH,4,2        ; @AC97_ALC650_MULTICH
	.comm	_AC97_ALC650_SURR_DAC_VOL,4,2   ; @AC97_ALC650_SURR_DAC_VOL
	.comm	_AC97_ALC650_LFE_DAC_VOL,4,2    ; @AC97_ALC650_LFE_DAC_VOL
	.no_dead_strip	_patch_alc850
.subsections_via_symbols
