	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_YM2612PicoStateSave2           ## -- Begin function YM2612PicoStateSave2
	.p2align	4, 0x90
_YM2612PicoStateSave2:                  ## @YM2612PicoStateSave2
	.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	$232, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %r15d
	leaq	-120(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	leaq	-264(%rbp), %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movq	_ym2612@GOTPCREL(%rip), %r14
	movl	$184, %r12d
	addq	(%r14), %r12
	movq	48(%r14), %rax
	leaq	-192(%rbp), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	6(%r12), %rdi
	movq	%r13, %rsi
	movl	$6, %edx
	callq	_memcpy
	movq	48(%r14), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	-208(%rbp), %rdx
	movl	%ecx, (%rdx,%rbx)
	addq	$4, %rbx
	addq	$12, %r12
	cmpq	$12, %rbx
	je	LBB0_10
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax,%rbx,4), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	shll	$29, %ecx
	sarl	$3, %edx
	orl	%ecx, %edx
	movl	%edx, -192(%rbp)
	movl	16(%rax), %ecx
	movl	%ecx, -128(%rbp)
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	orl	%eax, -116(%rbp)
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$6, %edx
	callq	_memcpy
	movq	48(%r14), %rax
	movq	8(%rax,%rbx,4), %rax
	movl	24(%rax), %ecx
	movl	28(%rax), %edx
	shll	$29, %ecx
	sarl	$3, %edx
	orl	%ecx, %edx
	movl	%edx, -192(%rbp)
	movl	40(%rax), %ecx
	movl	%ecx, -128(%rbp)
	cmpq	$0, 32(%rax)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%rbx), %ecx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orl	%eax, -116(%rbp)
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	$6, %r12
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$6, %edx
	callq	_memcpy
	movq	48(%r14), %rax
	movq	8(%rax,%rbx,4), %rax
	movl	48(%rax), %ecx
	movl	52(%rax), %edx
	shll	$29, %ecx
	sarl	$3, %edx
	orl	%ecx, %edx
	movl	%edx, -192(%rbp)
	movl	64(%rax), %ecx
	movl	%ecx, -128(%rbp)
	cmpq	$0, 56(%rax)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	2(%rbx), %ecx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orl	%eax, -116(%rbp)
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	$6, %r12
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$6, %edx
	callq	_memcpy
	movq	48(%r14), %rax
	movq	8(%rax,%rbx,4), %rax
	movl	72(%rax), %ecx
	movl	76(%rax), %edx
	shll	$29, %ecx
	sarl	$3, %edx
	orl	%ecx, %edx
	movl	%edx, -192(%rbp)
	movl	88(%rax), %ecx
	movl	%ecx, -128(%rbp)
	cmpq	$0, 80(%rax)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	3(%rbx), %ecx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orl	%eax, -116(%rbp)
	jmp	LBB0_9
LBB0_10:
	movl	$440, %r13d                     ## imm = 0x1B8
	addq	(%r14), %r13
	xorl	%ebx, %ebx
	leaq	-192(%rbp), %r12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	6(%r13), %rdi
	movq	%r12, %rsi
	movl	$6, %edx
	callq	_memcpy
	movq	48(%r14), %rax
	movl	48(%rax,%rbx,4), %ecx
	movq	-208(%rbp), %rdx
	movl	%ecx, 12(%rdx,%rbx)
	addq	$4, %rbx
	addq	$12, %r13
	cmpq	$12, %rbx
	je	LBB0_20
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	56(%rax,%rbx,4), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	shll	$29, %ecx
	sarl	$3, %edx
	orl	%ecx, %edx
	movl	%edx, -192(%rbp)
	movl	16(%rax), %ecx
	movl	%ecx, -128(%rbp)
	cmpq	$0, 8(%rax)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	leal	12(%rbx), %ecx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orl	%eax, -116(%rbp)
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$6, %edx
	callq	_memcpy
	movq	48(%r14), %rax
	movq	56(%rax,%rbx,4), %rax
	movl	24(%rax), %ecx
	movl	28(%rax), %edx
	shll	$29, %ecx
	sarl	$3, %edx
	orl	%ecx, %edx
	movl	%edx, -192(%rbp)
	movl	40(%rax), %ecx
	movl	%ecx, -128(%rbp)
	cmpq	$0, 32(%rax)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	leal	13(%rbx), %ecx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orl	%eax, -116(%rbp)
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	addq	$6, %r13
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$6, %edx
	callq	_memcpy
	movq	48(%r14), %rax
	movq	56(%rax,%rbx,4), %rax
	movl	48(%rax), %ecx
	movl	52(%rax), %edx
	shll	$29, %ecx
	sarl	$3, %edx
	orl	%ecx, %edx
	movl	%edx, -192(%rbp)
	movl	64(%rax), %ecx
	movl	%ecx, -128(%rbp)
	cmpq	$0, 56(%rax)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	leal	14(%rbx), %ecx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orl	%eax, -116(%rbp)
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	addq	$6, %r13
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$6, %edx
	callq	_memcpy
	movq	48(%r14), %rax
	movq	56(%rax,%rbx,4), %rax
	movl	72(%rax), %ecx
	movl	76(%rax), %edx
	shll	$29, %ecx
	sarl	$3, %edx
	orl	%ecx, %edx
	movl	%edx, -192(%rbp)
	movl	88(%rax), %ecx
	movl	%ecx, -128(%rbp)
	cmpq	$0, 80(%rax)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=1
	leal	15(%rbx), %ecx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orl	%eax, -116(%rbp)
	jmp	LBB0_19
LBB0_20:
	movq	32(%r14), %rax
	movq	-216(%rbp), %rcx
	movl	(%rax), %edx
	movl	%edx, (%rcx)
	movl	4(%rax), %edx
	movl	%edx, 4(%rcx)
	movl	8(%rax), %eax
	movl	%eax, 8(%rcx)
	movq	(%r14), %rdi
	leaq	-264(%rbp), %rsi
	movl	$72, %edx
	callq	_memcpy
	movl	$256, %edi                      ## imm = 0x100
	addq	(%r14), %rdi
	movl	$1095978329, -112(%rbp)         ## imm = 0x41534D59
	movl	24(%r14), %eax
	movl	%eax, -76(%rbp)
	movl	20(%r14), %eax
	movl	%eax, -80(%rbp)
	movl	40(%r14), %eax
	movl	%eax, -84(%rbp)
	movl	%r15d, -108(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -104(%rbp)
	movl	16(%r14), %eax
	movl	%eax, -88(%rbp)
	movq	8(%r14), %rax
	movq	%rax, -96(%rbp)
	movq	_g_lfo_ampm@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)
	leaq	-120(%rbp), %rsi
	movl	$72, %edx
	callq	_memcpy
	addq	$232, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ym2612,56,3                    ## @ym2612
	.comm	_g_lfo_ampm,4,2                 ## @g_lfo_ampm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_YM2612PicoStateSave2           ; -- Begin function YM2612PicoStateSave2
	.p2align	2
_YM2612PicoStateSave2:                  ; @YM2612PicoStateSave2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x26, x25, [sp, #224]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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	x19, x1
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	add	x0, sp, #80
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	mov	x23, #0
Lloh0:
	adrp	x22, _ym2612@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ym2612@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x21, x8, #184
	ldr	x8, [x22, #48]
	mov	w24, #8
	mov	w25, #1
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x21, #6
	sub	x1, x29, #136
	mov	w2, #6
	bl	_memcpy
	ldr	x8, [x22, #48]
	ldr	w9, [x8, x23, lsl #2]
	ldr	x10, [sp, #136]
	str	w9, [x10, x23]
	add	x23, x23, #4
	add	x24, x24, #16
	add	x21, x21, #12
	cmp	x23, #12
	b.eq	LBB0_10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, x24]
	ldp	w9, w10, [x8]
	asr	w10, w10, #3
	orr	w9, w10, w9, lsl #29
	ldr	w10, [x8, #16]
	stur	w9, [x29, #-136]
	stur	w10, [x29, #-72]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	lsl	w8, w25, w23
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	str	w8, [sp, #12]
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	x1, x29, #136
	mov	x0, x21
	mov	w2, #6
	bl	_memcpy
	ldr	x8, [x22, #48]
	ldr	x8, [x8, x24]
	ldp	w9, w10, [x8, #24]
	asr	w10, w10, #3
	orr	w9, w10, w9, lsl #29
	ldr	w10, [x8, #40]
	stur	w9, [x29, #-136]
	stur	w10, [x29, #-72]
	ldr	x8, [x8, #32]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w23, #1
	lsl	w8, w25, w8
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	str	w8, [sp, #12]
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #6
	sub	x1, x29, #136
	mov	x0, x21
	mov	w2, #6
	bl	_memcpy
	ldr	x8, [x22, #48]
	ldr	x8, [x8, x24]
	ldp	w9, w10, [x8, #48]
	asr	w10, w10, #3
	orr	w9, w10, w9, lsl #29
	ldr	w10, [x8, #64]
	stur	w9, [x29, #-136]
	stur	w10, [x29, #-72]
	ldr	x8, [x8, #56]
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w23, #2
	lsl	w8, w25, w8
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	str	w8, [sp, #12]
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #6
	sub	x1, x29, #136
	mov	x0, x21
	mov	w2, #6
	bl	_memcpy
	ldr	x8, [x22, #48]
	ldr	x8, [x8, x24]
	ldp	w9, w10, [x8, #72]
	asr	w10, w10, #3
	orr	w9, w10, w9, lsl #29
	ldr	w10, [x8, #88]
	stur	w9, [x29, #-136]
	stur	w10, [x29, #-72]
	ldr	x8, [x8, #80]
	cbz	x8, LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w23, #3
	lsl	w8, w25, w8
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	str	w8, [sp, #12]
	b	LBB0_1
LBB0_10:
	mov	x23, #0
	ldr	x9, [x22]
	add	x21, x9, #440
	mov	w24, #56
	mov	w25, #1
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x0, x21, #6
	sub	x1, x29, #136
	mov	w2, #6
	bl	_memcpy
	ldr	x8, [x22, #48]
	add	x9, x8, x23, lsl #2
	ldr	w9, [x9, #48]
	ldr	x10, [sp, #136]
	add	x10, x10, x23
	str	w9, [x10, #12]
	add	x23, x23, #4
	add	x24, x24, #16
	add	x21, x21, #12
	cmp	x23, #12
	b.eq	LBB0_20
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, x24]
	ldp	w9, w10, [x8]
	asr	w10, w10, #3
	orr	w9, w10, w9, lsl #29
	ldr	w10, [x8, #16]
	stur	w9, [x29, #-136]
	stur	w10, [x29, #-72]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w8, w23, #12
	lsl	w8, w25, w8
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	str	w8, [sp, #12]
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	sub	x1, x29, #136
	mov	x0, x21
	mov	w2, #6
	bl	_memcpy
	ldr	x8, [x22, #48]
	ldr	x8, [x8, x24]
	ldp	w9, w10, [x8, #24]
	asr	w10, w10, #3
	orr	w9, w10, w9, lsl #29
	ldr	w10, [x8, #40]
	stur	w9, [x29, #-136]
	stur	w10, [x29, #-72]
	ldr	x8, [x8, #32]
	cbz	x8, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w8, w23, #13
	lsl	w8, w25, w8
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	str	w8, [sp, #12]
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x21, x21, #6
	sub	x1, x29, #136
	mov	x0, x21
	mov	w2, #6
	bl	_memcpy
	ldr	x8, [x22, #48]
	ldr	x8, [x8, x24]
	ldp	w9, w10, [x8, #48]
	asr	w10, w10, #3
	orr	w9, w10, w9, lsl #29
	ldr	w10, [x8, #64]
	stur	w9, [x29, #-136]
	stur	w10, [x29, #-72]
	ldr	x8, [x8, #56]
	cbz	x8, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w8, w23, #14
	lsl	w8, w25, w8
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	str	w8, [sp, #12]
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x21, x21, #6
	sub	x1, x29, #136
	mov	x0, x21
	mov	w2, #6
	bl	_memcpy
	ldr	x8, [x22, #48]
	ldr	x8, [x8, x24]
	ldp	w9, w10, [x8, #72]
	asr	w10, w10, #3
	orr	w9, w10, w9, lsl #29
	ldr	w10, [x8, #88]
	stur	w9, [x29, #-136]
	stur	w10, [x29, #-72]
	ldr	x8, [x8, #80]
	cbz	x8, LBB0_11
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w8, w23, #15
	lsl	w8, w25, w8
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	str	w8, [sp, #12]
	b	LBB0_11
LBB0_20:
	ldr	x8, [x22, #32]
	ldr	x9, [sp, #128]
	ldr	w10, [x8]
	str	w10, [x9]
	ldr	w10, [x8, #4]
	str	w10, [x9, #4]
	ldr	w8, [x8, #8]
	str	w8, [x9, #8]
	ldr	x0, [x22]
	add	x1, sp, #80
	mov	w2, #72
	bl	_memcpy
	ldr	x8, [x22]
	add	x0, x8, #256
	mov	w8, #19801
	movk	w8, #16723, lsl #16
	ldur	d0, [x22, #20]
	str	d0, [sp, #48]
	ldr	w9, [x22, #40]
	stp	w8, w20, [sp, #16]
	ldr	w8, [x22, #16]
	stp	w8, w9, [sp, #40]
	ldr	d0, [x22, #8]
	str	d0, [sp, #32]
Lloh2:
	adrp	x8, _g_lfo_ampm@GOTPAGE
Lloh3:
	ldr	x8, [x8, _g_lfo_ampm@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	stp	w19, w8, [sp, #24]
	add	x1, sp, #8
	mov	w2, #72
	bl	_memcpy
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #224]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ym2612,56,3                    ; @ym2612
	.comm	_g_lfo_ampm,4,2                 ; @g_lfo_ampm
.subsections_via_symbols
