	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_YM2413Write                    ## -- Begin function YM2413Write
	.p2align	4, 0x90
_YM2413Write:                           ## @YM2413Write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testb	$2, %dil
	jne	LBB0_4
## %bb.1:
	testb	$1, %dil
	jne	LBB0_3
## %bb.2:
	movzbl	%sil, %eax
	movq	_ym2413@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	popq	%rbp
	retq
LBB0_4:
	andl	$1, %esi
	movq	_ym2413@GOTPCREL(%rip), %rax
	movl	%esi, 4(%rax)
	popq	%rbp
	retq
LBB0_3:
	movq	_ym2413@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_OPLLWriteReg                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ym2413,8,2                     ## @ym2413
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_YM2413Write                    ; -- Begin function YM2413Write
	.p2align	2
_YM2413Write:                           ; @YM2413Write
	.cfi_startproc
; %bb.0:
	tbnz	w0, #1, LBB0_3
; %bb.1:
	tbnz	w0, #0, LBB0_4
; %bb.2:
	and	w8, w1, #0xff
Lloh0:
	adrp	x9, _ym2413@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ym2413@GOTPAGEOFF]
Lloh2:
	str	w8, [x9]
	ret
LBB0_3:
	and	w8, w1, #0x1
Lloh3:
	adrp	x9, _ym2413@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ym2413@GOTPAGEOFF]
Lloh5:
	str	w8, [x9, #4]
	ret
LBB0_4:
Lloh6:
	adrp	x8, _ym2413@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ym2413@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	_OPLLWriteReg
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ym2413,8,2                     ; @ym2413
.subsections_via_symbols
