	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_mixer_amp_switch_put_beep ## -- Begin function snd_hda_mixer_amp_switch_put_beep
	.p2align	4, 0x90
_snd_hda_mixer_amp_switch_put_beep:     ## @snd_hda_mixer_amp_switch_put_beep
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_get_amp_channels
	movq	(%r14), %rcx
	xorl	%esi, %esi
	testb	$1, %al
	je	LBB0_3
## %bb.2:
	movl	(%rcx), %esi
	addq	$8, %rcx
LBB0_3:
	testb	$2, %al
	je	LBB0_5
## %bb.4:
	orl	(%rcx), %esi
LBB0_5:
	movq	%r15, %rdi
	callq	_snd_hda_enable_beep_device
LBB0_6:
	movq	%rbx, %rdi
	callq	_ctl_has_mute
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_hda_mixer_amp_switch_put   ## TAILCALL
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.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_beep ; -- Begin function snd_hda_mixer_amp_switch_put_beep
	.p2align	2
_snd_hda_mixer_amp_switch_put_beep:     ; @snd_hda_mixer_amp_switch_put_beep
	.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, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	bl	_get_amp_channels
	ldr	x8, [x19]
	tbnz	w0, #0, LBB0_3
; %bb.2:
	mov	w1, #0
	tbnz	w0, #1, LBB0_4
	b	LBB0_5
LBB0_3:
	ldr	w1, [x8], #8
	tbz	w0, #1, LBB0_5
LBB0_4:
	ldr	w8, [x8]
	orr	w1, w1, w8
LBB0_5:
	mov	x0, x21
	bl	_snd_hda_enable_beep_device
LBB0_6:
	mov	x0, x20
	bl	_ctl_has_mute
	cbz	w0, LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	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
	b	_snd_hda_mixer_amp_switch_put
LBB0_8:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
