	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm_pcm_vol_put
_wm_pcm_vol_put:                        ## @wm_pcm_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, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movq	(%rbx), %rax
	movzwl	(%rax), %ebx
	movq	_PCM_RES@GOTPCREL(%rip), %rax
	cmpw	(%rax), %bx
	jbe	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_5
LBB0_2:
	movq	%r14, %rdi
	callq	_snd_ice1712_save_gpio_status
	movq	_PCM_MIN@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	addw	%bx, %ax
	xorl	%r13d, %r13d
	testw	%bx, %bx
	movzbl	%al, %r12d
	cmovel	%r13d, %r12d
	movq	_WM_DAC_DIG_MASTER_ATTEN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_wm_get
	movzbl	%al, %eax
	cmpl	%r12d, %eax
	je	LBB0_4
## %bb.3:
	movl	(%r15), %esi
	movzwl	%r12w, %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_wm_put
	movl	(%r15), %esi
	orl	$256, %ebx                      ## imm = 0x100
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_wm_put_nocache
	movl	$1, %r13d
LBB0_4:
	movq	%r14, %rdi
	callq	_snd_ice1712_restore_gpio_status
LBB0_5:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCM_RES,2,1                    ## @PCM_RES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PCM_MIN,2,1                    ## @PCM_MIN
	.comm	_WM_DAC_DIG_MASTER_ATTEN,4,2    ## @WM_DAC_DIG_MASTER_ATTEN
	.no_dead_strip	_wm_pcm_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_pcm_vol_put
_wm_pcm_vol_put:                        ; @wm_pcm_vol_put
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	bl	_snd_kcontrol_chip
	ldr	x8, [x20]
	ldrh	w20, [x8]
Lloh0:
	adrp	x8, _PCM_RES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCM_RES@GOTPAGEOFF]
	ldrh	w8, [x8]
	cmp	w20, w8
	b.ls	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_2:
	mov	x19, x0
	bl	_snd_ice1712_save_gpio_status
Lloh5:
	adrp	x8, _PCM_MIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCM_MIN@GOTPAGEOFF]
	ldrh	w8, [x8]
	add	w8, w8, w20
	and	w8, w8, #0xff
	cmp	w20, #0
	csel	w20, wzr, w8, eq
Lloh7:
	adrp	x22, _WM_DAC_DIG_MASTER_ATTEN@GOTPAGE
Lloh8:
	ldr	x22, [x22, _WM_DAC_DIG_MASTER_ATTEN@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_wm_get
	mov	w21, #0
	cmp	w20, w0, uxtb
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_wm_put
	ldr	w1, [x22]
	orr	w2, w20, #0x100
	mov	x0, x19
	bl	_wm_put_nocache
	mov	w21, #1
LBB0_4:
	mov	x0, x19
	bl	_snd_ice1712_restore_gpio_status
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PCM_RES,2,1                    ; @PCM_RES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PCM_MIN,2,1                    ; @PCM_MIN
	.comm	_WM_DAC_DIG_MASTER_ATTEN,4,2    ; @WM_DAC_DIG_MASTER_ATTEN
	.no_dead_strip	_wm_pcm_vol_put
.subsections_via_symbols
