	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mixer_chorus_reverb_put
_mixer_chorus_reverb_put:               ## @mixer_chorus_reverb_put
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_snd_kcontrol_chip
	movq	%rax, %r12
	movq	%rax, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, (%r14)
	movq	(%r15), %rax
	movzwl	(%rax), %eax
	je	LBB0_2
## %bb.1:
	movq	_SNDRV_EMU8000_CHORUS_NUMBERS@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	divw	(%rcx)
	movl	%edx, %r13d
	movzwl	(%r12), %r15d
	movw	%dx, (%r12)
	jmp	LBB0_3
LBB0_2:
	movq	_SNDRV_EMU8000_REVERB_NUMBERS@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	divw	(%rcx)
	movl	%edx, %r13d
	movzwl	2(%r12), %r15d
	movw	%dx, 2(%r12)
LBB0_3:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	cmpw	%r15w, %r13w
	je	LBB0_8
## %bb.4:
	cmpq	$0, (%r14)
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_snd_emu8000_update_chorus_mode
	jmp	LBB0_7
LBB0_6:
	movq	%r12, %rdi
	callq	_snd_emu8000_update_reverb_mode
LBB0_7:
	movl	$1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_EMU8000_CHORUS_NUMBERS,2,1 ## @SNDRV_EMU8000_CHORUS_NUMBERS
	.comm	_SNDRV_EMU8000_REVERB_NUMBERS,2,1 ## @SNDRV_EMU8000_REVERB_NUMBERS
	.no_dead_strip	_mixer_chorus_reverb_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mixer_chorus_reverb_put
_mixer_chorus_reverb_put:               ; @mixer_chorus_reverb_put
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	add	x21, x0, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x9, [x20]
	ldr	x8, [x22]
	ldrh	w8, [x8]
	cbz	x9, LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _SNDRV_EMU8000_CHORUS_NUMBERS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_EMU8000_CHORUS_NUMBERS@GOTPAGEOFF]
	ldrh	w9, [x9]
	udiv	w10, w8, w9
	msub	w22, w10, w9, w8
	ldrh	w23, [x19]
	strh	w22, [x19]
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x9, _SNDRV_EMU8000_REVERB_NUMBERS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SNDRV_EMU8000_REVERB_NUMBERS@GOTPAGEOFF]
	ldrh	w9, [x9]
	udiv	w10, w8, w9
	msub	w22, w10, w9, w8
	ldrh	w23, [x19, #2]
	strh	w22, [x19, #2]
LBB0_3:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cmp	w22, w23
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_9
LBB0_5:
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_snd_emu8000_update_chorus_mode
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_snd_emu8000_update_reverb_mode
LBB0_8:
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_EMU8000_CHORUS_NUMBERS,2,1 ; @SNDRV_EMU8000_CHORUS_NUMBERS
	.comm	_SNDRV_EMU8000_REVERB_NUMBERS,2,1 ; @SNDRV_EMU8000_REVERB_NUMBERS
	.no_dead_strip	_mixer_chorus_reverb_put
.subsections_via_symbols
