	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pokeysnd_init_rf
_pokeysnd_init_rf:                      ## @pokeysnd_init_rf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %r8d
	movl	%edi, %eax
	movq	_Update_pokey_sound_rf@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_POKEYSND_Update_ptr@GOTPCREL(%rip), %rdi
	movl	%edx, (%rdi)
	movq	_POKEYSND_BIT16@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	jne	LBB0_1
## %bb.2:
	movq	_pokeysnd_process_8@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_pokeysnd_process_16@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %ecx
	movq	_POKEYSND_Process_ptr@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_P4@GOTPCREL(%rip), %rcx
	movq	$0, (%rcx)
	movq	_P5@GOTPCREL(%rip), %rcx
	movq	$0, (%rcx)
	movq	_P9@GOTPCREL(%rip), %rcx
	movq	$0, (%rcx)
	movq	_P17@GOTPCREL(%rip), %rcx
	movq	$0, (%rcx)
	shll	$8, %eax
	cltd
	idivl	%esi
	movq	_Samp_n_max@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_Samp_n_cnt@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	_POKEY_MAXPOKEYS@GOTPCREL(%rip), %r9
	cmpl	$0, (%r9)
	jle	LBB0_6
## %bb.4:
	movq	_Outvol@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	_Outbit@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movq	_Div_n_cnt@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_Div_n_max@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_pokeysnd_AUDV@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, (%r10,%rcx,8)
	movq	$0, (%r11,%rcx,8)
	movq	$0, (%rsi,%rcx,8)
	movl	$2147483647, (%rdi,%rcx,4)      ## imm = 0x7FFFFFFF
	movq	$0, (%rax,%rcx,8)
	incq	%rcx
	movslq	(%r9), %rdx
	shlq	$2, %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_5
LBB0_6:
	movq	_Num_pokeys@GOTPCREL(%rip), %rax
	movl	%r8d, (%rax)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Update_pokey_sound_rf,4,2      ## @Update_pokey_sound_rf
	.comm	_POKEYSND_Update_ptr,4,2        ## @POKEYSND_Update_ptr
	.comm	_POKEYSND_BIT16,4,2             ## @POKEYSND_BIT16
	.comm	_pokeysnd_process_16,4,2        ## @pokeysnd_process_16
	.comm	_pokeysnd_process_8,4,2         ## @pokeysnd_process_8
	.comm	_POKEYSND_Process_ptr,4,2       ## @POKEYSND_Process_ptr
	.comm	_P4,8,3                         ## @P4
	.comm	_P5,8,3                         ## @P5
	.comm	_P9,8,3                         ## @P9
	.comm	_P17,8,3                        ## @P17
	.comm	_Samp_n_max,4,2                 ## @Samp_n_max
	.comm	_Samp_n_cnt,8,3                 ## @Samp_n_cnt
	.comm	_POKEY_MAXPOKEYS,4,2            ## @POKEY_MAXPOKEYS
	.comm	_Outvol,8,3                     ## @Outvol
	.comm	_Outbit,8,3                     ## @Outbit
	.comm	_Div_n_cnt,8,3                  ## @Div_n_cnt
	.comm	_Div_n_max,8,3                  ## @Div_n_max
	.comm	_pokeysnd_AUDV,8,3              ## @pokeysnd_AUDV
	.comm	_Num_pokeys,4,2                 ## @Num_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	_POKEYSND_sampbuf_AUDV,8,3      ## @POKEYSND_sampbuf_AUDV
	.comm	_Update_consol_sound_rf,4,2     ## @Update_consol_sound_rf
	.comm	_Update_serio_sound_rf,4,2      ## @Update_serio_sound_rf
	.comm	_Update_vol_only_sound_rf,4,2   ## @Update_vol_only_sound_rf
	.no_dead_strip	_pokeysnd_init_rf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pokeysnd_init_rf
_pokeysnd_init_rf:                      ; @pokeysnd_init_rf
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _Update_pokey_sound_rf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Update_pokey_sound_rf@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _POKEYSND_Update_ptr@GOTPAGE
Lloh4:
	ldr	x9, [x9, _POKEYSND_Update_ptr@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
Lloh6:
	adrp	x8, _POKEYSND_BIT16@GOTPAGE
Lloh7:
	ldr	x8, [x8, _POKEYSND_BIT16@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _pokeysnd_process_16@GOTPAGE
Lloh10:
	ldr	x9, [x9, _pokeysnd_process_16@GOTPAGEOFF]
Lloh11:
	adrp	x10, _pokeysnd_process_8@GOTPAGE
Lloh12:
	ldr	x10, [x10, _pokeysnd_process_8@GOTPAGEOFF]
	tst	w8, w3
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _POKEYSND_Process_ptr@GOTPAGE
Lloh14:
	ldr	x9, [x9, _POKEYSND_Process_ptr@GOTPAGEOFF]
Lloh15:
	str	w8, [x9]
Lloh16:
	adrp	x8, _P4@GOTPAGE
Lloh17:
	ldr	x8, [x8, _P4@GOTPAGEOFF]
Lloh18:
	str	xzr, [x8]
Lloh19:
	adrp	x8, _P5@GOTPAGE
Lloh20:
	ldr	x8, [x8, _P5@GOTPAGEOFF]
Lloh21:
	str	xzr, [x8]
Lloh22:
	adrp	x8, _P9@GOTPAGE
Lloh23:
	ldr	x8, [x8, _P9@GOTPAGEOFF]
Lloh24:
	str	xzr, [x8]
Lloh25:
	adrp	x8, _P17@GOTPAGE
Lloh26:
	ldr	x8, [x8, _P17@GOTPAGEOFF]
Lloh27:
	str	xzr, [x8]
	lsl	w8, w0, #8
	sdiv	w8, w8, w1
Lloh28:
	adrp	x9, _Samp_n_max@GOTPAGE
Lloh29:
	ldr	x9, [x9, _Samp_n_max@GOTPAGEOFF]
Lloh30:
	str	w8, [x9]
Lloh31:
	adrp	x8, _Samp_n_cnt@GOTPAGE
Lloh32:
	ldr	x8, [x8, _Samp_n_cnt@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	stp	xzr, xzr, [x8]
Lloh34:
	adrp	x8, _POKEY_MAXPOKEYS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _POKEY_MAXPOKEYS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
Lloh36:
	adrp	x10, _Outvol@GOTPAGE
Lloh37:
	ldr	x10, [x10, _Outvol@GOTPAGEOFF]
Lloh38:
	adrp	x11, _Outbit@GOTPAGE
Lloh39:
	ldr	x11, [x11, _Outbit@GOTPAGEOFF]
Lloh40:
	ldr	x10, [x10]
Lloh41:
	ldr	x11, [x11]
Lloh42:
	adrp	x12, _Div_n_cnt@GOTPAGE
Lloh43:
	ldr	x12, [x12, _Div_n_cnt@GOTPAGEOFF]
Lloh44:
	adrp	x13, _Div_n_max@GOTPAGE
Lloh45:
	ldr	x13, [x13, _Div_n_max@GOTPAGEOFF]
Lloh46:
	ldr	x12, [x12]
Lloh47:
	ldr	x13, [x13]
Lloh48:
	adrp	x14, _pokeysnd_AUDV@GOTPAGE
Lloh49:
	ldr	x14, [x14, _pokeysnd_AUDV@GOTPAGEOFF]
Lloh50:
	ldr	x14, [x14]
	mov	w15, #2147483647
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x16, x9, #3
	str	xzr, [x10, x16]
	str	xzr, [x11, x16]
	str	xzr, [x12, x16]
	str	w15, [x13, x9, lsl #2]
	str	xzr, [x14, x16]
	add	x9, x9, #1
	ldrsw	x16, [x8]
	cmp	x9, x16, lsl #2
	b.lt	LBB0_2
LBB0_3:
Lloh51:
	adrp	x8, _Num_pokeys@GOTPAGE
Lloh52:
	ldr	x8, [x8, _Num_pokeys@GOTPAGEOFF]
Lloh53:
	str	w2, [x8]
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh46
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh40
	.loh AdrpLdrGotStr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_Update_pokey_sound_rf,4,2      ; @Update_pokey_sound_rf
	.comm	_POKEYSND_Update_ptr,4,2        ; @POKEYSND_Update_ptr
	.comm	_POKEYSND_BIT16,4,2             ; @POKEYSND_BIT16
	.comm	_pokeysnd_process_16,4,2        ; @pokeysnd_process_16
	.comm	_pokeysnd_process_8,4,2         ; @pokeysnd_process_8
	.comm	_POKEYSND_Process_ptr,4,2       ; @POKEYSND_Process_ptr
	.comm	_P4,8,3                         ; @P4
	.comm	_P5,8,3                         ; @P5
	.comm	_P9,8,3                         ; @P9
	.comm	_P17,8,3                        ; @P17
	.comm	_Samp_n_max,4,2                 ; @Samp_n_max
	.comm	_Samp_n_cnt,8,3                 ; @Samp_n_cnt
	.comm	_POKEY_MAXPOKEYS,4,2            ; @POKEY_MAXPOKEYS
	.comm	_Outvol,8,3                     ; @Outvol
	.comm	_Outbit,8,3                     ; @Outbit
	.comm	_Div_n_cnt,8,3                  ; @Div_n_cnt
	.comm	_Div_n_max,8,3                  ; @Div_n_max
	.comm	_pokeysnd_AUDV,8,3              ; @pokeysnd_AUDV
	.comm	_Num_pokeys,4,2                 ; @Num_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	_POKEYSND_sampbuf_AUDV,8,3      ; @POKEYSND_sampbuf_AUDV
	.comm	_Update_consol_sound_rf,4,2     ; @Update_consol_sound_rf
	.comm	_Update_serio_sound_rf,4,2      ; @Update_serio_sound_rf
	.comm	_Update_vol_only_sound_rf,4,2   ; @Update_vol_only_sound_rf
	.no_dead_strip	_pokeysnd_init_rf
.subsections_via_symbols
