	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_TransferStereo16             ## -- Begin function S_TransferStereo16
	.p2align	4, 0x90
_S_TransferStereo16:                    ## @S_TransferStereo16
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_paintbuffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_snd_p@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_s_paintedtime@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	cmpl	%esi, %r15d
	jge	LBB0_5
## %bb.1:
	movl	%esi, %ebx
	movq	_snd_out@GOTPCREL(%rip), %r14
	movq	_snd_linear_count@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%ebx, %r15d
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %r13d
	movq	_dma@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	%eax
	leal	-1(%rax), %ecx
	andl	%r15d, %ecx
	leal	(%rcx,%rcx), %edx
	movslq	%edx, %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%rdi,%rdx,2), %rdx
	movq	%rdx, (%r14)
	subl	%ecx, %eax
	leal	(%rax,%r13), %ecx
	movl	%ebx, %edx
	subl	%r15d, %edx
	cmpl	%ebx, %ecx
	cmovlel	%eax, %edx
	addl	%edx, %edx
	movl	%edx, (%r12)
	xorl	%eax, %eax
	callq	_S_WriteLinearBlastStereo16
	movslq	(%r12), %r15
	movq	%r15, %rax
	shlq	$2, %rax
	movq	_snd_p@GOTPCREL(%rip), %rcx
	addq	%rax, (%rcx)
	sarl	%r15d
	addl	%r13d, %r15d
	xorl	%eax, %eax
	callq	_CL_VideoRecording
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rdi
	movl	(%r12), %esi
	addl	%esi, %esi
	callq	_CL_WriteAVIAudioFrame
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_paintbuffer,8,3                ## @paintbuffer
	.comm	_snd_p,8,3                      ## @snd_p
	.comm	_s_paintedtime,4,2              ## @s_paintedtime
	.comm	_dma,4,2                        ## @dma
	.comm	_snd_out,8,3                    ## @snd_out
	.comm	_snd_linear_count,4,2           ## @snd_linear_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_TransferStereo16             ; -- Begin function S_TransferStereo16
	.p2align	2
_S_TransferStereo16:                    ; @S_TransferStereo16
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _paintbuffer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _paintbuffer@GOTPAGEOFF]
Lloh2:
	adrp	x21, _snd_p@GOTPAGE
Lloh3:
	ldr	x21, [x21, _snd_p@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x21]
Lloh5:
	adrp	x8, _s_paintedtime@GOTPAGE
Lloh6:
	ldr	x8, [x8, _s_paintedtime@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	cmp	w22, w1
	b.ge	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh8:
	adrp	x23, _dma@GOTPAGE
Lloh9:
	ldr	x23, [x23, _dma@GOTPAGEOFF]
Lloh10:
	adrp	x24, _snd_out@GOTPAGE
Lloh11:
	ldr	x24, [x24, _snd_out@GOTPAGEOFF]
Lloh12:
	adrp	x25, _snd_linear_count@GOTPAGE
Lloh13:
	ldr	x25, [x25, _snd_linear_count@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, w26, asr #1
	cmp	w22, w19
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	asr	w8, w8, #1
	sub	w9, w8, #1
	and	w9, w9, w22
	lsl	w10, w9, #1
	add	x10, x20, w10, sxtw #1
	str	x10, [x24]
	sub	w8, w8, w9
	add	w9, w8, w22
	sub	w10, w19, w22
	cmp	w9, w19
	csel	w8, w10, w8, gt
	lsl	w8, w8, #1
	str	w8, [x25]
	bl	_S_WriteLinearBlastStereo16
	ldrsw	x26, [x25]
	ldr	x8, [x21]
	add	x8, x8, x26, lsl #2
	str	x8, [x21]
	bl	_CL_VideoRecording
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x24]
	ldr	w8, [x25]
	lsl	w1, w8, #1
	bl	_CL_WriteAVIAudioFrame
	b	LBB0_2
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_paintbuffer,8,3                ; @paintbuffer
	.comm	_snd_p,8,3                      ; @snd_p
	.comm	_s_paintedtime,4,2              ; @s_paintedtime
	.comm	_dma,4,2                        ; @dma
	.comm	_snd_out,8,3                    ; @snd_out
	.comm	_snd_linear_count,4,2           ; @snd_linear_count
.subsections_via_symbols
