	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8350_put_volsw_2r_vu
_wm8350_put_volsw_2r_vu:                ## @wm8350_put_volsw_2r_vu
	.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, %r15
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movl	(%rcx), %r12d
	cmpl	$128, %r12d
	je	LBB0_3
## %bb.1:
	cmpl	$129, %r12d
	jne	LBB0_5
## %bb.2:
	addq	$12, %rax
	jmp	LBB0_4
LBB0_3:
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	(%r15), %rcx
	movl	(%rcx), %edx
	movl	%edx, 8(%rax)
	movl	4(%rcx), %ecx
	movl	%ecx, 4(%rax)
	cmpl	$0, (%rax)
	je	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_snd_soc_put_volsw_2r
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_wm8350_codec_read
	movq	_WM8350_OUT1_VU@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_wm8350_codec_write
LBB0_7:
	movl	$1, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8350_OUT1_VU,4,2             ## @WM8350_OUT1_VU
	.no_dead_strip	_wm8350_put_volsw_2r_vu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8350_put_volsw_2r_vu
_wm8350_put_volsw_2r_vu:                ; @wm8350_put_volsw_2r_vu
	.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	x21, x1
	mov	x22, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x9, [x22]
	ldr	w20, [x9]
	cmp	w20, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #129
	b.ne	LBB0_5
; %bb.2:
	add	x8, x8, #12
	b	LBB0_4
LBB0_3:
	cbz	x8, LBB0_5
LBB0_4:
	ldr	x9, [x21]
	ldr	w10, [x9]
	str	w10, [x8, #8]
	ldr	w9, [x9, #4]
	str	w9, [x8, #4]
	ldr	w8, [x8]
	cbz	w8, LBB0_7
LBB0_5:
	mov	x0, x22
	mov	x1, x21
	bl	_snd_soc_put_volsw_2r
	tbnz	w0, #31, LBB0_8
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	bl	_wm8350_codec_read
Lloh0:
	adrp	x8, _WM8350_OUT1_VU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM8350_OUT1_VU@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x20
	bl	_wm8350_codec_write
LBB0_7:
	mov	w0, #1
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8350_OUT1_VU,4,2             ; @WM8350_OUT1_VU
	.no_dead_strip	_wm8350_put_volsw_2r_vu
.subsections_via_symbols
