	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ac97_put_enum_double
_snd_ac97_put_enum_double:              ## @snd_ac97_put_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	(%rbx), %r8
	movzwl	(%r8), %esi
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzwl	%cx, %ebx
	leal	(%rbx,%rbx), %ecx
	cmpl	%esi, %ebx
	jb	LBB0_1
## %bb.2:
	movq	(%r14), %r10
	movl	(%r10), %edi
	cmpl	%esi, %edi
	jge	LBB0_7
## %bb.3:
	movzwl	2(%r8), %edx
	movl	%edx, %ecx
	shll	%cl, %edi
	decl	%ebx
	movl	%ebx, %r9d
	shll	%cl, %r9d
	movzwl	4(%r8), %ecx
	cmpw	%cx, %dx
	je	LBB0_6
## %bb.4:
	movl	4(%r10), %edx
	cmpl	%esi, %edx
	jge	LBB0_7
## %bb.5:
	shll	%cl, %edx
	orl	%edx, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	orl	%r9d, %ebx
	movl	%ebx, %r9d
LBB0_6:
	movl	8(%r8), %esi
	movzwl	%r9w, %edx
	movzwl	%di, %ecx
	movq	%rax, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_snd_ac97_update_bits           ## TAILCALL
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_ac97_put_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_put_enum_double
_snd_ac97_put_enum_double:              ; @snd_ac97_put_enum_double
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	ldr	x8, [x20]
	ldrh	w10, [x8]
	mov	w9, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	and	w11, w9, #0xffff
	lsl	w9, w11, #1
	cmp	w11, w10
	b.lo	LBB0_1
; %bb.2:
	ldr	x12, [x19]
	ldr	w9, [x12]
	cmp	w9, w10
	b.ge	LBB0_7
; %bb.3:
	ldrh	w15, [x8, #2]
	lsl	w9, w9, w15
	sub	w13, w11, #1
	lsl	w11, w13, w15
	ldrh	w14, [x8, #4]
	cmp	w15, w14
	b.eq	LBB0_6
; %bb.4:
	ldr	w12, [x12, #4]
	cmp	w12, w10
	b.ge	LBB0_7
; %bb.5:
	lsl	w10, w12, w14
	orr	w9, w10, w9
	lsl	w10, w13, w14
	orr	w11, w10, w11
LBB0_6:
	ldr	w1, [x8, #8]
	and	w2, w11, #0xffff
	and	w3, w9, #0xffff
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_snd_ac97_update_bits
LBB0_7:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_ac97_put_enum_double
.subsections_via_symbols
