	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_WriteLinearBlastStereo16     ## -- Begin function S_WriteLinearBlastStereo16
	.p2align	4, 0x90
_S_WriteLinearBlastStereo16:            ## @S_WriteLinearBlastStereo16
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_snd_linear_count@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_13
## %bb.1:
	movq	_snd_p@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_snd_out@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%esi, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$32767, 4(%rdx,%rsi,4)          ## imm = 0x7FFF
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$2, %rsi
	movslq	(%rax), %rdi
	cmpq	%rdi, %rsi
	jge	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rsi,4), %edi
	cmpl	$8388608, %edi                  ## imm = 0x800000
	jl	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$32767, (%rdx,%rsi,4)           ## imm = 0x7FFF
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-8388609, %edi                 ## imm = 0xFF7FFFFF
	jg	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$-32768, (%rdx,%rsi,4)          ## imm = 0x8000
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	sarl	$8, %edi
	movl	%edi, (%rdx,%rsi,4)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rcx,%rsi,4), %edi
	cmpl	$8388608, %edi                  ## imm = 0x800000
	jge	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-8388609, %edi                 ## imm = 0xFF7FFFFF
	jg	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$-32768, 4(%rdx,%rsi,4)         ## imm = 0x8000
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	sarl	$8, %edi
	movl	%edi, 4(%rdx,%rsi,4)
	jmp	LBB0_12
LBB0_13:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_snd_linear_count,4,2           ## @snd_linear_count
	.comm	_snd_p,8,3                      ## @snd_p
	.comm	_snd_out,8,3                    ## @snd_out
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_WriteLinearBlastStereo16     ; -- Begin function S_WriteLinearBlastStereo16
	.p2align	2
_S_WriteLinearBlastStereo16:            ; @S_WriteLinearBlastStereo16
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _snd_linear_count@GOTPAGE
Lloh1:
	ldr	x8, [x8, _snd_linear_count@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x9, #0
Lloh2:
	adrp	x10, _snd_p@GOTPAGE
Lloh3:
	ldr	x10, [x10, _snd_p@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
Lloh5:
	adrp	x11, _snd_out@GOTPAGE
Lloh6:
	ldr	x11, [x11, _snd_out@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	mov	w12, #32767
	mov	w13, #-8388609
	mov	w14, #-32768
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x15, x11, x9, lsl #2
	str	w12, [x15, #4]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #2
	ldrsw	x15, [x8]
	cmp	x9, x15
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x10, x9, lsl #2]
	cmp	w15, #2048, lsl #12             ; =8388608
	b.lt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w12, [x11, x9, lsl #2]
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w15, w13
	b.gt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w14, [x11, x9, lsl #2]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	asr	w15, w15, #8
	str	w15, [x11, x9, lsl #2]
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x15, x10, x9, lsl #2
	ldr	w15, [x15, #4]
	cmp	w15, #2048, lsl #12             ; =8388608
	b.ge	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x16, x11, x9, lsl #2
	cmp	w15, w13
	b.gt	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	str	w14, [x16, #4]
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	asr	w15, w15, #8
	str	w15, [x16, #4]
	b	LBB0_3
LBB0_13:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_snd_linear_count,4,2           ; @snd_linear_count
	.comm	_snd_p,8,3                      ; @snd_p
	.comm	_snd_out,8,3                    ; @snd_out
.subsections_via_symbols
