	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decompress_i
_decompress_i:                          ## @decompress_i
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	leaq	20(%rbx), %r14
	movl	$0, -68(%rbp)
	movl	$0, -64(%rbp)
	movl	$0, -76(%rbp)
	movl	$0, -72(%rbp)
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx killed $rdx def $rdx
	subl	(%rdi), %edx
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_reinit_tables
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_bytestream2_skip
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	leaq	16(%rbx), %rdi
	movq	%r14, %rsi
	callq	_init_rangecoder
	movl	(%r12), %edi
	movl	$0, %r15d
	movl	$0, %r14d
	testl	%edi, %edi
	js	LBB0_10
## %bb.1:
	leaq	-56(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-68(%rbp), %r8
	leaq	-64(%rbp), %r9
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	xorl	%r10d, %r10d
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movl	%r10d, -80(%rbp)                ## 4-byte Spill
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_decode_units
	testl	%eax, %eax
	js	LBB0_23
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$256, %edx                      ## imm = 0x100
	movl	$400, %ecx                      ## imm = 0x190
	leaq	-60(%rbp), %r8
	callq	_decode_value
	testl	%eax, %eax
	js	LBB0_23
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-60(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %ecx
	shll	$16, %ecx
	movl	-52(%rbp), %r14d
	shll	$8, %r14d
	addl	%ecx, %r14d
	addl	-56(%rbp), %r14d
	movl	-80(%rbp), %r10d                ## 4-byte Reload
	addl	%eax, %r10d
	incl	%eax
	movq	-112(%rbp), %r9                 ## 8-byte Reload
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	xorl	%r8d, %r8d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	4(%r12), %r13d
	jge	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%r13d, %ecx
	imull	%ebx, %ecx
	addl	%r15d, %ecx
	movslq	%ecx, %rcx
	movl	%r14d, (%r9,%rcx,4)
	leal	1(%rsi), %r15d
	movl	(%r12), %edi
	xorl	%r13d, %r13d
	cmpl	%edi, %r15d
	cmovgel	%r8d, %r15d
	setge	%r13b
	addl	%edx, %r13d
	decl	%eax
	cmpl	$1, %eax
	jg	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$-1, -60(%rbp)
	movl	%r13d, -76(%rbp)
	movl	%r15d, -72(%rbp)
	movl	%esi, -88(%rbp)
	movl	%edx, -84(%rbp)
	cmpl	%edi, %r10d
	leaq	-56(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-68(%rbp), %r8
	leaq	-64(%rbp), %r9
	jle	LBB0_3
LBB0_10:
	movl	$0, -44(%rbp)
	cmpl	%edi, %r15d
	jge	LBB0_22
## %bb.11:
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %r13d
	notl	%r13d
	movq	-104(%rbp), %r15                ## 8-byte Reload
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	-76(%rbp), %eax
	cmpl	4(%r12), %eax
	jge	LBB0_22
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%r15), %rax
	movslq	-44(%rbp), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r15, %rdi
	movl	$6, %edx
	movl	$1000, %ecx                     ## imm = 0x3E8
	leaq	-44(%rbp), %r8
	callq	_decode_value
	testl	%eax, %eax
	js	LBB0_23
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %rdi
	leaq	-56(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-68(%rbp), %r8
	leaq	-64(%rbp), %r9
	callq	_decode_units
	testl	%eax, %eax
	js	LBB0_23
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	-48(%rbp), %eax
	shll	$16, %eax
	movl	-52(%rbp), %r14d
	shll	$8, %r14d
	addl	%eax, %r14d
	addl	-56(%rbp), %r14d
	movl	-44(%rbp), %eax
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$6, %eax
	jge	LBB0_6
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%r15), %rcx
	cltq
	movl	(%rcx,%rax,4), %esi
	movq	%r15, %rdi
	movl	$256, %edx                      ## imm = 0x100
	movl	$400, %ecx                      ## imm = 0x190
	leaq	-60(%rbp), %r8
	callq	_decode_value
	testl	%eax, %eax
	js	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	-60(%rbp), %edx
	testl	%edx, %edx
	jle	LBB0_6
## %bb.20:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	-44(%rbp), %esi
	movq	%r12, %rdi
	leaq	-72(%rbp), %rcx
	leaq	-76(%rbp), %r8
	movl	%r14d, %r9d
	leaq	-64(%rbp), %rax
	pushq	%rax
	leaq	-68(%rbp), %rax
	pushq	%rax
	pushq	%r13
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	leaq	-84(%rbp), %rax
	pushq	%rax
	leaq	-88(%rbp), %rax
	pushq	%rax
	pushq	%rbx
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	callq	_decode_run_i
	addq	$64, %rsp
	testl	%eax, %eax
	js	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	-72(%rbp), %eax
	cmpl	(%r12), %eax
	jl	LBB0_12
LBB0_22:
	xorl	%eax, %eax
	jmp	LBB0_23
LBB0_6:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_23:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_decompress_i
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decompress_i
_decompress_i:                          ; @decompress_i
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0, #8]
	add	x23, x22, #20
	stur	wzr, [x29, #-84]
	str	wzr, [sp, #88]
	stp	wzr, wzr, [sp, #76]
	ldr	w24, [x0]
	mov	x0, x22
	bl	_reinit_tables
	mov	x0, x23
	mov	w1, #2
	bl	_bytestream2_skip
	add	x0, x22, #16
	mov	x1, x23
	bl	_init_rangecoder
	ldr	w8, [x21]
	tbnz	w8, #31, LBB0_9
; %bb.1:
	mov	w25, #0
	mov	w28, #0
	mov	w26, #0
	mov	w27, #-1
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	add	x1, sp, #72
	add	x2, sp, #68
	add	x3, sp, #64
	sub	x4, x29, #84
	add	x5, sp, #88
	mov	x0, x22
	bl	_decode_units
	tbnz	w0, #31, LBB0_23
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
	ldr	w1, [x8]
	add	x4, sp, #84
	mov	x0, x22
	mov	w2, #256
	mov	w3, #400
	bl	_decode_value
	tbnz	w0, #31, LBB0_23
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #84]
	cmp	w8, #0
	b.le	LBB0_22
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w9, w10, [sp, #64]
	lsl	w10, w10, #8
	add	w9, w10, w9, lsl #16
	ldr	w10, [sp, #72]
	add	w23, w9, w10
	add	w26, w8, w26
	add	w9, w8, #1
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x21, #4]
	cmp	w28, w8
	b.ge	LBB0_22
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x11, x25
	mov	x10, x28
	madd	w8, w28, w19, w25
	str	w23, [x20, w8, sxtw #2]
	add	w12, w25, #1
	ldr	w8, [x21]
	cmp	w12, w8
	csinc	w25, wzr, w25, ge
	cinc	w28, w28, ge
	sub	w9, w9, #1
	cmp	w9, #1
	b.gt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	stp	w28, w27, [sp, #80]
	str	w25, [sp, #76]
	stp	w10, w11, [sp, #56]
	cmp	w26, w8
	b.le	LBB0_2
	b	LBB0_10
LBB0_9:
	mov	w25, #0
	mov	w23, #0
LBB0_10:
	mov	w0, #0
	str	wzr, [sp, #52]
	cmp	w25, w8
	b.ge	LBB0_23
; %bb.11:
	sub	w24, w19, w24
	mvn	w25, w19
	add	x27, sp, #88
	add	x28, sp, #56
	add	x26, sp, #60
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #80]
	ldr	w9, [x21, #4]
	cmp	w8, w9
	b.ge	LBB0_24
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x22, #8]
	ldrsw	x9, [sp, #52]
	ldr	w1, [x8, x9, lsl #2]
	add	x4, sp, #52
	mov	x0, x22
	mov	w2, #6
	mov	w3, #1000
	bl	_decode_value
	tbnz	w0, #31, LBB0_23
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [sp, #52]
	cbnz	w8, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x1, sp, #72
	add	x2, sp, #68
	add	x3, sp, #64
	sub	x4, x29, #84
	add	x5, sp, #88
	mov	x0, x22
	bl	_decode_units
	tbnz	w0, #31, LBB0_23
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	ldp	w8, w9, [sp, #64]
	lsl	w9, w9, #8
	add	w8, w9, w8, lsl #16
	ldr	w9, [sp, #72]
	add	w23, w8, w9
	ldr	w8, [sp, #52]
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	cmp	w8, #6
	b.ge	LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x22]
	ldr	w1, [x9, w8, sxtw #2]
	add	x4, sp, #84
	mov	x0, x22
	mov	w2, #256
	mov	w3, #400
	bl	_decode_value
	tbnz	w0, #31, LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w2, [sp, #84]
	cmp	w2, #0
	b.le	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w1, [sp, #52]
	sub	x8, x29, #84
	stp	x8, x27, [sp, #24]
	add	x3, sp, #76
	add	x4, sp, #80
	stp	w24, w25, [sp, #16]
	stp	x26, x28, [sp]
	mov	x0, x21
	mov	x5, x23
	mov	x6, x20
	mov	x7, x19
	bl	_decode_run_i
	tbnz	w0, #31, LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w0, #0
	ldr	w8, [sp, #76]
	ldr	w9, [x21]
	cmp	w8, w9
	b.lt	LBB0_12
	b	LBB0_23
LBB0_22:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_23:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_24:
	mov	w0, #0
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_decompress_i
.subsections_via_symbols
