	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opl3_aftertouch
_opl3_aftertouch:                       ## @opl3_aftertouch
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	js	LBB0_12
## %bb.1:
	movq	_devc@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpl	%esi, (%rax)
	jle	LBB0_12
## %bb.2:
	movq	_pv_map@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	movq	8(%rax), %rax
	movl	%esi, %ebx
	movq	(%rax,%rbx,8), %r12
	leaq	L_.str(%rip), %rdi
	callq	_printk
	movl	%eax, %edi
	callq	_DEB
	cmpq	$0, (%r15,%r12,8)
	je	LBB0_12
## %bb.3:
	movq	(%r14), %rax
	movq	32(%rax), %rcx
	movq	(%rcx,%rbx,8), %r14
	testq	%r14, %r14
	jne	LBB0_5
## %bb.4:
	movq	24(%rax), %r14
LBB0_5:
	movq	16(%rax), %rax
	cmpl	$4, (%rax,%rbx,4)
	jne	LBB0_11
## %bb.6:
	movq	(%r14), %rax
	movl	40(%rax), %ecx
	andl	$1, %ecx
	movq	_OFFS_4OP@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	movl	40(%rax,%rdx,4), %eax
	andl	$1, %eax
	leal	(%rax,%rcx,2), %eax
	movl	$2, %edi
	movl	$4, %ebx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movl	$1, %edi
	jmp	LBB0_9
LBB0_11:
	movl	$1, %edi
	callq	_SET_VIBRATO
	movq	(%r14), %rax
	movl	$2, %ebx
	testb	$1, 40(%rax)
	jne	LBB0_10
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$1, %edi
	callq	_SET_VIBRATO
	movl	$3, %edi
LBB0_9:
	callq	_SET_VIBRATO
LBB0_10:
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SET_VIBRATO                    ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_devc,8,3                       ## @devc
	.comm	_pv_map,8,3                     ## @pv_map
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Aftertouch %d\n"

	.comm	_OFFS_4OP,4,2                   ## @OFFS_4OP
	.no_dead_strip	_opl3_aftertouch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opl3_aftertouch
_opl3_aftertouch:                       ; @opl3_aftertouch
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	tbnz	w1, #31, LBB0_9
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x20, _devc@GOTPAGE
Lloh1:
	ldr	x20, [x20, _devc@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w9, [x8]
	cmp	w9, w1
	b.le	LBB0_9
; %bb.2:
Lloh2:
	adrp	x9, _pv_map@GOTPAGE
Lloh3:
	ldr	x9, [x9, _pv_map@GOTPAGEOFF]
Lloh4:
	ldr	x21, [x9]
	ldr	x8, [x8, #8]
	ldr	x22, [x8, w19, uxtw #3]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_printk
	bl	_DEB
	ldr	x8, [x21, x22, lsl #3]
	cbz	x8, LBB0_9
; %bb.3:
	mov	w8, w19
	ldr	x9, [x20]
	ldr	x10, [x9, #32]
	ldr	x19, [x10, x8, lsl #3]
	cbnz	x19, LBB0_5
; %bb.4:
	ldr	x19, [x9, #24]
LBB0_5:
	ldr	x9, [x9, #16]
	ldr	w8, [x9, x8, lsl #2]
	cmp	w8, #4
	b.ne	LBB0_8
; %bb.6:
	ldr	x8, [x19]
	ldr	w10, [x8, #40]
Lloh7:
	adrp	x9, _OFFS_4OP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _OFFS_4OP@GOTPAGEOFF]
Lloh9:
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #2
	ldr	w8, [x8, #40]
	and	w9, w8, #0x1
	bfi	w9, w10, #1, #1
	mov	w0, #2
	mov	w8, #4
Lloh10:
	adrp	x10, lJTI0_0@PAGE
Lloh11:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_7
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_7:
	mov	w0, #1
	b	LBB0_12
LBB0_8:
	mov	w0, #1
	bl	_SET_VIBRATO
	ldr	x8, [x19]
	ldrb	w8, [x8, #40]
	tbnz	w8, #0, LBB0_10
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w8, #2
	b	LBB0_13
LBB0_11:
	mov	w0, #1
	bl	_SET_VIBRATO
	mov	w0, #3
LBB0_12:
	bl	_SET_VIBRATO
	mov	w8, #4
LBB0_13:
	mov	x0, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_SET_VIBRATO
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
                                        ; -- End function
	.comm	_devc,8,3                       ; @devc
	.comm	_pv_map,8,3                     ; @pv_map
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Aftertouch %d\n"

	.comm	_OFFS_4OP,4,2                   ; @OFFS_4OP
	.no_dead_strip	_opl3_aftertouch
.subsections_via_symbols
