	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_decodeWavelet                  ## -- Begin function decodeWavelet
	.p2align	4, 0x90
_decodeWavelet:                         ## @decodeWavelet
	.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	%r12
	pushq	%rbx
	movl	$16400, %eax                    ## imm = 0x4010
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-16432(%rbp), %rdi
	movl	$16388, %esi                    ## imm = 0x4004
	callq	___bzero
	movl	(%r15), %r14d
	testl	%r14d, %r14d
	jle	LBB0_1
## %bb.2:
	movq	8(%r15), %rdx
	movq	_mulawToShort@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	-1(%r14), %rsi
	movl	%r14d, %ecx
	andl	$3, %ecx
	cmpq	$3, %rsi
	jae	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	jmp	LBB0_6
LBB0_1:
	leaq	-16432(%rbp), %rdi
	movl	%r14d, %esi
	movl	$-1, %edx
	callq	_wt1
	jmp	LBB0_20
LBB0_4:
	movl	%r14d, %edi
	andl	$-4, %edi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rbx
	movss	(%rax,%rbx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -16432(%rbp,%rsi,4)
	movq	8(%rdx,%rsi,8), %rbx
	movss	(%rax,%rbx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -16428(%rbp,%rsi,4)
	movq	16(%rdx,%rsi,8), %rbx
	movss	(%rax,%rbx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -16424(%rbp,%rsi,4)
	movq	24(%rdx,%rsi,8), %rbx
	movd	(%rax,%rbx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movd	%xmm0, -16420(%rbp,%rsi,4)
	addq	$4, %rsi
	cmpq	%rsi, %rdi
	jne	LBB0_5
LBB0_6:
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.7:
	leaq	-16432(,%rsi,4), %rdi
	addq	%rbp, %rdi
	leaq	(%rdx,%rsi,8), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rbx
	movd	(%rax,%rbx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movd	%xmm0, (%rdi,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_8
LBB0_9:
	leaq	-16432(%rbp), %rdi
	movl	%r14d, %esi
	movl	$-1, %edx
	callq	_wt1
	testq	%r12, %r12
	je	LBB0_20
## %bb.10:
	cmpl	$8, %r14d
	jae	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_12:
	movl	%r14d, %eax
	andl	$-8, %eax
	leaq	-8(%rax), %rdx
	movq	%rdx, %rcx
	shrq	$3, %rcx
	incq	%rcx
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.14:
	movq	%rcx, %rsi
	andq	$-2, %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cvttps2dq	-16432(%rbp,%rdx,4), %xmm0
	cvttps2dq	-16416(%rbp,%rdx,4), %xmm1
	packssdw	%xmm1, %xmm0
	movdqu	%xmm0, (%r12,%rdx,2)
	cvttps2dq	-16400(%rbp,%rdx,4), %xmm0
	cvttps2dq	-16384(%rbp,%rdx,4), %xmm1
	packssdw	%xmm1, %xmm0
	movdqu	%xmm0, 16(%r12,%rdx,2)
	addq	$16, %rdx
	addq	$-2, %rsi
	jne	LBB0_15
## %bb.16:
	testb	$1, %cl
	je	LBB0_18
LBB0_17:
	cvttps2dq	-16432(%rbp,%rdx,4), %xmm0
	cvttps2dq	-16416(%rbp,%rdx,4), %xmm1
	packssdw	%xmm1, %xmm0
	movdqu	%xmm0, (%r12,%rdx,2)
LBB0_18:
	cmpq	%r14, %rax
	je	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	cvttss2si	-16432(%rbp,%rax,4), %ecx
	movw	%cx, (%r12,%rax,2)
	incq	%rax
	cmpq	%rax, %r14
	jne	LBB0_19
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	addq	$16400, %rsp                    ## imm = 0x4010
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%edx, %edx
	testb	$1, %cl
	jne	LBB0_17
	jmp	LBB0_18
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_mulawToShort,8,3               ## @mulawToShort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_decodeWavelet                  ; -- Begin function decodeWavelet
	.p2align	2
_decodeWavelet:                         ; @decodeWavelet
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	w9, #16400
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #4, lsl #12             ; =16384
	sub	sp, sp, #16
	mov	x19, x1
	mov	x21, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	add	x0, sp, #4
	mov	w1, #16388
	bl	_bzero
	ldr	w20, [x21]
	cmp	w20, #0
	b.le	LBB0_6
; %bb.1:
	ldr	x8, [x21, #8]
Lloh5:
	adrp	x9, _mulawToShort@GOTPAGE
Lloh6:
	ldr	x9, [x9, _mulawToShort@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x10, sp, #4
	mov	x11, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x8], #8
	ldr	s0, [x9, x12, lsl #2]
	str	s0, [x10], #4
	subs	x11, x11, #1
	b.ne	LBB0_2
; %bb.3:
	add	x0, sp, #4
	mov	x1, x20
	mov	w2, #-1
	bl	_wt1
	cbz	x19, LBB0_12
; %bb.4:
	cmp	w20, #16
	b.hs	LBB0_7
; %bb.5:
	mov	x8, #0
	b	LBB0_10
LBB0_6:
	add	x0, sp, #4
	mov	x1, x20
	mov	w2, #-1
	bl	_wt1
	b	LBB0_12
LBB0_7:
	and	x8, x20, #0xfffffff0
	add	x9, x19, #16
	add	x10, sp, #4
	add	x10, x10, #32
	mov	x11, x8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x10, #-32]
	ldp	q2, q3, [x10], #64
	fcvtzs.4s	v0, v0
	xtn.4h	v0, v0
	fcvtzs.4s	v1, v1
	xtn.4h	v1, v1
	fcvtzs.4s	v2, v2
	xtn.4h	v2, v2
	fcvtzs.4s	v3, v3
	xtn.4h	v3, v3
	stur	d0, [x9, #-16]
	stur	d1, [x9, #-8]
	str	d2, [x9]
	str	d3, [x9, #8]
	add	x9, x9, #32
	subs	x11, x11, #16
	b.ne	LBB0_8
; %bb.9:
	cmp	x8, x20
	b.eq	LBB0_12
LBB0_10:
	add	x9, x19, x8, lsl #1
	add	x10, sp, #4
	add	x10, x10, x8, lsl #2
	sub	x8, x20, x8
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	s0, [x10], #4
	fcvtzs	w11, s0
	strh	w11, [x9], #2
	subs	x8, x8, #1
	b.ne	LBB0_11
LBB0_12:
	ldur	x8, [x29, #-40]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	add	sp, sp, #4, lsl #12             ; =16384
	add	sp, sp, #16
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_mulawToShort,8,3               ; @mulawToShort
.subsections_via_symbols
