	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_opl3_synth_use
_snd_opl3_synth_use:                    ## @snd_opl3_synth_use
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_snd_opl3_synth_setup
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	_use_internal_drums@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_SNDRV_OPL3_ST_NOT_AVAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%rbx), %rcx
	movl	%eax, 32(%rcx)
	movl	%eax, 28(%rcx)
	movl	%eax, 24(%rcx)
	movq	%rbx, %rdi
	callq	_snd_opl3_load_drums
	movq	_OPL3_PERCUSSION_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, (%rbx)
	movq	_OPL3_LEFT@GOTPCREL(%rip), %rax
	movq	_OPL3_REG_PERCUSSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	jmp	LBB0_4
LBB0_3:
	movl	$0, (%rbx)
LBB0_4:
	movq	(%r14), %rax
	movq	_SNDRV_SEQ_CLIENT_SYSTEM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_snd_opl3_synth_use_inc
	testl	%eax, %eax
	js	LBB0_7
LBB0_6:
	movq	_SNDRV_OPL3_MODE_SEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_use_internal_drums,8,3         ## @use_internal_drums
	.comm	_SNDRV_OPL3_ST_NOT_AVAIL,4,2    ## @SNDRV_OPL3_ST_NOT_AVAIL
	.comm	_OPL3_PERCUSSION_ENABLE,4,2     ## @OPL3_PERCUSSION_ENABLE
	.comm	_OPL3_LEFT,4,2                  ## @OPL3_LEFT
	.comm	_OPL3_REG_PERCUSSION,4,2        ## @OPL3_REG_PERCUSSION
	.comm	_SNDRV_SEQ_CLIENT_SYSTEM,8,3    ## @SNDRV_SEQ_CLIENT_SYSTEM
	.comm	_SNDRV_OPL3_MODE_SEQ,4,2        ## @SNDRV_OPL3_MODE_SEQ
	.no_dead_strip	_snd_opl3_synth_use
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_opl3_synth_use
_snd_opl3_synth_use:                    ; @snd_opl3_synth_use
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_snd_opl3_synth_setup
	tbnz	w0, #31, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _use_internal_drums@GOTPAGE
Lloh1:
	ldr	x8, [x8, _use_internal_drums@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _SNDRV_OPL3_ST_NOT_AVAIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_OPL3_ST_NOT_AVAIL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	stp	w8, w8, [x9, #28]
	str	w8, [x9, #24]
	mov	x0, x19
	bl	_snd_opl3_load_drums
Lloh6:
	adrp	x8, _OPL3_PERCUSSION_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OPL3_PERCUSSION_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	str	w2, [x19]
Lloh9:
	adrp	x8, _OPL3_LEFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OPL3_LEFT@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x10, _OPL3_REG_PERCUSSION@GOTPAGE
Lloh13:
	ldr	x10, [x10, _OPL3_REG_PERCUSSION@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w1, w10, w8
	mov	x0, x19
	blr	x9
	b	LBB0_4
LBB0_3:
	str	wzr, [x19]
LBB0_4:
	ldr	x8, [x20]
Lloh15:
	adrp	x9, _SNDRV_SEQ_CLIENT_SYSTEM@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SNDRV_SEQ_CLIENT_SYSTEM@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_snd_opl3_synth_use_inc
	tbnz	w0, #31, LBB0_7
LBB0_6:
	mov	w0, #0
Lloh18:
	adrp	x8, _SNDRV_OPL3_MODE_SEQ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SNDRV_OPL3_MODE_SEQ@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_use_internal_drums,8,3         ; @use_internal_drums
	.comm	_SNDRV_OPL3_ST_NOT_AVAIL,4,2    ; @SNDRV_OPL3_ST_NOT_AVAIL
	.comm	_OPL3_PERCUSSION_ENABLE,4,2     ; @OPL3_PERCUSSION_ENABLE
	.comm	_OPL3_LEFT,4,2                  ; @OPL3_LEFT
	.comm	_OPL3_REG_PERCUSSION,4,2        ; @OPL3_REG_PERCUSSION
	.comm	_SNDRV_SEQ_CLIENT_SYSTEM,8,3    ; @SNDRV_SEQ_CLIENT_SYSTEM
	.comm	_SNDRV_OPL3_MODE_SEQ,4,2        ; @SNDRV_OPL3_MODE_SEQ
	.no_dead_strip	_snd_opl3_synth_use
.subsections_via_symbols
