	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_mixer_bind_switch_put  ## -- Begin function snd_hda_mixer_bind_switch_put
	.p2align	4, 0x90
_snd_hda_mixer_bind_switch_put:         ## @snd_hda_mixer_bind_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	$24, %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, %r12
	callq	_snd_kcontrol_chip
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	(%r12), %rsi
	movq	_AMP_VAL_IDX_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %r14
	andq	%rsi, %r14
	movq	_AMP_VAL_IDX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrq	%cl, %r14
	testl	%r14d, %r14d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	notq	%rax
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	andq	%rsi, %rax
	movq	%rax, (%r12)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_snd_hda_mixer_amp_switch_put
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movl	$1, %r15d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	movl	%r13d, %ebx
	orl	%eax, %ebx
	cmpl	%r15d, %r14d
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_AMP_VAL_IDX_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_AMP_VAL_IDX_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	notq	%rax
	movl	%r15d, %edx
	shll	%cl, %edx
	andq	%rsi, %rax
	movslq	%edx, %rcx
	orq	%rax, %rcx
	movq	%rcx, (%r12)
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_snd_hda_mixer_amp_switch_put
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %r13d
	incl	%r15d
	testl	%eax, %eax
	jns	LBB0_5
	jmp	LBB0_8
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_8
LBB0_3:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_6:
	movl	%ebx, %r13d
LBB0_8:
	movq	%rsi, (%r12)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMP_VAL_IDX_MASK,8,3           ## @AMP_VAL_IDX_MASK
	.comm	_AMP_VAL_IDX_SHIFT,8,3          ## @AMP_VAL_IDX_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_mixer_bind_switch_put  ; -- Begin function snd_hda_mixer_bind_switch_put
	.p2align	2
_snd_hda_mixer_bind_switch_put:         ; @snd_hda_mixer_bind_switch_put
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	bl	_snd_kcontrol_chip
	mov	x20, x0
	bl	_mutex_lock
	ldr	x23, [x19]
Lloh0:
	adrp	x24, _AMP_VAL_IDX_MASK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AMP_VAL_IDX_MASK@GOTPAGEOFF]
	ldr	x8, [x24]
	and	x9, x8, x23
Lloh2:
	adrp	x25, _AMP_VAL_IDX_SHIFT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _AMP_VAL_IDX_SHIFT@GOTPAGEOFF]
	ldr	x10, [x25]
	lsr	x26, x9, x10
	cmp	w26, #1
	b.lt	LBB0_5
; %bb.1:
	bic	x8, x23, x8
	str	x8, [x19]
	mov	x0, x19
	mov	x1, x21
	bl	_snd_hda_mixer_amp_switch_put
	mov	x22, x0
	tbnz	w0, #31, LBB0_7
; %bb.2:
	mov	w27, #0
	mov	w28, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	orr	w27, w22, w27
	cmp	w26, w28
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24]
	ldr	w9, [x25]
	bic	x8, x23, x8
	lsl	w9, w28, w9
	sxtw	x9, w9
	orr	x8, x8, x9
	str	x8, [x19]
	mov	x0, x19
	mov	x1, x21
	bl	_snd_hda_mixer_amp_switch_put
	mov	x22, x0
	add	w28, w28, #1
	tbz	w0, #31, LBB0_3
	b	LBB0_7
LBB0_5:
	mov	w22, #0
	b	LBB0_7
LBB0_6:
	mov	x22, x27
LBB0_7:
	str	x23, [x19]
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AMP_VAL_IDX_MASK,8,3           ; @AMP_VAL_IDX_MASK
	.comm	_AMP_VAL_IDX_SHIFT,8,3          ; @AMP_VAL_IDX_SHIFT
.subsections_via_symbols
