	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function opl3_kill_note
LCPI0_0:
	.long	0                               ## 0x0
	.long	64                              ## 0x40
	.long	65535                           ## 0xffff
	.long	200                             ## 0xc8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_opl3_kill_note:                        ## @opl3_kill_note
	.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_4
## %bb.1:
	movq	_devc@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpl	%esi, (%rax)
	jle	LBB0_4
## %bb.2:
	movq	24(%rax), %rcx
	movq	(%rcx), %rcx
	movl	%esi, %ebx
	movq	$0, (%rcx,%rbx,8)
	movq	_pv_map@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	movq	8(%rax), %rax
	movq	(%rax,%rbx,8), %r12
	leaq	L_.str(%rip), %rdi
	callq	_printk
	movl	%eax, %edi
	callq	_DEB
	leaq	(%r12,%r12,2), %rax
	cmpq	$0, (%r15,%rax,8)
	je	LBB0_4
## %bb.3:
	movl	16(%r15,%rax,8), %edi
	movq	_KEYON_BLOCK@GOTPCREL(%rip), %rcx
	movq	8(%r15,%rax,8), %rsi
	addq	(%rcx), %rsi
	movq	(%r14), %rax
	movq	16(%rax), %rax
	shlq	$4, %rbx
	leaq	(%rbx,%rbx,2), %rbx
	movl	(%rax,%rbx), %edx
	andl	$-33, %edx
	callq	_opl3_command
	movq	(%r14), %rax
	movq	16(%rax), %rax
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,64,65535,200]
	movups	%xmm0, (%rax,%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax,%rbx)
	movups	%xmm0, 32(%rax,%rbx)
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_devc,8,3                       ## @devc
	.comm	_pv_map,8,3                     ## @pv_map
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Kill note %d\n"

	.comm	_KEYON_BLOCK,8,3                ## @KEYON_BLOCK
	.no_dead_strip	_opl3_kill_note
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function opl3_kill_note
lCPI0_0:
	.long	64                              ; 0x40
	.long	65535                           ; 0xffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_opl3_kill_note:                        ; @opl3_kill_note
	.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_4
; %bb.1:
Lloh0:
	adrp	x19, _devc@GOTPAGE
Lloh1:
	ldr	x19, [x19, _devc@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	w9, w1
	b.le	LBB0_4
; %bb.2:
	ldr	x9, [x8, #24]
	ldr	x9, [x9]
	mov	w20, w1
	lsl	x10, x20, #3
	str	xzr, [x9, x10]
Lloh2:
	adrp	x9, _pv_map@GOTPAGE
Lloh3:
	ldr	x9, [x9, _pv_map@GOTPAGEOFF]
Lloh4:
	ldr	x21, [x9]
	ldr	x8, [x8, #8]
	ldr	x22, [x8, x10]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	bl	_DEB
	mov	w8, #24
	mul	x8, x22, x8
	ldr	x8, [x21, x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w8, #24
	madd	x8, x22, x8, x21
	ldr	w0, [x8, #16]
Lloh7:
	adrp	x9, _KEYON_BLOCK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _KEYON_BLOCK@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	x8, [x8, #8]
	add	x1, x8, x9
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	add	x9, x20, x20, lsl #1
	lsl	x20, x9, #4
	ldr	w8, [x8, x20]
	and	w2, w8, #0xffffffdf
	bl	_opl3_command
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	add	x8, x8, x20
	str	wzr, [x8]
Lloh10:
	adrp	x9, lCPI0_0@PAGE
Lloh11:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	stur	d0, [x8, #4]
	mov	w9, #200
	str	w9, [x8, #12]
	stp	xzr, xzr, [x8, #32]
	stp	xzr, xzr, [x8, #16]
LBB0_4:
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_devc,8,3                       ; @devc
	.comm	_pv_map,8,3                     ; @pv_map
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Kill note %d\n"

	.comm	_KEYON_BLOCK,8,3                ; @KEYON_BLOCK
	.no_dead_strip	_opl3_kill_note
.subsections_via_symbols
