	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function patch_alc268
_patch_alc268:                          ## @patch_alc268
	.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
	xorl	%esi, %esi
	callq	_alc_alloc_spec
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	8(%r15), %r14
	movl	$1, 8(%r14)
	movq	_alc268_fixup_models@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_alc268_fixup_tbl@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_alc268_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	_alc268_parse_auto_config
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	je	LBB0_8
## %bb.4:
	cmpl	$0, 24(%r14)
	jne	LBB0_8
## %bb.5:
	movq	16(%r14), %rax
	cmpl	$29, (%rax)
	je	LBB0_8
## %bb.6:
	movq	_alc268_beep_mixer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_add_mixer
	movq	_alc268_beep_init_verbs@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_hda_add_verbs
	movq	_HDA_INPUT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	$29, %esi
	callq	_query_amp_caps
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	(%rbx), %edx
	movq	_AC_AMPCAP_OFFSET_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$12, %esi
	movl	$12, %eax
	shll	%cl, %eax
	movq	_AC_AMPCAP_NUM_STEPS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	orl	%eax, %esi
	movq	_AC_AMPCAP_STEP_SIZE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$7, %eax
	shll	%cl, %eax
	orl	%esi, %eax
	movq	%r15, %rdi
	movl	$29, %esi
	movl	%eax, %ecx
	callq	_snd_hda_override_amp_caps
LBB0_8:
	movq	_alc_patch_ops@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%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
	jmp	LBB0_10
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_9:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_alc_free
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_alc268_fixup_models,4,2        ## @alc268_fixup_models
	.comm	_alc268_fixup_tbl,4,2           ## @alc268_fixup_tbl
	.comm	_alc268_fixups,4,2              ## @alc268_fixups
	.comm	_HDA_FIXUP_ACT_PRE_PROBE,4,2    ## @HDA_FIXUP_ACT_PRE_PROBE
	.comm	_alc268_beep_mixer,4,2          ## @alc268_beep_mixer
	.comm	_alc268_beep_init_verbs,4,2     ## @alc268_beep_init_verbs
	.comm	_HDA_INPUT,4,2                  ## @HDA_INPUT
	.comm	_AC_AMPCAP_OFFSET_SHIFT,4,2     ## @AC_AMPCAP_OFFSET_SHIFT
	.comm	_AC_AMPCAP_NUM_STEPS_SHIFT,4,2  ## @AC_AMPCAP_NUM_STEPS_SHIFT
	.comm	_AC_AMPCAP_STEP_SIZE_SHIFT,4,2  ## @AC_AMPCAP_STEP_SIZE_SHIFT
	.comm	_AC_AMPCAP_MUTE_SHIFT,4,2       ## @AC_AMPCAP_MUTE_SHIFT
	.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_alc268
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function patch_alc268
_patch_alc268:                          ; @patch_alc268
	.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, #0
	bl	_alc_alloc_spec
	tbnz	w0, #31, LBB0_8
; %bb.1:
	ldr	x20, [x19, #8]
	mov	w8, #1
	str	w8, [x20, #8]
Lloh0:
	adrp	x8, _alc268_fixup_models@GOTPAGE
Lloh1:
	ldr	x8, [x8, _alc268_fixup_models@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _alc268_fixup_tbl@GOTPAGE
Lloh4:
	ldr	x8, [x8, _alc268_fixup_tbl@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _alc268_fixups@GOTPAGE
Lloh7:
	ldr	x8, [x8, _alc268_fixups@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_snd_hda_pick_fixup
Lloh9:
	adrp	x8, _HDA_FIXUP_ACT_PRE_PROBE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HDA_FIXUP_ACT_PRE_PROBE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_hda_apply_fixup
	mov	x0, x19
	bl	_alc268_parse_auto_config
	mov	x21, x0
	tbnz	w0, #31, LBB0_9
; %bb.2:
	cbz	w21, LBB0_7
; %bb.3:
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_7
; %bb.4:
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	cmp	w8, #29
	b.eq	LBB0_7
; %bb.5:
Lloh12:
	adrp	x8, _alc268_beep_mixer@GOTPAGE
Lloh13:
	ldr	x8, [x8, _alc268_beep_mixer@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_add_mixer
Lloh15:
	adrp	x8, _alc268_beep_init_verbs@GOTPAGE
Lloh16:
	ldr	x8, [x8, _alc268_beep_init_verbs@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_hda_add_verbs
Lloh18:
	adrp	x21, _HDA_INPUT@GOTPAGE
Lloh19:
	ldr	x21, [x21, _HDA_INPUT@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #29
	bl	_query_amp_caps
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	w2, [x21]
Lloh20:
	adrp	x8, _AC_AMPCAP_OFFSET_SHIFT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AC_AMPCAP_OFFSET_SHIFT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	mov	w9, #12
	lsl	w8, w9, w8
Lloh23:
	adrp	x10, _AC_AMPCAP_NUM_STEPS_SHIFT@GOTPAGE
Lloh24:
	ldr	x10, [x10, _AC_AMPCAP_NUM_STEPS_SHIFT@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
Lloh26:
	adrp	x9, _AC_AMPCAP_STEP_SIZE_SHIFT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _AC_AMPCAP_STEP_SIZE_SHIFT@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	mov	w10, #7
	lsl	w9, w10, w9
	orr	w3, w8, w9
	mov	x0, x19
	mov	w1, #29
	bl	_snd_hda_override_amp_caps
LBB0_7:
Lloh29:
	adrp	x8, _alc_patch_ops@GOTPAGE
Lloh30:
	ldr	x8, [x8, _alc_patch_ops@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _alc_eapd_shutup@GOTPAGE
Lloh33:
	ldr	x9, [x9, _alc_eapd_shutup@GOTPAGEOFF]
	str	w8, [x19]
Lloh34:
	ldr	w8, [x9]
	str	w8, [x20]
Lloh35:
	adrp	x8, _HDA_FIXUP_ACT_PROBE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _HDA_FIXUP_ACT_PROBE@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_hda_apply_fixup
	mov	w21, #0
	b	LBB0_10
LBB0_8:
	mov	x21, x0
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_alc_free
LBB0_10:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_alc268_fixup_models,4,2        ; @alc268_fixup_models
	.comm	_alc268_fixup_tbl,4,2           ; @alc268_fixup_tbl
	.comm	_alc268_fixups,4,2              ; @alc268_fixups
	.comm	_HDA_FIXUP_ACT_PRE_PROBE,4,2    ; @HDA_FIXUP_ACT_PRE_PROBE
	.comm	_alc268_beep_mixer,4,2          ; @alc268_beep_mixer
	.comm	_alc268_beep_init_verbs,4,2     ; @alc268_beep_init_verbs
	.comm	_HDA_INPUT,4,2                  ; @HDA_INPUT
	.comm	_AC_AMPCAP_OFFSET_SHIFT,4,2     ; @AC_AMPCAP_OFFSET_SHIFT
	.comm	_AC_AMPCAP_NUM_STEPS_SHIFT,4,2  ; @AC_AMPCAP_NUM_STEPS_SHIFT
	.comm	_AC_AMPCAP_STEP_SIZE_SHIFT,4,2  ; @AC_AMPCAP_STEP_SIZE_SHIFT
	.comm	_AC_AMPCAP_MUTE_SHIFT,4,2       ; @AC_AMPCAP_MUTE_SHIFT
	.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_alc268
.subsections_via_symbols
