	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function YM2612ResetChip
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorps	%xmm0, %xmm0
	movq	_ym2612@GOTPCREL(%rip), %rbx
	movups	%xmm0, 88(%rbx)
	movups	%xmm0, 72(%rbx)
	movq	$0, 104(%rbx)
	movl	$126, 8(%rbx)
	movups	%xmm0, 40(%rbx)
	movups	%xmm0, 56(%rbx)
	movups	%xmm0, 112(%rbx)
	movl	$48, %edi
	callq	_set_timers
	movabsq	$4398046515200, %rax            ## imm = 0x40000001000
	movq	%rax, 16(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movq	(%rbx), %rdi
	movl	$6, %esi
	callq	_reset_channels
	movl	$182, %edi
	movl	$192, %esi
	callq	_OPNWriteReg
	movl	$438, %edi                      ## imm = 0x1B6
	movl	$192, %esi
	callq	_OPNWriteReg
	movl	$181, %edi
	movl	$192, %esi
	callq	_OPNWriteReg
	movl	$437, %edi                      ## imm = 0x1B5
	movl	$192, %esi
	callq	_OPNWriteReg
	movl	$180, %edi
	movl	$192, %esi
	callq	_OPNWriteReg
	movl	$436, %edi                      ## imm = 0x1B4
	movl	$192, %esi
	callq	_OPNWriteReg
	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:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ym2612,128,3                   ## @ym2612
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function YM2612ResetChip
lCPI0_0:
	.long	4096                            ; 0x1000
	.long	1024                            ; 0x400
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_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	x19, _ym2612@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ym2612@GOTPAGEOFF]
	stp	xzr, xzr, [x19, #104]
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #88]
	stur	q0, [x19, #72]
	mov	w8, #126
	str	w8, [x19, #8]
	stur	q0, [x19, #40]
	stur	q0, [x19, #56]
	str	xzr, [x19, #120]
	mov	w0, #48
	bl	_set_timers
	stp	xzr, xzr, [x19, #24]
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #16]
	ldr	x0, [x19]
	mov	w1, #6
	bl	_reset_channels
	mov	w0, #182
	mov	w1, #192
	bl	_OPNWriteReg
	mov	w0, #438
	mov	w1, #192
	bl	_OPNWriteReg
	mov	w0, #181
	mov	w1, #192
	bl	_OPNWriteReg
	mov	w0, #437
	mov	w1, #192
	bl	_OPNWriteReg
	mov	w0, #180
	mov	w1, #192
	bl	_OPNWriteReg
	mov	w0, #436
	mov	w1, #192
	bl	_OPNWriteReg
	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:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ym2612,128,3                   ; @ym2612
.subsections_via_symbols
