	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_emu8000_update_reverb_mode ## -- Begin function snd_emu8000_update_reverb_mode
	.p2align	4, 0x90
_snd_emu8000_update_reverb_mode:        ## @snd_emu8000_update_reverb_mode
	.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
	movl	(%rdi), %r14d
	testl	%r14d, %r14d
	js	LBB0_9
## %bb.1:
	movq	_SNDRV_EMU8000_REVERB_NUMBERS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_9
## %bb.2:
	movq	%rdi, %r15
	movq	_SNDRV_EMU8000_REVERB_PREDEFINED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jl	LBB0_4
## %bb.3:
	movq	_reverb_defined@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax,%r14,4)
	je	LBB0_9
LBB0_4:
	xorl	%ebx, %ebx
	movq	_reverb_cmds@GOTPCREL(%rip), %r12
	movq	_reverb_parm@GOTPCREL(%rip), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_EMU8000_DATA2
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %esi
	movq	(%r12), %rax
	movl	8(%rax,%rbx,4), %edx
	movq	(%r13), %rax
	movq	(%rax,%r14,8), %rax
	movl	(%rax,%rbx), %ecx
	movq	%r15, %rdi
	callq	_snd_emu8000_poke
	addq	$4, %rbx
	cmpq	$112, %rbx
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,4), %rax
	movq	_DATA1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_EMU8000_DATA1
	jmp	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_EMU8000_REVERB_NUMBERS,4,2 ## @SNDRV_EMU8000_REVERB_NUMBERS
	.comm	_SNDRV_EMU8000_REVERB_PREDEFINED,4,2 ## @SNDRV_EMU8000_REVERB_PREDEFINED
	.comm	_reverb_defined,8,3             ## @reverb_defined
	.comm	_reverb_cmds,8,3                ## @reverb_cmds
	.comm	_DATA1,8,3                      ## @DATA1
	.comm	_reverb_parm,8,3                ## @reverb_parm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_emu8000_update_reverb_mode ; -- Begin function snd_emu8000_update_reverb_mode
	.p2align	2
_snd_emu8000_update_reverb_mode:        ; @snd_emu8000_update_reverb_mode
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w20, [x0]
	tbnz	w20, #31, LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _SNDRV_EMU8000_REVERB_NUMBERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_EMU8000_REVERB_NUMBERS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ge	LBB0_9
; %bb.2:
	mov	x19, x0
Lloh3:
	adrp	x8, _SNDRV_EMU8000_REVERB_PREDEFINED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_EMU8000_REVERB_PREDEFINED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w20, w8
	b.lt	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _reverb_defined@GOTPAGE
Lloh7:
	ldr	x8, [x8, _reverb_defined@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w8, [x8, x20, lsl #2]
	cbz	w8, LBB0_9
LBB0_4:
	mov	x21, #0
	mov	x22, #0
Lloh9:
	adrp	x23, _reverb_cmds@GOTPAGE
Lloh10:
	ldr	x23, [x23, _reverb_cmds@GOTPAGEOFF]
Lloh11:
	adrp	x24, _DATA1@GOTPAGE
Lloh12:
	ldr	x24, [x24, _DATA1@GOTPAGEOFF]
Lloh13:
	adrp	x25, _reverb_parm@GOTPAGE
Lloh14:
	ldr	x25, [x25, _reverb_parm@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_EMU8000_DATA2
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, x0
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	w2, [x8, #8]
	ldr	x8, [x25]
	ldr	x8, [x8, x20, lsl #3]
	ldr	w3, [x8, x22, lsl #2]
	mov	x0, x19
	bl	_snd_emu8000_poke
	add	x22, x22, #1
	add	x21, x21, #16
	cmp	x22, #28
	b.eq	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8, x21]
	ldr	x9, [x24]
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_EMU8000_DATA1
	b	LBB0_6
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_EMU8000_REVERB_NUMBERS,4,2 ; @SNDRV_EMU8000_REVERB_NUMBERS
	.comm	_SNDRV_EMU8000_REVERB_PREDEFINED,4,2 ; @SNDRV_EMU8000_REVERB_PREDEFINED
	.comm	_reverb_defined,8,3             ; @reverb_defined
	.comm	_reverb_cmds,8,3                ; @reverb_cmds
	.comm	_DATA1,8,3                      ; @DATA1
	.comm	_reverb_parm,8,3                ; @reverb_parm
.subsections_via_symbols
