	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ak4531_put_double
_snd_ak4531_put_double:                 ## @snd_ak4531_put_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, %r13
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %rsi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	movzbl	%al, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movzbl	%ah, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, %r14d
	shrl	$16, %r14d
	movl	%eax, %r15d
	shrl	$19, %r15d
	andl	$7, %r15d
	movl	%eax, %ebx
	shrl	$24, %ebx
	movq	(%r13), %rcx
	movl	(%rcx), %edx
	andl	%ebx, %edx
	movl	4(%rcx), %ecx
	andl	%ebx, %ecx
	movl	%ebx, %r12d
	subl	%edx, %r12d
	movl	%ebx, %r13d
	subl	%ecx, %r13d
	testl	$4194304, %eax                  ## imm = 0x400000
	cmovel	%edx, %r12d
	cmovel	%ecx, %r13d
	andb	$7, %r14b
	movl	%r14d, %ecx
	shll	%cl, %r12d
	movl	%r15d, %ecx
	shll	%cl, %r13d
	leaq	8(%rsi), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	movq	(%rdi), %r8
	movl	(%r8,%rsi,4), %r9d
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%ecx, %esi
	jne	LBB0_2
## %bb.1:
	movl	%r15d, %ecx
	shll	%cl, %ebx
	orl	%ebx, %edx
	notl	%edx
	andl	%r9d, %edx
	orl	%r12d, %r13d
	orl	%edx, %r13d
	cmpl	%r9d, %r13d
	setne	%r14b
	movq	16(%rdi), %rcx
	movl	%r13d, (%r8,%rsi,4)
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r13d, %edx
	jmp	LBB0_3
LBB0_2:
	movq	%rcx, %rax
	notl	%edx
	andl	%r9d, %edx
	orl	%r12d, %edx
	movq	%rcx, %r12
	movl	(%r8,%rax,4), %eax
	movl	%r15d, %ecx
	shll	%cl, %ebx
	notl	%ebx
	andl	%eax, %ebx
	orl	%r13d, %ebx
	xorl	%edx, %r9d
	xorl	%ebx, %eax
	orl	%r9d, %eax
	setne	%r14b
	movq	16(%rdi), %rcx
	movl	%edx, (%r8,%rsi,4)
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%rdi, %r15
	callq	*%rcx
	movq	(%r15), %rax
	movq	16(%r15), %rcx
	movl	%ebx, (%rax,%r12,4)
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
LBB0_3:
	callq	*%rcx
	movzbl	%r14b, %ebx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	%ebx, %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_ak4531_put_double
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ak4531_put_double
_snd_ak4531_put_double:                 ; @snd_ak4531_put_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	x20, x1
	mov	x21, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	w8, [x21]
	and	x21, x8, #0xff
	ubfx	x22, x8, #8, #8
	ubfx	w27, w8, #16, #3
	ubfx	w23, w8, #19, #3
	ubfx	x24, x8, #24, #8
	ldr	x9, [x20]
	ldp	w10, w9, [x9]
	and	w10, w10, w24
	and	w9, w9, w24
	sub	w11, w24, w10
	sub	w12, w24, w9
	tst	w8, #0x400000
	csel	w8, w10, w11, eq
	csel	w9, w9, w12, eq
	lsl	w26, w8, w27
	lsl	w25, w9, w23
	add	x20, x0, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x19]
	ldr	w9, [x8, x21, lsl #2]
	lsl	w10, w24, w27
	cmp	w21, w22
	b.ne	LBB0_2
; %bb.1:
	lsl	w11, w24, w23
	orr	w10, w10, w11
	bic	w10, w9, w10
	orr	w11, w25, w26
	orr	w2, w11, w10
	cmp	w2, w9
	cset	w23, ne
	ldr	x9, [x19, #16]
	str	w2, [x8, x21, lsl #2]
	mov	x0, x19
	mov	x1, x21
	blr	x9
	b	LBB0_3
LBB0_2:
	bic	w10, w9, w10
	orr	w2, w10, w26
	lsl	x26, x22, #2
	ldr	w10, [x8, x26]
	lsl	w11, w24, w23
	bic	w11, w10, w11
	orr	w24, w11, w25
	cmp	w2, w9
	ccmp	w24, w10, #0, eq
	cset	w23, ne
	ldr	x9, [x19, #16]
	str	w2, [x8, x21, lsl #2]
	mov	x0, x19
	mov	x1, x21
	blr	x9
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	str	w24, [x9, x26]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x24
	blr	x8
LBB0_3:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x23
	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_ak4531_put_double
.subsections_via_symbols
