	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function S_PaintChannels
LCPI0_0:
	.quad	0x3fd0000000000000              ## double 0.25
LCPI0_1:
	.quad	0x0000000000000000              ## double 0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_S_PaintChannels
	.p2align	4, 0x90
_S_PaintChannels:                       ## @S_PaintChannels
	.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	_s_volume@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shll	$8, %ecx
	subl	%eax, %ecx
	movq	_snd_vol@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	movq	_s_paintedtime@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	cmpl	%edi, %r11d
	jge	LBB0_47
## %bb.1:
	movq	_paintbuffer@GOTPCREL(%rip), %r13
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_46:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%edi, %ebx
	callq	_S_TransferPaintBuffer
	movq	_s_paintedtime@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movl	%ebx, %r11d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	cmpl	%edi, %ebx
	movq	_paintbuffer@GOTPCREL(%rip), %r13
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	jge	LBB0_47
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_27 Depth 2
                                        ##       Child Loop BB0_33 Depth 3
	movl	%edi, %r9d
	subl	%r11d, %r9d
	movq	_PAINTBUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leal	(%r8,%r11), %ebx
	cmpl	%r8d, %r9d
	cmovlel	%edi, %ebx
	movq	_s_rawend@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	cmpl	%r11d, %r10d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rdi
	movl	%ebx, %edx
	subl	%r11d, %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_Com_Memset
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	movl	%ebx, %edi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r10d, %ebx
	cmovll	%ebx, %r10d
	movl	%r11d, %esi
	cmpl	%r10d, %r11d
	jge	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%r10), %r14d
	movslq	%r11d, %r12
	shlq	$4, %r12
	movl	%r11d, %r15d
	movl	%r11d, %edx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_MAX_RAW_SAMPLES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	decq	%rdi
	movslq	%edx, %rax
	andq	%rax, %rdi
	movq	(%r13), %rsi
	movq	_s_rawsamples@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rdi
	movslq	%r15d, %rbx
	shlq	$4, %rbx
	subq	%rbx, %rsi
	movupd	(%rcx,%rdi), %xmm0
	movupd	%xmm0, (%r12,%rsi)
	cmpl	%eax, %r14d
	je	LBB0_7
## %bb.48:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	_s_paintedtime@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	addq	$16, %r12
	incl	%edx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r10d, %esi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%ebx, %esi
	movl	%ebx, %edi
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_s_paintedtime@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movslq	%esi, %rdi
	subq	%rcx, %rdi
	shlq	$4, %rdi
	addq	(%r13), %rdi
	cmpl	%r9d, %r8d
	cmovll	%r8d, %r9d
	addl	%r9d, %r11d
	notl	%esi
	addl	%r11d, %esi
	shlq	$4, %rsi
	addq	$16, %rsi
	callq	___bzero
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_MAX_CHANNELS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_25
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_s_channels@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=2
	callq	_S_PaintChannelFromWavelet
LBB0_23:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
LBB0_24:                                ##   in Loop: Header=BB0_12 Depth=2
	incl	%r14d
	addq	$32, %rbx
	cmpl	(%r15), %r14d
	jge	LBB0_25
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	ucomisd	(%rbx), %xmm1
	jbe	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	ucomisd	8(%rbx), %xmm1
	ja	LBB0_24
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	_s_paintedtime@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	16(%rbx), %edx
	movl	%edi, %r9d
	subl	%ecx, %r9d
	subl	%edx, %ecx
	movl	%edi, %eax
	subl	%edx, %eax
	movl	(%rsi), %r8d
	movl	%r8d, %edx
	subl	%ecx, %edx
	cmpl	%r8d, %eax
	cmovlel	%r9d, %edx
	testl	%edx, %edx
	jle	LBB0_24
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	4(%rsi), %eax
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	cmpl	$3, %eax
	je	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpl	$2, %eax
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpl	$1, %eax
	jne	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_12 Depth=2
	callq	_S_PaintChannelFromADPCM
	jmp	LBB0_23
LBB0_21:                                ##   in Loop: Header=BB0_12 Depth=2
	callq	_S_PaintChannelFromMuLaw
	jmp	LBB0_23
LBB0_22:                                ##   in Loop: Header=BB0_12 Depth=2
	callq	_S_PaintChannelFrom16
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_numLoopChannels@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_46
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_loop_channels@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	xorl	%r15d, %r15d
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_44:                                ##   in Loop: Header=BB0_27 Depth=2
	movq	_numLoopChannels@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_45:                                ##   in Loop: Header=BB0_27 Depth=2
	incl	%r15d
	addq	$32, %r12
	cmpl	%eax, %r15d
	jge	LBB0_46
LBB0_27:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_33 Depth 3
	movq	24(%r12), %r13
	testq	%r13, %r13
	je	LBB0_45
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=2
	movsd	(%r12), %xmm0                   ## xmm0 = mem[0],zero
	ucomisd	LCPI0_1(%rip), %xmm0
	jne	LBB0_30
	jp	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_27 Depth=2
	movsd	8(%r12), %xmm0                  ## xmm0 = mem[0],zero
	ucomisd	LCPI0_1(%rip), %xmm0
	jne	LBB0_30
	jnp	LBB0_45
LBB0_30:                                ##   in Loop: Header=BB0_27 Depth=2
	cmpq	$0, 8(%r13)
	je	LBB0_45
## %bb.31:                              ##   in Loop: Header=BB0_27 Depth=2
	movl	(%r13), %esi
	testl	%esi, %esi
	je	LBB0_45
## %bb.32:                              ##   in Loop: Header=BB0_27 Depth=2
	movq	_s_paintedtime@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	.p2align	4, 0x90
LBB0_33:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_27 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%ebx, %eax
	cltd
	idivl	%esi
	movl	%edx, %ecx
	movl	%edi, %eax
	subl	%ebx, %eax
	leal	(%rcx,%rax), %edx
	movl	%esi, %r14d
	subl	%ecx, %r14d
	cmpl	%esi, %edx
	cmovlel	%eax, %r14d
	testl	%r14d, %r14d
	jle	LBB0_42
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=3
	movl	4(%r13), %eax
	movl	%ebx, %r8d
	cmpl	$3, %eax
	je	LBB0_39
## %bb.35:                              ##   in Loop: Header=BB0_33 Depth=3
	cmpl	$2, %eax
	je	LBB0_38
## %bb.36:                              ##   in Loop: Header=BB0_33 Depth=3
	cmpl	$1, %eax
	jne	LBB0_40
## %bb.37:                              ##   in Loop: Header=BB0_33 Depth=3
	movq	_s_paintedtime@GOTPCREL(%rip), %rax
	subl	(%rax), %r8d
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_S_PaintChannelFromADPCM
	jmp	LBB0_41
LBB0_39:                                ##   in Loop: Header=BB0_33 Depth=3
	movq	_s_paintedtime@GOTPCREL(%rip), %rax
	subl	(%rax), %r8d
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_S_PaintChannelFromMuLaw
	jmp	LBB0_41
LBB0_38:                                ##   in Loop: Header=BB0_33 Depth=3
	movq	_s_paintedtime@GOTPCREL(%rip), %rax
	subl	(%rax), %r8d
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_S_PaintChannelFromWavelet
	jmp	LBB0_41
LBB0_40:                                ##   in Loop: Header=BB0_33 Depth=3
	movq	_s_paintedtime@GOTPCREL(%rip), %rax
	subl	(%rax), %r8d
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_S_PaintChannelFrom16
LBB0_41:                                ##   in Loop: Header=BB0_33 Depth=3
	addl	%r14d, %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
LBB0_42:                                ##   in Loop: Header=BB0_33 Depth=3
	cmpl	%edi, %ebx
	jge	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_33 Depth=3
	movl	(%r13), %esi
	jmp	LBB0_33
LBB0_47:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_s_volume,8,3                   ## @s_volume
	.comm	_snd_vol,4,2                    ## @snd_vol
	.comm	_s_paintedtime,4,2              ## @s_paintedtime
	.comm	_PAINTBUFFER_SIZE,4,2           ## @PAINTBUFFER_SIZE
	.comm	_s_rawend,4,2                   ## @s_rawend
	.comm	_paintbuffer,8,3                ## @paintbuffer
	.comm	_MAX_RAW_SAMPLES,4,2            ## @MAX_RAW_SAMPLES
	.comm	_s_rawsamples,8,3               ## @s_rawsamples
	.comm	_s_channels,8,3                 ## @s_channels
	.comm	_MAX_CHANNELS,4,2               ## @MAX_CHANNELS
	.comm	_loop_channels,8,3              ## @loop_channels
	.comm	_numLoopChannels,4,2            ## @numLoopChannels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_PaintChannels                ; -- Begin function S_PaintChannels
	.p2align	2
_S_PaintChannels:                       ; @S_PaintChannels
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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_volume@GOTPAGE
Lloh1:
	ldr	x8, [x8, _s_volume@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8]
	lsl	w9, w8, #8
Lloh3:
	adrp	x10, _snd_vol@GOTPAGE
Lloh4:
	ldr	x10, [x10, _snd_vol@GOTPAGEOFF]
	sub	w8, w9, w8
Lloh5:
	str	w8, [x10]
Lloh6:
	adrp	x24, _s_paintedtime@GOTPAGE
Lloh7:
	ldr	x24, [x24, _s_paintedtime@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, w0
	b.ge	LBB0_47
; %bb.1:
	mov	x19, x0
Lloh8:
	adrp	x25, _paintbuffer@GOTPAGE
Lloh9:
	ldr	x25, [x25, _paintbuffer@GOTPAGEOFF]
Lloh10:
	adrp	x28, _MAX_CHANNELS@GOTPAGE
Lloh11:
	ldr	x28, [x28, _MAX_CHANNELS@GOTPAGEOFF]
	fmov	d8, #0.25000000
Lloh12:
	adrp	x0, _MAX_RAW_SAMPLES@GOTPAGE
Lloh13:
	ldr	x0, [x0, _MAX_RAW_SAMPLES@GOTPAGEOFF]
Lloh14:
	adrp	x1, _s_rawsamples@GOTPAGE
Lloh15:
	ldr	x1, [x1, _s_rawsamples@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_S_TransferPaintBuffer
	str	w20, [x24]
	mov	x8, x20
	cmp	w20, w19
Lloh16:
	adrp	x0, _MAX_RAW_SAMPLES@GOTPAGE
Lloh17:
	ldr	x0, [x0, _MAX_RAW_SAMPLES@GOTPAGEOFF]
Lloh18:
	adrp	x1, _s_rawsamples@GOTPAGE
Lloh19:
	ldr	x1, [x1, _s_rawsamples@GOTPAGEOFF]
	b.ge	LBB0_47
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
                                        ;     Child Loop BB0_30 Depth 2
                                        ;       Child Loop BB0_36 Depth 3
Lloh20:
	adrp	x9, _PAINTBUFFER_SIZE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PAINTBUFFER_SIZE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	add	w11, w9, w8
	sub	w10, w19, w8
	cmp	w10, w9
	csel	w20, w11, w19, gt
Lloh23:
	adrp	x11, _s_rawend@GOTPAGE
Lloh24:
	ldr	x11, [x11, _s_rawend@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x11]
	cmp	w11, w8
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x25]
	sub	w8, w20, w8
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_Com_Memset
	b	LBB0_12
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w20, w11
	csel	w11, w20, w11, lt
	mov	x12, x8
	cmp	w8, w11
	b.ge	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x0]
	sub	w12, w12, #1
	and	w12, w12, w8
	ldr	x13, [x25]
	ldr	x14, [x1]
	ldr	q0, [x14, w12, sxtw #4]
	str	q0, [x13]
	add	w12, w8, #1
	cmp	w12, w11
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	sbfiz	x13, x8, #4, #32
	add	x13, x13, #16
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x14, [x24]
	ldr	w15, [x0]
	sub	w15, w15, #1
	and	w15, w15, w12
	ldr	x16, [x25]
	ldr	x17, [x1]
	ldr	q0, [x17, w15, sxtw #4]
	sub	x14, x16, x14, lsl #4
	str	q0, [x14, x13]
	add	w12, w12, #1
	add	x13, x13, #16
	cmp	w11, w12
	b.ne	LBB0_8
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x12, x11
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w12, w20
	b.ge	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x25]
	ldrsw	x13, [x24]
	sxtw	x14, w12
	sub	x13, x14, x13
	add	x0, x11, x13, lsl #4
	cmp	w9, w10
	csel	w9, w9, w10, lt
	mvn	w10, w12
	add	w8, w8, w9
	add	w8, w10, w8
	lsl	x8, x8, #4
	add	x1, x8, #16
	bl	_bzero
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w22, #0
Lloh26:
	adrp	x8, _s_channels@GOTPAGE
Lloh27:
	ldr	x8, [x8, _s_channels@GOTPAGEOFF]
Lloh28:
	ldr	x21, [x8]
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	w4, #0
	bl	_S_PaintChannelFromWavelet
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	add	w22, w22, #1
	add	x21, x21, #32
	ldr	w8, [x28]
	cmp	w22, w8
	b.ge	LBB0_26
LBB0_16:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x1, [x21, #24]
	cbz	x1, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	d0, [x21]
	fcmp	d0, d8
	b.pl	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	d0, [x21, #8]
	fcmp	d0, d8
	b.mi	LBB0_15
LBB0_19:                                ;   in Loop: Header=BB0_16 Depth=2
	ldr	w8, [x24]
	ldr	w9, [x21, #16]
	sub	w10, w20, w8
	ldr	w11, [x1]
	sub	w3, w8, w9
	sub	w8, w11, w3
	sub	w9, w20, w9
	cmp	w9, w11
	csel	w2, w8, w10, gt
	cmp	w2, #1
	b.lt	LBB0_15
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	w8, [x1, #4]
	mov	x0, x21
	cmp	w8, #3
	b.eq	LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_16 Depth=2
	cmp	w8, #2
	b.eq	LBB0_14
; %bb.22:                               ;   in Loop: Header=BB0_16 Depth=2
	cmp	w8, #1
	b.ne	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	w4, #0
	bl	_S_PaintChannelFromADPCM
	b	LBB0_15
LBB0_24:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	w4, #0
	bl	_S_PaintChannelFromMuLaw
	b	LBB0_15
LBB0_25:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	w4, #0
	bl	_S_PaintChannelFrom16
	b	LBB0_15
LBB0_26:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh29:
	adrp	x8, _numLoopChannels@GOTPAGE
Lloh30:
	ldr	x8, [x8, _numLoopChannels@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.27:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w26, #0
Lloh32:
	adrp	x9, _loop_channels@GOTPAGE
Lloh33:
	ldr	x9, [x9, _loop_channels@GOTPAGEOFF]
Lloh34:
	ldr	x21, [x9]
	b	LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_30 Depth=2
Lloh35:
	adrp	x8, _numLoopChannels@GOTPAGE
Lloh36:
	ldr	x8, [x8, _numLoopChannels@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=2
	add	w26, w26, #1
	add	x21, x21, #32
	cmp	w26, w8
	b.ge	LBB0_2
LBB0_30:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_36 Depth 3
	ldr	x22, [x21, #24]
	cbz	x22, LBB0_29
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=2
	ldr	d0, [x21]
	fcmp	d0, #0.0
	b.ne	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_30 Depth=2
	ldr	d0, [x21, #8]
	fcmp	d0, #0.0
	b.eq	LBB0_29
LBB0_33:                                ;   in Loop: Header=BB0_30 Depth=2
	ldr	x9, [x22, #8]
	cbz	x9, LBB0_29
; %bb.34:                               ;   in Loop: Header=BB0_30 Depth=2
	ldr	w9, [x22]
	cbz	w9, LBB0_29
; %bb.35:                               ;   in Loop: Header=BB0_30 Depth=2
	ldr	w27, [x24]
LBB0_36:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_30 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	sdiv	w8, w27, w9
	mul	w8, w8, w9
	sub	w10, w20, w27
	sub	w3, w27, w8
	sub	w11, w9, w3
	sub	w8, w20, w8
	cmp	w8, w9
	csel	w23, w11, w10, gt
	cmp	w23, #1
	b.lt	LBB0_45
; %bb.37:                               ;   in Loop: Header=BB0_36 Depth=3
	ldr	w8, [x22, #4]
	cmp	w8, #3
	b.eq	LBB0_41
; %bb.38:                               ;   in Loop: Header=BB0_36 Depth=3
	cmp	w8, #2
	b.eq	LBB0_42
; %bb.39:                               ;   in Loop: Header=BB0_36 Depth=3
	cmp	w8, #1
	b.ne	LBB0_43
; %bb.40:                               ;   in Loop: Header=BB0_36 Depth=3
	ldr	w8, [x24]
	sub	w4, w27, w8
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_S_PaintChannelFromADPCM
	b	LBB0_44
LBB0_41:                                ;   in Loop: Header=BB0_36 Depth=3
	ldr	w8, [x24]
	sub	w4, w27, w8
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_S_PaintChannelFromMuLaw
	b	LBB0_44
LBB0_42:                                ;   in Loop: Header=BB0_36 Depth=3
	ldr	w8, [x24]
	sub	w4, w27, w8
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_S_PaintChannelFromWavelet
	b	LBB0_44
LBB0_43:                                ;   in Loop: Header=BB0_36 Depth=3
	ldr	w8, [x24]
	sub	w4, w27, w8
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_S_PaintChannelFrom16
LBB0_44:                                ;   in Loop: Header=BB0_36 Depth=3
	add	w27, w23, w27
LBB0_45:                                ;   in Loop: Header=BB0_36 Depth=3
	cmp	w27, w20
	b.ge	LBB0_28
; %bb.46:                               ;   in Loop: Header=BB0_36 Depth=3
	ldr	w9, [x22]
	b	LBB0_36
LBB0_47:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_s_volume,8,3                   ; @s_volume
	.comm	_snd_vol,4,2                    ; @snd_vol
	.comm	_s_paintedtime,4,2              ; @s_paintedtime
	.comm	_PAINTBUFFER_SIZE,4,2           ; @PAINTBUFFER_SIZE
	.comm	_s_rawend,4,2                   ; @s_rawend
	.comm	_paintbuffer,8,3                ; @paintbuffer
	.comm	_MAX_RAW_SAMPLES,4,2            ; @MAX_RAW_SAMPLES
	.comm	_s_rawsamples,8,3               ; @s_rawsamples
	.comm	_s_channels,8,3                 ; @s_channels
	.comm	_MAX_CHANNELS,4,2               ; @MAX_CHANNELS
	.comm	_loop_channels,8,3              ; @loop_channels
	.comm	_numLoopChannels,4,2            ; @numLoopChannels
.subsections_via_symbols
