	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opl3_command
_opl3_command:                          ## @opl3_command
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%edi, %ebx
	movzbl	%sil, %edi
	movl	%ebx, %esi
	callq	_outb
	movq	_devc@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpl	$2, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_inb
	movl	%ebx, %edi
	callq	_inb
	jmp	LBB0_3
LBB0_2:
	movl	$10, %edi
	callq	_udelay
LBB0_3:
	leal	1(%rbx), %esi
	movzbl	%r14b, %edi
	callq	_outb
	movq	(%r15), %rax
	cmpl	$2, (%rax)
	jne	LBB0_5
## %bb.4:
	movl	%ebx, %edi
	callq	_inb
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_inb                            ## TAILCALL
LBB0_5:
	movl	$30, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_devc,8,3                       ## @devc
	.no_dead_strip	_opl3_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opl3_command
_opl3_command:                          ; @opl3_command
	.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, x2
	mov	x19, x0
	and	w0, w1, #0xff
	mov	x1, x19
	bl	_outb
Lloh0:
	adrp	x21, _devc@GOTPAGE
Lloh1:
	ldr	x21, [x21, _devc@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w8, [x8]
	cmp	w8, #2
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_inb
	mov	x0, x19
	bl	_inb
	b	LBB0_3
LBB0_2:
	mov	w0, #10
	bl	_udelay
LBB0_3:
	add	w1, w19, #1
	and	w0, w20, #0xff
	bl	_outb
	ldr	x8, [x21]
	ldr	w8, [x8]
	cmp	w8, #2
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_inb
	mov	x0, x19
	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
	b	_inb
LBB0_5:
	mov	w0, #30
	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
	b	_udelay
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_devc,8,3                       ; @devc
	.no_dead_strip	_opl3_command
.subsections_via_symbols
