	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function patch_alc662
_patch_alc662:                          ## @patch_alc662
	.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
	movl	$11, %esi
	callq	_alc_alloc_spec
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	16(%r15), %r14
	movq	_HDA_PINCFG_NO_HP_FIXUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	%r15, %rdi
	movl	$32, %esi
	movl	$4, %edx
	movl	$15, %ecx
	callq	_alc_fix_pll_init
	movq	_alc662_fill_coef@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movq	%r15, %rdi
	callq	_alc662_fill_coef
	movq	_alc662_fixup_models@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_alc662_fixup_tbl@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_alc662_fixups@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_snd_hda_pick_fixup
	movq	_HDA_FIXUP_ACT_PRE_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_hda_apply_fixup
	movq	%r15, %rdi
	callq	_alc_auto_parse_customize_define
	movq	%r15, %rdi
	callq	_has_cdefine_beep
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	$1, 4(%r14)
LBB0_4:
	movq	%r15, %rdi
	callq	_alc_get_coef0
	testl	$16384, %eax                    ## imm = 0x4000
	je	LBB0_9
## %bb.5:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	cmpl	$4133, (%rax)                   ## imm = 0x1025
	jne	LBB0_9
## %bb.6:
	cmpl	$1, 12(%r14)
	jne	LBB0_9
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_alc_codec_rename
	testl	%eax, %eax
	js	LBB0_8
LBB0_9:
	movq	%r15, %rdi
	callq	_alc662_parse_auto_config
	testl	%eax, %eax
	js	LBB0_8
## %bb.10:
	cmpl	$0, 8(%r14)
	jne	LBB0_22
## %bb.11:
	cmpl	$0, 4(%r14)
	je	LBB0_22
## %bb.12:
	movl	(%r15), %eax
	cmpl	$283903585, %eax                ## imm = 0x10EC0661
	jle	LBB0_13
## %bb.16:
	cmpl	$283903586, %eax                ## imm = 0x10EC0662
	je	LBB0_17
## %bb.18:
	cmpl	$283903589, %eax                ## imm = 0x10EC0665
	je	LBB0_20
## %bb.19:
	cmpl	$283903587, %eax                ## imm = 0x10EC0663
	je	LBB0_20
	jmp	LBB0_22
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_23
LBB0_8:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_alc_free
	jmp	LBB0_23
LBB0_13:
	cmpl	$283902578, %eax                ## imm = 0x10EC0272
	je	LBB0_20
## %bb.14:
	cmpl	$283902579, %eax                ## imm = 0x10EC0273
	jne	LBB0_22
## %bb.15:
	movl	$3, %edx
	jmp	LBB0_21
LBB0_20:
	movl	$4, %edx
	jmp	LBB0_21
LBB0_17:
	movl	$5, %edx
LBB0_21:
	movq	_HDA_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$11, %esi
	callq	_set_beep_amp
LBB0_22:
	movq	_alc_patch_ops@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	_alc_eapd_shutup@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_HDA_FIXUP_ACT_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_hda_apply_fixup
	xorl	%ebx, %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDA_PINCFG_NO_HP_FIXUP,4,2     ## @HDA_PINCFG_NO_HP_FIXUP
	.comm	_alc662_fixup_models,4,2        ## @alc662_fixup_models
	.comm	_alc662_fixup_tbl,4,2           ## @alc662_fixup_tbl
	.comm	_alc662_fixups,4,2              ## @alc662_fixups
	.comm	_HDA_FIXUP_ACT_PRE_PROBE,4,2    ## @HDA_FIXUP_ACT_PRE_PROBE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ALC272X"

	.comm	_HDA_INPUT,4,2                  ## @HDA_INPUT
	.comm	_alc_patch_ops,4,2              ## @alc_patch_ops
	.comm	_alc_eapd_shutup,4,2            ## @alc_eapd_shutup
	.comm	_HDA_FIXUP_ACT_PROBE,4,2        ## @HDA_FIXUP_ACT_PROBE
	.no_dead_strip	_patch_alc662
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function patch_alc662
_patch_alc662:                          ; @patch_alc662
	.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
	mov	x19, x0
	mov	w1, #11
	bl	_alc_alloc_spec
	tbnz	w0, #31, LBB0_14
; %bb.1:
	ldr	x20, [x19, #16]
Lloh0:
	adrp	x8, _HDA_PINCFG_NO_HP_FIXUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDA_PINCFG_NO_HP_FIXUP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	mov	x0, x19
	mov	w1, #32
	mov	w2, #4
	mov	w3, #15
	bl	_alc_fix_pll_init
Lloh3:
	adrp	x8, _alc662_fill_coef@GOTPAGE
Lloh4:
	ldr	x8, [x8, _alc662_fill_coef@GOTPAGEOFF]
	str	x8, [x20, #16]
	mov	x0, x19
	bl	_alc662_fill_coef
Lloh5:
	adrp	x8, _alc662_fixup_models@GOTPAGE
Lloh6:
	ldr	x8, [x8, _alc662_fixup_models@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _alc662_fixup_tbl@GOTPAGE
Lloh9:
	ldr	x8, [x8, _alc662_fixup_tbl@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _alc662_fixups@GOTPAGE
Lloh12:
	ldr	x8, [x8, _alc662_fixups@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_snd_hda_pick_fixup
Lloh14:
	adrp	x8, _HDA_FIXUP_ACT_PRE_PROBE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HDA_FIXUP_ACT_PRE_PROBE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_hda_apply_fixup
	mov	x0, x19
	bl	_alc_auto_parse_customize_define
	mov	x0, x19
	bl	_has_cdefine_beep
	cbz	x0, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x20, #4]
LBB0_3:
	mov	x0, x19
	bl	_alc_get_coef0
	tbz	w0, #14, LBB0_7
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	mov	w9, #4133
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.5:
	ldr	w8, [x20, #12]
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.6:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_alc_codec_rename
	tbnz	w0, #31, LBB0_15
LBB0_7:
	mov	x0, x19
	bl	_alc662_parse_auto_config
	tbnz	w0, #31, LBB0_15
; %bb.8:
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_22
; %bb.9:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_22
; %bb.10:
	ldr	w8, [x19]
	mov	w9, #1633
	movk	w9, #4332, lsl #16
	cmp	w8, w9
	b.le	LBB0_16
; %bb.11:
	mov	w9, #1634
	movk	w9, #4332, lsl #16
	cmp	w8, w9
	b.eq	LBB0_20
; %bb.12:
	mov	w9, #1637
	movk	w9, #4332, lsl #16
	cmp	w8, w9
	b.eq	LBB0_19
; %bb.13:
	mov	w9, #1635
	movk	w9, #4332, lsl #16
	cmp	w8, w9
	b.eq	LBB0_19
	b	LBB0_22
LBB0_14:
	mov	x21, x0
	b	LBB0_23
LBB0_15:
	mov	x21, x0
	mov	x0, x19
	bl	_alc_free
	b	LBB0_23
LBB0_16:
	mov	w9, #626
	movk	w9, #4332, lsl #16
	cmp	w8, w9
	b.eq	LBB0_19
; %bb.17:
	mov	w9, #627
	movk	w9, #4332, lsl #16
	cmp	w8, w9
	b.ne	LBB0_22
; %bb.18:
	mov	w2, #3
	b	LBB0_21
LBB0_19:
	mov	w2, #4
	b	LBB0_21
LBB0_20:
	mov	w2, #5
LBB0_21:
Lloh19:
	adrp	x8, _HDA_INPUT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HDA_INPUT@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #11
	bl	_set_beep_amp
LBB0_22:
Lloh22:
	adrp	x8, _alc_patch_ops@GOTPAGE
Lloh23:
	ldr	x8, [x8, _alc_patch_ops@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _alc_eapd_shutup@GOTPAGE
Lloh26:
	ldr	x9, [x9, _alc_eapd_shutup@GOTPAGEOFF]
	str	w8, [x19, #4]
Lloh27:
	ldr	w8, [x9]
	str	w8, [x20]
Lloh28:
	adrp	x8, _HDA_FIXUP_ACT_PROBE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HDA_FIXUP_ACT_PROBE@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_hda_apply_fixup
	mov	w21, #0
LBB0_23:
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_HDA_PINCFG_NO_HP_FIXUP,4,2     ; @HDA_PINCFG_NO_HP_FIXUP
	.comm	_alc662_fixup_models,4,2        ; @alc662_fixup_models
	.comm	_alc662_fixup_tbl,4,2           ; @alc662_fixup_tbl
	.comm	_alc662_fixups,4,2              ; @alc662_fixups
	.comm	_HDA_FIXUP_ACT_PRE_PROBE,4,2    ; @HDA_FIXUP_ACT_PRE_PROBE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ALC272X"

	.comm	_HDA_INPUT,4,2                  ; @HDA_INPUT
	.comm	_alc_patch_ops,4,2              ; @alc_patch_ops
	.comm	_alc_eapd_shutup,4,2            ; @alc_eapd_shutup
	.comm	_HDA_FIXUP_ACT_PROBE,4,2        ; @HDA_FIXUP_ACT_PROBE
	.no_dead_strip	_patch_alc662
.subsections_via_symbols
