	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_POKEYSND_UpdateProcessBuffer   ## -- Begin function POKEYSND_UpdateProcessBuffer
	.p2align	4, 0x90
_POKEYSND_UpdateProcessBuffer:          ## @POKEYSND_UpdateProcessBuffer
	.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
	xorl	%eax, %eax
	callq	_Update_synchronized_sound
	movq	_POKEYSND_process_buffer_fill@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movq	_POKEYSND_snd_flags@GOTPCREL(%rip), %rdx
	movq	_POKEYSND_BIT16@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	(%rdx), %esi
	cmpl	$1, %esi
	movl	$2, %esi
	sbbl	$0, %esi
	cltd
	idivl	%esi
	movl	%eax, %ebx
	movl	$0, (%rcx)
	movq	_POKEYSND_process_buffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	%ebx, %esi
	callq	_SndSave_WriteToSoundFile
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POKEYSND_process_buffer_fill,4,2 ## @POKEYSND_process_buffer_fill
	.comm	_POKEYSND_snd_flags,4,2         ## @POKEYSND_snd_flags
	.comm	_POKEYSND_BIT16,4,2             ## @POKEYSND_BIT16
	.comm	_POKEYSND_process_buffer,8,3    ## @POKEYSND_process_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_POKEYSND_UpdateProcessBuffer   ; -- Begin function POKEYSND_UpdateProcessBuffer
	.p2align	2
_POKEYSND_UpdateProcessBuffer:          ; @POKEYSND_UpdateProcessBuffer
	.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
	bl	_Update_synchronized_sound
Lloh0:
	adrp	x8, _POKEYSND_process_buffer_fill@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POKEYSND_process_buffer_fill@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh2:
	adrp	x10, _POKEYSND_snd_flags@GOTPAGE
Lloh3:
	ldr	x10, [x10, _POKEYSND_snd_flags@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
Lloh5:
	adrp	x11, _POKEYSND_BIT16@GOTPAGE
Lloh6:
	ldr	x11, [x11, _POKEYSND_BIT16@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	tst	w11, w10
	mov	w10, #1
	cinc	w10, w10, ne
	sdiv	w19, w9, w10
	str	wzr, [x8]
Lloh8:
	adrp	x8, _POKEYSND_process_buffer@GOTPAGE
Lloh9:
	ldr	x8, [x8, _POKEYSND_process_buffer@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
	mov	x1, x19
	bl	_SndSave_WriteToSoundFile
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_POKEYSND_process_buffer_fill,4,2 ; @POKEYSND_process_buffer_fill
	.comm	_POKEYSND_snd_flags,4,2         ; @POKEYSND_snd_flags
	.comm	_POKEYSND_BIT16,4,2             ; @POKEYSND_BIT16
	.comm	_POKEYSND_process_buffer,8,3    ; @POKEYSND_process_buffer
.subsections_via_symbols
