	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opl3_controller
_opl3_controller:                       ## @opl3_controller
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $ecx killed $ecx def $rcx
                                        ## kill: def $edx killed $edx def $rdx
	testl	%esi, %esi
	js	LBB0_8
## %bb.1:
	movq	_devc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	%esi, (%rax)
	jle	LBB0_8
## %bb.2:
	addl	$-128, %edx
	cmpl	$3, %edx
	ja	LBB0_8
## %bb.3:
	leaq	LJTI0_0(%rip), %r8
	movslq	(%r8,%rdx,4), %rdx
	addq	%r8, %rdx
	jmpq	*%rdx
LBB0_5:
	movq	8(%rax), %rax
	movl	%esi, %edx
	leaq	(%rdx,%rdx,2), %rdx
	movl	%ecx, (%rax,%rdx,4)
	popq	%rbp
	retq
LBB0_4:
	movl	%ecx, %edx
	popq	%rbp
	jmp	_bend_pitch                     ## TAILCALL
LBB0_7:
	addl	%ecx, %ecx
	addl	$-128, %ecx
	movq	8(%rax), %rax
	movl	%esi, %edx
	leaq	(%rdx,%rdx,2), %rdx
	movl	%ecx, 8(%rax,%rdx,4)
LBB0_8:
	popq	%rbp
	retq
LBB0_6:
	leal	127(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$7, %edx
	movq	8(%rax), %rax
	movl	%esi, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	movl	%edx, 4(%rax,%rcx,4)
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_devc,8,3                       ## @devc
	.no_dead_strip	_opl3_controller
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opl3_controller
_opl3_controller:                       ; @opl3_controller
	.cfi_startproc
; %bb.0:
	tbnz	w1, #31, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _devc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _devc@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x8]
	cmp	w9, w1
	b.le	LBB0_7
; %bb.2:
	sub	w9, w2, #128
	cmp	w9, #3
	b.hi	LBB0_7
; %bb.3:
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_4
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_4:
	ldr	x8, [x8, #8]
	mov	w9, #12
	umull	x9, w1, w9
	str	w3, [x8, x9]
	ret
LBB0_5:
	mov	x2, x3
	b	_bend_pitch
LBB0_6:
	lsl	w9, w3, #1
	sub	w9, w9, #128
	ldr	x8, [x8, #8]
	mov	w10, #12
	umaddl	x8, w1, w10, x8
	str	w9, [x8, #8]
LBB0_7:
	ret
LBB0_8:
	add	w9, w3, #127
	cmp	w3, #0
	csel	w9, w9, w3, lt
	asr	w9, w9, #7
	ldr	x8, [x8, #8]
	mov	w10, #12
	umaddl	x8, w1, w10, x8
	str	w9, [x8, #4]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
                                        ; -- End function
	.comm	_devc,8,3                       ; @devc
	.no_dead_strip	_opl3_controller
.subsections_via_symbols
