	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_els_decode_unsigned         ## -- Begin function ff_els_decode_unsigned
	.p2align	4, 0x90
_ff_els_decode_unsigned:                ## @ff_els_decode_unsigned
	.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
	xorl	%eax, %eax
	cmpq	$0, (%rdi)
	jne	LBB0_27
## %bb.1:
	movq	%rdi, %r12
	movq	_ELS_EXPGOLOMB_LEN@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	js	LBB0_26
## %bb.2:
	movq	%rsi, %r13
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rsi
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	_ff_els_decode_bit
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%r15), %rcx
	movslq	(%r14), %rdx
	addq	$4, %rbx
	cmpq	%rdx, %r15
	movq	%rcx, %r15
	jl	LBB0_3
## %bb.5:
	movq	%rcx, %r15
	jmp	LBB0_7
LBB0_6:
	movl	(%r14), %edx
LBB0_7:
	cmpq	$0, (%r12)
	movl	$0, %eax
	jne	LBB0_26
## %bb.8:
	cmpl	%r15d, %edx
	jle	LBB0_26
## %bb.9:
	testl	%r15d, %r15d
	je	LBB0_28
## %bb.10:
	leaq	8(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, 8(%r13)
	jne	LBB0_13
## %bb.11:
	movq	_RUNG_SPACE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	xorl	%edi, %edi
	callq	_av_realloc
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_29
## %bb.12:
	movl	(%rbx), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	(%rbx), %eax
	movl	%eax, (%r13)
	movl	(%r14), %eax
	movl	%eax, 4(%r13)
LBB0_13:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movl	%r15d, %ecx
	cmpl	$2, %r15d
	movl	$1, %eax
	cmovael	%r15d, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	shlq	$3, %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	_RUNG_SPACE@GOTPCREL(%rip), %rbx
                                        ## implicit-def: $r13
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	testl	%r14d, %r14d
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r13), %edx
	testl	%edx, %edx
	jne	LBB0_22
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %rsi
	movslq	4(%rcx), %rdx
	leaq	16(,%rdx,8), %rcx
	cmpq	%rsi, %rcx
	jae	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rdx, %rcx
	addq	$2, %rcx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r13
	addq	-96(%rbp), %r13                 ## 8-byte Folded Reload
	jmp	LBB0_23
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	addl	(%rbx), %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_av_reallocp
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	js	LBB0_28
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=1
	subq	-80(%rbp), %r13                 ## 8-byte Folded Reload
	movq	%rbx, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movslq	(%rbx), %rdi
	shlq	$3, %rdi
	addq	8(%rbx), %rdi
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	_RUNG_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, (%rbx)
	addq	8(%rbx), %r13
	movl	4(%rbx), %edx
	leal	2(%rdx), %ecx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	%edx, (%r13)
	movl	%ecx, 4(%rbx)
LBB0_22:                                ##   in Loop: Header=BB0_14 Depth=1
	addl	%eax, %edx
	movslq	%edx, %r13
	shlq	$3, %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %r13
LBB0_23:                                ##   in Loop: Header=BB0_14 Depth=1
	leaq	4(%r13), %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_ff_els_decode_bit
                                        ## kill: def $eax killed $eax def $rax
	cmpq	$0, (%rbx)
	jne	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_14 Depth=1
	leal	(%rax,%r12,2), %r12d
	incl	%r14d
	cmpl	%r14d, -60(%rbp)                ## 4-byte Folded Reload
	movq	_RUNG_SPACE@GOTPCREL(%rip), %rbx
	jne	LBB0_14
## %bb.25:
	movl	$-1, %eax
	movl	%r15d, %ecx
	shll	%cl, %eax
	notl	%eax
	addl	%eax, %r12d
	movl	%r12d, %eax
	jmp	LBB0_27
LBB0_26:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%r12)
LBB0_27:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movq	%rax, (%r12)
LBB0_28:
	xorl	%eax, %eax
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_ELS_EXPGOLOMB_LEN,4,2          ## @ELS_EXPGOLOMB_LEN
	.comm	_AVERROR_INVALIDDATA,8,3        ## @AVERROR_INVALIDDATA
	.comm	_RUNG_SPACE,4,2                 ## @RUNG_SPACE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_els_decode_unsigned         ; -- Begin function ff_els_decode_unsigned
	.p2align	2
_ff_els_decode_unsigned:                ; @ff_els_decode_unsigned
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w22, #0
	b	LBB0_10
LBB0_2:
	mov	x19, x0
Lloh0:
	adrp	x22, _ELS_EXPGOLOMB_LEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ELS_EXPGOLOMB_LEN@GOTPAGEOFF]
	ldr	w8, [x22]
	tbnz	w8, #31, LBB0_9
; %bb.3:
	mov	x20, x1
	mov	x21, #0
	mov	x23, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	add	x1, x8, x21
	mov	x0, x19
	bl	_ff_els_decode_bit
	cbnz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x23, #1
	ldrsw	x8, [x22]
	add	x21, x21, #4
	cmp	x23, x8
	mov	x23, x9
	b.lt	LBB0_4
; %bb.6:
	mov	x23, x9
	b	LBB0_8
LBB0_7:
	ldr	w8, [x22]
LBB0_8:
	ldr	x9, [x19]
	cmp	x9, #0
	ccmp	w8, w23, #4, eq
	b.gt	LBB0_11
LBB0_9:
	mov	w22, #0
Lloh2:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_10:
	mov	x0, x22
	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
LBB0_11:
	cbz	w23, LBB0_1
; %bb.12:
	mov	x21, x20
	ldr	x8, [x21, #8]!
Lloh5:
	adrp	x27, _RUNG_SPACE@GOTPAGE
Lloh6:
	ldr	x27, [x27, _RUNG_SPACE@GOTPAGEOFF]
	cbnz	x8, LBB0_15
; %bb.13:
	ldr	w1, [x27]
	mov	x0, #0
	bl	_av_realloc
	str	x0, [x21]
	cbz	x0, LBB0_27
; %bb.14:
	ldr	w2, [x27]
	mov	w1, #0
	bl	_memset
	ldr	w8, [x27]
	str	w8, [x20]
	ldr	w8, [x22]
	str	w8, [x20, #4]
LBB0_15:
	mov	w22, #0
	mov	w25, #0
	mov	w26, #0
	and	x28, x23, #0xffffffff
	cmp	w23, #1
	csinc	w8, w23, wzr, hi
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
                                        ; implicit-def: $x24
	str	x28, [sp]                       ; 8-byte Folded Spill
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	cbz	w26, LBB0_23
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x24]
	cbnz	w8, LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldp	w10, w8, [x20]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	add	w9, w8, #2
	cmp	x10, w9, sxtw #3
	b.hi	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x28, [x21]
	ldr	w8, [x27]
	add	w1, w8, w10
	mov	x0, x21
	bl	_av_reallocp
	str	x0, [x19]
	tbnz	x0, #63, LBB0_1
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	sub	x24, x24, x28
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20]
	add	x0, x8, x9, lsl #3
	ldr	w2, [x27]
	mov	w1, #0
	bl	_memset
	ldr	w9, [x27]
	ldp	w10, w8, [x20]
	add	w9, w10, w9
	str	w9, [x20]
	ldr	x9, [x20, #8]
	add	x24, x9, x24
	add	w9, w8, #2
	ldr	x28, [sp]                       ; 8-byte Folded Reload
LBB0_21:                                ;   in Loop: Header=BB0_16 Depth=1
	str	w8, [x24]
	str	w9, [x20, #4]
LBB0_22:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x9, [x21]
	add	w8, w8, w22
	add	x24, x9, w8, sxtw #3
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x21]
	add	x24, x8, x28, lsl #3
LBB0_24:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x1, x24, #4
	mov	x0, x19
	bl	_ff_els_decode_bit
	mov	x22, x0
	ldr	x8, [x19]
	cbnz	x8, LBB0_10
; %bb.25:                               ;   in Loop: Header=BB0_16 Depth=1
	add	w25, w22, w25, lsl #1
	add	w26, w26, #1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, w26
	b.ne	LBB0_16
; %bb.26:
	mov	w8, #-1
	lsl	w8, w8, w23
	mvn	w8, w8
	add	w22, w25, w8
	b	LBB0_10
LBB0_27:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	w22, #0
	str	x0, [x19]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ELS_EXPGOLOMB_LEN,4,2          ; @ELS_EXPGOLOMB_LEN
	.comm	_AVERROR_INVALIDDATA,8,3        ; @AVERROR_INVALIDDATA
	.comm	_RUNG_SPACE,4,2                 ; @RUNG_SPACE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
