	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function maya_vol_put
_maya_vol_put:                          ## @maya_vol_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, %r12
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movq	8(%rax), %r13
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%r12), %rsi
	movq	%rbx, %rdi
	callq	_snd_ctl_get_ioff
	movq	%rax, %r15
	leaq	(,%rax,8), %rax
	addq	%r13, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %ebx
	movq	_vol_info@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	(%rbx,%rbx,4), %rax
	leaq	8(,%rax,8), %rsi
	addq	%r13, %rsi
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rcx
	movl	(%rcx), %r12d
	movl	(%r13,%rax,8), %r14d
	cmpl	%r14d, %r12d
	cmovael	%r14d, %r12d
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%r15,8), %rdx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdx,%rbx,8), %rdx
	xorl	%r15d, %r15d
	cmpl	(%rdx), %r12d
	je	LBB0_7
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.3:
	movl	(%rsi), %ecx
	leal	(%r12,%rcx), %r8d
	decl	%r8d
	jmp	LBB0_4
LBB0_2:
	movl	-4(%rsi), %r8d
LBB0_4:
	leaq	(,%rax,8), %rax
	addq	%r13, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	4(%rsi), %ecx
	orl	%ecx, %r8d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	4(%r13), %edi
	movq	24(%rsi), %rax
	movl	(%rax), %edx
	orl	8(%rsi), %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rsi, %r14
	movq	%rbx, %rsi
	callq	_wm8776_write_bits
	movq	%r14, %rsi
	movl	%eax, %r15d
	movq	16(%r14), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.5:
	xorl	%r8d, %r8d
	testl	%r12d, %r12d
	movl	4(%r13), %edi
	movq	_WM8776_REG_ADC_MUX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmovel	%ecx, %r8d
	movq	%rbx, %rsi
	callq	_wm8776_write_bits
	movq	%r14, %rsi
LBB0_6:
	movq	(%rbx), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rdx
	movl	%r12d, (%rdx)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r14d
LBB0_7:
	movl	4(%rcx), %eax
	cmpl	%r14d, %eax
	cmovbl	%eax, %r14d
	cmpl	4(%rdx), %r14d
	jne	LBB0_9
## %bb.8:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_9:
	testl	%r14d, %r14d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_11
## %bb.10:
	movl	(%rsi), %eax
	leal	(%r14,%rax), %r8d
	decl	%r8d
	jmp	LBB0_12
LBB0_11:
	movl	-4(%rsi), %r8d
LBB0_12:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	4(%rsi), %ecx
	orl	%ecx, %r8d
	movl	4(%rbx), %edi
	movq	24(%rsi), %rax
	movl	4(%rax), %edx
	orl	8(%rsi), %ecx
	movq	%rsi, %r13
	movq	%r12, %rsi
	callq	_wm8776_write_bits
	movq	16(%r13), %rcx
	movl	4(%rcx), %ecx
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.13:
	xorl	%r8d, %r8d
	testl	%r14d, %r14d
	movl	4(%rbx), %edi
	movq	_WM8776_REG_ADC_MUX@GOTPCREL(%rip), %rdx
	movl	%eax, %r13d
	movl	(%rdx), %edx
	cmovel	%ecx, %r8d
	movq	%r12, %rsi
	callq	_wm8776_write_bits
	movl	%r13d, %eax
LBB0_14:
	orl	%eax, %r15d
	movq	(%r12), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movl	%r14d, 4(%rax)
LBB0_15:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vol_info,8,3                   ## @vol_info
	.comm	_WM8776_REG_ADC_MUX,4,2         ## @WM8776_REG_ADC_MUX
	.no_dead_strip	_maya_vol_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function maya_vol_put
_maya_vol_put:                          ; @maya_vol_put
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x1
	mov	x21, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x20, [x0, #8]
	add	x1, x22, #8
	mov	x0, x21
	bl	_snd_ctl_get_ioff
	add	x20, x20, x0, lsl #3
	ldr	w23, [x21]
Lloh0:
	adrp	x8, _vol_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vol_info@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	mov	x0, x19
	bl	_mutex_lock
	mov	w8, #40
	madd	x24, x23, x8, x21
	add	x15, x24, #8
	add	x16, x24, #4
	add	x14, x24, #12
	add	x13, x24, #32
	add	x12, x24, #16
	mov	x28, x24
	ldr	w9, [x28], #24
	ldr	x10, [x22]
	ldr	w8, [x10]
	cmp	w8, w9
	csel	w25, w8, w9, lo
	ldr	x8, [x20]
	ldr	x8, [x8, x23, lsl #3]
	ldr	w11, [x8]
	cmp	w25, w11
	b.ne	LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_8
LBB0_2:
	stp	x16, x15, [sp, #8]              ; 16-byte Folded Spill
	cbz	w25, LBB0_4
; %bb.3:
	ldr	w8, [x15]
	add	w8, w25, w8
	sub	w8, w8, #1
	b	LBB0_5
LBB0_4:
	ldr	w8, [x16]
LBB0_5:
	str	x14, [sp, #24]                  ; 8-byte Folded Spill
	ldr	w9, [x14]
	orr	w4, w9, w8
	ldr	w0, [x19, #4]
	mov	x27, x13
	ldr	x8, [x13]
	ldr	w2, [x8]
	mov	x26, x12
	ldr	w8, [x12]
	orr	w3, w8, w9
	mov	x1, x20
	bl	_wm8776_write_bits
	mov	x21, x0
	ldr	x8, [x28]
	ldr	w3, [x8]
	cbz	w3, LBB0_7
; %bb.6:
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x8, _WM8776_REG_ADC_MUX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WM8776_REG_ADC_MUX@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	cmp	w25, #0
	csel	w4, w3, wzr, eq
	mov	x1, x20
	bl	_wm8776_write_bits
LBB0_7:
	ldr	x8, [x20]
	ldr	x8, [x8, x23, lsl #3]
	str	w25, [x8]
	ldr	x10, [x22]
	ldr	w9, [x24]
	mov	x12, x26
	mov	x13, x27
	ldp	x15, x14, [sp, #16]             ; 16-byte Folded Reload
	ldr	x16, [sp, #8]                   ; 8-byte Folded Reload
LBB0_8:
	ldr	w10, [x10, #4]
	cmp	w10, w9
	csel	w22, w10, w9, lo
	ldr	w8, [x8, #4]
	cmp	w22, w8
	b.eq	LBB0_15
; %bb.9:
	cbz	w22, LBB0_11
; %bb.10:
	ldr	w8, [x15]
	add	w8, w22, w8
	sub	w8, w8, #1
	b	LBB0_12
LBB0_11:
	ldr	w8, [x16]
LBB0_12:
	ldr	w9, [x14]
	orr	w4, w9, w8
	ldr	w0, [x19, #4]
	ldr	x8, [x13]
	ldr	w2, [x8, #4]
	ldr	w8, [x12]
	orr	w3, w8, w9
	mov	x1, x20
	bl	_wm8776_write_bits
	orr	w21, w0, w21
	ldr	x8, [x28]
	ldr	w3, [x8, #4]
	cbz	w3, LBB0_14
; %bb.13:
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x8, _WM8776_REG_ADC_MUX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WM8776_REG_ADC_MUX@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	cmp	w22, #0
	csel	w4, w3, wzr, eq
	mov	x1, x20
	bl	_wm8776_write_bits
LBB0_14:
	ldr	x8, [x20]
	ldr	x8, [x8, x23, lsl #3]
	str	w22, [x8, #4]
LBB0_15:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_vol_info,8,3                   ; @vol_info
	.comm	_WM8776_REG_ADC_MUX,4,2         ; @WM8776_REG_ADC_MUX
	.no_dead_strip	_maya_vol_put
.subsections_via_symbols
