	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_es18xx_get_double
_snd_es18xx_get_double:                 ## @snd_es18xx_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %rdi
	movl	(%rbx), %eax
	movzbl	%al, %r14d
	movzbl	%ah, %ecx
	movl	%ecx, %r13d
	movl	%eax, %ebx
	shrl	$16, %ebx
	andl	$7, %ebx
	movl	%eax, %r15d
	shrl	$19, %r15d
	andl	$7, %r15d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %r12d
	shrl	$24, %r12d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, %esi
	callq	_snd_es18xx_reg_read
	movl	%r13d, %esi
	movl	%eax, %r13d
	cmpl	%esi, %r14d
	je	LBB0_2
## %bb.1:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_snd_es18xx_reg_read
LBB0_2:
	movzbl	%r13b, %edx
	movl	%ebx, %ecx
	shrl	%cl, %edx
	andl	%r12d, %edx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rcx
	movb	%dl, (%rcx)
	movzbl	%al, %eax
	movl	%r15d, %ecx
	shrl	%cl, %eax
	andl	%r12d, %eax
	movq	(%rsi), %rcx
	movb	%al, 1(%rcx)
	testl	$4194304, -44(%rbp)             ## 4-byte Folded Reload
                                        ## imm = 0x400000
	je	LBB0_4
## %bb.3:
	movq	(%rsi), %rax
	movl	%r12d, %ecx
	subb	(%rax), %cl
	movb	%cl, (%rax)
	movq	(%rsi), %rax
	subb	1(%rax), %r12b
	movb	%r12b, 1(%rax)
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_es18xx_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_es18xx_get_double
_snd_es18xx_get_double:                 ; @snd_es18xx_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	x21, x0
	bl	_snd_kcontrol_chip
	mov	x20, x0
	ldr	w25, [x21]
	ubfx	w21, w25, #8, #8
	ubfx	w27, w25, #16, #3
	and	w23, w25, #0xff
	ubfx	w26, w25, #19, #3
	lsr	w24, w25, #24
	mov	x1, x23
	bl	_snd_es18xx_reg_read
	mov	x22, x0
	cmp	w23, w21
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_snd_es18xx_reg_read
LBB0_2:
	lsr	w8, w22, w27
	and	w8, w8, w24
	ldr	x9, [x19]
	strb	w8, [x9]
	lsr	w8, w0, w26
	and	w8, w8, w24
	ldr	x9, [x19]
	strb	w8, [x9, #1]
	tbz	w25, #22, LBB0_4
; %bb.3:
	ldr	x8, [x19]
	ldrb	w9, [x8]
	sub	w9, w24, w9
	strb	w9, [x8]
	ldr	x8, [x19]
	ldrb	w9, [x8, #1]
	sub	w9, w24, w9
	strb	w9, [x8, #1]
LBB0_4:
	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_es18xx_get_double
.subsections_via_symbols
