	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h264_build_ref_list         ## -- Begin function ff_h264_build_ref_list
	.p2align	4, 0x90
_ff_h264_build_ref_list:                ## @ff_h264_build_ref_list
	.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
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_print_short_term
	movq	%rbx, %rdi
	callq	_print_long_term
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_h264_initialise_ref_list
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_27
## %bb.1:
	movq	8(%r12), %rcx
	xorl	%esi, %esi
                                        ## implicit-def: $r14d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_66:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %eax
LBB0_67:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	movslq	%eax, %rdx
	cmpq	%rdx, %rsi
	jge	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_35 Depth 3
                                        ##       Child Loop BB0_50 Depth 3
                                        ##       Child Loop BB0_60 Depth 3
	cmpl	$0, (%rcx,%rsi,4)
	jle	LBB0_67
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r12), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
LBB0_41:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	$1, %edi
	callq	_assert
LBB0_38:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	$-1, %r14d
	leaq	L_.str.2(%rip), %rdx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_39:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	16(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	callq	_av_log
	movq	32(%r12), %rax
	movq	%r13, %rdi
	shlq	$5, %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	addq	(%rax,%r15,8), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%r15, %rsi
	incq	%r13
	movq	%r13, %rdx
LBB0_65:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	8(%r12), %rcx
	movslq	(%rcx,%rsi,4), %rax
	movq	%rdx, %r13
	cmpq	%rax, %rdx
	jge	LBB0_66
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_35 Depth 3
                                        ##       Child Loop BB0_50 Depth 3
                                        ##       Child Loop BB0_60 Depth 3
	movq	40(%r12), %rax
	movq	(%rax,%rsi,8), %rax
	movl	(%rax,%r13,8), %edx
	movq	%r12, %rcx
	movl	4(%rax,%r13,8), %r12d
	cmpl	$2, %edx
	jae	LBB0_5
## %bb.30:                              ##   in Loop: Header=BB0_4 Depth=2
	leal	1(%r12), %eax
	movl	16(%rcx), %ecx
	cmpl	%ecx, %eax
	ja	LBB0_31
## %bb.33:                              ##   in Loop: Header=BB0_4 Depth=2
	testl	%edx, %edx
	notl	%r12d
	cmovel	%r12d, %eax
	addl	-72(%rbp), %eax                 ## 4-byte Folded Reload
	decl	%ecx
	movl	%ecx, %esi
	andl	%eax, %esi
	movq	%rbx, %rdi
	movl	%esi, -72(%rbp)                 ## 4-byte Spill
	leaq	-44(%rbp), %rdx
	callq	_pic_num_extract
	movl	%eax, %r12d
	movl	40(%rbx), %eax
	leal	-1(%rax), %r14d
	testl	%eax, %eax
	jle	LBB0_44
## %bb.34:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	%r14d, %r14d
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_35 Depth=3
	leaq	-1(%r14), %rax
	testq	%r14, %r14
	movq	%rax, %r14
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_38
LBB0_35:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	32(%rbx), %rax
	movq	(%rax,%r14,8), %r15
	movl	(%r15), %edi
	callq	_assert
	xorl	%edi, %edi
	cmpl	$0, 4(%r15)
	sete	%dil
	callq	_assert
	cmpl	%r12d, 8(%r15)
	jne	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=3
	movl	-44(%rbp), %eax
	testl	%eax, (%r15)
	je	LBB0_37
## %bb.40:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%r15)
	jmp	LBB0_45
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=2
	jne	LBB0_43
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %rdi
	movl	%r12d, %esi
	leaq	-44(%rbp), %rdx
	callq	_pic_num_extract
	cmpl	$31, %eax
	ja	LBB0_42
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	24(%rbx), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %r15
	testq	%r15, %r15
	je	LBB0_41
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%edi, %edi
	cmpl	$0, (%r15)
	setne	%dil
	callq	_assert
	movl	-44(%rbp), %eax
	testl	%eax, (%r15)
	je	LBB0_38
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%r12d, 12(%r15)
	movl	4(%r15), %edi
	callq	_assert
	xorl	%r14d, %r14d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_46
	.p2align	4, 0x90
LBB0_43:                                ##   in Loop: Header=BB0_4 Depth=2
	xorl	%edi, %edi
	callq	_av_assert0
LBB0_44:                                ##   in Loop: Header=BB0_4 Depth=2
	xorl	%r15d, %r15d
LBB0_45:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rdx
	testl	%r14d, %r14d
	js	LBB0_39
LBB0_46:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_mismatches_ref
	testq	%rax, %rax
	je	LBB0_48
## %bb.47:                              ##   in Loop: Header=BB0_4 Depth=2
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_39
LBB0_48:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	24(%r12), %rax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movslq	(%rax,%rdi,4), %rax
	leaq	1(%r13), %rcx
	movl	%r13d, %r14d
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rcx
	jge	LBB0_55
## %bb.49:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	32(%r12), %rcx
	movq	(%rcx,%rdi,8), %rcx
	movl	%eax, %r14d
	decl	%r14d
	movq	%r13, %rax
	shlq	$5, %rax
	addq	%rax, %rcx
	addq	$16, %rcx
	movq	%r13, %rax
	jmp	LBB0_50
	.p2align	4, 0x90
LBB0_53:                                ##   in Loop: Header=BB0_50 Depth=3
	incq	%rax
	addq	$32, %rcx
	cmpq	%rax, %r14
	je	LBB0_55
LBB0_50:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%rcx), %rdx
	testq	%rdx, %rdx
	je	LBB0_53
## %bb.51:                              ##   in Loop: Header=BB0_50 Depth=3
	movslq	4(%r15), %rsi
	cmpq	%rsi, (%rdx)
	jne	LBB0_53
## %bb.52:                              ##   in Loop: Header=BB0_50 Depth=3
	movslq	12(%r15), %rdx
	cmpq	%rdx, -16(%rcx)
	jne	LBB0_53
## %bb.54:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	%eax, %r14d
LBB0_55:                                ##   in Loop: Header=BB0_4 Depth=2
	movslq	%r14d, %rax
	cmpq	%rax, %r13
	jge	LBB0_61
## %bb.56:                              ##   in Loop: Header=BB0_4 Depth=2
	subl	%r13d, %r14d
	testb	$1, %r14b
	movq	%rax, %r14
	je	LBB0_58
## %bb.57:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	32(%r12), %rcx
	movq	(%rcx,%rdi,8), %rcx
	movq	%rax, %rdx
	shlq	$5, %rdx
	leaq	-1(%rax), %r14
	movq	%r14, %rsi
	shlq	$5, %rsi
	movups	(%rcx,%rsi), %xmm0
	movups	16(%rcx,%rsi), %xmm1
	movups	%xmm1, 16(%rcx,%rdx)
	movups	%xmm0, (%rcx,%rdx)
LBB0_58:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	%r13, %rcx
	notq	%rcx
	addq	%rax, %rcx
	je	LBB0_61
## %bb.59:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	%r14, %rax
	shlq	$5, %rax
	.p2align	4, 0x90
LBB0_60:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	32(%r12), %rcx
	movq	(%rcx,%rdi,8), %rcx
	movups	-32(%rcx,%rax), %xmm0
	movups	-16(%rcx,%rax), %xmm1
	movups	%xmm1, 16(%rcx,%rax)
	movups	%xmm0, (%rcx,%rax)
	movq	32(%r12), %rcx
	movq	(%rcx,%rdi,8), %rcx
	addq	$-2, %r14
	movups	-64(%rcx,%rax), %xmm0
	movups	-48(%rcx,%rax), %xmm1
	movups	%xmm1, -16(%rcx,%rax)
	movups	%xmm0, -32(%rcx,%rax)
	addq	$-64, %rax
	cmpq	%r13, %r14
	jg	LBB0_60
LBB0_61:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	32(%r12), %rax
	shlq	$5, %r13
	movq	(%rax,%rdi,8), %rdi
	addq	%r13, %rdi
	movq	%r15, %rsi
	callq	_ref_from_h264pic
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_FIELD_PICTURE
	testq	%rax, %rax
	je	LBB0_62
## %bb.63:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	32(%r12), %rax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	addq	(%rax,%r15,8), %r13
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	callq	_pic_as_field
	movq	%r15, %rsi
	jmp	LBB0_64
LBB0_62:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
LBB0_64:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_65
LBB0_31:
	movl	16(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_32
LBB0_42:
	movl	16(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_32:
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_29
LBB0_10:
	testl	%eax, %eax
	jle	LBB0_27
## %bb.11:
	movq	24(%r12), %rcx
	movq	_INT_MIN@GOTPCREL(%rip), %r13
	xorl	%esi, %esi
	jmp	LBB0_12
LBB0_25:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r12), %eax
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_26:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	incq	%rsi
	movslq	%eax, %rdx
	cmpq	%rdx, %rsi
	jge	LBB0_27
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
                                        ##       Child Loop BB0_19 Depth 3
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rcx,%rsi,4)
	jle	LBB0_26
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%r15d, %r15d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	32(%r12), %rax
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rax,%rsi,8), %rax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movups	(%rcx,%rdi), %xmm0
	movups	16(%rcx,%rdi), %xmm1
	movups	%xmm1, 16(%rax,%r14)
	movups	%xmm0, (%rax,%r14)
	movq	%rbx, %r13
	movq	%rsi, %rbx
LBB0_24:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	32(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movq	16(%rax,%r14), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_av_buffer_get_ref_count
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_av_assert0
	incq	%r15
	movq	24(%r12), %rcx
	movslq	(%rcx,%rbx,4), %rax
	cmpq	%rax, %r15
	jge	LBB0_25
LBB0_14:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_19 Depth 3
	movq	32(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movq	%r15, %r14
	shlq	$5, %r14
	cmpq	$0, 16(%rax,%r14)
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_FIELD_PICTURE
	testq	%rax, %rax
	jne	LBB0_24
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	32(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	8(%rax,%r14), %eax
	notl	%eax
	testb	$3, %al
	je	LBB0_24
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	16(%r12), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %rax
	shlq	$5, %rbx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	24(%rax,%rbx), %ecx
	leaq	L_.str.4(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	8(%r12), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=2
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_12 Depth=1
                                        ##     Parent Loop BB0_14 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r13), %eax
	movq	8(%r12), %rdi
	movl	%eax, (%rdi,%rbx,4)
	incq	%rbx
	callq	_FF_ARRAY_ELEMS
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	%r13, %rbx
	movq	(%r12), %rax
	movl	$-1, %r13d
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, 16(%rax,%rcx)
	je	LBB0_29
## %bb.21:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	%r12, %rdi
	callq	_FIELD_PICTURE
	movq	(%r12), %rcx
	testq	%rax, %rax
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rcx,%rax), %eax
	notl	%eax
	testb	$3, %al
	je	LBB0_23
	jmp	LBB0_29
LBB0_27:
	movq	%rbx, %rdi
	callq	_FRAME_MBAFF
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	movq	%r12, %rdi
	callq	_h264_fill_mbaff_ref_list
LBB0_29:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"abs_diff_pic_num overflow\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"long_term_pic_idx overflow\n"

L_.str.2:                               ## @.str.2
	.asciz	"reference picture missing during reorder\n"

L_.str.3:                               ## @.str.3
	.asciz	"mismatching reference\n"

L_.str.4:                               ## @.str.4
	.asciz	"Missing reference picture, default is %d\n"

	.comm	_INT_MIN,4,2                    ## @INT_MIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h264_build_ref_list         ; -- Begin function ff_h264_build_ref_list
	.p2align	2
_ff_h264_build_ref_list:                ; @ff_h264_build_ref_list
	.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	x19, x1
	mov	x20, x0
	bl	_print_short_term
	mov	x0, x20
	bl	_print_long_term
	mov	x0, x20
	mov	x1, x19
	bl	_h264_initialise_ref_list
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_62
; %bb.1:
	mov	x25, #0
	ldr	x9, [x19, #8]
Lloh0:
	adrp	x26, l_.str.2@PAGE
Lloh1:
	add	x26, x26, l_.str.2@PAGEOFF
Lloh2:
	adrp	x24, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x24, [x24, _AV_LOG_ERROR@GOTPAGEOFF]
                                        ; implicit-def: $w27
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_44
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;       Child Loop BB0_16 Depth 3
                                        ;       Child Loop BB0_31 Depth 3
                                        ;       Child Loop BB0_37 Depth 3
	ldr	w10, [x9, x25, lsl #2]
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, #0
	ldr	w21, [x19, #4]
	b	LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_11 Depth=2
	mov	w0, #1
	bl	_assert
LBB0_7:                                 ;   in Loop: Header=BB0_11 Depth=2
	mov	w27, #-1
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=2
	mov	x2, x26
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=2
	ldr	w0, [x20, #16]
	ldr	w1, [x24]
	bl	_av_log
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x25, lsl #3]
	add	x0, x8, x28, lsl #5
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	add	x23, x28, #1
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	x9, [x19, #8]
	ldrsw	x8, [x9, x25, lsl #2]
	mov	x28, x23
	cmp	x23, x8
	b.ge	LBB0_2
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_16 Depth 3
                                        ;       Child Loop BB0_31 Depth 3
                                        ;       Child Loop BB0_37 Depth 3
	ldr	x8, [x19, #40]
	ldr	x8, [x8, x25, lsl #3]
	add	x9, x8, x28, lsl #3
	ldp	w8, w23, [x9]
	cmp	w8, #2
	b.hs	LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	add	w10, w23, #1
	ldr	w9, [x19, #16]
	cmp	w10, w9
	b.hi	LBB0_41
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	cmp	w8, #0
	csinv	w8, w10, w23, ne
	sub	w9, w9, #1
	add	w8, w8, w21
	and	w21, w9, w8
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x21
	bl	_pic_num_extract
	ldr	w8, [x20, #40]
	subs	w27, w8, #1
	b.lt	LBB0_25
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x23, x0
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=3
	sub	x8, x27, #1
	cmp	x27, #0
	mov	x27, x8
	b.le	LBB0_7
LBB0_16:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x20, #32]
	ldr	x22, [x8, x27, lsl #3]
	ldr	w0, [x22]
	bl	_assert
	ldr	w8, [x22, #4]
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	ldr	w8, [x22, #8]
	cmp	w8, w23
	b.ne	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=3
	ldr	w8, [x22]
	ldr	w9, [sp, #12]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=2
	str	w21, [x22, #12]
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	tbz	w27, #31, LBB0_26
	b	LBB0_8
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=2
	b.ne	LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x23
	bl	_pic_num_extract
	cmp	w0, #31
	b.hi	LBB0_42
; %bb.21:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x8, [x20, #24]
	ldr	x22, [x8, w0, uxtw #3]
	cbz	x22, LBB0_6
; %bb.22:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	w8, [x22]
	cmp	w8, #0
	cset	w0, ne
	bl	_assert
	ldr	w8, [x22]
	ldr	w9, [sp, #12]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.23:                               ;   in Loop: Header=BB0_11 Depth=2
	str	w23, [x22, #12]
	ldr	w0, [x22, #4]
	bl	_assert
	mov	w27, #0
	b	LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	w0, #0
	bl	_av_assert0
	mov	x22, #0
	tbz	w27, #31, LBB0_26
	b	LBB0_8
LBB0_25:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	x22, #0
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	tbnz	w27, #31, LBB0_8
LBB0_26:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x20
	mov	x1, x22
	bl	_mismatches_ref
	cbz	x0, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_11 Depth=2
Lloh4:
	adrp	x2, l_.str.3@PAGE
Lloh5:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_28:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	x8, [x19, #24]
	ldrsw	x8, [x8, x25, lsl #2]
	add	x23, x28, #1
	mov	x27, x28
	cmp	x23, x8
	b.ge	LBB0_35
; %bb.29:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x9, [x19, #32]
	ldr	x9, [x9, x25, lsl #3]
	sub	w8, w8, #1
	mov	x27, x8
	add	x9, x9, x28, lsl #5
	add	x9, x9, #16
	mov	x10, x28
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=3
	add	x10, x10, #1
	add	x9, x9, #32
	cmp	x8, x10
	b.eq	LBB0_35
LBB0_31:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x11, [x9]
	cbz	x11, LBB0_30
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=3
	ldrsw	x12, [x22, #4]
	ldr	x11, [x11]
	cmp	x11, x12
	b.ne	LBB0_30
; %bb.33:                               ;   in Loop: Header=BB0_31 Depth=3
	ldrsw	x11, [x22, #12]
	ldur	x12, [x9, #-16]
	cmp	x12, x11
	b.ne	LBB0_30
; %bb.34:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x27, x10
LBB0_35:                                ;   in Loop: Header=BB0_11 Depth=2
	sxtw	x8, w27
	cmp	x28, x8
	b.ge	LBB0_39
; %bb.36:                               ;   in Loop: Header=BB0_11 Depth=2
	lsl	x9, x8, #5
LBB0_37:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x10, [x19, #32]
	ldr	x10, [x10, x25, lsl #3]
	sub	x8, x8, #1
	add	x10, x10, x9
	ldp	q0, q1, [x10, #-32]
	stp	q0, q1, [x10]
	sub	x9, x9, #32
	cmp	x8, x28
	b.gt	LBB0_37
; %bb.38:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x27, x8
LBB0_39:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x25, lsl #3]
	add	x0, x8, x28, lsl #5
	mov	x1, x22
	bl	_ref_from_h264pic
	mov	x0, x20
	bl	_FIELD_PICTURE
	cbz	x0, LBB0_10
; %bb.40:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x25, lsl #3]
	add	x0, x8, x28, lsl #5
	ldr	w1, [sp, #12]
	bl	_pic_as_field
	b	LBB0_10
LBB0_41:
	ldr	w0, [x20, #16]
	ldr	w1, [x24]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_43
LBB0_42:
	ldr	w0, [x20, #16]
	ldr	w1, [x24]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_43:
	bl	_av_log
Lloh10:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_64
LBB0_44:
	cmp	w8, #1
	b.lt	LBB0_62
; %bb.45:
	mov	x22, #0
	ldr	x9, [x19, #24]
Lloh13:
	adrp	x21, l_.str.4@PAGE
Lloh14:
	add	x21, x21, l_.str.4@PAGEOFF
Lloh15:
	adrp	x23, _INT_MIN@GOTPAGE
Lloh16:
	ldr	x23, [x23, _INT_MIN@GOTPAGEOFF]
	b	LBB0_48
LBB0_46:                                ;   in Loop: Header=BB0_48 Depth=1
	ldr	w8, [x19]
LBB0_47:                                ;   in Loop: Header=BB0_48 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_62
LBB0_48:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_52 Depth 2
                                        ;       Child Loop BB0_57 Depth 3
	ldr	w10, [x9, x22, lsl #2]
	cmp	w10, #1
	b.lt	LBB0_47
; %bb.49:                               ;   in Loop: Header=BB0_48 Depth=1
	mov	x25, #0
	b	LBB0_52
LBB0_50:                                ;   in Loop: Header=BB0_52 Depth=2
	ldr	x9, [x19, #32]
	ldr	x9, [x9, x22, lsl #3]
	add	x8, x8, x22, lsl #5
	ldp	q0, q1, [x8]
	add	x8, x9, x25, lsl #5
	stp	q0, q1, [x8]
LBB0_51:                                ;   in Loop: Header=BB0_52 Depth=2
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x22, lsl #3]
	add	x8, x8, x25, lsl #5
	ldr	x8, [x8, #16]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_av_buffer_get_ref_count
	cmp	x0, #0
	cset	w0, gt
	bl	_av_assert0
	add	x25, x25, #1
	ldr	x9, [x19, #24]
	ldrsw	x8, [x9, x22, lsl #2]
	cmp	x25, x8
	b.ge	LBB0_46
LBB0_52:                                ;   Parent Loop BB0_48 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_57 Depth 3
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x22, lsl #3]
	add	x8, x8, x25, lsl #5
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_55
; %bb.53:                               ;   in Loop: Header=BB0_52 Depth=2
	mov	x0, x20
	bl	_FIELD_PICTURE
	cbnz	x0, LBB0_51
; %bb.54:                               ;   in Loop: Header=BB0_52 Depth=2
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x22, lsl #3]
	add	x8, x8, x25, lsl #5
	ldr	w8, [x8, #8]
	mvn	w8, w8
	tst	w8, #0x3
	b.eq	LBB0_51
LBB0_55:                                ;   in Loop: Header=BB0_52 Depth=2
	ldr	w0, [x20, #16]
	ldr	w1, [x24]
	ldr	x8, [x20]
	add	x8, x8, x22, lsl #5
	ldr	w8, [x8, #24]
	str	x8, [sp]
	mov	x2, x21
	bl	_av_log
	ldr	x0, [x20, #8]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_58
; %bb.56:                               ;   in Loop: Header=BB0_52 Depth=2
	mov	x26, #0
LBB0_57:                                ;   Parent Loop BB0_48 Depth=1
                                        ;     Parent Loop BB0_52 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w8, [x23]
	ldr	x0, [x20, #8]
	str	w8, [x0, x26, lsl #2]
	add	x26, x26, #1
	bl	_FF_ARRAY_ELEMS
	cmp	x26, w0, sxtw
	b.lt	LBB0_57
LBB0_58:                                ;   in Loop: Header=BB0_52 Depth=2
	ldr	x8, [x20]
	add	x8, x8, x22, lsl #5
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_61
; %bb.59:                               ;   in Loop: Header=BB0_52 Depth=2
	mov	x0, x20
	bl	_FIELD_PICTURE
	ldr	x8, [x20]
	cbnz	x0, LBB0_50
; %bb.60:                               ;   in Loop: Header=BB0_52 Depth=2
	add	x9, x8, x22, lsl #5
	ldr	w9, [x9, #8]
	mvn	w9, w9
	tst	w9, #0x3
	b.eq	LBB0_50
LBB0_61:
	mov	w0, #-1
	b	LBB0_64
LBB0_62:
	mov	x0, x20
	bl	_FRAME_MBAFF
	cbz	x0, LBB0_64
; %bb.63:
	mov	x0, x19
	bl	_h264_fill_mbaff_ref_list
	mov	w0, #0
LBB0_64:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"abs_diff_pic_num overflow\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"long_term_pic_idx overflow\n"

l_.str.2:                               ; @.str.2
	.asciz	"reference picture missing during reorder\n"

l_.str.3:                               ; @.str.3
	.asciz	"mismatching reference\n"

l_.str.4:                               ; @.str.4
	.asciz	"Missing reference picture, default is %d\n"

	.comm	_INT_MIN,4,2                    ; @INT_MIN
.subsections_via_symbols
