	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function z80_md_ym2612_write
_z80_md_ym2612_write:                   ## @z80_md_ym2612_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_PicoOpt@GOTPCREL(%rip), %rax
	movq	_POPT_EN_FM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movzbl	%sil, %esi
	movl	$1, %edx
	callq	_ym2612_write_local
	andl	$1, %eax
	movq	_emustatus@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PicoOpt,4,2                    ## @PicoOpt
	.comm	_POPT_EN_FM,4,2                 ## @POPT_EN_FM
	.comm	_emustatus,4,2                  ## @emustatus
	.no_dead_strip	_z80_md_ym2612_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function z80_md_ym2612_write
_z80_md_ym2612_write:                   ; @z80_md_ym2612_write
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _PicoOpt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PicoOpt@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _POPT_EN_FM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _POPT_EN_FM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w2, #1
	bl	_ym2612_write_local
	and	w8, w0, #0x1
Lloh6:
	adrp	x9, _emustatus@GOTPAGE
Lloh7:
	ldr	x9, [x9, _emustatus@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PicoOpt,4,2                    ; @PicoOpt
	.comm	_POPT_EN_FM,4,2                 ; @POPT_EN_FM
	.comm	_emustatus,4,2                  ; @emustatus
	.no_dead_strip	_z80_md_ym2612_write
.subsections_via_symbols
