	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_stream
_create_stream:                         ## @create_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	xorl	%esi, %esi
	callq	_avformat_new_stream
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	8(%r14), %rax
	movl	%r15d, (%rax)
	cmpl	$2, (%rbx)
	jle	LBB0_2
LBB0_7:
	movq	_AVFMTCTX_NOHEADER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, 4(%rbx)
	jmp	LBB0_8
LBB0_2:
	jne	LBB0_8
## %bb.3:
	movq	8(%rbx), %rdx
	movq	(%rdx), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	_AVMEDIA_TYPE_SUBTITLE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpq	%rsi, %rcx
	je	LBB0_8
## %bb.4:
	movq	8(%rdx), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx), %rdx
	cmpq	%rsi, %rdx
	jne	LBB0_5
LBB0_8:
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_10
## %bb.9:
	movl	16(%r12), %ecx
	movl	%ecx, 4(%rax)
	movq	_FLV_HEADER_FLAG_HASAUDIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, 8(%r12)
LBB0_10:
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_12
## %bb.11:
	movl	12(%r12), %ecx
	movl	%ecx, 4(%rax)
	movq	_FLV_HEADER_FLAG_HASVIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r12)
	movl	4(%r12), %eax
	movl	%eax, (%r14)
LBB0_12:
	movq	%r14, %rdi
	movl	$32, %esi
	movl	$1, %edx
	movl	$1000, %ecx                     ## imm = 0x3E8
	callq	_avpriv_set_pts_info
	movl	(%rbx), %eax
	decl	%eax
	movl	%eax, (%r12)
	movq	%rbx, %rdi
	callq	_add_keyframes_index
LBB0_13:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_AVMEDIA_TYPE_DATA@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpq	%rsi, %rcx
	je	LBB0_8
## %bb.6:
	cmpq	%rsi, %rdx
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_SUBTITLE,8,3      ## @AVMEDIA_TYPE_SUBTITLE
	.comm	_AVMEDIA_TYPE_DATA,8,3          ## @AVMEDIA_TYPE_DATA
	.comm	_AVFMTCTX_NOHEADER,4,2          ## @AVFMTCTX_NOHEADER
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_FLV_HEADER_FLAG_HASAUDIO,4,2   ## @FLV_HEADER_FLAG_HASAUDIO
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_FLV_HEADER_FLAG_HASVIDEO,4,2   ## @FLV_HEADER_FLAG_HASVIDEO
	.no_dead_strip	_create_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_stream
_create_stream:                         ; @create_stream
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0, #16]
	mov	x1, #0
	bl	_avformat_new_stream
	mov	x20, x0
	cbz	x0, LBB0_12
; %bb.1:
	ldr	x8, [x20, #8]
	str	w21, [x8]
	ldr	w9, [x19]
	cmp	w9, #2
	b.le	LBB0_3
LBB0_2:
Lloh0:
	adrp	x9, _AVFMTCTX_NOHEADER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVFMTCTX_NOHEADER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x19, #4]
	bic	w9, w10, w9
	str	w9, [x19, #4]
	b	LBB0_7
LBB0_3:
	b.ne	LBB0_7
; %bb.4:
	ldr	x10, [x19, #8]
	ldr	x9, [x10]
	ldr	x9, [x9]
	ldr	x9, [x9]
Lloh3:
	adrp	x11, _AVMEDIA_TYPE_SUBTITLE@GOTPAGE
Lloh4:
	ldr	x11, [x11, _AVMEDIA_TYPE_SUBTITLE@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	x9, x11
	b.eq	LBB0_7
; %bb.5:
	ldr	x10, [x10, #8]
	ldr	x10, [x10]
	ldr	x10, [x10]
	cmp	x10, x11
	b.eq	LBB0_7
; %bb.6:
Lloh6:
	adrp	x11, _AVMEDIA_TYPE_DATA@GOTPAGE
Lloh7:
	ldr	x11, [x11, _AVMEDIA_TYPE_DATA@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x9, x11
	ccmp	x10, x11, #4, ne
	b.ne	LBB0_2
LBB0_7:
Lloh9:
	adrp	x9, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w9, w21
	b.ne	LBB0_9
; %bb.8:
	ldr	w9, [x22, #16]
	str	w9, [x8, #4]
Lloh12:
	adrp	x9, _FLV_HEADER_FLAG_HASAUDIO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FLV_HEADER_FLAG_HASAUDIO@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	ldr	w10, [x22, #8]
	bic	w9, w10, w9
	str	w9, [x22, #8]
LBB0_9:
Lloh15:
	adrp	x9, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w9, w21
	b.ne	LBB0_11
; %bb.10:
	ldr	w9, [x22, #12]
	str	w9, [x8, #4]
Lloh18:
	adrp	x8, _FLV_HEADER_FLAG_HASVIDEO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FLV_HEADER_FLAG_HASVIDEO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldp	w10, w9, [x22, #4]
	bic	w8, w9, w8
	str	w8, [x22, #8]
	str	w10, [x20]
LBB0_11:
	mov	x0, x20
	mov	w1, #32
	mov	w2, #1
	mov	w3, #1000
	bl	_avpriv_set_pts_info
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x22]
	mov	x0, x19
	bl	_add_keyframes_index
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_SUBTITLE,8,3      ; @AVMEDIA_TYPE_SUBTITLE
	.comm	_AVMEDIA_TYPE_DATA,8,3          ; @AVMEDIA_TYPE_DATA
	.comm	_AVFMTCTX_NOHEADER,4,2          ; @AVFMTCTX_NOHEADER
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_FLV_HEADER_FLAG_HASAUDIO,4,2   ; @FLV_HEADER_FLAG_HASAUDIO
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_FLV_HEADER_FLAG_HASVIDEO,4,2   ; @FLV_HEADER_FLAG_HASVIDEO
	.no_dead_strip	_create_stream
.subsections_via_symbols
