	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_video_streams
_check_video_streams:                   ## @check_video_streams
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	xorl	%edi, %edi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	cmpl	(%rsi), %eax
	sete	%dil
	callq	_av_assert0
	cmpl	$0, (%rbx)
	jle	LBB0_1
## %bb.2:
	xorl	%r14d, %r14d
	movq	_AV_OPT_TYPE_CONST@GOTPCREL(%rip), %r13
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movslq	(%rbx), %rax
	cmpq	%rax, %r14
	jge	LBB0_13
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	8(%rbx), %rax
	movq	(%rax,%r14,8), %rax
	movq	(%rax), %r12
	movq	(%r12), %rax
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax,%r14,8), %rax
	movq	(%rax), %rbx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_av_opt_next
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-64(%rbp), %rdi
	callq	_av_free
	movq	-56(%rbp), %rdi
	callq	_av_free
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_av_opt_next
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_12
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	(%r15), %rax
	cmpq	(%r13), %rax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	8(%r15), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	leaq	-64(%rbp), %rcx
	callq	_av_opt_get
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_av_assert0
	movq	8(%r15), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	leaq	-56(%rbp), %rcx
	callq	_av_opt_get
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_av_assert0
	movq	-64(%rbp), %rdi
	movq	-56(%rbp), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r15), %rcx
	movq	-64(%rbp), %r8
	movq	-56(%rbp), %r9
	xorl	%edi, %edi
	leaq	L_.str.1(%rip), %rdx
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_10
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_13:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_OPT_TYPE_CONST,8,3          ## @AV_OPT_TYPE_CONST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"frame_number"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Field %s differs: %s %s"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_check_video_streams
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_video_streams
_check_video_streams:                   ; @check_video_streams
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x0
	ldr	w8, [x0]
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w9, [x1]
	cmp	w8, w9
	cset	w0, eq
	bl	_av_assert0
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x27, #0
	mov	w23, #0
Lloh0:
	adrp	x28, _AV_OPT_TYPE_CONST@GOTPAGE
Lloh1:
	ldr	x28, [x28, _AV_OPT_TYPE_CONST@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
Lloh4:
	adrp	x19, _EINVAL@GOTPAGE
Lloh5:
	ldr	x19, [x19, _EINVAL@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str.1@PAGE
Lloh7:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x20]
	cmp	x27, x8
	b.ge	LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x9, [x20, #8]
	lsl	x8, x27, #3
	ldr	x9, [x9, x8]
	ldr	x24, [x9]
	ldr	x9, [x24]
Lloh8:
	adrp	x10, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh9:
	ldr	x10, [x10, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x9, [x9, #8]
	ldr	x8, [x9, x8]
	ldr	x25, [x8]
	mov	x0, x24
	mov	x1, #0
	bl	_av_opt_next
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	x0, [sp, #24]
	bl	_av_free
	ldr	x0, [sp, #16]
	bl	_av_free
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x24
	mov	x1, x26
	bl	_av_opt_next
	mov	x26, x0
	cbz	x0, LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	xzr, xzr, [sp, #16]
	ldr	x8, [x26]
	ldr	x9, [x28]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x0, [x26, #8]
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x1, [x26, #8]
	add	x3, sp, #24
	mov	x0, x24
	mov	w2, #0
	bl	_av_opt_get
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_av_assert0
	ldr	x1, [x26, #8]
	add	x3, sp, #16
	mov	x0, x25
	mov	w2, #0
	bl	_av_opt_get
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_av_assert0
	ldp	x1, x0, [sp, #16]
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x3, [x26, #8]
	ldp	x5, x4, [sp, #16]
	mov	x0, #0
	mov	x2, x22
	bl	_av_log
	ldr	w0, [x19]
	bl	_AVERROR
	mov	x23, x0
	b	LBB0_6
LBB0_12:
	mov	w23, #0
LBB0_13:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_OPT_TYPE_CONST,8,3          ; @AV_OPT_TYPE_CONST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"frame_number"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Field %s differs: %s %s"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_check_video_streams
.subsections_via_symbols
