	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_video_stream
_init_video_stream:                     ## @init_video_stream
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, (%rsi)
	je	LBB0_7
## %bb.1:
	movq	%rsi, %rbx
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r14
	movl	28(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	16(%r14), %rax
	movl	%ecx, 24(%rax)
	movq	(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	_AV_CODEC_ID_MPEG2VIDEO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movq	_AVSTREAM_PARSE_HEADERS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%r14)
LBB0_4:
	movq	$0, 16(%rax)
	movl	24(%rbx), %ecx
	movl	%ecx, 12(%rax)
	movl	20(%rbx), %ecx
	movl	%ecx, 8(%rax)
	movl	16(%rbx), %eax
	movl	%eax, 8(%r14)
	movl	%eax, 12(%r14)
	movl	12(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_6
## %bb.5:
	movl	8(%rbx), %ecx
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_avpriv_set_pts_info
LBB0_6:
	movq	8(%rbx), %rdi
	callq	_av_inv_q
	movl	%eax, (%r14)
	movl	%eax, 4(%r14)
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_MPEG2VIDEO,8,3     ## @AV_CODEC_ID_MPEG2VIDEO
	.comm	_AVSTREAM_PARSE_HEADERS,4,2     ## @AVSTREAM_PARSE_HEADERS
	.no_dead_strip	_init_video_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_video_stream
_init_video_stream:                     ; @init_video_stream
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x1]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_8
; %bb.2:
	mov	x20, x0
	ldr	w8, [x0, #28]
	str	w8, [x19, #28]
Lloh0:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldr	x8, [x0, #16]
	str	w9, [x8, #24]
	ldr	x9, [x19]
	str	x9, [x8]
Lloh3:
	adrp	x10, _AV_CODEC_ID_MPEG2VIDEO@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_CODEC_ID_MPEG2VIDEO@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x9, _AVSTREAM_PARSE_HEADERS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AVSTREAM_PARSE_HEADERS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x20, #24]
LBB0_4:
	str	xzr, [x8, #16]
	ldur	d0, [x19, #20]
	str	d0, [x8, #8]
	ldp	w2, w8, [x19, #12]
	stp	w8, w8, [x20, #8]
	cbz	w2, LBB0_6
; %bb.5:
	ldr	w3, [x19, #8]
	mov	x0, x20
	mov	w1, #64
	bl	_avpriv_set_pts_info
LBB0_6:
	ldr	x0, [x19, #8]
	bl	_av_inv_q
	stp	w0, w0, [x20]
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_MPEG2VIDEO,8,3     ; @AV_CODEC_ID_MPEG2VIDEO
	.comm	_AVSTREAM_PARSE_HEADERS,4,2     ; @AVSTREAM_PARSE_HEADERS
	.no_dead_strip	_init_video_stream
.subsections_via_symbols
