	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_segment
_decode_segment:                        ## @decode_segment
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %r15
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	_xcodes@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_FF_ARRAY_ELEMS
	cmpl	%ebx, %eax
	jge	LBB0_4
LBB0_3:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_20
LBB0_1:
	shll	$2, %r13d
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_memset
	jmp	LBB0_20
LBB0_4:
	testl	%r13d, %r13d
	jle	LBB0_19
## %bb.5:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	decl	%ebx
	movslq	%ebx, %rcx
	leaq	(%rcx,%rcx,2), %rdx
	movl	(%rax,%rdx,8), %ecx
	movl	4(%rax,%rdx,8), %r14d
	movl	8(%rax,%rdx,8), %esi
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movl	$1, %esi
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	12(%rax,%rdx,8), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	16(%rax,%rdx,8), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r13d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	subl	%r14d, %ebx
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %eax
	shrl	%eax
	andl	$1, %ebx
	negl	%ebx
	xorl	%eax, %ebx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax,%r15,4)
	incq	%r15
	cmpq	%r15, %r13
	je	LBB0_19
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_get_bits_long
	movl	%eax, %ebx
	cmpl	%r14d, %eax
	jb	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	orl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	cmpl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	jb	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	movl	$9, %edx
	callq	_get_unary
	cmpl	$9, %eax
	jne	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	movl	$3, %esi
	callq	_get_bits
	testl	%eax, %eax
	jle	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$7, %eax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	movl	$5, %esi
	callq	_get_bits
	cmpl	$22, %eax
	jg	LBB0_3
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	addl	$7, %eax
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_get_bits_long
	incl	%eax
	imull	-44(%rbp), %eax                 ## 4-byte Folded Reload
	addl	%eax, %ebx
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	addl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	jmp	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	imull	-44(%rbp), %eax                 ## 4-byte Folded Reload
	subl	%r14d, %ebx
	addl	%eax, %ebx
	jmp	LBB0_18
LBB0_19:
	xorl	%ebx, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xcodes,8,3                     ## @xcodes
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_segment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_segment
_decode_segment:                        ; @decode_segment
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x3
	mov	x19, x2
	cbz	w1, LBB0_3
; %bb.1:
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _xcodes@GOTPAGE
Lloh1:
	ldr	x23, [x23, _xcodes@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, w21
	b.ge	LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_20
LBB0_3:
	lsl	w2, w22, #2
	mov	x0, x19
	bl	_memset
	b	LBB0_19
LBB0_4:
	cmp	w22, #1
	b.lt	LBB0_19
; %bb.5:
	ldr	x8, [x23]
	sxtw	x9, w21
	sub	x9, x9, #1
	mov	w10, #24
	madd	x10, x9, x10, x8
	ldp	w21, w23, [x10]
	ldp	w24, w25, [x10, #8]
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	w26, [x8, #16]
	mov	w8, #1
	lsl	w27, w8, w21
	mov	w28, w22
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	sub	w22, w22, w23
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	and	w8, w22, #0x1
	neg	w8, w8
	eor	w8, w8, w22, lsr #1
	str	w8, [x19], #4
	subs	x28, x28, #1
	b.eq	LBB0_19
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_get_bits_long
	mov	x22, x0
	cmp	w0, w23
	b.lo	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	orr	w22, w22, w27
	cmp	w22, w24
	b.lo	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	w1, #1
	mov	w2, #9
	bl	_get_unary
	cmp	w0, #9
	b.ne	LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	w1, #3
	bl	_get_bits
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x1, x0
	cmp	w0, #7
	b.ne	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	w1, #5
	bl	_get_bits
	cmp	w0, #22
	b.gt	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	add	w1, w0, #7
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_get_bits_long
	mul	w8, w25, w0
	add	w8, w25, w8
	add	w22, w8, w22
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=1
	add	w22, w22, w26
	b	LBB0_7
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=1
	mul	w8, w0, w25
	sub	w9, w22, w23
	add	w22, w9, w8
	b	LBB0_7
LBB0_19:
	mov	w0, #0
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_xcodes,8,3                     ; @xcodes
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_segment
.subsections_via_symbols
