	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_opl3_set_params
_snd_opl3_set_params:                   ## @snd_opl3_set_params
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	cmpq	$0, 64(%rsi)
	movq	_OPL3_KEYBOARD_SPLIT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	cmovel	%r15d, %eax
	movq	_OPL3_LEFT@GOTPCREL(%rip), %r12
	movq	_OPL3_REG_KBD_SPLIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%r12), %esi
	movzbl	%al, %edx
	callq	*8(%rdi)
	cmpq	$0, 56(%rbx)
	movq	_OPL3_TREMOLO_DEPTH@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	cmovel	%r15d, %eax
	cmpq	$0, 48(%rbx)
	movq	_OPL3_VIBRATO_DEPTH@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	cmovel	%r15d, %ecx
	orl	%eax, %ecx
	xorl	%eax, %eax
	cmpq	$0, 40(%rbx)
	movq	_OPL3_PERCUSSION_ENABLE@GOTPCREL(%rip), %rdx
	movzbl	(%rdx), %edx
	cmovel	%r15d, %edx
	setne	%al
	movl	%eax, (%r14)
	cmpq	$0, 32(%rbx)
	movq	_OPL3_BASSDRUM_ON@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	cmovel	%r15d, %eax
	orl	%edx, %eax
	orl	%ecx, %eax
	cmpq	$0, 24(%rbx)
	movq	_OPL3_SNAREDRUM_ON@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	cmovel	%r15d, %ecx
	cmpq	$0, 16(%rbx)
	movq	_OPL3_TOMTOM_ON@GOTPCREL(%rip), %rdx
	movzbl	(%rdx), %edx
	cmovel	%r15d, %edx
	orl	%ecx, %edx
	cmpq	$0, 8(%rbx)
	movq	_OPL3_CYMBAL_ON@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	cmovel	%r15d, %ecx
	orl	%edx, %ecx
	orl	%eax, %ecx
	cmpq	$0, (%rbx)
	movq	_OPL3_HIHAT_ON@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	cmovel	%r15d, %eax
	orl	%ecx, %eax
	movq	_OPL3_REG_PERCUSSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%r12), %esi
	movzbl	%al, %edx
	movq	%r14, %rdi
	callq	*8(%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPL3_KEYBOARD_SPLIT,1,0        ## @OPL3_KEYBOARD_SPLIT
	.comm	_OPL3_LEFT,4,2                  ## @OPL3_LEFT
	.comm	_OPL3_REG_KBD_SPLIT,4,2         ## @OPL3_REG_KBD_SPLIT
	.comm	_OPL3_TREMOLO_DEPTH,1,0         ## @OPL3_TREMOLO_DEPTH
	.comm	_OPL3_VIBRATO_DEPTH,1,0         ## @OPL3_VIBRATO_DEPTH
	.comm	_OPL3_PERCUSSION_ENABLE,1,0     ## @OPL3_PERCUSSION_ENABLE
	.comm	_OPL3_BASSDRUM_ON,1,0           ## @OPL3_BASSDRUM_ON
	.comm	_OPL3_SNAREDRUM_ON,1,0          ## @OPL3_SNAREDRUM_ON
	.comm	_OPL3_TOMTOM_ON,1,0             ## @OPL3_TOMTOM_ON
	.comm	_OPL3_CYMBAL_ON,1,0             ## @OPL3_CYMBAL_ON
	.comm	_OPL3_HIHAT_ON,1,0              ## @OPL3_HIHAT_ON
	.comm	_OPL3_REG_PERCUSSION,4,2        ## @OPL3_REG_PERCUSSION
	.no_dead_strip	_snd_opl3_set_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_opl3_set_params
_snd_opl3_set_params:                   ; @snd_opl3_set_params
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #64]
Lloh0:
	adrp	x9, _OPL3_KEYBOARD_SPLIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OPL3_KEYBOARD_SPLIT@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	ldr	x9, [x0, #8]
Lloh2:
	adrp	x21, _OPL3_LEFT@GOTPAGE
Lloh3:
	ldr	x21, [x21, _OPL3_LEFT@GOTPAGEOFF]
	ldr	w10, [x21]
Lloh4:
	adrp	x11, _OPL3_REG_KBD_SPLIT@GOTPAGE
Lloh5:
	ldr	x11, [x11, _OPL3_REG_KBD_SPLIT@GOTPAGEOFF]
Lloh6:
	ldr	w11, [x11]
	orr	w1, w11, w10
	and	w2, w8, #0xff
	blr	x9
	ldp	x10, x8, [x20, #48]
Lloh7:
	adrp	x9, _OPL3_TREMOLO_DEPTH@GOTPAGE
Lloh8:
	ldr	x9, [x9, _OPL3_TREMOLO_DEPTH@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
Lloh9:
	adrp	x9, _OPL3_VIBRATO_DEPTH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _OPL3_VIBRATO_DEPTH@GOTPAGEOFF]
	ldr	x11, [x20, #40]
	cmp	x10, #0
	ldrb	w9, [x9]
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
	cmp	x11, #0
	cset	w9, ne
Lloh11:
	adrp	x10, _OPL3_PERCUSSION_ENABLE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _OPL3_PERCUSSION_ENABLE@GOTPAGEOFF]
	ldrb	w10, [x10]
	csel	w10, wzr, w10, eq
	orr	w8, w8, w10
	str	w9, [x19]
	ldr	x9, [x20, #32]
Lloh13:
	adrp	x10, _OPL3_BASSDRUM_ON@GOTPAGE
Lloh14:
	ldr	x10, [x10, _OPL3_BASSDRUM_ON@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w8, w9, w8
	ldp	x10, x9, [x20, #16]
	cmp	x9, #0
Lloh15:
	adrp	x9, _OPL3_SNAREDRUM_ON@GOTPAGE
Lloh16:
	ldr	x9, [x9, _OPL3_SNAREDRUM_ON@GOTPAGEOFF]
	ldrb	w9, [x9]
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _OPL3_TOMTOM_ON@GOTPAGE
Lloh18:
	ldr	x9, [x9, _OPL3_TOMTOM_ON@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh19:
	adrp	x9, _OPL3_CYMBAL_ON@GOTPAGE
Lloh20:
	ldr	x9, [x9, _OPL3_CYMBAL_ON@GOTPAGEOFF]
	ldrb	w9, [x9]
	ldp	x11, x10, [x20]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
Lloh21:
	adrp	x10, _OPL3_HIHAT_ON@GOTPAGE
Lloh22:
	ldr	x10, [x10, _OPL3_HIHAT_ON@GOTPAGEOFF]
	orr	w8, w8, w9
	ldrb	w9, [x10]
	cmp	x11, #0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
	ldr	x9, [x19, #8]
	ldr	w10, [x21]
Lloh23:
	adrp	x11, _OPL3_REG_PERCUSSION@GOTPAGE
Lloh24:
	ldr	x11, [x11, _OPL3_REG_PERCUSSION@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x11]
	orr	w1, w11, w10
	and	w2, w8, #0xff
	mov	x0, x19
	blr	x9
	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 AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_OPL3_KEYBOARD_SPLIT,1,0        ; @OPL3_KEYBOARD_SPLIT
	.comm	_OPL3_LEFT,4,2                  ; @OPL3_LEFT
	.comm	_OPL3_REG_KBD_SPLIT,4,2         ; @OPL3_REG_KBD_SPLIT
	.comm	_OPL3_TREMOLO_DEPTH,1,0         ; @OPL3_TREMOLO_DEPTH
	.comm	_OPL3_VIBRATO_DEPTH,1,0         ; @OPL3_VIBRATO_DEPTH
	.comm	_OPL3_PERCUSSION_ENABLE,1,0     ; @OPL3_PERCUSSION_ENABLE
	.comm	_OPL3_BASSDRUM_ON,1,0           ; @OPL3_BASSDRUM_ON
	.comm	_OPL3_SNAREDRUM_ON,1,0          ; @OPL3_SNAREDRUM_ON
	.comm	_OPL3_TOMTOM_ON,1,0             ; @OPL3_TOMTOM_ON
	.comm	_OPL3_CYMBAL_ON,1,0             ; @OPL3_CYMBAL_ON
	.comm	_OPL3_HIHAT_ON,1,0              ; @OPL3_HIHAT_ON
	.comm	_OPL3_REG_PERCUSSION,4,2        ; @OPL3_REG_PERCUSSION
	.no_dead_strip	_snd_opl3_set_params
.subsections_via_symbols
