	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xan_huffman_decode
_xan_huffman_decode:                    ## @xan_huffman_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movslq	(%rdx), %rbx
	leaq	(%rbx,%rbx), %rdi
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	leaq	4(%rdx,%rbx,8), %rsi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movl	%edi, %edx
	notl	%edx
	addl	%ecx, %edx
	leaq	-52(%rbp), %rdi
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_12
## %bb.1:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %r15
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.2:
	addq	$4, -72(%rbp)                   ## 8-byte Folded Spill
	leal	22(%rbx), %ecx
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	leaq	(%r15,%rax,4), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	-52(%rbp), %r14
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %r14
	cmpl	$22, %r12d
	je	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_get_bits_left
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %r13
	movq	%r14, %rdi
	callq	_get_bits1
                                        ## kill: def $eax killed $eax def $rax
	imull	%ebx, %eax
	addl	%r12d, %eax
	addl	$-23, %eax
	cmpl	-88(%rbp), %eax                 ## 4-byte Folded Reload
	jae	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %r12d
	cmpl	$21, %r12d
	jg	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	-80(%rbp), %r15                 ## 8-byte Folded Reload
	jae	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, (%r15)
	addq	$4, %r15
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r12d
	jmp	LBB0_10
LBB0_11:
	subq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	shrq	$2, %r15
	movl	%r15d, %eax
	jmp	LBB0_12
LBB0_4:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_8:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_12:
	addq	$56, %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	_xan_huffman_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xan_huffman_decode
_xan_huffman_decode:                    ; @xan_huffman_decode
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldrsw	x22, [x21], #4
	lsl	w23, w22, #1
	add	x1, x21, x22, lsl #3
	mvn	w8, w23
	add	w2, w8, w3
	add	x0, sp, #12
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_9
; %bb.1:
	mov	x24, x20
	cbz	w22, LBB0_10
; %bb.2:
	add	w25, w22, #22
	add	x26, x20, w19, sxtw #2
	mov	x24, x20
	mov	x27, x25
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w27, #22
	b.eq	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_get_bits_left
	cmp	w0, #0
	b.le	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #12
	bl	_get_bits1
	madd	w8, w0, w22, w27
	sub	w8, w8, #23
	cmp	w8, w23
	b.hs	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w27, [x21, w8, uxtw #2]
	cmp	w27, #21
	b.gt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x24, x26
	b.hs	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w27, [x24], #4
	mov	x27, x25
	b	LBB0_3
LBB0_9:
	mov	x19, x0
	b	LBB0_12
LBB0_10:
	sub	x8, x24, x20
	lsr	x19, x8, #2
	b	LBB0_12
LBB0_11:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
LBB0_12:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_xan_huffman_decode
.subsections_via_symbols
