	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VOTRAXSND_Frame                ## -- Begin function VOTRAXSND_Frame
	.p2align	4, 0x90
_VOTRAXSND_Frame:                       ## @VOTRAXSND_Frame
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	callq	_votraxsnd_enabled
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_samples_per_frame@GOTPCREL(%rip), %rcx
	movq	_votrax_sync_samples@GOTPCREL(%rip), %rax
	cvtsi2sdq	(%rax), %xmm0
	subsd	(%rcx), %xmm0
	cvttsd2si	%xmm0, %rcx
	movq	%rcx, (%rax)
	testq	%rcx, %rcx
	jle	LBB0_2
LBB0_3:
	popq	%rbp
	retq
LBB0_2:
	movq	$0, (%rax)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_VOTRAXSND_busy@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_samples_per_frame,8,3          ## @samples_per_frame
	.comm	_votrax_sync_samples,8,3        ## @votrax_sync_samples
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_VOTRAXSND_busy,4,2             ## @VOTRAXSND_busy
	.comm	_Atari800_TV_PAL,8,3            ## @Atari800_TV_PAL
	.comm	_Atari800_tv_mode,8,3           ## @Atari800_tv_mode
	.comm	_POKEY_AUDF,8,3                 ## @POKEY_AUDF
	.comm	_VOICEBOX_BASEAUDF,8,3          ## @VOICEBOX_BASEAUDF
	.comm	_VOICEBOX_enabled,8,3           ## @VOICEBOX_enabled
	.comm	_VOICEBOX_ii,8,3                ## @VOICEBOX_ii
	.comm	_VTRX_RATE,8,3                  ## @VTRX_RATE
	.comm	_dsprate,8,3                    ## @dsprate
	.comm	_ratio,8,3                      ## @ratio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VOTRAXSND_Frame                ; -- Begin function VOTRAXSND_Frame
	.p2align	2
_VOTRAXSND_Frame:                       ; @VOTRAXSND_Frame
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_votraxsnd_enabled
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _samples_per_frame@GOTPAGE
Lloh1:
	ldr	x8, [x8, _samples_per_frame@GOTPAGEOFF]
Lloh2:
	ldr	d0, [x8]
Lloh3:
	adrp	x8, _votrax_sync_samples@GOTPAGE
Lloh4:
	ldr	x8, [x8, _votrax_sync_samples@GOTPAGEOFF]
	ldr	d1, [x8]
	scvtf	d1, d1
	fsub	d0, d1, d0
	fcvtzs	x9, d0
	str	x9, [x8]
	cmp	x9, #0
	b.le	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	str	xzr, [x8]
Lloh5:
	adrp	x8, _FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _VOTRAXSND_busy@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VOTRAXSND_busy@GOTPAGEOFF]
Lloh10:
	str	w8, [x9]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_samples_per_frame,8,3          ; @samples_per_frame
	.comm	_votrax_sync_samples,8,3        ; @votrax_sync_samples
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_VOTRAXSND_busy,4,2             ; @VOTRAXSND_busy
	.comm	_Atari800_TV_PAL,8,3            ; @Atari800_TV_PAL
	.comm	_Atari800_tv_mode,8,3           ; @Atari800_tv_mode
	.comm	_POKEY_AUDF,8,3                 ; @POKEY_AUDF
	.comm	_VOICEBOX_BASEAUDF,8,3          ; @VOICEBOX_BASEAUDF
	.comm	_VOICEBOX_enabled,8,3           ; @VOICEBOX_enabled
	.comm	_VOICEBOX_ii,8,3                ; @VOICEBOX_ii
	.comm	_VTRX_RATE,8,3                  ; @VTRX_RATE
	.comm	_dsprate,8,3                    ; @dsprate
	.comm	_ratio,8,3                      ; @ratio
.subsections_via_symbols
