	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad1981_hp_master_sw_put
_ad1981_hp_master_sw_put:               ## @ad1981_hp_master_sw_put
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movq	(%rax), %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ad198x_eapd_put
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	xorl	%r14d, %r14d
	cmpq	$0, (%r12)
	movl	$0, %edx
	je	LBB0_4
## %bb.3:
	movq	_PIN_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_4:
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_snd_hda_set_pin_ctl
	movq	_HDA_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HDA_AMP_MUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	cmpq	$0, (%r12)
	cmovel	%r8d, %r14d
	movq	%r15, %rdi
	movl	$6, %esi
	xorl	%ecx, %ecx
	movl	%r14d, %r9d
	callq	_snd_hda_codec_amp_stereo
	movl	$1, %eax
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIN_OUT,4,2                    ## @PIN_OUT
	.comm	_HDA_OUTPUT,4,2                 ## @HDA_OUTPUT
	.comm	_HDA_AMP_MUTE,4,2               ## @HDA_AMP_MUTE
	.no_dead_strip	_ad1981_hp_master_sw_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad1981_hp_master_sw_put
_ad1981_hp_master_sw_put:               ; @ad1981_hp_master_sw_put
	.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	x20, x1
	mov	x21, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x22, [x0]
	mov	x0, x21
	mov	x1, x20
	bl	_ad198x_eapd_put
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _PIN_OUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PIN_OUT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w2, wzr, w9, eq
	mov	x0, x19
	mov	w1, #5
	bl	_snd_hda_set_pin_ctl
Lloh3:
	adrp	x8, _HDA_OUTPUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDA_OUTPUT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _HDA_AMP_MUTE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HDA_AMP_MUTE@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	ldr	x8, [x22]
	cmp	x8, #0
	csel	w5, w4, wzr, eq
	mov	x0, x19
	mov	w1, #6
	mov	w3, #0
	bl	_snd_hda_codec_amp_stereo
	mov	w0, #1
LBB0_2:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PIN_OUT,4,2                    ; @PIN_OUT
	.comm	_HDA_OUTPUT,4,2                 ; @HDA_OUTPUT
	.comm	_HDA_AMP_MUTE,4,2               ; @HDA_AMP_MUTE
	.no_dead_strip	_ad1981_hp_master_sw_put
.subsections_via_symbols
