	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function maya_sw_put
_maya_sw_put:                           ## @maya_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	%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, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movq	8(%rax), %r12
	leaq	8(%rbx), %rsi
	movq	%r13, %rdi
	callq	_snd_ctl_get_ioff
	movq	%rax, %rbx
	leaq	(%r12,%rax,4), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edi
	callq	_GET_SW_VAL_IDX
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	$1, %eax
	movl	%r15d, %ecx
	shll	%cl, %eax
	movl	(%r12,%rbx,4), %ecx
	movl	%ecx, %edx
	btrl	%r15d, %edx
	movl	%edx, (%r12,%rbx,4)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
	movl	(%rdx), %ebx
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	orl	%eax, %ecx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
LBB0_2:
	movl	(%r13), %edi
	callq	_GET_SW_VAL_MASK
	movl	%eax, %r15d
	movl	4(%r14), %r12d
	movl	(%r13), %edi
	callq	_GET_SW_VAL_REG
	testl	%ebx, %ebx
	cmovnel	%r15d, %ebx
	movl	%r12d, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	callq	_wm8776_write_bits
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_maya_sw_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function maya_sw_put
_maya_sw_put:                           ; @maya_sw_put
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x21, [x0, #8]
	add	x1, x22, #8
	mov	x0, x20
	bl	_snd_ctl_get_ioff
	add	x21, x21, x0, lsl #2
	ldr	w0, [x20]
	bl	_GET_SW_VAL_IDX
	mov	x23, x0
	mov	x0, x19
	bl	_mutex_lock
	mov	w8, #1
	lsl	w8, w8, w23
	ldr	w9, [x21]
	bic	w10, w9, w8
	str	w10, [x21]
	ldr	x10, [x22]
	ldr	w24, [x10]
	cbz	w24, LBB0_2
; %bb.1:
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_2:
	ldr	w0, [x20]
	bl	_GET_SW_VAL_MASK
	mov	x22, x0
	ldr	w23, [x19, #4]
	ldr	w0, [x20]
	bl	_GET_SW_VAL_REG
	mov	x2, x0
	cmp	w24, #0
	csel	w4, wzr, w22, eq
	mov	x0, x23
	mov	x1, x21
	mov	x3, x22
	bl	_wm8776_write_bits
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_maya_sw_put
.subsections_via_symbols
