	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad1981_fixup_amp_override
_ad1981_fixup_amp_override:             ## @ad1981_fixup_amp_override
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_HDA_FIXUP_ACT_PRE_PROBE@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_HDA_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AC_AMPCAP_OFFSET_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$23, %esi
	movl	$23, %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	$5, %eax
	shll	%cl, %eax
	orl	%esi, %eax
	movq	_AC_AMPCAP_MUTE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %eax
	movl	$17, %esi
	movl	%eax, %ecx
	popq	%rbp
	jmp	_snd_hda_override_amp_caps      ## TAILCALL
LBB0_1:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDA_FIXUP_ACT_PRE_PROBE,4,2    ## @HDA_FIXUP_ACT_PRE_PROBE
	.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
	.no_dead_strip	_ad1981_fixup_amp_override
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad1981_fixup_amp_override
_ad1981_fixup_amp_override:             ; @ad1981_fixup_amp_override
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _HDA_FIXUP_ACT_PRE_PROBE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDA_FIXUP_ACT_PRE_PROBE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _HDA_INPUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDA_INPUT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _AC_AMPCAP_OFFSET_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AC_AMPCAP_OFFSET_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w9, #23
	lsl	w8, w9, w8
Lloh9:
	adrp	x10, _AC_AMPCAP_NUM_STEPS_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AC_AMPCAP_NUM_STEPS_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _AC_AMPCAP_STEP_SIZE_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AC_AMPCAP_STEP_SIZE_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	mov	w10, #5
	lsl	w9, w10, w9
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _AC_AMPCAP_MUTE_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AC_AMPCAP_MUTE_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w9, w10, w9
	orr	w3, w8, w9
	mov	w1, #17
	b	_snd_hda_override_amp_caps
LBB0_2:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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	_HDA_FIXUP_ACT_PRE_PROBE,4,2    ; @HDA_FIXUP_ACT_PRE_PROBE
	.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
	.no_dead_strip	_ad1981_fixup_amp_override
.subsections_via_symbols
