	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function piz_uncompress
_piz_uncompress:                        ## @piz_uncompress
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	(%r8), %rax
	movq	32(%r8), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_BITMAP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_av_malloc
	movq	%rax, (%r13)
LBB0_2:
	movq	8(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_26
LBB0_3:
	movl	$131072, %edi                   ## imm = 0x20000
	callq	_av_malloc
	movq	%rax, %rcx
	movq	%rax, 8(%r13)
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_26
LBB0_5:
	testq	%rcx, %rcx
	je	LBB0_26
## %bb.6:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	leaq	-60(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_bytestream2_init
	movq	%rbx, %rdi
	callq	_bytestream2_get_le16
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_bytestream2_get_le16
	movq	_BITMAP_SIZE@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	cmpq	%rsi, %rax
	jge	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movq	(%r13), %r15
	movq	%r12, %rdi
	callq	_FFMIN
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_memset
	movq	%rbx, %rdx
	subq	%r12, %rdx
	jl	LBB0_10
## %bb.9:
	movq	(%r13), %rsi
	addq	%r12, %rsi
	incq	%rdx
	leaq	-60(%rbp), %rdi
	callq	_bytestream2_get_buffer
LBB0_10:
	movq	(%r13), %rax
	leaq	(%rbx,%rax), %rdi
	incq	%rdi
	notq	%rbx
	addq	(%r14), %rbx
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_memset
	movq	(%r13), %rdi
	movq	8(%r13), %rsi
	callq	_reverse_lut
	movq	%rax, %r12
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	sarl	$3, %ebx
	leaq	-60(%rbp), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_huf_uncompress
	testl	%eax, %eax
	jne	LBB0_25
## %bb.11:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$0, (%rbx)
	jle	LBB0_16
## %bb.12:
	xorl	%ecx, %ecx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movq	16(%rbx), %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %rax
	xorl	%ecx, %ecx
	movq	_EXR_HALF@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%cl
	movl	$2, %r14d
	subl	%ecx, %r14d
	movq	%r14, %rbx
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	16(%r13), %esi
	movl	20(%r13), %ecx
	movl	%esi, %r8d
	imull	%r14d, %r8d
	movq	%r15, %rdi
	movl	%r14d, %edx
	movq	%r12, %r9
	callq	_wav_decode
	addq	$8, %r15
	decq	%rbx
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	imull	16(%r13), %r14d
	imull	20(%r13), %r14d
	movslq	%r14d, %rax
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	leaq	(%r15,%rax,8), %r15
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movslq	(%rbx), %rax
	cmpq	%rax, %rcx
	jl	LBB0_13
LBB0_16:
	movq	8(%r13), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_apply_lut
	movl	20(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_24
## %bb.17:
	movq	%rbx, %rcx
	movq	24(%r13), %rbx
	movl	(%rcx), %ecx
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	20(%rsi), %eax
	movq	%rsi, %r13
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	incl	%edx
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %edx
	jge	LBB0_24
LBB0_18:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	16(%r13), %edx
	xorl	%r12d, %r12d
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	16(%r13), %rcx
	movq	-8(%rcx,%r14,8), %rcx
	xorl	%esi, %esi
	movq	_EXR_HALF@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rcx
	sete	%sil
	movl	$2, %r15d
	subl	%esi, %r15d
	movl	%edx, %ecx
	imull	%r12d, %ecx
	imull	%eax, %ecx
	movslq	%ecx, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rax
	movl	%edx, %ecx
	imull	-56(%rbp), %ecx                 ## 4-byte Folded Reload
	imull	%r15d, %ecx
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,8), %rsi
	imull	%r15d, %edx
	addl	%edx, %edx
	movq	%rbx, %rdi
	callq	_memcpy
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	16(%rsi), %edx
	movl	%edx, %eax
	imull	%r15d, %eax
	cltq
	leaq	(%rbx,%rax,8), %rbx
	movslq	(%r13), %rcx
	cmpq	%rcx, %r14
	jge	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=2
	addl	%r15d, %r12d
	movl	20(%rsi), %eax
	incq	%r14
	jmp	LBB0_20
LBB0_26:
	leaq	8(%r13), %rbx
	movq	%r13, %rdi
	callq	_av_freep
	movq	%rbx, %rdi
	callq	_av_freep
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_7:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_25
LBB0_24:
	xorl	%eax, %eax
LBB0_25:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BITMAP_SIZE,8,3                ## @BITMAP_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_EXR_HALF,8,3                   ## @EXR_HALF
	.no_dead_strip	_piz_uncompress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function piz_uncompress
_piz_uncompress:                        ; @piz_uncompress
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.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
	mov	x19, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
	ldr	x28, [x4, #32]
	ldr	x0, [x4]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _BITMAP_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BITMAP_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_av_malloc
	str	x0, [x19]
LBB0_2:
	mov	x25, x19
	ldr	x8, [x25, #8]!
	cbnz	x8, LBB0_4
; %bb.3:
	mov	w0, #131072
	bl	_av_malloc
	mov	x8, x0
	str	x0, [x19, #8]
	ldr	x0, [x19]
LBB0_4:
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_av_freep
	mov	x0, x25
	bl	_av_freep
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	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
	add	sp, sp, #112
	b	_AVERROR
LBB0_6:
	add	x0, sp, #12
	mov	x1, x24
	mov	x2, x23
	bl	_bytestream2_init
	add	x0, sp, #12
	bl	_bytestream2_get_le16
	mov	x24, x0
	add	x0, sp, #12
	bl	_bytestream2_get_le16
Lloh6:
	adrp	x21, _BITMAP_SIZE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _BITMAP_SIZE@GOTPAGEOFF]
	ldr	x1, [x21]
	cmp	x0, x1
	b.ge	LBB0_23
; %bb.7:
	mov	x23, x0
	ldr	x25, [x19]
	mov	x0, x24
	bl	_FFMIN
	mov	x2, x0
	mov	x0, x25
	mov	w1, #0
	bl	_memset
	subs	x8, x23, x24
	b.lt	LBB0_9
; %bb.8:
	ldr	x9, [x19]
	add	x1, x9, x24
	add	x2, x8, #1
	add	x0, sp, #12
	bl	_bytestream2_get_buffer
LBB0_9:
	ldr	x8, [x19]
	add	x8, x23, x8
	add	x0, x8, #1
	ldr	x8, [x21]
	mvn	x9, x23
	add	x2, x8, x9
	mov	w1, #0
	bl	_memset
	ldp	x0, x1, [x19]
	bl	_reverse_lut
	mov	x23, x0
	asr	w21, w22, #3
	add	x0, sp, #12
	mov	x1, x28
	mov	x2, x21
	bl	_huf_uncompress
	cbnz	w0, LBB0_25
; %bb.10:
	str	w21, [sp, #8]                   ; 4-byte Folded Spill
	ldr	w8, [x20]
Lloh8:
	adrp	x26, _EXR_HALF@GOTPAGE
Lloh9:
	ldr	x26, [x26, _EXR_HALF@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.11:
	mov	x27, #0
	mov	x21, x28
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x27, lsl #3]
	ldr	x9, [x26]
	cmp	x8, x9
	mov	w8, #1
	cinc	w22, w8, ne
	mov	x24, x22
	mov	x25, x21
LBB0_13:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w1, w3, [x19, #16]
	mul	w4, w1, w22
	mov	x0, x25
	mov	x2, x22
	mov	x5, x23
	bl	_wav_decode
	add	x25, x25, #8
	subs	x24, x24, #1
	b.ne	LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldp	w8, w9, [x19, #16]
	mul	w8, w8, w22
	mul	w8, w8, w9
	add	x21, x21, w8, sxtw #3
	add	x27, x27, #1
	ldrsw	x8, [x20]
	cmp	x27, x8
	b.lt	LBB0_12
LBB0_15:
	ldr	x0, [x19, #8]
	mov	x1, x28
	ldr	w2, [sp, #8]                    ; 4-byte Folded Reload
	bl	_apply_lut
	ldr	w8, [x19, #20]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.16:
	mov	w23, #0
	ldr	x22, [x19, #24]
	ldr	w10, [x20]
	mov	w24, #1
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	w8, [x19, #20]
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	w23, w23, #1
	cmp	w23, w8
	b.ge	LBB0_24
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	cmp	w10, #1
	b.lt	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x25, #0
	mov	w27, #0
	ldr	w9, [x19, #16]
LBB0_21:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x20, #16]
	ldr	x10, [x10, x25, lsl #3]
	ldr	x11, [x26]
	cmp	x10, x11
	cinc	w21, w24, ne
	mul	w10, w9, w27
	mul	w8, w10, w8
	add	x8, x28, w8, sxtw #3
	mul	w10, w9, w23
	mul	w10, w10, w21
	add	x1, x8, w10, sxtw #3
	mul	w8, w9, w21
	lsl	w2, w8, #1
	mov	x0, x22
	bl	_memcpy
	ldr	w9, [x19, #16]
	mul	w8, w9, w21
	add	x22, x22, w8, sxtw #3
	add	x25, x25, #1
	ldrsw	x10, [x20]
	cmp	x25, x10
	b.ge	LBB0_17
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	add	w27, w21, w27
	ldr	w8, [x19, #20]
	b	LBB0_21
LBB0_23:
Lloh10:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_25
LBB0_24:
	mov	w0, #0
LBB0_25:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BITMAP_SIZE,8,3                ; @BITMAP_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_EXR_HALF,8,3                   ; @EXR_HALF
	.no_dead_strip	_piz_uncompress
.subsections_via_symbols
