	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_snd_kcontrol_chip
	movq	%rax, %r13
	movq	8(%rax), %r12
	movq	%rax, %rdi
	callq	_snd_ice1712_save_gpio_status
	movq	(%r15), %rax
	movl	(%rax), %edx
	movq	_WM_VOL_MAX@GOTPCREL(%rip), %rbx
	xorl	%r14d, %r14d
	cmpl	(%rbx), %edx
	ja	LBB0_7
## %bb.1:
	movq	(%r12), %rsi
	movl	(%rsi), %edi
	movq	_WM_VOL_MUTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%edi, %ecx
	orl	%edx, %ecx
	cmpl	%edi, %ecx
	je	LBB0_7
## %bb.2:
	movl	%ecx, (%rsi)
	movl	$1, %r14d
	cmpl	$0, (%r13)
	jle	LBB0_7
## %bb.3:
	movq	_WM_DAC_ATTEN@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	8(%r12), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_wm_set_vol
	cmpl	$3, (%r13)
	jl	LBB0_6
## %bb.4:
	movl	$2, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	8(%r12), %rdx
	movl	(%rax), %ecx
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	movl	(%rdx,%rbx,4), %edx
	movq	%r13, %rdi
	callq	_wm_set_vol
	addq	$2, %rbx
	cmpl	%ebx, (%r13)
	jg	LBB0_5
LBB0_6:
	movq	(%r15), %rax
	movl	$1, %r14d
	movq	_WM_VOL_MAX@GOTPCREL(%rip), %rbx
LBB0_7:
	movl	4(%rax), %edx
	cmpl	(%rbx), %edx
	ja	LBB0_13
## %bb.8:
	movq	(%r12), %rax
	movl	4(%rax), %esi
	movq	_WM_VOL_MUTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%esi, %ecx
	orl	%edx, %ecx
	cmpl	%esi, %ecx
	je	LBB0_13
## %bb.9:
	movl	%ecx, 4(%rax)
	movl	$1, %r14d
	cmpl	$0, (%r13)
	jle	LBB0_13
## %bb.10:
	movq	_WM_DAC_ATTEN@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	incq	%rsi
	movq	8(%r12), %rax
	movl	4(%rax), %edx
	movq	%r13, %rdi
	callq	_wm_set_vol
	cmpl	$3, (%r13)
	jl	LBB0_13
## %bb.11:
	movl	$3, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	8(%r12), %rdx
	movl	4(%rax), %ecx
	movq	(%r15), %rsi
	addq	%rbx, %rsi
	movl	(%rdx,%rbx,4), %edx
	movq	%r13, %rdi
	callq	_wm_set_vol
	addq	$2, %rbx
	leal	-1(%rbx), %eax
	cmpl	%eax, (%r13)
	jg	LBB0_12
LBB0_13:
	movq	%r13, %rdi
	callq	_snd_ice1712_restore_gpio_status
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM_VOL_MAX,4,2                 ## @WM_VOL_MAX
	.comm	_WM_VOL_MUTE,4,2                ## @WM_VOL_MUTE
	.comm	_WM_DAC_ATTEN,8,3               ## @WM_DAC_ATTEN
	.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	_snd_ice1712_save_gpio_status
	ldr	x8, [x20]
	ldr	w9, [x8]
Lloh0:
	adrp	x23, _WM_VOL_MAX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WM_VOL_MAX@GOTPAGEOFF]
	ldr	w10, [x23]
Lloh2:
	adrp	x22, _WM_VOL_MUTE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _WM_VOL_MUTE@GOTPAGEOFF]
	cmp	w9, w10
	b.hi	LBB0_2
; %bb.1:
	ldr	x10, [x21]
	ldr	w11, [x10]
	ldr	w12, [x22]
	and	w12, w12, w11
	orr	w3, w12, w9
	cmp	w3, w11
	b.ne	LBB0_3
LBB0_2:
	mov	w20, #0
	b	LBB0_9
LBB0_3:
	str	w3, [x10]
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.4:
Lloh4:
	adrp	x24, _WM_DAC_ATTEN@GOTPAGE
Lloh5:
	ldr	x24, [x24, _WM_DAC_ATTEN@GOTPAGEOFF]
	ldr	x1, [x24]
	ldr	x8, [x21, #8]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_wm_set_vol
	ldr	w8, [x19]
	cmp	w8, #3
	b.lt	LBB0_7
; %bb.5:
	mov	w25, #2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x21]
	ldr	w3, [x8]
	ldr	x8, [x24]
	add	x1, x25, x8
	ldr	w2, [x9, x25, lsl #2]
	mov	x0, x19
	bl	_wm_set_vol
	add	x25, x25, #2
	ldr	w8, [x19]
	cmp	w8, w25
	b.gt	LBB0_6
LBB0_7:
	ldr	x8, [x20]
LBB0_8:
	mov	w20, #1
LBB0_9:
	ldr	w9, [x8, #4]
	ldr	w8, [x23]
	cmp	w9, w8
	b.hi	LBB0_16
; %bb.10:
	ldr	x8, [x21]
	ldr	w10, [x8, #4]
	ldr	w11, [x22]
	and	w11, w11, w10
	orr	w3, w11, w9
	cmp	w3, w10
	b.eq	LBB0_16
; %bb.11:
	str	w3, [x8, #4]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.12:
Lloh6:
	adrp	x20, _WM_DAC_ATTEN@GOTPAGE
Lloh7:
	ldr	x20, [x20, _WM_DAC_ATTEN@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x1, x8, #1
	ldr	x8, [x21, #8]
	ldr	w2, [x8, #4]
	mov	x0, x19
	bl	_wm_set_vol
	ldr	w8, [x19]
	cmp	w8, #3
	b.lt	LBB0_15
; %bb.13:
	mov	w22, #3
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x21]
	ldr	w3, [x8, #4]
	ldr	x8, [x20]
	add	x1, x22, x8
	ldr	w2, [x9, x22, lsl #2]
	mov	x0, x19
	bl	_wm_set_vol
	ldr	w8, [x19]
	add	x22, x22, #2
	sub	w9, w22, #1
	cmp	w8, w9
	b.gt	LBB0_14
LBB0_15:
	mov	w20, #1
LBB0_16:
	mov	x0, x19
	bl	_snd_ice1712_restore_gpio_status
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_WM_VOL_MAX,4,2                 ; @WM_VOL_MAX
	.comm	_WM_VOL_MUTE,4,2                ; @WM_VOL_MUTE
	.comm	_WM_DAC_ATTEN,8,3               ; @WM_DAC_ATTEN
	.no_dead_strip	_wm_master_vol_put
.subsections_via_symbols
