	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function MZPOKEYSND_Init
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_MZPOKEYSND_Init
	.p2align	4, 0x90
_MZPOKEYSND_Init:                       ## @MZPOKEYSND_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%r8d, %esi
	movl	%edx, %r14d
	movq	_snd_quality@GOTPCREL(%rip), %rax
	movl	%r8d, (%rax)
	movq	_Update_pokey_sound_mz@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_POKEYSND_Update_ptr@GOTPCREL(%rip), %rdx
	movl	%eax, (%rdx)
	movq	_POKEYSND_BIT16@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	jne	LBB0_1
## %bb.2:
	movq	_mzpokeysnd_process_8@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_mzpokeysnd_process_16@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movq	_POKEYSND_Process_ptr@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_pokey_frq_ideal@GOTPCREL(%rip), %rax
	cvtsi2sdq	(%rax), %xmm1
	movq	_POKEYSND_playback_freq@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	divsd	%xmm0, %xmm1
	addsd	LCPI0_0(%rip), %xmm1
	cvttpd2dq	%xmm1, %xmm1
	cvtdq2pd	%xmm1, %xmm1
	mulsd	%xmm0, %xmm1
	movq	_pokey_frq@GOTPCREL(%rip), %rbx
	movsd	%xmm1, (%rbx)
	divsd	%xmm1, %xmm0
	leaq	-24(%rbp), %rdi
	callq	_remez_filter_table
	movq	_filter_size@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movsd	-24(%rbp), %xmm0                ## xmm0 = mem[0],zero
	mulsd	(%rbx), %xmm0
	cvttsd2si	%xmm0, %eax
	movq	_audible_frq@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_build_poly4
	xorl	%eax, %eax
	callq	_build_poly5
	xorl	%eax, %eax
	callq	_build_poly9
	xorl	%eax, %eax
	callq	_build_poly17
	movq	_pokey_states@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ResetPokeyState
	movq	(%rbx), %rdi
	incq	%rdi
	callq	_ResetPokeyState
	movq	_num_cur_pokeys@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_snd_quality,4,2                ## @snd_quality
	.comm	_Update_pokey_sound_mz,4,2      ## @Update_pokey_sound_mz
	.comm	_POKEYSND_Update_ptr,4,2        ## @POKEYSND_Update_ptr
	.comm	_POKEYSND_BIT16,4,2             ## @POKEYSND_BIT16
	.comm	_mzpokeysnd_process_16,4,2      ## @mzpokeysnd_process_16
	.comm	_mzpokeysnd_process_8,4,2       ## @mzpokeysnd_process_8
	.comm	_POKEYSND_Process_ptr,4,2       ## @POKEYSND_Process_ptr
	.comm	_pokey_frq_ideal,8,3            ## @pokey_frq_ideal
	.comm	_POKEYSND_playback_freq,8,3     ## @POKEYSND_playback_freq
	.comm	_pokey_frq,8,3                  ## @pokey_frq
	.comm	_filter_size,4,2                ## @filter_size
	.comm	_audible_frq,4,2                ## @audible_frq
	.comm	_pokey_states,8,3               ## @pokey_states
	.comm	_num_cur_pokeys,4,2             ## @num_cur_pokeys
	.comm	_POKEYSND_UpdateConsol_ptr,4,2  ## @POKEYSND_UpdateConsol_ptr
	.comm	_POKEYSND_UpdateSerio,4,2       ## @POKEYSND_UpdateSerio
	.comm	_POKEYSND_UpdateVolOnly,4,2     ## @POKEYSND_UpdateVolOnly
	.comm	_POKEYSND_samp_freq,4,2         ## @POKEYSND_samp_freq
	.comm	_Update_consol_sound_mz,4,2     ## @Update_consol_sound_mz
	.comm	_Update_serio_sound_mz,4,2      ## @Update_serio_sound_mz
	.comm	_Update_vol_only_sound_mz,4,2   ## @Update_vol_only_sound_mz
	.comm	_filter_11,4,2                  ## @filter_11
	.comm	_filter_11_8,4,2                ## @filter_11_8
	.comm	_filter_22,4,2                  ## @filter_22
	.comm	_filter_22_8,4,2                ## @filter_22_8
	.comm	_filter_44,4,2                  ## @filter_44
	.comm	_filter_44_8,4,2                ## @filter_44_8
	.comm	_filter_48,4,2                  ## @filter_48
	.comm	_filter_48_8,4,2                ## @filter_48_8
	.comm	_filter_8,4,2                   ## @filter_8
	.comm	_filter_8_8,4,2                 ## @filter_8_8
	.comm	_filter_data,4,2                ## @filter_data
	.comm	_filter_size_11,4,2             ## @filter_size_11
	.comm	_filter_size_11_8,4,2           ## @filter_size_11_8
	.comm	_filter_size_22,4,2             ## @filter_size_22
	.comm	_filter_size_22_8,4,2           ## @filter_size_22_8
	.comm	_filter_size_44,4,2             ## @filter_size_44
	.comm	_filter_size_44_8,4,2           ## @filter_size_44_8
	.comm	_filter_size_48,4,2             ## @filter_size_48
	.comm	_filter_size_48_8,4,2           ## @filter_size_48_8
	.comm	_filter_size_8,4,2              ## @filter_size_8
	.comm	_filter_size_8_8,4,2            ## @filter_size_8_8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MZPOKEYSND_Init                ; -- Begin function MZPOKEYSND_Init
	.p2align	2
_MZPOKEYSND_Init:                       ; @MZPOKEYSND_Init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x1, x4
	mov	x19, x2
Lloh0:
	adrp	x8, _snd_quality@GOTPAGE
Lloh1:
	ldr	x8, [x8, _snd_quality@GOTPAGEOFF]
Lloh2:
	str	w4, [x8]
Lloh3:
	adrp	x8, _Update_pokey_sound_mz@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Update_pokey_sound_mz@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _POKEYSND_Update_ptr@GOTPAGE
Lloh7:
	ldr	x9, [x9, _POKEYSND_Update_ptr@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
Lloh9:
	adrp	x8, _POKEYSND_BIT16@GOTPAGE
Lloh10:
	ldr	x8, [x8, _POKEYSND_BIT16@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _mzpokeysnd_process_16@GOTPAGE
Lloh13:
	ldr	x9, [x9, _mzpokeysnd_process_16@GOTPAGEOFF]
Lloh14:
	adrp	x10, _mzpokeysnd_process_8@GOTPAGE
Lloh15:
	ldr	x10, [x10, _mzpokeysnd_process_8@GOTPAGEOFF]
	tst	w8, w3
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _POKEYSND_Process_ptr@GOTPAGE
Lloh17:
	ldr	x9, [x9, _POKEYSND_Process_ptr@GOTPAGEOFF]
Lloh18:
	adrp	x10, _pokey_frq_ideal@GOTPAGE
Lloh19:
	ldr	x10, [x10, _pokey_frq_ideal@GOTPAGEOFF]
Lloh20:
	ldr	d0, [x10]
	scvtf	d0, d0
Lloh21:
	adrp	x10, _POKEYSND_playback_freq@GOTPAGE
Lloh22:
	ldr	x10, [x10, _POKEYSND_playback_freq@GOTPAGEOFF]
Lloh23:
	ldr	d1, [x10]
	fdiv	d0, d0, d1
	fmov	d2, #0.50000000
	fadd	d0, d0, d2
	fcvtzs	w10, d0
	scvtf	d0, w10
Lloh24:
	str	w8, [x9]
	fmul	d0, d1, d0
Lloh25:
	adrp	x20, _pokey_frq@GOTPAGE
Lloh26:
	ldr	x20, [x20, _pokey_frq@GOTPAGEOFF]
	str	d0, [x20]
	fdiv	d0, d1, d0
	add	x0, sp, #8
	bl	_remez_filter_table
Lloh27:
	adrp	x8, _filter_size@GOTPAGE
Lloh28:
	ldr	x8, [x8, _filter_size@GOTPAGEOFF]
Lloh29:
	str	w0, [x8]
	ldr	d0, [sp, #8]
	ldr	d1, [x20]
	fmul	d0, d0, d1
	fcvtzs	w8, d0
Lloh30:
	adrp	x9, _audible_frq@GOTPAGE
Lloh31:
	ldr	x9, [x9, _audible_frq@GOTPAGEOFF]
Lloh32:
	str	w8, [x9]
	bl	_build_poly4
	bl	_build_poly5
	bl	_build_poly9
	bl	_build_poly17
Lloh33:
	adrp	x20, _pokey_states@GOTPAGE
Lloh34:
	ldr	x20, [x20, _pokey_states@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ResetPokeyState
	ldr	x8, [x20]
	add	x0, x8, #1
	bl	_ResetPokeyState
Lloh35:
	adrp	x8, _num_cur_pokeys@GOTPAGE
Lloh36:
	ldr	x8, [x8, _num_cur_pokeys@GOTPAGEOFF]
Lloh37:
	str	w19, [x8]
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotStr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh24
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_snd_quality,4,2                ; @snd_quality
	.comm	_Update_pokey_sound_mz,4,2      ; @Update_pokey_sound_mz
	.comm	_POKEYSND_Update_ptr,4,2        ; @POKEYSND_Update_ptr
	.comm	_POKEYSND_BIT16,4,2             ; @POKEYSND_BIT16
	.comm	_mzpokeysnd_process_16,4,2      ; @mzpokeysnd_process_16
	.comm	_mzpokeysnd_process_8,4,2       ; @mzpokeysnd_process_8
	.comm	_POKEYSND_Process_ptr,4,2       ; @POKEYSND_Process_ptr
	.comm	_pokey_frq_ideal,8,3            ; @pokey_frq_ideal
	.comm	_POKEYSND_playback_freq,8,3     ; @POKEYSND_playback_freq
	.comm	_pokey_frq,8,3                  ; @pokey_frq
	.comm	_filter_size,4,2                ; @filter_size
	.comm	_audible_frq,4,2                ; @audible_frq
	.comm	_pokey_states,8,3               ; @pokey_states
	.comm	_num_cur_pokeys,4,2             ; @num_cur_pokeys
	.comm	_POKEYSND_UpdateConsol_ptr,4,2  ; @POKEYSND_UpdateConsol_ptr
	.comm	_POKEYSND_UpdateSerio,4,2       ; @POKEYSND_UpdateSerio
	.comm	_POKEYSND_UpdateVolOnly,4,2     ; @POKEYSND_UpdateVolOnly
	.comm	_POKEYSND_samp_freq,4,2         ; @POKEYSND_samp_freq
	.comm	_Update_consol_sound_mz,4,2     ; @Update_consol_sound_mz
	.comm	_Update_serio_sound_mz,4,2      ; @Update_serio_sound_mz
	.comm	_Update_vol_only_sound_mz,4,2   ; @Update_vol_only_sound_mz
	.comm	_filter_11,4,2                  ; @filter_11
	.comm	_filter_11_8,4,2                ; @filter_11_8
	.comm	_filter_22,4,2                  ; @filter_22
	.comm	_filter_22_8,4,2                ; @filter_22_8
	.comm	_filter_44,4,2                  ; @filter_44
	.comm	_filter_44_8,4,2                ; @filter_44_8
	.comm	_filter_48,4,2                  ; @filter_48
	.comm	_filter_48_8,4,2                ; @filter_48_8
	.comm	_filter_8,4,2                   ; @filter_8
	.comm	_filter_8_8,4,2                 ; @filter_8_8
	.comm	_filter_data,4,2                ; @filter_data
	.comm	_filter_size_11,4,2             ; @filter_size_11
	.comm	_filter_size_11_8,4,2           ; @filter_size_11_8
	.comm	_filter_size_22,4,2             ; @filter_size_22
	.comm	_filter_size_22_8,4,2           ; @filter_size_22_8
	.comm	_filter_size_44,4,2             ; @filter_size_44
	.comm	_filter_size_44_8,4,2           ; @filter_size_44_8
	.comm	_filter_size_48,4,2             ; @filter_size_48
	.comm	_filter_size_48_8,4,2           ; @filter_size_48_8
	.comm	_filter_size_8,4,2              ; @filter_size_8
	.comm	_filter_size_8_8,4,2            ; @filter_size_8_8
.subsections_via_symbols
