	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_frame
_decode_frame:                          ## @decode_frame
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	8(%rcx), %rsi
	movl	(%rcx), %edx
	movq	16(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
	callq	_bytestream2_init
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movl	%eax, %r12d
	movq	_MADm_TAG@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	sete	-41(%rbp)                       ## 1-byte Folded Spill
	movq	_MADe_TAG@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	sete	-42(%rbp)                       ## 1-byte Folded Spill
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_bytestream2_skip
	leaq	12(%r13), %rbx
	leaq	8(%r13), %r14
	movq	%r15, %rdi
	callq	_bytestream2_get_le16
	movq	%rbx, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%eax, %edx
	movl	$1000, %ecx                     ## imm = 0x3E8
	movl	$1073741824, %r8d               ## imm = 0x40000000
	callq	_av_reduce
	movq	%r15, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_bytestream2_skip
	movq	%r15, %rdi
	callq	_bytestream2_get_byte
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_calc_quant_matrix
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_bytestream2_skip
	movq	%r15, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	$1, %eax
	jg	LBB0_2
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	jmp	LBB0_17
LBB0_2:
	movl	%r12d, -68(%rbp)                ## 4-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	cmpl	$16, %r14d
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	jl	LBB0_16
## %bb.3:
	cmpl	$15, %ebx
	jle	LBB0_16
## %bb.4:
	movl	%r14d, %r15d
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	cmpl	%r14d, (%r12)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_6
## %bb.5:
	cmpl	%ebx, 4(%r12)
	je	LBB0_8
LBB0_6:
	movq	8(%r13), %rdi
	callq	_av_frame_unref
	movl	%ebx, %eax
	imull	%r15d, %eax
	leal	2047(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$11, %ecx
	movl	%ebx, %r14d
	leal	(,%rcx,8), %ebx
	subl	%ecx, %ebx
	leaq	-64(%rbp), %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	%eax, %ebx
	jg	LBB0_18
## %bb.7:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_ff_set_dimensions
	testl	%eax, %eax
	js	LBB0_19
LBB0_8:
	movq	%r13, %rbx
	movq	_AV_GET_BUFFER_FLAG_REF@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r12, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_19
## %bb.9:
	movb	-41(%rbp), %r15b                ## 1-byte Reload
	orb	-42(%rbp), %r15b                ## 1-byte Folded Reload
	movzbl	%r15b, %r14d
	testl	%r14d, %r14d
	movq	%rbx, %r15
	je	LBB0_13
## %bb.10:
	movq	8(%r15), %rax
	movq	16(%rax), %rax
	cmpq	$0, (%rax)
	jne	LBB0_13
## %bb.11:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	movq	8(%r15), %rsi
	movl	(%r13), %edx
	movq	%r12, %rdi
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_19
## %bb.12:
	movq	8(%r15), %rax
	movq	8(%rax), %rcx
	movq	16(%rax), %rdx
	movq	(%rdx), %rdi
	movl	(%rcx), %edx
	imull	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	8(%r15), %rax
	movq	16(%rax), %rcx
	movq	8(%rcx), %rdi
	movl	(%rax), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movq	8(%rax), %rax
	imull	4(%rax), %edx
	movl	$128, %esi
	callq	_memset
	movq	8(%r15), %rax
	movq	16(%rax), %rcx
	movq	16(%rcx), %rdi
	movl	(%rax), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movq	8(%rax), %rax
	imull	8(%rax), %edx
	movl	$128, %esi
	callq	_memset
LBB0_13:
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	leaq	16(%r15), %rbx
	leaq	40(%r15), %r14
	leaq	-64(%rbp), %rdi
	callq	_bytestream2_get_bytes_left
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_av_fast_padded_malloc
	movq	16(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_26
## %bb.14:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %r15
	leaq	-64(%rbp), %r13
	movq	%r13, %rdi
	callq	_bytestream2_tell
	cltq
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r14
	movq	%r13, %rdi
	callq	_bytestream2_get_bytes_left
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*%r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rbx
	movq	%r13, %rdi
	callq	_bytestream2_get_bytes_left
	cltq
	leaq	(%rbx,%rax,4), %rdi
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_memset
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	24(%rax), %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r12
	movq	%r13, %rdi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	callq	_bytestream2_get_bytes_left
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,8), %edx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_init_get_bits
	movl	$0, (%rbx)
	movl	4(%r15), %ecx
	testl	%ecx, %ecx
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	movq	_MADe_TAG@GOTPCREL(%rip), %rdi
	jle	LBB0_27
## %bb.15:
	movl	(%r15), %eax
	jmp	LBB0_21
LBB0_16:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
LBB0_17:
	callq	_av_log
LBB0_18:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_19:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:                                ##   in Loop: Header=BB0_21 Depth=1
	incl	%r14d
	movl	%r14d, (%rbx)
	leal	15(%rcx), %edx
	leal	30(%rcx), %esi
	testl	%edx, %edx
	cmovnsl	%edx, %esi
	sarl	$4, %esi
	cmpl	%esi, %r14d
	jge	LBB0_27
LBB0_21:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_23 Depth 2
	movl	$0, 4(%rbx)
	testl	%eax, %eax
	jle	LBB0_20
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_21 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_decode_mb
	testq	%rax, %rax
	js	LBB0_18
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=2
	movl	4(%rbx), %ecx
	incl	%ecx
	movl	%ecx, 4(%rbx)
	movl	(%r15), %eax
	leal	15(%rax), %edx
	leal	30(%rax), %esi
	testl	%edx, %edx
	cmovnsl	%edx, %esi
	sarl	$4, %esi
	cmpl	%esi, %ecx
	jl	LBB0_23
## %bb.25:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	(%rbx), %r14d
	movl	4(%r15), %ecx
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	movq	_MADe_TAG@GOTPCREL(%rip), %rdi
	jmp	LBB0_20
LBB0_26:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_19
LBB0_27:
	movl	$1, (%r12)
	cmpl	(%rdi), %r8d
	je	LBB0_29
## %bb.28:
	movq	8(%rbx), %rdi
	callq	_av_frame_unref
	movq	8(%rbx), %rdi
	movq	%r13, %rsi
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_19
LBB0_29:
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_MADm_TAG,4,2                   ## @MADm_TAG
	.comm	_MADe_TAG,4,2                   ## @MADe_TAG
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Input data too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Dimensions too small\n"

	.comm	_AV_GET_BUFFER_FLAG_REF,4,2     ## @AV_GET_BUFFER_FLAG_REF
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"Missing reference frame.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,4,2 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.no_dead_strip	_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_frame
_decode_frame:                          ; @decode_frame
	.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	x23, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x26, [x3, #8]
	ldr	w19, [x3]
	ldr	x22, [x0, #16]
	add	x0, sp, #12
	mov	x1, x26
	mov	x2, x19
	bl	_bytestream2_init
	add	x0, sp, #12
	bl	_bytestream2_get_le32
	mov	x24, x0
Lloh0:
	adrp	x8, _MADm_TAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MADm_TAG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
Lloh3:
	adrp	x8, _MADe_TAG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MADe_TAG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ccmp	w0, w8, #4, ne
	cset	w25, eq
	add	x0, sp, #12
	mov	w1, #10
	bl	_bytestream2_skip
	add	x27, x21, #12
	add	x28, x21, #8
	add	x0, sp, #12
	bl	_bytestream2_get_le16
	mov	x2, x0
	mov	x0, x27
	mov	x1, x28
	mov	w3, #1000
	mov	w4, #1073741824
	bl	_av_reduce
	add	x0, sp, #12
	bl	_bytestream2_get_le16
	mov	x27, x0
	add	x0, sp, #12
	bl	_bytestream2_get_le16
	mov	x28, x0
	add	x0, sp, #12
	mov	w1, #1
	bl	_bytestream2_skip
	add	x0, sp, #12
	bl	_bytestream2_get_byte
	mov	x1, x0
	mov	x0, x22
	bl	_calc_quant_matrix
	add	x0, sp, #12
	mov	w1, #2
	bl	_bytestream2_skip
	add	x0, sp, #12
	bl	_bytestream2_get_bytes_left
	cmp	w0, #1
	b.gt	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_17
LBB0_2:
	cmp	w27, #16
	b.lt	LBB0_16
; %bb.3:
	cmp	w28, #15
	b.le	LBB0_16
; %bb.4:
	ldr	w8, [x21]
	cmp	w8, w27
	b.ne	LBB0_6
; %bb.5:
	ldr	w8, [x21, #4]
	cmp	w8, w28
	b.eq	LBB0_8
LBB0_6:
	str	x20, [sp]                       ; 8-byte Folded Spill
	mov	x20, x23
	ldr	x0, [x22, #8]
	bl	_av_frame_unref
	mul	w8, w28, w27
	add	w9, w8, #2047
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #11
	lsl	w9, w8, #3
	sub	w23, w9, w8
	add	x0, sp, #12
	bl	_bytestream2_get_bytes_left
	cmp	w23, w0
	b.gt	LBB0_18
; %bb.7:
	mov	x0, x21
	mov	x1, x27
	mov	x2, x28
	bl	_ff_set_dimensions
	mov	x23, x20
	ldr	x20, [sp]                       ; 8-byte Folded Reload
	tbnz	w0, #31, LBB0_26
LBB0_8:
Lloh11:
	adrp	x27, _AV_GET_BUFFER_FLAG_REF@GOTPAGE
Lloh12:
	ldr	x27, [x27, _AV_GET_BUFFER_FLAG_REF@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x0, x21
	mov	x1, x20
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_26
; %bb.9:
	cbz	w25, LBB0_13
; %bb.10:
	ldr	x8, [x22, #8]
	ldr	x8, [x8, #16]
	ldr	x8, [x8]
	cbnz	x8, LBB0_13
; %bb.11:
Lloh13:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_av_log
	ldr	x1, [x22, #8]
	ldr	w2, [x27]
	mov	x0, x21
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_26
; %bb.12:
	ldr	x8, [x22, #8]
	ldp	x10, x9, [x8, #8]
	ldr	x0, [x9]
	ldr	w8, [x8]
	ldr	w9, [x10]
	mul	w2, w9, w8
	mov	w1, #0
	bl	_memset
	ldr	x8, [x22, #8]
	ldp	x10, x9, [x8, #8]
	ldr	x0, [x9, #8]
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	ldr	w9, [x10, #4]
	mul	w2, w9, w8
	mov	w1, #128
	bl	_memset
	ldr	x8, [x22, #8]
	ldp	x10, x9, [x8, #8]
	ldr	x0, [x9, #16]
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	ldr	w9, [x10, #8]
	mul	w2, w9, w8
	mov	w1, #128
	bl	_memset
LBB0_13:
	add	x27, x22, #16
	add	x28, x22, #40
	add	x0, sp, #12
	bl	_bytestream2_get_bytes_left
	mov	x2, x0
	mov	x0, x27
	mov	x1, x28
	bl	_av_fast_padded_malloc
	ldr	x27, [x22, #16]
	cbz	x27, LBB0_25
; %bb.14:
	mov	x28, x20
	mov	x20, x23
	ldr	x23, [x22, #32]
	add	x0, sp, #12
	bl	_bytestream2_tell
	add	x26, x26, w0, sxtw #2
	add	x0, sp, #12
	bl	_bytestream2_get_bytes_left
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w2, w8, #1
	mov	x0, x27
	mov	x1, x26
	blr	x23
	ldr	x23, [x22, #16]
	add	x0, sp, #12
	bl	_bytestream2_get_bytes_left
	add	x0, x23, w0, sxtw #2
	mov	x23, x20
	mov	x20, x28
Lloh18:
	adrp	x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	add	x26, x22, #24
	ldr	x27, [x22, #16]
	add	x0, sp, #12
	bl	_bytestream2_get_bytes_left
	lsl	w2, w0, #3
	mov	x0, x26
	mov	x1, x27
	bl	_init_get_bits
	str	wzr, [x22]
	ldr	w9, [x21, #4]
	cmp	w9, #1
Lloh21:
	adrp	x26, _MADe_TAG@GOTPAGE
Lloh22:
	ldr	x26, [x26, _MADe_TAG@GOTPAGEOFF]
	b.lt	LBB0_27
; %bb.15:
	mov	w10, #0
	ldr	w8, [x21]
	b	LBB0_21
LBB0_16:
Lloh23:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x2, l_.str.1@PAGE
Lloh27:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_17:
	mov	x0, x21
	bl	_av_log
LBB0_18:
Lloh28:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh30:
	ldr	w19, [x8]
LBB0_19:
	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
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	w10, w10, #1
	str	w10, [x22]
	add	w11, w9, #15
	add	w12, w9, #30
	cmp	w11, #0
	csel	w11, w12, w11, lt
	cmp	w10, w11, asr #4
	b.ge	LBB0_27
LBB0_21:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_22 Depth 2
	str	wzr, [x22, #4]
	cmp	w8, #1
	b.lt	LBB0_20
LBB0_22:                                ;   Parent Loop BB0_21 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	mov	x1, x20
	mov	x2, x25
	bl	_decode_mb
	tbnz	x0, #63, LBB0_18
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=2
	ldr	w8, [x22, #4]
	add	w9, w8, #1
	str	w9, [x22, #4]
	ldr	w8, [x21]
	add	w10, w8, #15
	add	w11, w8, #30
	cmp	w10, #0
	csel	w10, w11, w10, lt
	cmp	w9, w10, asr #4
	b.lt	LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w10, [x22]
	ldr	w9, [x21, #4]
	b	LBB0_20
LBB0_25:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_26:
	mov	x19, x0
	b	LBB0_19
LBB0_27:
	mov	w8, #1
	str	w8, [x23]
	ldr	w8, [x26]
	cmp	w24, w8
	b.eq	LBB0_19
; %bb.28:
	ldr	x0, [x22, #8]
	bl	_av_frame_unref
	ldr	x0, [x22, #8]
	mov	x1, x20
	bl	_av_frame_ref
	tbz	w0, #31, LBB0_19
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_MADm_TAG,4,2                   ; @MADm_TAG
	.comm	_MADe_TAG,4,2                   ; @MADe_TAG
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Input data too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Dimensions too small\n"

	.comm	_AV_GET_BUFFER_FLAG_REF,4,2     ; @AV_GET_BUFFER_FLAG_REF
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"Missing reference frame.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,4,2 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.no_dead_strip	_decode_frame
.subsections_via_symbols
