	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_YM2612ResetChip_               ## -- Begin function YM2612ResetChip_
	.p2align	4, 0x90
_YM2612ResetChip_:                      ## @YM2612ResetChip_
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_ym2612@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	$48, %edi
	callq	_set_timers
	movq	(%r14), %rax
	movl	$48, 156(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r14)
	movq	$0, 48(%r14)
	movq	24(%r14), %rdi
	callq	_reset_channels
	movl	$182, %edi
	movl	$192, %esi
	callq	_OPNWriteReg
	movl	$438, %edi                      ## imm = 0x1B6
	movl	$192, %esi
	callq	_OPNWriteReg
	movq	(%r14), %rax
	movl	$192, 728(%rax)
	movl	$192, 1752(%rax)
	movl	$181, %edi
	movl	$192, %esi
	callq	_OPNWriteReg
	movl	$437, %edi                      ## imm = 0x1B5
	movl	$192, %esi
	callq	_OPNWriteReg
	movq	(%r14), %rax
	movl	$192, 724(%rax)
	movl	$192, 1748(%rax)
	movl	$180, %edi
	movl	$192, %esi
	callq	_OPNWriteReg
	movl	$436, %edi                      ## imm = 0x1B4
	movl	$192, %esi
	callq	_OPNWriteReg
	movq	(%r14), %rax
	movl	$192, 720(%rax)
	movl	$192, 1744(%rax)
	movl	$179, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	decl	%ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_OPNWriteReg
	movl	%ebx, %edi
	orl	$256, %edi                      ## imm = 0x100
	xorl	%esi, %esi
	callq	_OPNWriteReg
	cmpl	$48, %ebx
	ja	LBB0_1
## %bb.2:
	movl	$38, %edi
	xorl	%esi, %esi
	callq	_OPNWriteReg
	movl	$37, %edi
	xorl	%esi, %esi
	callq	_OPNWriteReg
	movl	$36, %edi
	xorl	%esi, %esi
	callq	_OPNWriteReg
	movl	$35, %edi
	xorl	%esi, %esi
	callq	_OPNWriteReg
	movl	$34, %edi
	xorl	%esi, %esi
	callq	_OPNWriteReg
	movl	$33, %edi
	xorl	%esi, %esi
	callq	_OPNWriteReg
	movl	$32, %edi
	xorl	%esi, %esi
	callq	_OPNWriteReg
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ym2612,56,3                    ## @ym2612
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_YM2612ResetChip_               ; -- Begin function YM2612ResetChip_
	.p2align	2
_YM2612ResetChip_:                      ; @YM2612ResetChip_
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _ym2612@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ym2612@GOTPAGEOFF]
	ldr	x0, [x20]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	w19, #48
	mov	w0, #48
	bl	_set_timers
	ldr	x8, [x20]
	str	w19, [x8, #156]
	stp	xzr, xzr, [x20, #40]
	str	xzr, [x20, #32]
	ldr	x0, [x20, #24]
	bl	_reset_channels
	mov	w19, #192
	mov	w0, #182
	mov	w1, #192
	bl	_OPNWriteReg
	mov	w0, #438
	mov	w1, #192
	bl	_OPNWriteReg
	ldr	x8, [x20]
	str	w19, [x8, #728]
	str	w19, [x8, #1752]
	mov	w0, #181
	mov	w1, #192
	bl	_OPNWriteReg
	mov	w0, #437
	mov	w1, #192
	bl	_OPNWriteReg
	ldr	x8, [x20]
	str	w19, [x8, #724]
	str	w19, [x8, #1748]
	mov	w0, #180
	mov	w1, #192
	bl	_OPNWriteReg
	mov	w0, #436
	mov	w1, #192
	bl	_OPNWriteReg
	ldr	x8, [x20]
	str	w19, [x8, #720]
	str	w19, [x8, #1744]
	mov	w19, #179
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	sub	w19, w19, #1
	mov	x0, x19
	mov	w1, #0
	bl	_OPNWriteReg
	orr	w0, w19, #0x100
	mov	w1, #0
	bl	_OPNWriteReg
	cmp	w19, #48
	b.hi	LBB0_1
; %bb.2:
	mov	w0, #38
	mov	w1, #0
	bl	_OPNWriteReg
	mov	w0, #37
	mov	w1, #0
	bl	_OPNWriteReg
	mov	w0, #36
	mov	w1, #0
	bl	_OPNWriteReg
	mov	w0, #35
	mov	w1, #0
	bl	_OPNWriteReg
	mov	w0, #34
	mov	w1, #0
	bl	_OPNWriteReg
	mov	w0, #33
	mov	w1, #0
	bl	_OPNWriteReg
	mov	w0, #32
	mov	w1, #0
	bl	_OPNWriteReg
	stp	xzr, xzr, [x20, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ym2612,56,3                    ; @ym2612
.subsections_via_symbols
