	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ac97_get_enum_double
_snd_ac97_get_enum_double:              ## @snd_ac97_get_enum_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	(%rbx), %r15
	movzwl	(%r15), %ecx
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzwl	%dx, %ebx
	leal	(%rbx,%rbx), %edx
	cmpl	%ecx, %ebx
	jb	LBB0_1
## %bb.2:
	movl	8(%r15), %esi
	movq	%rax, %rdi
	callq	_snd_ac97_read_cache
	movzwl	%ax, %eax
	movb	2(%r15), %cl
	movl	%eax, %esi
	shrl	%cl, %esi
	decl	%ebx
	andl	%ebx, %esi
	movq	(%r14), %rdx
	movw	%si, (%rdx)
	movzwl	4(%r15), %ecx
	cmpw	%cx, 2(%r15)
	je	LBB0_4
## %bb.3:
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %eax
	andl	%ebx, %eax
	movw	%ax, 2(%rdx)
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_ac97_get_enum_double
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ac97_get_enum_double
_snd_ac97_get_enum_double:              ; @snd_ac97_get_enum_double
	.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	x19, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	ldr	x20, [x20]
	ldrh	w8, [x20]
	mov	w9, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	and	w21, w9, #0xffff
	lsl	w9, w21, #1
	cmp	w21, w8
	b.lo	LBB0_1
; %bb.2:
	ldr	w1, [x20, #8]
	bl	_snd_ac97_read_cache
	ldrh	w8, [x20, #2]
	lsr	w9, w0, w8
	sub	w8, w21, #1
	and	w10, w9, w8
	ldr	x9, [x19]
	strh	w10, [x9]
	ldrh	w11, [x20, #2]
	ldrh	w10, [x20, #4]
	cmp	w11, w10
	b.eq	LBB0_4
; %bb.3:
	lsr	w10, w0, w10
	and	w8, w10, w8
	strh	w8, [x9, #2]
LBB0_4:
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_ac97_get_enum_double
.subsections_via_symbols
