	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_opl3_drum_voice_set
_snd_opl3_drum_voice_set:               ## @snd_opl3_drum_voice_set
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_snd_opl3_regmap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rsi), %r13
	movq	8(%rsi), %rcx
	movq	(%rax,%r13,8), %rax
	movzbl	(%rax,%rcx), %r15d
	movq	_OPL3_LEFT@GOTPCREL(%rip), %r12
	movzbl	(%r12), %eax
	movq	_OPL3_REG_AM_VIB@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %esi
	addl	%r15d, %esi
	orl	%eax, %esi
	movl	36(%r14), %edx
	callq	*(%rdi)
	movzbl	(%r12), %eax
	movq	_OPL3_REG_KSL_LEVEL@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %esi
	addl	%r15d, %esi
	orl	%eax, %esi
	movl	32(%r14), %edx
	movq	%rbx, %rdi
	callq	*(%rbx)
	movzbl	(%r12), %eax
	movq	_OPL3_REG_ATTACK_DECAY@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %esi
	addl	%r15d, %esi
	orl	%eax, %esi
	movl	28(%r14), %edx
	movq	%rbx, %rdi
	callq	*(%rbx)
	movzbl	(%r12), %eax
	movq	_OPL3_REG_SUSTAIN_RELEASE@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %esi
	addl	%r15d, %esi
	orl	%eax, %esi
	movl	24(%r14), %edx
	movq	%rbx, %rdi
	callq	*(%rbx)
	movzbl	(%r12), %eax
	movq	_OPL3_REG_FEEDBACK_CONNECTION@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	movzbl	%r13b, %esi
	addl	%ecx, %esi
	orl	%eax, %esi
	movl	20(%r14), %edx
	movq	%rbx, %rdi
	callq	*(%rbx)
	movzbl	(%r12), %eax
	movq	_OPL3_REG_WAVE_SELECT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %esi
	addl	%r15d, %esi
	orl	%eax, %esi
	movq	(%rbx), %rax
	movl	16(%r14), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_snd_opl3_regmap,8,3            ## @snd_opl3_regmap
	.comm	_OPL3_LEFT,1,0                  ## @OPL3_LEFT
	.comm	_OPL3_REG_AM_VIB,1,0            ## @OPL3_REG_AM_VIB
	.comm	_OPL3_REG_KSL_LEVEL,1,0         ## @OPL3_REG_KSL_LEVEL
	.comm	_OPL3_REG_ATTACK_DECAY,1,0      ## @OPL3_REG_ATTACK_DECAY
	.comm	_OPL3_REG_SUSTAIN_RELEASE,1,0   ## @OPL3_REG_SUSTAIN_RELEASE
	.comm	_OPL3_REG_FEEDBACK_CONNECTION,1,0 ## @OPL3_REG_FEEDBACK_CONNECTION
	.comm	_OPL3_REG_WAVE_SELECT,1,0       ## @OPL3_REG_WAVE_SELECT
	.no_dead_strip	_snd_opl3_drum_voice_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_opl3_drum_voice_set
_snd_opl3_drum_voice_set:               ; @snd_opl3_drum_voice_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _snd_opl3_regmap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _snd_opl3_regmap@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x23, x9, [x1]
	ldr	x8, [x8, x23, lsl #3]
	ldrb	w21, [x8, x9]
Lloh3:
	adrp	x22, _OPL3_LEFT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _OPL3_LEFT@GOTPAGEOFF]
Lloh5:
	adrp	x8, _OPL3_REG_AM_VIB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OPL3_REG_AM_VIB@GOTPAGEOFF]
	ldrb	w9, [x22]
	ldrb	w8, [x8]
	add	w8, w8, w21
	orr	w1, w8, w9
	ldr	x8, [x0]
	ldr	w2, [x20, #36]
	blr	x8
Lloh7:
	adrp	x8, _OPL3_REG_KSL_LEVEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OPL3_REG_KSL_LEVEL@GOTPAGEOFF]
	ldrb	w9, [x22]
	ldrb	w8, [x8]
	add	w8, w8, w21
	orr	w1, w8, w9
	ldr	x8, [x19]
	ldr	w2, [x20, #32]
	mov	x0, x19
	blr	x8
Lloh9:
	adrp	x8, _OPL3_REG_ATTACK_DECAY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OPL3_REG_ATTACK_DECAY@GOTPAGEOFF]
	ldrb	w9, [x22]
	ldrb	w8, [x8]
	add	w8, w8, w21
	orr	w1, w8, w9
	ldr	x8, [x19]
	ldr	w2, [x20, #28]
	mov	x0, x19
	blr	x8
Lloh11:
	adrp	x8, _OPL3_REG_SUSTAIN_RELEASE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OPL3_REG_SUSTAIN_RELEASE@GOTPAGEOFF]
	ldrb	w9, [x22]
	ldrb	w8, [x8]
	add	w8, w8, w21
	orr	w1, w8, w9
	ldr	x8, [x19]
	ldr	w2, [x20, #24]
	mov	x0, x19
	blr	x8
Lloh13:
	adrp	x8, _OPL3_REG_FEEDBACK_CONNECTION@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OPL3_REG_FEEDBACK_CONNECTION@GOTPAGEOFF]
	ldrb	w9, [x22]
	ldrb	w8, [x8]
	add	w8, w8, w23, uxtb
	orr	w1, w8, w9
	ldr	x8, [x19]
	ldr	w2, [x20, #20]
	mov	x0, x19
	blr	x8
	ldrb	w8, [x22]
Lloh15:
	adrp	x9, _OPL3_REG_WAVE_SELECT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _OPL3_REG_WAVE_SELECT@GOTPAGEOFF]
	ldrb	w9, [x9]
	add	w9, w9, w21
	orr	w1, w9, w8
	ldr	x3, [x19]
	ldr	w2, [x20, #16]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x3
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_snd_opl3_regmap,8,3            ; @snd_opl3_regmap
	.comm	_OPL3_LEFT,1,0                  ; @OPL3_LEFT
	.comm	_OPL3_REG_AM_VIB,1,0            ; @OPL3_REG_AM_VIB
	.comm	_OPL3_REG_KSL_LEVEL,1,0         ; @OPL3_REG_KSL_LEVEL
	.comm	_OPL3_REG_ATTACK_DECAY,1,0      ; @OPL3_REG_ATTACK_DECAY
	.comm	_OPL3_REG_SUSTAIN_RELEASE,1,0   ; @OPL3_REG_SUSTAIN_RELEASE
	.comm	_OPL3_REG_FEEDBACK_CONNECTION,1,0 ; @OPL3_REG_FEEDBACK_CONNECTION
	.comm	_OPL3_REG_WAVE_SELECT,1,0       ; @OPL3_REG_WAVE_SELECT
	.no_dead_strip	_snd_opl3_drum_voice_set
.subsections_via_symbols
