	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ess_midi_init                  ## -- Begin function ess_midi_init
	.p2align	4, 0x90
_ess_midi_init:                         ## @ess_midi_init
	.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, %r15
	movq	%rdi, %rbx
	movl	$64, %esi
	callq	_ess_getmixer
	xorl	%r14d, %r14d
	movb	$3, %cl
	cmpl	$8, (%rbx)
	jl	LBB0_6
## %bb.1:
	movl	(%r15), %ecx
	shrl	$4, %ecx
	andl	$15, %ecx
	cmpl	$3, %ecx
	jbe	LBB0_3
## %bb.2:
	andb	$3, %al
	movl	%eax, %ecx
	jmp	LBB0_6
LBB0_3:
	movl	4(%r15), %edx
	movl	%edx, %eax
	negl	%eax
	cmovsl	%edx, %eax
	addl	$-5, %eax
	xorl	%r14d, %r14d
	cmpl	$5, %eax
	ja	LBB0_7
## %bb.4:
	movl	$53, %edx
	btl	%eax, %edx
	jae	LBB0_7
## %bb.5:
	shll	$3, %ecx
	cltq
	leaq	l_switch.table.ess_midi_init(%rip), %rdx
	orl	(%rdx,%rax,4), %ecx
	orb	$3, %cl
	movl	$1, %r14d
LBB0_6:
	movzbl	%cl, %edx
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_ess_setmixer
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.ess_midi_init
l_switch.table.ess_midi_init:
	.long	160                             ## 0xa0
	.long	128                             ## 0x80
	.long	192                             ## 0xc0
	.long	128                             ## 0x80
	.long	128                             ## 0x80
	.long	224                             ## 0xe0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ess_midi_init                  ; -- Begin function ess_midi_init
	.p2align	2
_ess_midi_init:                         ; @ess_midi_init
	.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	x20, x1
	mov	x19, x0
	mov	w1, #64
	bl	_ess_getmixer
	ldr	w8, [x19]
	cmp	w8, #8
	b.ge	LBB0_2
; %bb.1:
	mov	w20, #0
	mov	w8, #3
	b	LBB0_8
LBB0_2:
	ldr	w8, [x20]
	ubfx	w8, w8, #4, #4
	cmp	w8, #3
	b.ls	LBB0_4
; %bb.3:
	mov	w20, #0
	and	w8, w0, #0x3
	b	LBB0_8
LBB0_4:
	ldr	w9, [x20, #4]
	cmp	w9, #0
	cneg	w9, w9, mi
	sxtw	x9, w9
	sub	x9, x9, #5
	cmp	w9, #5
	b.hi	LBB0_6
; %bb.5:
	mov	w10, #53
	lsr	w10, w10, w9
	tbnz	w10, #0, LBB0_7
LBB0_6:
	mov	w20, #0
	b	LBB0_9
LBB0_7:
Lloh0:
	adrp	x10, l_switch.table.ess_midi_init@PAGE
Lloh1:
	add	x10, x10, l_switch.table.ess_midi_init@PAGEOFF
	lsl	w8, w8, #3
	ldr	w9, [x10, x9, lsl #2]
	orr	w8, w9, w8
	orr	w8, w8, #0x3
	mov	w20, #1
LBB0_8:
	and	w2, w8, #0xff
	mov	x0, x19
	mov	w1, #64
	bl	_ess_setmixer
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.ess_midi_init
l_switch.table.ess_midi_init:
	.long	160                             ; 0xa0
	.long	128                             ; 0x80
	.long	192                             ; 0xc0
	.long	128                             ; 0x80
	.long	128                             ; 0x80
	.long	224                             ; 0xe0

.subsections_via_symbols
