	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_YM2612UpdateOne_               ## -- Begin function YM2612UpdateOne_
	.p2align	4, 0x90
_YM2612UpdateOne_:                      ## @YM2612UpdateOne_
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	movl	%r15d, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_memset32
LBB0_2:
	movq	_ym2612@GOTPCREL(%rip), %r12
	movq	16(%r12), %rdi
	callq	_refresh_fc_eg_chan
	movq	16(%r12), %rdi
	addq	$4, %rdi
	callq	_refresh_fc_eg_chan
	testb	$-64, 12(%r12)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_refresh_fc_eg_chan_sl3
	jmp	LBB0_5
LBB0_4:
	movq	16(%r12), %rdi
	addq	$8, %rdi
	callq	_refresh_fc_eg_chan
LBB0_5:
	movq	16(%r12), %rdi
	addq	$12, %rdi
	callq	_refresh_fc_eg_chan
	movq	16(%r12), %rdi
	addq	$16, %rdi
	callq	_refresh_fc_eg_chan
	movq	16(%r12), %rdi
	addq	$20, %rdi
	callq	_refresh_fc_eg_chan
	movl	8(%r12), %r13d
	xorl	%r14d, %r14d
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	setne	%r14b
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_chan_render_prep
	movl	(%r12), %eax
	testb	$15, %al
	je	LBB0_7
## %bb.6:
	movl	%r13d, %ecx
	shll	$4, %ecx
	andl	$48, %ecx
	orl	%r14d, %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_chan_render
	movl	%eax, %ebx
	movl	(%r12), %eax
LBB0_7:
	testb	$-16, %al
	je	LBB0_9
## %bb.8:
	movl	%r13d, %eax
	andl	$12, %eax
	leal	(%r14,%rax,4), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_chan_render
	addl	%eax, %eax
	orl	%eax, %ebx
	movl	(%r12), %eax
LBB0_9:
	testl	$3840, %eax                     ## imm = 0xF00
	je	LBB0_11
## %bb.10:
	movl	%r13d, %ecx
	andl	$48, %ecx
	orl	%r14d, %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	$2, %edx
	callq	_chan_render
	shll	$2, %eax
	orl	%eax, %ebx
	movl	(%r12), %eax
LBB0_11:
	testl	$61440, %eax                    ## imm = 0xF000
	je	LBB0_13
## %bb.12:
	movl	%r13d, %ecx
	shrl	$2, %ecx
	andl	$48, %ecx
	orl	%r14d, %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	$3, %edx
	callq	_chan_render
	shll	$3, %eax
	orl	%eax, %ebx
	movl	(%r12), %eax
LBB0_13:
	testl	$983040, %eax                   ## imm = 0xF0000
	je	LBB0_15
## %bb.14:
	movl	%r13d, %ecx
	shrl	$4, %ecx
	andl	$48, %ecx
	orl	%r14d, %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	$4, %edx
	callq	_chan_render
	shll	$4, %eax
	orl	%eax, %ebx
	movl	(%r12), %eax
LBB0_15:
	testl	$15728640, %eax                 ## imm = 0xF00000
	je	LBB0_17
## %bb.16:
	shrl	$6, %r13d
	andl	$48, %r13d
	orl	%r14d, %r13d
	movl	4(%r12), %ecx
	shll	$2, %ecx
	orl	%r13d, %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	$5, %edx
	callq	_chan_render
	shll	$5, %eax
	orl	%eax, %ebx
LBB0_17:
	xorl	%eax, %eax
	callq	_chan_render_finish
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ym2612,24,3                    ## @ym2612
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_YM2612UpdateOne_               ; -- Begin function YM2612UpdateOne_
	.p2align	2
_YM2612UpdateOne_:                      ; @YM2612UpdateOne_
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	cbz	w3, LBB0_2
; %bb.1:
	lsl	w2, w19, w21
	mov	x0, x20
	mov	w1, #0
	bl	_memset32
LBB0_2:
Lloh0:
	adrp	x22, _ym2612@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ym2612@GOTPAGEOFF]
	ldr	x0, [x22, #16]
	bl	_refresh_fc_eg_chan
	ldr	x8, [x22, #16]
	add	x0, x8, #4
	bl	_refresh_fc_eg_chan
	ldrb	w8, [x22, #12]
	tst	w8, #0xc0
	b.eq	LBB0_4
; %bb.3:
	bl	_refresh_fc_eg_chan_sl3
	b	LBB0_5
LBB0_4:
	ldr	x8, [x22, #16]
	add	x0, x8, #8
	bl	_refresh_fc_eg_chan
LBB0_5:
	ldr	x8, [x22, #16]
	add	x0, x8, #12
	bl	_refresh_fc_eg_chan
	ldr	x8, [x22, #16]
	add	x0, x8, #16
	bl	_refresh_fc_eg_chan
	ldr	x8, [x22, #16]
	add	x0, x8, #20
	bl	_refresh_fc_eg_chan
	ldr	w23, [x22, #8]
	cmp	w21, #0
	cset	w24, ne
	bl	_chan_render_prep
	ldr	w8, [x22]
	tst	w8, #0xf
	b.eq	LBB0_7
; %bb.6:
	mov	x3, x24
	bfi	w3, w23, #4, #2
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_chan_render
	mov	x21, x0
	ldr	w8, [x22]
	b	LBB0_8
LBB0_7:
	mov	w21, #0
LBB0_8:
	lsr	w25, w23, #2
	tst	w8, #0xf0
	b.eq	LBB0_10
; %bb.9:
	mov	x3, x24
	bfi	w3, w25, #4, #2
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_chan_render
	orr	w21, w21, w0, lsl #1
	ldr	w8, [x22]
LBB0_10:
	tst	w8, #0xf00
	b.eq	LBB0_12
; %bb.11:
	and	w8, w23, #0x30
	orr	w3, w8, w24
	mov	x0, x20
	mov	x1, x19
	mov	w2, #2
	bl	_chan_render
	orr	w21, w21, w0, lsl #2
	ldr	w8, [x22]
LBB0_12:
	tst	w8, #0xf000
	b.eq	LBB0_14
; %bb.13:
	and	w8, w25, #0x30
	orr	w3, w8, w24
	mov	x0, x20
	mov	x1, x19
	mov	w2, #3
	bl	_chan_render
	orr	w21, w21, w0, lsl #3
	ldr	w8, [x22]
LBB0_14:
	tst	w8, #0xf0000
	b.eq	LBB0_16
; %bb.15:
	lsr	w8, w23, #4
	and	w8, w8, #0x30
	orr	w3, w8, w24
	mov	x0, x20
	mov	x1, x19
	mov	w2, #4
	bl	_chan_render
	orr	w21, w21, w0, lsl #4
	ldr	w8, [x22]
LBB0_16:
	tst	w8, #0xf00000
	b.eq	LBB0_18
; %bb.17:
	lsr	w8, w23, #6
	and	w8, w8, #0x30
	orr	w8, w8, w24
	ldr	w9, [x22, #4]
	orr	w3, w8, w9, lsl #2
	mov	x0, x20
	mov	x1, x19
	mov	w2, #5
	bl	_chan_render
	orr	w21, w21, w0, lsl #5
LBB0_18:
	bl	_chan_render_finish
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ym2612,24,3                    ; @ym2612
.subsections_via_symbols
