	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opl3_set_instr
_opl3_set_instr:                        ## @opl3_set_instr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	js	LBB0_3
## %bb.1:
	movq	_devc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	%esi, (%rax)
	jle	LBB0_3
## %bb.2:
	movq	_SBFM_MAXINSTR@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	%edx, (%rcx)
	movl	%edx, %ecx
	cmovleq	%rdi, %rcx
	testl	%edx, %edx
	cmovsq	%rdi, %rcx
	shlq	$2, %rcx
	addq	8(%rax), %rcx
	movq	16(%rax), %rax
	movl	%esi, %edx
	movq	%rcx, (%rax,%rdx,8)
LBB0_3:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_devc,8,3                       ## @devc
	.comm	_SBFM_MAXINSTR,4,2              ## @SBFM_MAXINSTR
	.no_dead_strip	_opl3_set_instr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opl3_set_instr
_opl3_set_instr:                        ; @opl3_set_instr
	.cfi_startproc
; %bb.0:
	tbnz	w1, #31, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _devc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _devc@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x8]
	cmp	w9, w1
	b.le	LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _SBFM_MAXINSTR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SBFM_MAXINSTR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w2
	mov	w9, #-1
	ccmp	w2, w9, #4, gt
	mov	w9, w2
	csel	x9, x9, xzr, gt
	ldp	x10, x8, [x8, #8]
	add	x9, x10, x9, lsl #2
	str	x9, [x8, w1, uxtw #3]
LBB0_3:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_devc,8,3                       ; @devc
	.comm	_SBFM_MAXINSTR,4,2              ; @SBFM_MAXINSTR
	.no_dead_strip	_opl3_set_instr
.subsections_via_symbols
