	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function S_Base_RawSamples
LCPI0_0:
	.long	0x43800000                      ## float 256
LCPI0_1:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_S_Base_RawSamples
	.p2align	4, 0x90
_S_Base_RawSamples:                     ## @S_Base_RawSamples
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_s_soundStarted@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_38
## %bb.1:
	movq	_s_soundMuted@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_38
## %bb.2:
	testl	%edi, %edi
	js	LBB0_38
## %bb.3:
	movq	_MAX_RAW_STREAMS@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jle	LBB0_38
## %bb.4:
	movq	%r9, %rbx
	movl	%ecx, %r10d
	movl	%edx, %ecx
	movl	%esi, %r11d
	movq	_s_rawsamples@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edi, %r15d
	movq	(%rax,%r15,8), %r12
	movq	_s_muted@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r13d, %r13d
	cmpq	$0, (%rax)
	movl	$0, %r14d
	jne	LBB0_10
## %bb.5:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	16(%rbp), %eax
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	movq	_MAX_GENTITIES@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jle	LBB0_8
## %bb.7:
	movq	_loopSounds@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movl	(%rcx,%rax,4), %edi
	leaq	-60(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movl	$256, %esi                      ## imm = 0x100
	movl	%r11d, %r14d
	movl	%r8d, %r13d
	movl	%r10d, -52(%rbp)                ## 4-byte Spill
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	callq	_S_SpatializeOrigin
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movl	-52(%rbp), %r10d                ## 4-byte Reload
	movl	%r13d, %r8d
	movl	%r14d, %r11d
	cvtsi2ssl	-60(%rbp), %xmm1
	cvtsi2ssl	-56(%rbp), %xmm3
	jmp	LBB0_9
LBB0_8:
	movl	$256, -56(%rbp)                 ## imm = 0x100
	movl	$256, -60(%rbp)                 ## imm = 0x100
	movss	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	movaps	%xmm3, %xmm1
LBB0_9:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	_s_volume@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cvtsi2ssl	(%rax), %xmm2
	mulss	%xmm0, %xmm1
	mulss	%xmm2, %xmm1
	cvttss2si	%xmm1, %r13d
	mulss	%xmm0, %xmm3
	mulss	%xmm2, %xmm3
	cvttss2si	%xmm3, %r14d
LBB0_10:
	movq	_s_rawend@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movl	(%r9,%r15,4), %esi
	movq	_s_soundtime@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	%edx, %esi
	jge	LBB0_12
## %bb.11:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r11d, -48(%rbp)                ## 4-byte Spill
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
	movl	%r10d, -52(%rbp)                ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	callq	_Com_DPrintf
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %r10d                ## 4-byte Reload
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r11d                ## 4-byte Reload
	movq	_s_soundtime@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_rawend@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movl	%esi, (%r9,%r15,4)
LBB0_12:
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ecx, %xmm0
	movq	_dma@GOTPCREL(%rip), %rcx
	divss	(%rcx), %xmm0
	cmpl	$2, %r10d
	jne	LBB0_21
## %bb.13:
	cmpl	$2, %r8d
	jne	LBB0_21
## %bb.14:
	ucomiss	LCPI0_1(%rip), %xmm0
	jne	LBB0_15
	jp	LBB0_15
## %bb.18:
	testl	%r11d, %r11d
	jle	LBB0_36
## %bb.19:
	movl	%r11d, %ecx
	xorl	%edx, %edx
	movq	_MAX_RAW_SAMPLES@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r8), %rax
	decq	%rax
	movslq	%esi, %rsi
	andq	%rsi, %rax
	incl	%esi
	movl	%esi, (%r9,%r15,4)
	movzwl	(%rbx,%rdx,4), %edi
	imulw	%r13w, %di
	movw	%di, (%r12,%rax,4)
	movzwl	2(%rbx,%rdx,4), %edi
	imulw	%r14w, %di
	movw	%di, 2(%r12,%rax,4)
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_20
	jmp	LBB0_36
LBB0_21:
	cmpl	$2, %r10d
	jne	LBB0_26
## %bb.22:
	cmpl	$1, %r8d
	jne	LBB0_26
## %bb.23:
	xorps	%xmm1, %xmm1
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %edi
	cmpl	%r11d, %edi
	jge	LBB0_36
## %bb.24:
	movl	$1, %ecx
	movq	_MAX_RAW_SAMPLES@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r8), %rax
	decq	%rax
	movslq	%esi, %rsi
	andq	%rsi, %rax
	incl	%esi
	movl	%esi, (%r9,%r15,4)
	movslq	%edi, %rdi
	movzwl	(%rbx,%rdi,2), %edx
	imulw	%r13w, %dx
	movw	%dx, (%r12,%rax,4)
	movzwl	(%rbx,%rdi,2), %edx
	imulw	%r14w, %dx
	movw	%dx, 2(%r12,%rax,4)
	xorps	%xmm1, %xmm1
	cvtsi2ss	%ecx, %xmm1
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %edi
	incl	%ecx
	cmpl	%r11d, %edi
	jl	LBB0_25
	jmp	LBB0_36
LBB0_26:
	cmpl	$1, %r10d
	jne	LBB0_31
## %bb.27:
	cmpl	$2, %r8d
	jne	LBB0_31
## %bb.28:
	xorps	%xmm1, %xmm1
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %edi
	cmpl	%r11d, %edi
	jge	LBB0_36
## %bb.29:
	shll	$8, %r13d
	shll	$8, %r14d
	movl	$1, %ecx
	movq	_MAX_RAW_SAMPLES@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r8), %rax
	decq	%rax
	movslq	%esi, %rsi
	andq	%rsi, %rax
	incl	%esi
	movl	%esi, (%r9,%r15,4)
	movslq	%edi, %rdi
	movsbl	(%rbx,%rdi,2), %edx
	addq	%rdi, %rdi
	imull	%r13d, %edx
	movw	%dx, (%r12,%rax,4)
	movslq	%edi, %rdx
	movsbl	1(%rbx,%rdx), %edx
	imull	%r14d, %edx
	movw	%dx, 2(%r12,%rax,4)
	xorps	%xmm1, %xmm1
	cvtsi2ss	%ecx, %xmm1
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %edi
	incl	%ecx
	cmpl	%r11d, %edi
	jl	LBB0_30
	jmp	LBB0_36
LBB0_15:
	xorps	%xmm1, %xmm1
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %edi
	cmpl	%r11d, %edi
	jge	LBB0_36
## %bb.16:
	movl	$1, %ecx
	movq	_MAX_RAW_SAMPLES@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r8), %rax
	decq	%rax
	movslq	%esi, %rsi
	andq	%rsi, %rax
	incl	%esi
	movl	%esi, (%r9,%r15,4)
	movslq	%edi, %rdi
	movzwl	(%rbx,%rdi,4), %edx
	imulw	%r13w, %dx
	movw	%dx, (%r12,%rax,4)
	leal	(%rdi,%rdi), %edx
	incl	%edx
	movslq	%edx, %rdx
	movzwl	(%rbx,%rdx,2), %edx
	imulw	%r14w, %dx
	movw	%dx, 2(%r12,%rax,4)
	xorps	%xmm1, %xmm1
	cvtsi2ss	%ecx, %xmm1
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %edi
	incl	%ecx
	cmpl	%r11d, %edi
	jl	LBB0_17
	jmp	LBB0_36
LBB0_31:
	cmpl	$1, %r10d
	jne	LBB0_36
## %bb.32:
	cmpl	$1, %r8d
	jne	LBB0_36
## %bb.33:
	xorps	%xmm1, %xmm1
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %edx
	cmpl	%r11d, %edx
	jge	LBB0_36
## %bb.34:
	shll	$8, %r13d
	shll	$8, %r14d
	movl	$1, %ecx
	movq	_MAX_RAW_SAMPLES@GOTPCREL(%rip), %r8
	movl	$65408, %r10d                   ## imm = 0xFF80
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r8), %rax
	decq	%rax
	movslq	%esi, %rsi
	andq	%rsi, %rax
	incl	%esi
	movl	%esi, (%r9,%r15,4)
	movslq	%edx, %rdx
	movl	(%rbx,%rdx,4), %edx
	addl	%r10d, %edx
	movl	%r13d, %edi
	imull	%edx, %edi
	movw	%di, (%r12,%rax,4)
	imull	%r14d, %edx
	movw	%dx, 2(%r12,%rax,4)
	xorps	%xmm1, %xmm1
	cvtsi2ss	%ecx, %xmm1
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %edx
	incl	%ecx
	cmpl	%r11d, %edx
	jl	LBB0_35
LBB0_36:
	movq	_s_soundtime@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAX_RAW_SAMPLES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%edx, %eax
	cmpl	%eax, %esi
	jle	LBB0_38
## %bb.37:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_Com_DPrintf
LBB0_38:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_s_soundStarted,4,2             ## @s_soundStarted
	.comm	_s_soundMuted,8,3               ## @s_soundMuted
	.comm	_MAX_RAW_STREAMS,4,2            ## @MAX_RAW_STREAMS
	.comm	_s_rawsamples,8,3               ## @s_rawsamples
	.comm	_s_muted,8,3                    ## @s_muted
	.comm	_MAX_GENTITIES,4,2              ## @MAX_GENTITIES
	.comm	_loopSounds,8,3                 ## @loopSounds
	.comm	_s_volume,8,3                   ## @s_volume
	.comm	_s_rawend,8,3                   ## @s_rawend
	.comm	_s_soundtime,4,2                ## @s_soundtime
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"S_Base_RawSamples: resetting minimum: %i < %i\n"

	.comm	_dma,4,2                        ## @dma
	.comm	_MAX_RAW_SAMPLES,4,2            ## @MAX_RAW_SAMPLES
L_.str.1:                               ## @.str.1
	.asciz	"S_Base_RawSamples: overflowed %i > %i\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_Base_RawSamples              ; -- Begin function S_Base_RawSamples
	.p2align	2
_S_Base_RawSamples:                     ; @S_Base_RawSamples
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
Lloh0:
	adrp	x8, _s_soundStarted@GOTPAGE
Lloh1:
	ldr	x8, [x8, _s_soundStarted@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _s_soundMuted@GOTPAGE
Lloh4:
	ldr	x9, [x9, _s_soundMuted@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x9, #0, #0, ne
	b.eq	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_2:
	tbnz	w0, #31, LBB0_1
; %bb.3:
Lloh6:
	adrp	x8, _MAX_RAW_STREAMS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_RAW_STREAMS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w0
	b.le	LBB0_1
; %bb.4:
	mov	x19, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
Lloh9:
	adrp	x8, _s_rawsamples@GOTPAGE
Lloh10:
	ldr	x8, [x8, _s_rawsamples@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	mov	w24, w0
	ldr	x25, [x8, w0, uxtw #3]
Lloh12:
	adrp	x8, _s_muted@GOTPAGE
Lloh13:
	ldr	x8, [x8, _s_muted@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	w27, #0
	mov	w28, #0
	b	LBB0_11
LBB0_6:
	fmov	s8, s0
	tbnz	w6, #31, LBB0_9
; %bb.7:
Lloh15:
	adrp	x8, _MAX_GENTITIES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MAX_GENTITIES@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, w6
	b.le	LBB0_9
; %bb.8:
Lloh18:
	adrp	x8, _loopSounds@GOTPAGE
Lloh19:
	ldr	x8, [x8, _loopSounds@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	w0, [x8, w6, uxtw #2]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	w1, #256
	bl	_S_SpatializeOrigin
	ldr	s0, [sp, #12]
	scvtf	s1, s0
	ldr	s0, [sp, #8]
	scvtf	s0, s0
	b	LBB0_10
LBB0_9:
	mov	w8, #256
	stp	w8, w8, [sp, #8]
	mov	w8, #1132462080
	fmov	s0, w8
	fmov	s1, s0
LBB0_10:
	fmul	s1, s1, s8
Lloh21:
	adrp	x8, _s_volume@GOTPAGE
Lloh22:
	ldr	x8, [x8, _s_volume@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	s2, [x8]
	scvtf	s2, s2
	fmul	s1, s1, s2
	fcvtzs	w27, s1
	fmul	s0, s0, s8
	fmul	s0, s0, s2
	fcvtzs	w28, s0
LBB0_11:
Lloh24:
	adrp	x26, _s_rawend@GOTPAGE
Lloh25:
	ldr	x26, [x26, _s_rawend@GOTPAGEOFF]
	ldr	x9, [x26]
	ldr	w1, [x9, x24, lsl #2]
Lloh26:
	adrp	x17, _s_soundtime@GOTPAGE
Lloh27:
	ldr	x17, [x17, _s_soundtime@GOTPAGEOFF]
	ldr	w2, [x17]
	cmp	w1, w2
	b.ge	LBB0_13
; %bb.12:
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_DPrintf
Lloh30:
	adrp	x17, _s_soundtime@GOTPAGE
Lloh31:
	ldr	x17, [x17, _s_soundtime@GOTPAGEOFF]
	ldr	w1, [x17]
	ldr	x9, [x26]
	str	w1, [x9, x24, lsl #2]
LBB0_13:
	scvtf	s0, w23
Lloh32:
	adrp	x8, _dma@GOTPAGE
Lloh33:
	ldr	x8, [x8, _dma@GOTPAGEOFF]
Lloh34:
	ldr	s1, [x8]
	fdiv	s0, s0, s1
Lloh35:
	adrp	x8, _MAX_RAW_SAMPLES@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MAX_RAW_SAMPLES@GOTPAGEOFF]
	cmp	w22, #2
	b.ne	LBB0_19
; %bb.14:
	cmp	w21, #2
	b.ne	LBB0_19
; %bb.15:
	fmov	s1, #1.00000000
	fcmp	s0, s1
	b.ne	LBB0_29
; %bb.16:
	cmp	w20, #1
	b.lt	LBB0_38
; %bb.17:
	mov	w10, w20
	add	x11, x19, #2
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x8]
	sub	w12, w12, #1
	and	w12, w12, w1
	add	w1, w1, #1
	str	w1, [x9, x24, lsl #2]
	ldurh	w13, [x11, #-2]
	mul	w13, w13, w27
	add	x12, x25, w12, sxtw #2
	strh	w13, [x12]
	ldrh	w13, [x11], #4
	mul	w13, w13, w28
	strh	w13, [x12, #2]
	subs	x10, x10, #1
	b.ne	LBB0_18
	b	LBB0_38
LBB0_19:
	cmp	w22, #2
	b.ne	LBB0_24
; %bb.20:
	cmp	w21, #1
	b.ne	LBB0_24
; %bb.21:
	movi	d1, #0000000000000000
	fmul	s1, s0, s1
	fcvtzs	w11, s1
	cmp	w11, w20
	b.ge	LBB0_38
; %bb.22:
	mov	w10, #0
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x8]
	sub	w12, w12, #1
	add	w13, w1, w10
	and	w12, w12, w13
	add	w13, w13, #1
	str	w13, [x9, x24, lsl #2]
	sbfiz	x11, x11, #1, #32
	ldrh	w13, [x19, x11]
	mul	w13, w13, w27
	add	x12, x25, w12, sxtw #2
	strh	w13, [x12]
	ldrh	w11, [x19, x11]
	mul	w11, w11, w28
	strh	w11, [x12, #2]
	add	w10, w10, #1
	scvtf	s1, w10
	fmul	s1, s0, s1
	fcvtzs	w11, s1
	cmp	w11, w20
	b.lt	LBB0_23
	b	LBB0_37
LBB0_24:
	cmp	w22, #1
	b.ne	LBB0_32
; %bb.25:
	cmp	w21, #2
	b.ne	LBB0_32
; %bb.26:
	movi	d1, #0000000000000000
	fmul	s1, s0, s1
	fcvtzs	w13, s1
	cmp	w13, w20
	b.ge	LBB0_38
; %bb.27:
	mov	w10, #0
	lsl	w11, w27, #8
	lsl	w12, w28, #8
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x8]
	sub	w14, w14, #1
	add	w15, w1, w10
	and	w14, w14, w15
	add	w15, w15, #1
	str	w15, [x9, x24, lsl #2]
	sbfiz	x13, x13, #1, #32
	ldrsb	w15, [x19, x13]
	mul	w15, w11, w15
	add	x14, x25, w14, sxtw #2
	strh	w15, [x14]
	add	x13, x19, w13, sxtw
	ldrsb	w13, [x13, #1]
	mul	w13, w12, w13
	strh	w13, [x14, #2]
	add	w10, w10, #1
	scvtf	s1, w10
	fmul	s1, s0, s1
	fcvtzs	w13, s1
	cmp	w13, w20
	b.lt	LBB0_28
	b	LBB0_37
LBB0_29:
	movi	d1, #0000000000000000
	fmul	s1, s0, s1
	fcvtzs	w11, s1
	cmp	w11, w20
	b.ge	LBB0_38
; %bb.30:
	mov	w10, #0
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x8]
	sub	w12, w12, #1
	add	w13, w1, w10
	and	w12, w12, w13
	add	w13, w13, #1
	str	w13, [x9, x24, lsl #2]
	add	x11, x19, w11, sxtw #2
	ldrh	w13, [x11]
	mul	w13, w13, w27
	add	x12, x25, w12, sxtw #2
	strh	w13, [x12]
	ldrh	w11, [x11, #2]
	mul	w11, w11, w28
	strh	w11, [x12, #2]
	add	w10, w10, #1
	scvtf	s1, w10
	fmul	s1, s0, s1
	fcvtzs	w11, s1
	cmp	w11, w20
	b.lt	LBB0_31
	b	LBB0_37
LBB0_32:
	cmp	w22, #1
	b.ne	LBB0_38
; %bb.33:
	cmp	w21, #1
	b.ne	LBB0_38
; %bb.34:
	movi	d1, #0000000000000000
	fmul	s1, s0, s1
	fcvtzs	w14, s1
	cmp	w14, w20
	b.ge	LBB0_38
; %bb.35:
	mov	w10, #0
	lsl	w11, w27, #8
	lsl	w12, w28, #8
	mov	w13, #65408
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x8]
	sub	w15, w15, #1
	add	w16, w1, w10
	and	w15, w15, w16
	add	w16, w16, #1
	str	w16, [x9, x24, lsl #2]
	ldr	w14, [x19, w14, sxtw #2]
	add	w14, w14, w13
	mul	w16, w11, w14
	add	x15, x25, w15, sxtw #2
	strh	w16, [x15]
	mul	w14, w12, w14
	strh	w14, [x15, #2]
	add	w10, w10, #1
	scvtf	s1, w10
	fmul	s1, s0, s1
	fcvtzs	w14, s1
	cmp	w14, w20
	b.lt	LBB0_36
LBB0_37:
	add	w1, w1, w10
LBB0_38:
	ldr	w2, [x17]
	ldr	w8, [x8]
	add	w8, w8, w2
	cmp	w1, w8
	b.le	LBB0_1
; %bb.39:
Lloh37:
	adrp	x0, l_.str.1@PAGE
Lloh38:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Com_DPrintf
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_s_soundStarted,4,2             ; @s_soundStarted
	.comm	_s_soundMuted,8,3               ; @s_soundMuted
	.comm	_MAX_RAW_STREAMS,4,2            ; @MAX_RAW_STREAMS
	.comm	_s_rawsamples,8,3               ; @s_rawsamples
	.comm	_s_muted,8,3                    ; @s_muted
	.comm	_MAX_GENTITIES,4,2              ; @MAX_GENTITIES
	.comm	_loopSounds,8,3                 ; @loopSounds
	.comm	_s_volume,8,3                   ; @s_volume
	.comm	_s_rawend,8,3                   ; @s_rawend
	.comm	_s_soundtime,4,2                ; @s_soundtime
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"S_Base_RawSamples: resetting minimum: %i < %i\n"

	.comm	_dma,4,2                        ; @dma
	.comm	_MAX_RAW_SAMPLES,4,2            ; @MAX_RAW_SAMPLES
l_.str.1:                               ; @.str.1
	.asciz	"S_Base_RawSamples: overflowed %i > %i\n"

.subsections_via_symbols
