	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm_master_vol_put
_wm_master_vol_put:                     ## @wm_master_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movq	8(%rax), %rbx
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	(%r14), %rdx
	movq	(%rdx), %rcx
	movq	(%rbx), %rax
	xorl	%r12d, %r12d
	cmpq	(%rax), %rcx
	je	LBB0_2
## %bb.1:
	movq	%rcx, (%rax)
	movq	_WM_DAC_ATTEN_L@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	8(%rbx), %rax
	movl	8(%rax), %edx
	movq	%r15, %rdi
	callq	_wm_set_vol
	movq	_WM8766_LDA1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rcx), %edx
	movq	(%rax), %rcx
	movq	%r15, %rdi
	callq	_wm8766_set_vol
	movq	_WM8766_LDA2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	16(%rcx), %edx
	movq	(%rax), %rcx
	movq	%r15, %rdi
	callq	_wm8766_set_vol
	movq	_WM8766_LDA3@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	24(%rcx), %edx
	movq	(%rax), %rcx
	movq	%r15, %rdi
	callq	_wm8766_set_vol
	movq	(%r14), %rdx
	movq	(%rbx), %rax
	movl	$1, %r12d
LBB0_2:
	movq	8(%rdx), %rcx
	cmpq	8(%rax), %rcx
	je	LBB0_4
## %bb.3:
	movq	%rcx, 8(%rax)
	movq	_WM_DAC_ATTEN_L@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	8(%rbx), %rax
	movl	12(%rax), %edx
	movq	%r15, %rdi
	callq	_wm_set_vol
	movq	_WM8766_LDA1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	4(%rcx), %edx
	movq	8(%rax), %rcx
	movq	%r15, %rdi
	callq	_wm8766_set_vol
	movq	_WM8766_LDA2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	20(%rcx), %edx
	movq	8(%rax), %rcx
	movq	%r15, %rdi
	callq	_wm8766_set_vol
	movq	_WM8766_LDA3@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	28(%rcx), %edx
	movq	8(%rax), %rcx
	movq	%r15, %rdi
	callq	_wm8766_set_vol
	movl	$1, %r12d
LBB0_4:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM_DAC_ATTEN_L,8,3             ## @WM_DAC_ATTEN_L
	.comm	_WM8766_LDA1,8,3                ## @WM8766_LDA1
	.comm	_WM8766_LDA2,8,3                ## @WM8766_LDA2
	.comm	_WM8766_LDA3,8,3                ## @WM8766_LDA3
	.no_dead_strip	_wm_master_vol_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm_master_vol_put
_wm_master_vol_put:                     ; @wm_master_vol_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	x20, x1
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x21, [x0, #8]
	bl	_mutex_lock
	ldr	x9, [x20]
	ldr	x3, [x9]
	ldr	x8, [x21]
Lloh0:
	adrp	x25, _WM_DAC_ATTEN_L@GOTPAGE
Lloh1:
	ldr	x25, [x25, _WM_DAC_ATTEN_L@GOTPAGEOFF]
Lloh2:
	adrp	x24, _WM8766_LDA1@GOTPAGE
Lloh3:
	ldr	x24, [x24, _WM8766_LDA1@GOTPAGEOFF]
	ldr	x10, [x8]
Lloh4:
	adrp	x23, _WM8766_LDA2@GOTPAGE
Lloh5:
	ldr	x23, [x23, _WM8766_LDA2@GOTPAGEOFF]
Lloh6:
	adrp	x22, _WM8766_LDA3@GOTPAGE
Lloh7:
	ldr	x22, [x22, _WM8766_LDA3@GOTPAGEOFF]
	cmp	x3, x10
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_3
LBB0_2:
	str	x3, [x8]
	ldr	x1, [x25]
	ldr	x8, [x21, #8]
	ldr	w2, [x8, #8]
	mov	x0, x19
	bl	_wm_set_vol
	ldr	x1, [x24]
	ldp	x9, x8, [x21]
	ldr	w2, [x8]
	ldr	x3, [x9]
	mov	x0, x19
	bl	_wm8766_set_vol
	ldr	x1, [x23]
	ldp	x9, x8, [x21]
	ldr	w2, [x8, #16]
	ldr	x3, [x9]
	mov	x0, x19
	bl	_wm8766_set_vol
	ldr	x1, [x22]
	ldp	x9, x8, [x21]
	ldr	w2, [x8, #24]
	ldr	x3, [x9]
	mov	x0, x19
	bl	_wm8766_set_vol
	ldr	x9, [x20]
	ldr	x8, [x21]
	mov	w20, #1
LBB0_3:
	ldr	x3, [x9, #8]
	ldr	x9, [x8, #8]
	cmp	x3, x9
	b.eq	LBB0_5
; %bb.4:
	str	x3, [x8, #8]
	ldr	x8, [x25]
	add	x1, x8, #1
	ldr	x8, [x21, #8]
	ldr	w2, [x8, #12]
	mov	x0, x19
	bl	_wm_set_vol
	ldr	x8, [x24]
	add	x1, x8, #1
	ldp	x9, x8, [x21]
	ldr	w2, [x8, #4]
	ldr	x3, [x9, #8]
	mov	x0, x19
	bl	_wm8766_set_vol
	ldr	x8, [x23]
	add	x1, x8, #1
	ldp	x9, x8, [x21]
	ldr	w2, [x8, #20]
	ldr	x3, [x9, #8]
	mov	x0, x19
	bl	_wm8766_set_vol
	ldr	x8, [x22]
	add	x1, x8, #1
	ldp	x9, x8, [x21]
	ldr	w2, [x8, #28]
	ldr	x3, [x9, #8]
	mov	x0, x19
	bl	_wm8766_set_vol
	mov	w20, #1
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WM_DAC_ATTEN_L,8,3             ; @WM_DAC_ATTEN_L
	.comm	_WM8766_LDA1,8,3                ; @WM8766_LDA1
	.comm	_WM8766_LDA2,8,3                ; @WM8766_LDA2
	.comm	_WM8766_LDA3,8,3                ; @WM8766_LDA3
	.no_dead_strip	_wm_master_vol_put
.subsections_via_symbols
