	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_soc_get_volsw_r2_twl4030
_snd_soc_get_volsw_r2_twl4030:          ## @snd_soc_get_volsw_r2_twl4030
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r12
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movb	8(%rbx), %r15b
	movl	12(%rbx), %r13d
	movl	%r13d, %edi
	callq	_fls
	movl	$-1, %r14d
	movl	%eax, %ecx
	shll	%cl, %r14d
	notl	%r14d
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_snd_soc_read
	movl	%r15d, %ecx
	shrl	%cl, %eax
	andl	%r14d, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	%r12, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_snd_soc_read
	movl	%r15d, %ecx
	shrl	%cl, %eax
	andl	%r14d, %eax
	movq	(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movl	(%rcx), %edx
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movl	%r13d, %esi
	subl	%edx, %esi
	incl	%esi
	movl	%esi, (%rcx)
LBB0_2:
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	subl	%eax, %r13d
	incl	%r13d
	movl	%r13d, 4(%rcx)
LBB0_4:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_soc_get_volsw_r2_twl4030
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_soc_get_volsw_r2_twl4030
_snd_soc_get_volsw_r2_twl4030:          ; @snd_soc_get_volsw_r2_twl4030
	.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
	ldr	x19, [x0]
	bl	_snd_kcontrol_chip
	mov	x21, x0
	ldp	w22, w23, [x19]
	ldp	w24, w19, [x19, #8]
	mov	x0, x19
	bl	_fls
	mov	w8, #-1
	lsl	w25, w8, w0
	mov	x0, x21
	mov	x1, x22
	bl	_snd_soc_read
	lsr	w8, w0, w24
	bic	w8, w8, w25
	ldr	x9, [x20]
	str	w8, [x9]
	mov	x0, x21
	mov	x1, x23
	bl	_snd_soc_read
	lsr	w8, w0, w24
	bic	w8, w8, w25
	ldr	x9, [x20]
	str	w8, [x9, #4]
	ldr	w10, [x9]
	cbz	w10, LBB0_2
; %bb.1:
	sub	w10, w19, w10
	add	w10, w10, #1
	str	w10, [x9]
LBB0_2:
	cbz	w8, LBB0_4
; %bb.3:
	sub	w8, w19, w8
	add	w8, w8, #1
	str	w8, [x9, #4]
LBB0_4:
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_soc_get_volsw_r2_twl4030
.subsections_via_symbols
