	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cs4236_get_double
_snd_cs4236_get_double:                 ## @snd_cs4236_get_double
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r12
	movl	(%rbx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movzbl	%al, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movzbl	%ah, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, %r14d
	shrl	$16, %r14d
	movl	%eax, %ebx
	shrl	$19, %ebx
	movl	%eax, %r15d
	shrl	$24, %r15d
	leaq	8(%r12), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	(%r12), %r13
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_CS4236_REG
	movl	(%r13,%rax,4), %eax
	andb	$7, %r14b
	movl	%r14d, %ecx
	sarl	%cl, %eax
	andl	%r15d, %eax
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rcx
	movl	%eax, (%rcx)
	movq	(%r12), %r14
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_CS4236_REG
	movl	(%r14,%rax,4), %eax
	andb	$7, %bl
	movl	%ebx, %ecx
	movq	%r13, %rbx
	sarl	%cl, %eax
	andl	%r15d, %eax
	movq	(%r13), %rcx
	movl	%eax, 4(%rcx)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	testl	$4194304, -52(%rbp)             ## 4-byte Folded Reload
                                        ## imm = 0x400000
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movl	%r15d, %ecx
	subl	(%rax), %ecx
	movl	%ecx, (%rax)
	subl	4(%rax), %r15d
	movl	%r15d, 4(%rax)
LBB0_2:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_cs4236_get_double
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_cs4236_get_double
_snd_cs4236_get_double:                 ; @snd_cs4236_get_double
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x21, x0
	ldr	w25, [x20]
	ubfx	w20, w25, #8, #8
	ubfx	w26, w25, #16, #3
	and	w22, w25, #0xff
	ubfx	w27, w25, #19, #3
	lsr	w24, w25, #24
	add	x23, x0, #8
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	x28, [x21]
	mov	x0, x22
	bl	_CS4236_REG
	ldr	w8, [x28, x0, lsl #2]
	asr	w8, w8, w26
	and	w8, w8, w24
	ldr	x9, [x19]
	str	w8, [x9]
	ldr	x21, [x21]
	mov	x0, x20
	bl	_CS4236_REG
	ldr	w8, [x21, x0, lsl #2]
	asr	w8, w8, w27
	and	w8, w8, w24
	ldr	x9, [x19]
	str	w8, [x9, #4]
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	tbz	w25, #22, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	d0, [x8]
	dup.2s	v1, w24
	sub.2s	v0, v1, v0
	str	d0, [x8]
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_cs4236_get_double
.subsections_via_symbols
