	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function SN76496_init
LCPI0_0:
	.long	0                               ## 0x0
	.long	15                              ## 0xf
	.long	0                               ## 0x0
	.long	15                              ## 0xf
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_SN76496_init
	.p2align	4, 0x90
_SN76496_init:                          ## @SN76496_init
	.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
	movl	%edi, %eax
	movq	_ono_sn@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	_sn76496_regs@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movl	%esi, 8(%rbx)
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_SN76496_set_clock
	movq	56(%rbx), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movups	%xmm0, 16(%rax)
	movq	$0, 48(%rbx)
	movq	(%rbx), %rax
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,15,0,15]
	movups	%xmm0, (%rax)
	movups	%xmm0, 16(%rax)
	movq	16(%rbx), %rax
	movq	32(%rbx), %rcx
	movq	40(%rbx), %rdx
	movl	$0, (%rax)
	movl	28(%rbx), %esi
	movl	%esi, (%rcx)
	movl	%esi, (%rdx)
	movl	$0, 4(%rax)
	movl	28(%rbx), %esi
	movl	%esi, 4(%rcx)
	movl	%esi, 4(%rdx)
	movl	$0, 8(%rax)
	movl	28(%rbx), %esi
	movl	%esi, 8(%rcx)
	movl	%esi, 8(%rdx)
	movl	$0, 12(%rax)
	movl	28(%rbx), %esi
	movl	%esi, 12(%rcx)
	movl	%esi, 12(%rdx)
	movq	_NG_PRESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rbx)
	andl	$1, %ecx
	movl	%ecx, 12(%rax)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_SN76496_set_gain
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ono_sn,64,3                    ## @ono_sn
	.comm	_sn76496_regs,8,3               ## @sn76496_regs
	.comm	_NG_PRESET,4,2                  ## @NG_PRESET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function SN76496_init
lCPI0_0:
	.long	0                               ; 0x0
	.long	15                              ; 0xf
	.long	0                               ; 0x0
	.long	15                              ; 0xf
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_SN76496_init
	.p2align	2
_SN76496_init:                          ; @SN76496_init
	.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
	mov	x8, x0
Lloh0:
	adrp	x19, _ono_sn@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ono_sn@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh2:
	adrp	x10, _sn76496_regs@GOTPAGE
Lloh3:
	ldr	x10, [x10, _sn76496_regs@GOTPAGEOFF]
Lloh4:
	str	x9, [x10]
	str	w1, [x19, #8]
	mov	x0, x19
	mov	x1, x8
	bl	_SN76496_set_clock
	ldr	x8, [x19, #56]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x8]
	str	xzr, [x19, #48]
	ldr	x8, [x19]
Lloh5:
	adrp	x9, lCPI0_0@PAGE
Lloh6:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	stp	q0, q0, [x8]
	ldr	x8, [x19, #16]
	ldp	x9, x10, [x19, #32]
	str	wzr, [x8]
	ldr	w11, [x19, #28]
	str	w11, [x9]
	str	w11, [x10]
	str	wzr, [x8, #4]
	ldr	w11, [x19, #28]
	str	w11, [x9, #4]
	str	w11, [x10, #4]
	str	wzr, [x8, #8]
	ldr	w11, [x19, #28]
	str	w11, [x9, #8]
	str	w11, [x10, #8]
	str	wzr, [x8, #12]
	ldr	w11, [x19, #28]
	str	w11, [x9, #12]
	str	w11, [x10, #12]
Lloh7:
	adrp	x9, _NG_PRESET@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NG_PRESET@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	str	w9, [x19, #24]
	and	w9, w9, #0x1
	str	w9, [x8, #12]
	mov	x0, x19
	mov	w1, #0
	bl	_SN76496_set_gain
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ono_sn,64,3                    ; @ono_sn
	.comm	_sn76496_regs,8,3               ; @sn76496_regs
	.comm	_NG_PRESET,4,2                  ; @NG_PRESET
.subsections_via_symbols
