	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wav_decode
_wav_decode:                            ## @wav_decode
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movl	%r8d, -72(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	cmpl	%ecx, %esi
	movl	%ecx, %eax
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	cmovll	%esi, %eax
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %r15d
	leal	(%r15,%r15), %ecx
	cmpl	%eax, %r15d
	jle	LBB0_1
## %bb.2:
	cmpl	$4, %r15d
	jl	LBB0_26
## %bb.3:
	movl	%r15d, %eax
	shrl	$2, %eax
	shrl	%r15d
	movl	%r14d, -108(%rbp)               ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %eax
	shrl	%eax
	cmpl	$1, %r15d
	jbe	LBB0_26
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##     Child Loop BB0_21 Depth 2
	movl	%r15d, %edi
	movl	%eax, %edx
	subl	%r15d, %r14d
	imull	-72(%rbp), %r14d                ## 4-byte Folded Reload
	movq	%rdx, %rcx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	imull	%esi, %ecx
	movl	%r15d, -76(%rbp)                ## 4-byte Spill
	movl	%r15d, %edx
	imull	%esi, %edx
	movslq	%ecx, %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movslq	%edx, %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	-120(%rbp), %r15                ## 8-byte Reload
	testl	%r14d, %r14d
	js	LBB0_18
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r14d, %rax
	movq	-120(%rbp), %r15                ## 8-byte Reload
	leaq	(%r15,%rax,4), %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, %eax
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	imull	%edx, %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	imull	%edx, %ecx
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	subl	%edi, %edx
	imull	-48(%rbp), %edx                 ## 4-byte Folded Reload
	movl	%edx, -112(%rbp)                ## 4-byte Spill
	movslq	%edx, %rdx
	movq	%rdx, -144(%rbp)                ## 8-byte Spill
	movslq	%ecx, %rcx
	cltq
	shlq	$2, %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %rax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	leaq	(,%rcx,4), %rbx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %rdx
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	movq	%rdx, %rax
	movq	%rdx, -176(%rbp)                ## 8-byte Spill
	leaq	(%rdx,%rcx,4), %rax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=2
	leaq	-44(%rbp), %rdx
	callq	_wdec16
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	-44(%rbp), %eax
	movl	%eax, (%r15)
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-128(%rbp), %r15                ## 8-byte Reload
	addq	-152(%rbp), %r15                ## 8-byte Folded Reload
	cmpq	-160(%rbp), %r15                ## 8-byte Folded Reload
	ja	LBB0_18
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	movq	%r15, -128(%rbp)                ## 8-byte Spill
	cmpl	$0, -112(%rbp)                  ## 4-byte Folded Reload
	js	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	-128(%rbp), %r15                ## 8-byte Reload
	movq	-144(%rbp), %rax                ## 8-byte Reload
	leaq	(%r15,%rax,4), %rax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=3
	leaq	-44(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	callq	_wdec16
	movl	(%r14), %edi
	movl	(%r12), %esi
	leaq	-68(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	callq	_wdec16
	movl	-44(%rbp), %edi
	movl	-68(%rbp), %esi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_wdec16
	movl	-64(%rbp), %edi
	movl	-60(%rbp), %esi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_wdec16
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=3
	addq	-184(%rbp), %r15                ## 8-byte Folded Reload
	cmpq	-192(%rbp), %r15                ## 8-byte Folded Reload
	ja	LBB0_12
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-176(%rbp), %rax                ## 8-byte Reload
	leaq	(%r15,%rax), %r14
	leaq	(%r15,%rbx), %r13
	movq	-168(%rbp), %rax                ## 8-byte Reload
	leaq	(%r15,%rax), %r12
	movl	(%r15), %edi
	movl	(%r15,%rbx), %esi
	cmpl	$16383, -56(%rbp)               ## 4-byte Folded Reload
                                        ## imm = 0x3FFF
	jg	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=3
	leaq	-44(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	callq	_wdec14
	movl	(%r14), %edi
	movl	(%r12), %esi
	leaq	-68(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	callq	_wdec14
	movl	-44(%rbp), %edi
	movl	-68(%rbp), %esi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_wdec14
	movl	-64(%rbp), %edi
	movl	-60(%rbp), %esi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_wdec14
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-104(%rbp), %rax                ## 8-byte Reload
	testl	%eax, -52(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	-136(%rbp), %rax                ## 8-byte Reload
	leaq	(%r15,%rax,4), %rcx
	movl	(%r15), %edi
	movl	(%r15,%rax,4), %esi
	cmpl	$16383, -56(%rbp)               ## 4-byte Folded Reload
                                        ## imm = 0x3FFF
	jg	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=2
	leaq	-44(%rbp), %rdx
	callq	_wdec14
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-108(%rbp), %r14d               ## 4-byte Reload
	movq	%r15, %rdx
	movq	-104(%rbp), %r15                ## 8-byte Reload
	testl	%r14d, %r15d
	je	LBB0_25
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	subl	-76(%rbp), %eax                 ## 4-byte Folded Reload
	imull	-48(%rbp), %eax                 ## 4-byte Folded Reload
	testl	%eax, %eax
	js	LBB0_25
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	cltq
	leaq	(%rdx,%rax,4), %r12
	shlq	$2, -88(%rbp)                   ## 8-byte Folded Spill
	shlq	$2, -96(%rbp)                   ## 8-byte Folded Spill
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=2
	leaq	-44(%rbp), %rdx
	callq	_wdec16
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=2
	movl	-44(%rbp), %eax
	movq	%rbx, %rdx
	movl	%eax, (%rbx)
	addq	-88(%rbp), %rdx                 ## 8-byte Folded Reload
	cmpq	%r12, %rdx
	ja	LBB0_25
LBB0_21:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rdx,%rax), %rcx
	movl	(%rdx), %edi
	movq	%rdx, %rbx
	movl	(%rdx,%rax), %esi
	cmpl	$16383, -56(%rbp)               ## 4-byte Folded Reload
                                        ## imm = 0x3FFF
	jg	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	leaq	-44(%rbp), %rdx
	callq	_wdec14
	jmp	LBB0_24
LBB0_26:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_wav_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wav_decode
_wav_decode:                            ; @wav_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	mov	x19, x5
	str	w4, [sp, #28]                   ; 4-byte Folded Spill
	mov	x23, x3
	str	w2, [sp, #56]                   ; 4-byte Folded Spill
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	cmp	w1, w3
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	csel	w8, w1, w3, lt
	mov	w10, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x10
	lsl	w10, w10, #1
	cmp	w9, w8
	b.le	LBB0_1
; %bb.2:
	cmp	w9, #4
	b.lt	LBB0_26
; %bb.3:
	lsr	w8, w9, #2
	lsr	w24, w9, #1
	str	w23, [sp, #8]                   ; 4-byte Folded Spill
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	lsr	w8, w24, #1
	cmp	w24, #1
	b.ls	LBB0_26
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;       Child Loop BB0_14 Depth 3
                                        ;     Child Loop BB0_24 Depth 2
	mov	x10, x8
	sub	w8, w23, w24
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	mul	w8, w8, w9
	ldr	w9, [sp, #56]                   ; 4-byte Folded Reload
	str	w10, [sp, #60]                  ; 4-byte Folded Spill
	mul	w10, w10, w9
	str	w24, [sp, #52]                  ; 4-byte Folded Spill
	mul	w9, w24, w9
	stp	x9, x10, [sp, #32]              ; 16-byte Folded Spill
	ldr	x25, [sp, #16]                  ; 8-byte Folded Reload
	tbnz	w8, #31, LBB0_19
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x25, [sp, #16]                  ; 8-byte Folded Reload
	add	x8, x25, w8, sxtw #2
	str	x8, [sp, #88]                   ; 8-byte Folded Spill
	ldr	w10, [sp, #28]                  ; 4-byte Folded Reload
	ldp	w11, w14, [sp, #56]             ; 8-byte Folded Reload
	mul	w8, w14, w10
	ldr	w12, [sp, #12]                  ; 4-byte Folded Reload
	ldr	w15, [sp, #52]                  ; 4-byte Folded Reload
	sub	w9, w12, w15
	mul	w9, w9, w11
	sxtw	x9, w9
	str	x9, [sp, #96]                   ; 8-byte Folded Spill
	sxtw	x11, w8
	mul	w9, w15, w10
	and	w10, w14, w12
	str	w10, [sp, #84]                  ; 4-byte Folded Spill
	sbfiz	x9, x9, #2, #32
	stp	x11, x9, [sp, #64]              ; 16-byte Folded Spill
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	sbfiz	x21, x9, #2, #32
	sbfiz	x23, x8, #2, #32
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	sbfiz	x20, x8, #2, #32
	add	x22, x23, x20
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=2
	bl	_wdec16
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldur	w8, [x29, #-84]
	str	w8, [x25]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	x25, [sp, #104]                 ; 8-byte Folded Reload
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	add	x25, x25, x8
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	cmp	x25, x8
	b.hi	LBB0_19
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_14 Depth 3
	str	x25, [sp, #104]                 ; 8-byte Folded Spill
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	tbnz	w8, #31, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldp	x8, x25, [sp, #96]              ; 16-byte Folded Reload
	add	x24, x25, x8, lsl #2
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=3
	bl	_wdec16
	ldr	w0, [x28]
	ldr	w1, [x27]
	sub	x2, x29, #88
	sub	x3, x29, #96
	bl	_wdec16
	ldp	w1, w0, [x29, #-88]
	mov	x2, x25
	mov	x3, x28
	bl	_wdec16
	ldp	w1, w0, [x29, #-96]
	mov	x2, x26
	mov	x3, x27
	bl	_wdec16
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=3
	add	x25, x25, x21
	cmp	x25, x24
	b.hi	LBB0_16
LBB0_14:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	x28, x25, x20
	add	x26, x25, x23
	add	x27, x25, x22
	ldr	w0, [x25]
	ldr	w1, [x26]
	sub	x2, x29, #84
	sub	x3, x29, #92
	cmp	w19, #4, lsl #12                ; =16384
	b.ge	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=3
	bl	_wdec14
	ldr	w0, [x28]
	ldr	w1, [x27]
	sub	x2, x29, #88
	sub	x3, x29, #96
	bl	_wdec14
	ldp	w1, w0, [x29, #-88]
	mov	x2, x25
	mov	x3, x28
	bl	_wdec14
	ldp	w1, w0, [x29, #-96]
	mov	x2, x26
	mov	x3, x27
	bl	_wdec14
	b	LBB0_13
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	w8, [sp, #84]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_9
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	add	x3, x25, x8, lsl #2
	ldr	w0, [x25]
	ldr	w1, [x3]
	sub	x2, x29, #84
	cmp	w19, #4, lsl #12                ; =16384
	b.ge	LBB0_7
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=2
	bl	_wdec14
	b	LBB0_8
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w23, [sp, #8]                   ; 4-byte Folded Reload
	ldr	w24, [sp, #60]                  ; 4-byte Folded Reload
	tst	w24, w23
	b.eq	LBB0_4
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	ldr	w9, [sp, #52]                   ; 4-byte Folded Reload
	sub	w8, w8, w9
	ldr	w9, [sp, #56]                   ; 4-byte Folded Reload
	mul	w8, w8, w9
	tbnz	w8, #31, LBB0_4
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x25, w8, sxtw #2
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sbfiz	x21, x8, #2, #32
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sbfiz	x22, x8, #2, #32
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_24 Depth=2
	bl	_wdec16
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=2
	ldur	w8, [x29, #-84]
	str	w8, [x25]
	add	x25, x25, x21
	cmp	x25, x20
	b.hi	LBB0_4
LBB0_24:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x3, x25, x22
	ldr	w0, [x25]
	ldr	w1, [x3]
	sub	x2, x29, #84
	cmp	w19, #4, lsl #12                ; =16384
	b.ge	LBB0_22
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	bl	_wdec14
	b	LBB0_23
LBB0_26:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_wav_decode
.subsections_via_symbols
