	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtsp_open_file_reader
_rtsp_open_file_reader:                 ## @rtsp_open_file_reader
	.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	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_vc_uri_create
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %r13
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_vc_uri_parse
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movq	%r13, %rdi
	callq	_vc_uri_path
	leaq	L_.str.2(%rip), %rsi
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r15
	cmpb	$0, (%rax)
	je	LBB0_3
## %bb.6:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	_RTP_PATH_EXTRA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rbx,%rax), %esi
	incl	%esi
	movl	$1, %edi
	callq	_calloc
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_strncpy
	movq	%r12, %rdi
	movl	$46, %esi
	callq	_strrchr
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_strlen
	cltq
	addq	%r12, %rax
LBB0_8:
	movq	_RTP_PATH_EXTRA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ebx, %ecx
	movl	%r12d, %esi
	subl	%eax, %esi
	addl	%ecx, %esi
	movq	_RTP_PATH_EXTENSION_FORMAT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rdi
	callq	_snprintf
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_vc_uri_set_path
	testl	%eax, %eax
	je	LBB0_9
## %bb.13:
	movq	%r12, %rdi
	callq	_free
	movq	%r13, %rdi
	callq	_vc_uri_release
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtsp_open_track_reader         ## TAILCALL
LBB0_14:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_12
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	_VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_11:
	movq	%r13, %rdi
	callq	_vc_uri_release
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testq	%r12, %r12
	je	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RTSP: Failed to create RTSP URI"

	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,4,2 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
L_.str.1:                               ## @.str.1
	.asciz	"RTSP: Failed to parse RTSP URI <%s>"

	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,4,2 ## @VC_CONTAINER_ERROR_FORMAT_INVALID
L_.str.2:                               ## @.str.2
	.asciz	"RTSP: RTSP URI path missing <%s>"

	.comm	_RTP_PATH_EXTRA,4,2             ## @RTP_PATH_EXTRA
	.comm	_RTP_PATH_EXTENSION_FORMAT,8,3  ## @RTP_PATH_EXTENSION_FORMAT
L_.str.4:                               ## @.str.4
	.asciz	"RTSP: Failed to store RTP path <%s>"

	.no_dead_strip	_rtsp_open_file_reader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtsp_open_file_reader
_rtsp_open_file_reader:                 ; @rtsp_open_file_reader
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_vc_uri_create
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	x1, [x8]
	bl	_vc_uri_parse
	cbz	w0, LBB0_9
; %bb.2:
	mov	x0, x19
	bl	_vc_uri_path
	cbz	x0, LBB0_10
; %bb.3:
	mov	x24, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_10
; %bb.4:
	mov	x0, x24
	bl	_strlen
	mov	x23, x0
Lloh0:
	adrp	x25, _RTP_PATH_EXTRA@GOTPAGE
Lloh1:
	ldr	x25, [x25, _RTP_PATH_EXTRA@GOTPAGEOFF]
	ldr	w8, [x25]
	add	w8, w0, w8
	add	w1, w8, #1
	mov	w0, #1
	bl	_calloc
	mov	x22, x0
	mov	x1, x24
	mov	x2, x23
	bl	_strncpy
	mov	x0, x22
	mov	w1, #46
	bl	_strrchr
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x22
	bl	_strlen
	add	x0, x22, w0, sxtw
LBB0_6:
	ldr	w8, [x25]
	add	w8, w8, w23
	sub	w9, w22, w0
	add	w1, w8, w9
Lloh2:
	adrp	x8, _RTP_PATH_EXTENSION_FORMAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RTP_PATH_EXTENSION_FORMAT@GOTPAGEOFF]
Lloh4:
	ldr	x2, [x8]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w3, [x8]
	bl	_snprintf
	ldr	w0, [x21]
	mov	x1, x22
	bl	_vc_uri_set_path
	cbz	w0, LBB0_14
; %bb.7:
	mov	x0, x22
	bl	_free
	mov	x0, x19
	bl	_vc_uri_release
	mov	x0, x20
	mov	x1, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_rtsp_open_track_reader
LBB0_8:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_LOG_ERROR
Lloh7:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	b	LBB0_13
LBB0_9:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	str	x8, [sp]
	mov	x0, x20
	bl	_LOG_ERROR
Lloh14:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
LBB0_12:
	mov	x0, x19
	bl	_vc_uri_release
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_14:
	str	x22, [sp]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_LOG_ERROR
Lloh19:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x8]
	cbz	x22, LBB0_12
; %bb.15:
	mov	x0, x22
	bl	_free
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RTSP: Failed to create RTSP URI"

	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,4,2 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
l_.str.1:                               ; @.str.1
	.asciz	"RTSP: Failed to parse RTSP URI <%s>"

	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,4,2 ; @VC_CONTAINER_ERROR_FORMAT_INVALID
l_.str.2:                               ; @.str.2
	.asciz	"RTSP: RTSP URI path missing <%s>"

	.comm	_RTP_PATH_EXTRA,4,2             ; @RTP_PATH_EXTRA
	.comm	_RTP_PATH_EXTENSION_FORMAT,8,3  ; @RTP_PATH_EXTENSION_FORMAT
l_.str.4:                               ; @.str.4
	.asciz	"RTSP: Failed to store RTP path <%s>"

	.no_dead_strip	_rtsp_open_file_reader
.subsections_via_symbols
