	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h264_select_output_frame
_h264_select_output_frame:              ## @h264_select_output_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	64(%rdi), %r13
	movq	56(%rdi), %r15
	movl	(%rdi), %eax
	movl	%eax, (%r15)
	movl	$0, (%rdi)
	cmpq	$0, 8(%r13)
	movq	32(%rdi), %rax
	jne	LBB0_2
## %bb.1:
	movq	(%rax), %rcx
	movq	_FF_COMPLIANCE_STRICT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jl	LBB0_3
LBB0_2:
	movl	8(%rax), %edi
	movl	(%r13), %esi
	callq	_FFMAX
	movq	32(%r14), %rcx
	movl	%eax, 8(%rcx)
LBB0_3:
	movq	_MAX_DELAYED_PIC_COUNT@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	8(%r14), %rdx
	xorl	%ecx, %ecx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rcx,8), %rsi
	cmpq	%rsi, 8(%r15)
	jl	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rsi, -8(%rdx,%rcx,8)
	jmp	LBB0_5
LBB0_10:
	movl	%eax, %ecx
LBB0_11:
	testl	%ecx, %ecx
	je	LBB0_13
## %bb.12:
	movq	8(%r15), %rdx
	movq	8(%r14), %rsi
	movslq	%ecx, %rdi
	movq	%rdx, -8(%rsi,%rdi,8)
	jmp	LBB0_14
LBB0_13:
	xorl	%ecx, %ecx
LBB0_14:
	movl	%eax, %ebx
	subl	%ecx, %ebx
	movq	32(%r15), %rcx
	movq	(%rcx), %rcx
	movq	_AV_PICTURE_TYPE_B@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_16
LBB0_15:
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_FFMAX
	movq	%rax, %rbx
	movl	(%r12), %eax
	jmp	LBB0_18
LBB0_16:
	movslq	%eax, %rcx
	movq	8(%r14), %rsi
	movq	-16(%rsi,%rcx,8), %rdx
	movq	_INT_MIN@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rdx
	jle	LBB0_18
## %bb.17:
	movq	-8(%rsi,%rcx,8), %rcx
	movslq	%edx, %rdx
	subq	%rdx, %rcx
	cmpq	$3, %rcx
	jge	LBB0_15
LBB0_18:
	movq	32(%r14), %rdi
	cmpl	%eax, %ebx
	jne	LBB0_37
## %bb.19:
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r15), %rcx
	movq	8(%r14), %rax
	movq	(%rax), %r8
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movl	(%r12), %eax
	movq	8(%r14), %rcx
	cmpl	$2, %eax
	jl	LBB0_36
## %bb.20:
	leaq	-1(%rax), %rsi
	movl	$1, %edx
	cmpq	$4, %rsi
	jb	LBB0_30
## %bb.21:
	cmpq	_INT_MIN@GOTPCREL(%rip), %rcx
	jae	LBB0_23
## %bb.22:
	leaq	(%rcx,%rax,8), %rdi
	cmpq	_INT_MIN@GOTPCREL(%rip), %rdi
	ja	LBB0_30
LBB0_23:
	movq	%rsi, %rdx
	andq	$-4, %rdx
	leaq	-4(%rdx), %rdi
	movq	%rdi, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rdi, %rdi
	je	LBB0_81
## %bb.24:
	movq	%r8, %rdi
	andq	$-2, %rdi
	movq	_INT_MIN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, 8(%rcx,%rbx,8)
	movdqu	%xmm0, 24(%rcx,%rbx,8)
	movdqu	%xmm0, 40(%rcx,%rbx,8)
	movdqu	%xmm0, 56(%rcx,%rbx,8)
	addq	$8, %rbx
	addq	$-2, %rdi
	jne	LBB0_25
## %bb.26:
	testb	$1, %r8b
	je	LBB0_28
LBB0_27:
	shlq	$3, %rbx
	movq	_INT_MIN@GOTPCREL(%rip), %rdi
	movq	(%rdi), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	orq	$8, %rbx
	movdqu	%xmm0, (%rcx,%rbx)
	movdqu	%xmm0, 16(%rcx,%rbx)
LBB0_28:
	cmpq	%rdx, %rsi
	je	LBB0_36
## %bb.29:
	orq	$1, %rdx
LBB0_30:
	movl	%eax, %edi
	subl	%edx, %edi
	movq	%rdx, %r8
	notq	%r8
	addq	%rax, %r8
	andq	$3, %rdi
	je	LBB0_33
## %bb.31:
	movq	_INT_MIN@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	movq	%rsi, (%rcx,%rdx,8)
	incq	%rdx
	decq	%rdi
	jne	LBB0_32
LBB0_33:
	cmpq	$3, %r8
	jb	LBB0_36
## %bb.34:
	movq	_INT_MIN@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rdi
	movq	%rdi, (%rcx,%rdx,8)
	movq	(%rsi), %rdi
	movq	%rdi, 8(%rcx,%rdx,8)
	movq	(%rsi), %rdi
	movq	%rdi, 16(%rcx,%rdx,8)
	movq	(%rsi), %rdi
	movq	%rdi, 24(%rcx,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_35
LBB0_36:
	movq	8(%r15), %rax
	movq	%rax, (%rcx)
	movl	$1, (%r15)
	jmp	LBB0_43
LBB0_37:
	cmpl	%ebx, 8(%rdi)
	jge	LBB0_43
## %bb.38:
	cmpq	$0, 8(%r13)
	jne	LBB0_43
## %bb.39:
	cmpl	$2, 12(%rdi)
	jl	LBB0_41
## %bb.40:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	jmp	LBB0_42
LBB0_41:
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
LBB0_42:
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movq	32(%r14), %rax
	movl	%ebx, 8(%rax)
LBB0_43:
	movq	48(%r14), %rax
	movq	$-1, %rbx
	.p2align	4, 0x90
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%rax,%rbx,8)
	leaq	1(%rbx), %rbx
	jne	LBB0_44
## %bb.45:
	movl	%ebx, %r13d
	xorl	%edi, %edi
	cmpl	%ebx, (%r12)
	setge	%dil
	callq	_av_assert0
	movq	48(%r14), %rax
	movq	%r15, (%rax,%r13,8)
	cmpq	$0, 16(%r15)
	jne	LBB0_47
## %bb.46:
	movq	_DELAYED_PIC_REF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
LBB0_47:
	movq	48(%r14), %rcx
	movq	(%rcx), %r8
	movq	8(%rcx), %rdi
	xorl	%r11d, %r11d
	testq	%rdi, %rdi
	je	LBB0_52
## %bb.48:
	movl	$2, %esi
	movq	%r8, %r10
	.p2align	4, 0x90
LBB0_49:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%rdi), %rax
	cmpq	$0, 16(%rax)
	jne	LBB0_53
## %bb.50:                              ##   in Loop: Header=BB0_49 Depth=1
	cmpl	$0, (%rdi)
	jne	LBB0_53
## %bb.51:                              ##   in Loop: Header=BB0_49 Depth=1
	movq	8(%rdi), %rax
	leal	-1(%rsi), %edx
	cmpq	8(%r10), %rax
	cmovll	%edx, %r11d
	cmovlq	%rdi, %r10
	movq	(%rcx,%rsi,8), %rdi
	incq	%rsi
	testq	%rdi, %rdi
	jne	LBB0_49
	jmp	LBB0_53
LBB0_52:
	movq	%r8, %r10
LBB0_53:
	movq	32(%r14), %rdi
	movl	8(%rdi), %esi
	testl	%esi, %esi
	jne	LBB0_57
## %bb.54:
	movq	32(%r8), %rax
	cmpq	$0, 16(%rax)
	jne	LBB0_56
## %bb.55:
	cmpl	$0, (%r8)
	je	LBB0_57
LBB0_56:
	movq	_INT_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
LBB0_57:
	movq	8(%r10), %r8
	movq	16(%r14), %r9
	cmpq	%r9, %r8
	jl	LBB0_61
## %bb.58:
	cmpl	%ebx, %esi
	jle	LBB0_61
## %bb.59:
	cmpl	%ebx, %esi
	jle	LBB0_68
LBB0_60:
	leaq	L_.str.4(%rip), %rcx
	jmp	LBB0_66
LBB0_61:
	movq	_DELAYED_PIC_REF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	andq	%rax, 16(%r10)
	movslq	%r11d, %rsi
	cmpq	$0, (%rcx,%rsi,8)
	je	LBB0_64
## %bb.62:
	leaq	(%rcx,%rsi,8), %rdi
	leaq	8(,%rsi,8), %rsi
	.p2align	4, 0x90
LBB0_63:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi), %rax
	movq	%rax, (%rdi)
	movq	48(%r14), %rcx
	leaq	(%rcx,%rsi), %rdi
	cmpq	$0, (%rcx,%rsi)
	leaq	8(%rsi), %rsi
	jne	LBB0_63
LBB0_64:
	movq	32(%r14), %rdi
	cmpq	%r9, %r8
	jge	LBB0_67
## %bb.65:
	leaq	L_.str.3(%rip), %rcx
LBB0_66:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_80
LBB0_67:
	movl	8(%rdi), %esi
	cmpl	%ebx, %esi
	jg	LBB0_60
LBB0_68:
	movq	%r10, 40(%r14)
	testl	%r11d, %r11d
	je	LBB0_72
LBB0_69:
	leaq	8(%r10), %rcx
LBB0_70:
	movq	(%rcx), %rax
	movq	%rax, 16(%r14)
	movl	24(%r10), %ecx
	testl	%ecx, %ecx
	je	LBB0_75
## %bb.71:
	movq	_FRAME_RECOVERED_SEI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r14), %edx
	orl	%esi, %edx
	movl	%edx, 24(%r14)
	jmp	LBB0_76
LBB0_72:
	movq	(%rcx), %rdx
	testq	%rdx, %rdx
	je	LBB0_69
## %bb.73:
	movq	32(%rdx), %rax
	movq	_INT_MIN@GOTPCREL(%rip), %rcx
	cmpq	$0, 16(%rax)
	jne	LBB0_70
## %bb.74:
	cmpl	$0, (%rdx)
	jne	LBB0_70
	jmp	LBB0_69
LBB0_75:
	movl	24(%r14), %edx
	movq	_FRAME_RECOVERED_SEI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_76:
	xorl	%eax, %eax
	testl	%edx, %esi
	setne	%al
	orl	%eax, %ecx
	movl	%ecx, 24(%r10)
	jne	LBB0_80
## %bb.77:
	movq	_AV_CODEC_FLAG_OUTPUT_CORRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rdi)
	jne	LBB0_79
## %bb.78:
	movq	_AV_CODEC_FLAG2_SHOW_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 20(%rdi)
	je	LBB0_82
LBB0_79:
	movq	_AV_FRAME_FLAG_CORRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	32(%r10), %rcx
	orl	%eax, 8(%rcx)
LBB0_80:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_81:
	xorl	%ebx, %ebx
	testb	$1, %r8b
	jne	LBB0_27
	jmp	LBB0_28
LBB0_82:
	movq	$0, 40(%r14)
	jmp	LBB0_80
	.cfi_endproc
                                        ## -- End function
	.comm	_FF_COMPLIANCE_STRICT,8,3       ## @FF_COMPLIANCE_STRICT
	.comm	_MAX_DELAYED_PIC_COUNT,4,2      ## @MAX_DELAYED_PIC_COUNT
	.comm	_AV_PICTURE_TYPE_B,8,3          ## @AV_PICTURE_TYPE_B
	.comm	_INT_MIN,8,3                    ## @INT_MIN
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid POC %d<%d\n"

	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Increasing reorder buffer to %d\n"

	.comm	_DELAYED_PIC_REF,8,3            ## @DELAYED_PIC_REF
	.comm	_FRAME_RECOVERED_SEI,4,2        ## @FRAME_RECOVERED_SEI
	.comm	_AV_CODEC_FLAG_OUTPUT_CORRUPT,4,2 ## @AV_CODEC_FLAG_OUTPUT_CORRUPT
	.comm	_AV_CODEC_FLAG2_SHOW_ALL,4,2    ## @AV_CODEC_FLAG2_SHOW_ALL
	.comm	_AV_FRAME_FLAG_CORRUPT,4,2      ## @AV_FRAME_FLAG_CORRUPT
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"no picture %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"ooo"

L_.str.4:                               ## @.str.4
	.space	1

	.no_dead_strip	_h264_select_output_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h264_select_output_frame
_h264_select_output_frame:              ; @h264_select_output_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldp	x21, x23, [x0, #56]
	ldr	w8, [x0]
	str	w8, [x21]
	str	wzr, [x0]
	ldr	x9, [x23, #8]
	ldr	x8, [x0, #32]
	cbnz	x9, LBB0_2
; %bb.1:
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _FF_COMPLIANCE_STRICT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FF_COMPLIANCE_STRICT@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.lt	LBB0_3
LBB0_2:
	ldr	w0, [x8, #8]
	ldr	w1, [x23]
	bl	_FFMAX
	ldr	x8, [x19, #32]
	str	w0, [x8, #8]
LBB0_3:
Lloh3:
	adrp	x22, _MAX_DELAYED_PIC_COUNT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MAX_DELAYED_PIC_COUNT@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w8, LBB0_9
; %bb.4:
	mov	x9, #0
	ldr	x10, [x19, #8]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x21, #8]
	ldr	x11, [x10, x9, lsl #3]
	cmp	x12, x11
	b.lt	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x9, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x12, x10, x9, lsl #3
	stur	x11, [x12, #-8]
	b	LBB0_5
LBB0_9:
	mov	w9, #0
	b	LBB0_13
LBB0_10:
	mov	x9, x8
LBB0_11:
	cbz	w9, LBB0_13
; %bb.12:
	ldr	x10, [x21, #8]
	ldr	x11, [x19, #8]
	sub	w12, w9, #1
	str	x10, [x11, w12, sxtw #3]
LBB0_13:
	sub	w20, w8, w9
	ldr	x9, [x21, #32]
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _AV_PICTURE_TYPE_B@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AV_PICTURE_TYPE_B@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_15
LBB0_14:
	mov	x0, x20
	mov	w1, #1
	bl	_FFMAX
	mov	x20, x0
	ldr	w8, [x22]
	b	LBB0_17
LBB0_15:
	ldr	x9, [x19, #8]
	sub	w10, w8, #2
	ldr	x10, [x9, w10, sxtw #3]
Lloh8:
	adrp	x11, _INT_MIN@GOTPAGE
Lloh9:
	ldr	x11, [x11, _INT_MIN@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	cmp	x10, x11
	b.le	LBB0_17
; %bb.16:
	sub	w11, w8, #1
	ldr	x9, [x9, w11, sxtw #3]
	sub	x9, x9, w10, sxtw
	cmp	x9, #3
	b.ge	LBB0_14
LBB0_17:
	ldr	x0, [x19, #32]
	cmp	w20, w8
	b.ne	LBB0_26
; %bb.18:
Lloh11:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x8, [x21, #8]
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	stp	x8, x9, [sp]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	ldr	w9, [x22]
	ldr	x8, [x19, #8]
	cmp	w9, #2
	b.lt	LBB0_25
; %bb.19:
	sub	x11, x9, #1
	cmp	x11, #8
	b.lo	LBB0_22
; %bb.20:
Lloh16:
	adrp	x12, _INT_MIN@GOTPAGE
Lloh17:
	ldr	x12, [x12, _INT_MIN@GOTPAGEOFF]
	cmp	x8, x12
	b.hs	LBB0_66
; %bb.21:
	add	x10, x8, x9, lsl #3
	cmp	x10, x12
	b.ls	LBB0_66
LBB0_22:
	mov	w10, #1
LBB0_23:
	add	x11, x8, x10, lsl #3
	sub	x9, x9, x10
Lloh18:
	adrp	x10, _INT_MIN@GOTPAGE
Lloh19:
	ldr	x10, [x10, _INT_MIN@GOTPAGEOFF]
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10]
	str	x12, [x11], #8
	subs	x9, x9, #1
	b.ne	LBB0_24
LBB0_25:
	ldr	x9, [x21, #8]
	str	x9, [x8]
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_29
LBB0_26:
	ldr	w8, [x0, #8]
	cmp	w8, w20
	b.ge	LBB0_29
; %bb.27:
	ldr	x8, [x23, #8]
	cbnz	x8, LBB0_29
; %bb.28:
	ldr	w8, [x0, #12]
Lloh20:
	adrp	x9, _AV_LOG_WARNING@GOTPAGE
Lloh21:
	ldr	x9, [x9, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh22:
	adrp	x10, _AV_LOG_VERBOSE@GOTPAGE
Lloh23:
	ldr	x10, [x10, _AV_LOG_VERBOSE@GOTPAGEOFF]
	cmp	w8, #1
	csel	x8, x9, x10, gt
	ldr	w1, [x8]
	mov	x8, x20
	str	x8, [sp]
Lloh24:
	adrp	x2, l_.str.1@PAGE
Lloh25:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
	ldr	x8, [x19, #32]
	str	w20, [x8, #8]
LBB0_29:
	mov	x8, #0
	ldr	x9, [x19, #48]
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x8, lsl #3]
	add	x8, x8, #1
	cbnz	x10, LBB0_30
; %bb.31:
	sub	x20, x8, #1
	ldr	w8, [x22]
	cmp	w8, w20
	cset	w0, ge
	bl	_av_assert0
	ldr	x8, [x19, #48]
	str	x21, [x8, w20, uxtw #3]
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_33
; %bb.32:
Lloh26:
	adrp	x8, _DELAYED_PIC_REF@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DELAYED_PIC_REF@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	x8, [x21, #16]
LBB0_33:
	ldr	x9, [x19, #48]
	ldp	x11, x12, [x9]
	cbz	x12, LBB0_38
; %bb.34:
	mov	w10, #0
	mov	w13, #2
	mov	x8, x11
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x12, #32]
	ldr	x14, [x14, #16]
	cbnz	x14, LBB0_39
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=1
	ldr	w14, [x12]
	cbnz	w14, LBB0_39
; %bb.37:                               ;   in Loop: Header=BB0_35 Depth=1
	ldr	x14, [x12, #8]
	ldr	x15, [x8, #8]
	sub	w16, w13, #1
	cmp	x14, x15
	csel	x8, x12, x8, lt
	csel	w10, w16, w10, lt
	ldr	x12, [x9, x13, lsl #3]
	add	x13, x13, #1
	cbnz	x12, LBB0_35
	b	LBB0_39
LBB0_38:
	mov	w10, #0
	mov	x8, x11
LBB0_39:
	ldr	x0, [x19, #32]
	ldr	w14, [x0, #8]
	cbnz	w14, LBB0_43
; %bb.40:
	ldr	x12, [x11, #32]
	ldr	x12, [x12, #16]
	cbnz	x12, LBB0_42
; %bb.41:
	ldr	w11, [x11]
	cbz	w11, LBB0_43
LBB0_42:
Lloh29:
	adrp	x11, _INT_MIN@GOTPAGE
Lloh30:
	ldr	x11, [x11, _INT_MIN@GOTPAGEOFF]
Lloh31:
	ldr	x11, [x11]
	str	x11, [x19, #16]
LBB0_43:
	mov	x11, x8
	ldr	x12, [x11, #8]!
	ldr	x13, [x19, #16]
	cmp	x12, x13
	ccmp	w14, w20, #4, ge
	b.gt	LBB0_50
; %bb.44:
Lloh32:
	adrp	x14, _DELAYED_PIC_REF@GOTPAGE
Lloh33:
	ldr	x14, [x14, _DELAYED_PIC_REF@GOTPAGEOFF]
Lloh34:
	ldr	x14, [x14]
	ldr	x15, [x8, #16]
	bic	x14, x15, x14
	str	x14, [x8, #16]
	add	x14, x9, w10, sxtw #3
	ldr	x15, [x14]
	cbz	x15, LBB0_47
; %bb.45:
	sxtw	x15, w10
	lsl	x15, x15, #3
	add	x15, x15, #8
LBB0_46:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x9, x15]
	str	x9, [x14]
	ldr	x9, [x19, #48]
	add	x14, x9, x15
	ldr	x16, [x14]
	add	x15, x15, #8
	cbnz	x16, LBB0_46
LBB0_47:
	ldr	x0, [x19, #32]
	cmp	x12, x13
	b.ge	LBB0_49
; %bb.48:
Lloh35:
	adrp	x8, l_.str.3@PAGE
Lloh36:
	add	x8, x8, l_.str.3@PAGEOFF
	b	LBB0_52
LBB0_49:
	ldr	w14, [x0, #8]
LBB0_50:
	cmp	w14, w20
	b.le	LBB0_53
; %bb.51:
Lloh37:
	adrp	x8, l_.str.4@PAGE
Lloh38:
	add	x8, x8, l_.str.4@PAGEOFF
LBB0_52:
Lloh39:
	adrp	x9, _AV_LOG_DEBUG@GOTPAGE
Lloh40:
	ldr	x9, [x9, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh42:
	adrp	x2, l_.str.2@PAGE
Lloh43:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_av_log
	b	LBB0_65
LBB0_53:
	str	x8, [x19, #40]
	cbnz	w10, LBB0_58
; %bb.54:
	ldr	x9, [x9]
	cbz	x9, LBB0_58
; %bb.55:
	ldr	x10, [x9, #32]
	ldr	x10, [x10, #16]
	cbnz	x10, LBB0_57
; %bb.56:
	ldr	w9, [x9]
	cbz	w9, LBB0_58
LBB0_57:
Lloh44:
	adrp	x11, _INT_MIN@GOTPAGE
Lloh45:
	ldr	x11, [x11, _INT_MIN@GOTPAGEOFF]
LBB0_58:
	ldr	x9, [x11]
	str	x9, [x19, #16]
	ldr	w9, [x8, #24]
	cbz	w9, LBB0_60
; %bb.59:
Lloh46:
	adrp	x10, _FRAME_RECOVERED_SEI@GOTPAGE
Lloh47:
	ldr	x10, [x10, _FRAME_RECOVERED_SEI@GOTPAGEOFF]
Lloh48:
	ldr	w10, [x10]
	ldr	w11, [x19, #24]
	orr	w11, w11, w10
	str	w11, [x19, #24]
	b	LBB0_61
LBB0_60:
	ldr	w11, [x19, #24]
Lloh49:
	adrp	x10, _FRAME_RECOVERED_SEI@GOTPAGE
Lloh50:
	ldr	x10, [x10, _FRAME_RECOVERED_SEI@GOTPAGEOFF]
Lloh51:
	ldr	w10, [x10]
LBB0_61:
	tst	w10, w11
	cset	w10, ne
	orr	w9, w9, w10
	str	w9, [x8, #24]
	cbnz	w9, LBB0_65
; %bb.62:
	ldr	w9, [x0, #16]
Lloh52:
	adrp	x10, _AV_CODEC_FLAG_OUTPUT_CORRUPT@GOTPAGE
Lloh53:
	ldr	x10, [x10, _AV_CODEC_FLAG_OUTPUT_CORRUPT@GOTPAGEOFF]
Lloh54:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_64
; %bb.63:
	ldr	w9, [x0, #20]
Lloh55:
	adrp	x10, _AV_CODEC_FLAG2_SHOW_ALL@GOTPAGE
Lloh56:
	ldr	x10, [x10, _AV_CODEC_FLAG2_SHOW_ALL@GOTPAGEOFF]
Lloh57:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_69
LBB0_64:
Lloh58:
	adrp	x9, _AV_FRAME_FLAG_CORRUPT@GOTPAGE
Lloh59:
	ldr	x9, [x9, _AV_FRAME_FLAG_CORRUPT@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	ldr	x8, [x8, #32]
	ldr	w10, [x8, #8]
	orr	w9, w10, w9
	str	w9, [x8, #8]
LBB0_65:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_66:
	and	x13, x11, #0xfffffffffffffff8
	orr	x10, x13, #0x1
	ld1r.2d	{ v0 }, [x12]
	add	x14, x8, #40
	mov	x15, x13
LBB0_67:                                ; =>This Inner Loop Header: Depth=1
	ldr	d1, [x12]
	dup.2d	v1, v1[0]
	stp	q0, q0, [x14, #-32]
	stp	q0, q1, [x14], #64
	subs	x15, x15, #8
	b.ne	LBB0_67
; %bb.68:
	cmp	x11, x13
	b.eq	LBB0_25
	b	LBB0_23
LBB0_69:
	str	xzr, [x19, #40]
	b	LBB0_65
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_FF_COMPLIANCE_STRICT,8,3       ; @FF_COMPLIANCE_STRICT
	.comm	_MAX_DELAYED_PIC_COUNT,4,2      ; @MAX_DELAYED_PIC_COUNT
	.comm	_AV_PICTURE_TYPE_B,8,3          ; @AV_PICTURE_TYPE_B
	.comm	_INT_MIN,8,3                    ; @INT_MIN
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid POC %d<%d\n"

	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Increasing reorder buffer to %d\n"

	.comm	_DELAYED_PIC_REF,8,3            ; @DELAYED_PIC_REF
	.comm	_FRAME_RECOVERED_SEI,4,2        ; @FRAME_RECOVERED_SEI
	.comm	_AV_CODEC_FLAG_OUTPUT_CORRUPT,4,2 ; @AV_CODEC_FLAG_OUTPUT_CORRUPT
	.comm	_AV_CODEC_FLAG2_SHOW_ALL,4,2    ; @AV_CODEC_FLAG2_SHOW_ALL
	.comm	_AV_FRAME_FLAG_CORRUPT,4,2      ; @AV_FRAME_FLAG_CORRUPT
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"no picture %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"ooo"

l_.str.4:                               ; @.str.4
	.space	1

	.no_dead_strip	_h264_select_output_frame
.subsections_via_symbols
