	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_mixer_amp_switch_put   ## -- Begin function snd_hda_mixer_amp_switch_put
	.p2align	4, 0x90
_snd_hda_mixer_amp_switch_put:          ## @snd_hda_mixer_amp_switch_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_get_amp_nid
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_get_amp_channels
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_get_amp_direction
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_get_amp_index
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r15), %rbx
	movq	%r13, %rdi
	callq	_snd_hda_power_up
	xorl	%r15d, %r15d
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	testb	$1, %r12b
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rcx
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	testb	$2, -56(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_4
LBB0_5:
	movq	_HDA_AMP_MUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%eax, %eax
	cmpq	$0, (%rcx)
	cmovel	%r9d, %eax
	movl	%eax, (%rsp)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	$1, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	callq	_snd_hda_codec_amp_update
	orl	%eax, %r15d
	jmp	LBB0_6
LBB0_2:
	movq	_HDA_AMP_MUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%eax, %eax
	cmpq	$0, (%rbx)
	cmovel	%r9d, %eax
	movl	%eax, (%rsp)
	movq	%r13, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, %r13d
	xorl	%edx, %edx
	movl	%r14d, %ecx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %r8d
	callq	_snd_hda_codec_amp_update
	movl	%eax, %r15d
	addq	$8, %rbx
	movq	%rbx, %rcx
	testb	$2, -56(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_5
LBB0_4:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_6:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_hda_call_check_power_status
	movq	%rbx, %rdi
	callq	_snd_hda_power_down
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDA_AMP_MUTE,4,2               ## @HDA_AMP_MUTE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_mixer_amp_switch_put   ; -- Begin function snd_hda_mixer_amp_switch_put
	.p2align	2
_snd_hda_mixer_amp_switch_put:          ; @snd_hda_mixer_amp_switch_put
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x1
	mov	x22, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	mov	x0, x22
	bl	_get_amp_nid
	mov	x20, x0
	mov	x0, x22
	bl	_get_amp_channels
	mov	x23, x0
	mov	x0, x22
	bl	_get_amp_direction
	mov	x21, x0
	mov	x0, x22
	bl	_get_amp_index
	mov	x22, x0
	ldr	x25, [x24]
	mov	x0, x19
	bl	_snd_hda_power_up
Lloh0:
	adrp	x26, _HDA_AMP_MUTE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _HDA_AMP_MUTE@GOTPAGEOFF]
	tbnz	w23, #0, LBB0_2
; %bb.1:
	mov	w24, #0
	tbnz	w23, #1, LBB0_3
	b	LBB0_4
LBB0_2:
	ldr	w5, [x26]
	ldr	x8, [x25], #8
	cmp	x8, #0
	csel	w6, w5, wzr, eq
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	x3, x21
	mov	x4, x22
	bl	_snd_hda_codec_amp_update
	mov	x24, x0
	tbz	w23, #1, LBB0_4
LBB0_3:
	ldr	w5, [x26]
	ldr	x8, [x25]
	cmp	x8, #0
	csel	w6, w5, wzr, eq
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	x3, x21
	mov	x4, x22
	bl	_snd_hda_codec_amp_update
	orr	w24, w0, w24
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_hda_call_check_power_status
	mov	x0, x19
	bl	_snd_hda_power_down
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HDA_AMP_MUTE,4,2               ; @HDA_AMP_MUTE
.subsections_via_symbols
