	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtsp_reader_open               ## -- Begin function rtsp_reader_open
	.p2align	4, 0x90
_rtsp_reader_open:                      ## @rtsp_reader_open
	.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
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	32(%rax), %edi
	callq	_vc_uri_scheme
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	8(%r14), %rax
	movl	32(%rax), %edi
	callq	_vc_uri_scheme
	movq	_RTSP_SCHEME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	8(%r14), %rax
	movl	32(%rax), %edi
	callq	_vc_uri_scheme
	movq	_RTSP_PKT_SCHEME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_20
LBB0_4:
	movl	$48, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	8(%r14), %rax
	movq	%rbx, 24(%rax)
	movq	40(%rbx), %rcx
	movq	%rcx, 16(%r14)
	movq	_FIRST_DYNAMIC_PORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rbx)
	movq	$0, 24(%rbx)
	movq	16(%rax), %rax
	movl	(%rax), %edi
	movq	_RTSP_NETWORK_URI_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RTSP_NETWORK_URI_START_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strncasecmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movl	%ecx, (%rbx)
	movq	_COMMS_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movl	$1, %edi
	callq	_calloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	_HEADER_LIST_INITIAL_CAPACITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_rtsp_header_comparator@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_vc_containers_list_create
	movl	%eax, 16(%rbx)
	testl	%eax, %eax
	je	LBB0_5
## %bb.8:
	movq	%r14, %rdi
	callq	_rtsp_describe
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_13
## %bb.9:
	cmpq	$0, (%r14)
	je	LBB0_14
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rtsp_setup
	movq	(%r12), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	cmpq	(%r14), %rbx
	jb	LBB0_12
	jmp	LBB0_14
LBB0_5:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_19:
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	movq	_VC_CONTAINER_ERROR_EOS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r15
	movq	_VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%r15, %rbx
	cmoveq	%rcx, %rbx
	cmpq	(%rax), %r15
	cmoveq	%rcx, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_LOG_DEBUG
	movq	%r14, %rdi
	callq	_rtsp_reader_close
LBB0_20:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%rax, %r15
	movq	%rcx, %rax
	cmpq	%rcx, %r15
	jne	LBB0_19
LBB0_14:
	cmpq	$0, (%r14)
	movq	%rax, %r15
	je	LBB0_18
## %bb.15:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rtsp_play
	movq	%rax, %r15
	cmpq	(%r12), %rax
	jne	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	%rbx
	cmpq	(%r14), %rbx
	jb	LBB0_17
LBB0_18:
	movq	_VC_CONTAINER_CONTROL_IO_SET_READ_TIMEOUT_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DATA_UNAVAILABLE_READ_TIMEOUT_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_vc_container_control
	movq	8(%r14), %rax
	movq	_rtsp_reader_close@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	_rtsp_reader_read@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_rtsp_reader_seek@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	%r14, %rdi
	callq	_STREAM_STATUS
	movq	%rax, %rbx
	cmpq	(%r12), %rax
	jne	LBB0_19
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.comm	_RTSP_SCHEME,4,2                ## @RTSP_SCHEME
	.comm	_RTSP_PKT_SCHEME,4,2            ## @RTSP_PKT_SCHEME
	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,8,3 ## @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_FIRST_DYNAMIC_PORT,4,2         ## @FIRST_DYNAMIC_PORT
	.comm	_RTSP_NETWORK_URI_START,4,2     ## @RTSP_NETWORK_URI_START
	.comm	_RTSP_NETWORK_URI_START_LENGTH,4,2 ## @RTSP_NETWORK_URI_START_LENGTH
	.comm	_COMMS_BUFFER_SIZE,8,3          ## @COMMS_BUFFER_SIZE
	.comm	_HEADER_LIST_INITIAL_CAPACITY,4,2 ## @HEADER_LIST_INITIAL_CAPACITY
	.comm	_rtsp_header_comparator,8,3     ## @rtsp_header_comparator
	.comm	_VC_CONTAINER_CONTROL_IO_SET_READ_TIMEOUT_MS,4,2 ## @VC_CONTAINER_CONTROL_IO_SET_READ_TIMEOUT_MS
	.comm	_DATA_UNAVAILABLE_READ_TIMEOUT_MS,4,2 ## @DATA_UNAVAILABLE_READ_TIMEOUT_MS
	.comm	_rtsp_reader_read,4,2           ## @rtsp_reader_read
	.comm	_rtsp_reader_seek,4,2           ## @rtsp_reader_seek
	.comm	_VC_CONTAINER_ERROR_EOS,8,3     ## @VC_CONTAINER_ERROR_EOS
	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,8,3 ## @VC_CONTAINER_ERROR_FORMAT_INVALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error opening RTSP stream (%i)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtsp_reader_open               ; -- Begin function rtsp_reader_open
	.p2align	2
_rtsp_reader_open:                      ; @rtsp_reader_open
	.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	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8, #32]
	bl	_vc_uri_scheme
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #32]
	bl	_vc_uri_scheme
Lloh0:
	adrp	x8, _RTSP_SCHEME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTSP_SCHEME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_strcasecmp
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #32]
	bl	_vc_uri_scheme
Lloh3:
	adrp	x8, _RTSP_PKT_SCHEME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTSP_PKT_SCHEME@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_strcasecmp
	cbz	x0, LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGEOFF]
Lloh8:
	ldr	x21, [x8]
	b	LBB0_14
LBB0_4:
	mov	w0, #48
	bl	_malloc
Lloh9:
	adrp	x22, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh10:
	ldr	x22, [x22, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	cbz	x0, LBB0_12
; %bb.5:
	mov	x20, x0
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldr	x8, [x19, #8]
	str	x20, [x8, #24]
	ldr	x9, [x20, #40]
Lloh11:
	adrp	x10, _FIRST_DYNAMIC_PORT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _FIRST_DYNAMIC_PORT@GOTPAGEOFF]
	str	x9, [x19, #16]
Lloh13:
	ldr	w9, [x10]
	str	w9, [x20, #32]
	str	xzr, [x20, #24]
	ldr	x8, [x8, #16]
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _RTSP_NETWORK_URI_START@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RTSP_NETWORK_URI_START@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _RTSP_NETWORK_URI_START_LENGTH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RTSP_NETWORK_URI_START_LENGTH@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	bl	_strncasecmp
	cmp	x0, #0
	cset	w8, eq
	str	w8, [x20]
Lloh20:
	adrp	x8, _COMMS_BUFFER_SIZE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _COMMS_BUFFER_SIZE@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	add	x1, x8, #1
	mov	w0, #1
	bl	_calloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_12
; %bb.6:
Lloh23:
	adrp	x8, _HEADER_LIST_INITIAL_CAPACITY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HEADER_LIST_INITIAL_CAPACITY@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _rtsp_header_comparator@GOTPAGE
Lloh27:
	ldr	x8, [x8, _rtsp_header_comparator@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_vc_containers_list_create
	str	w0, [x20, #16]
	cbz	w0, LBB0_12
; %bb.7:
	mov	x0, x19
	bl	_rtsp_describe
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.8:
	ldr	x8, [x19]
	cbz	x8, LBB0_16
; %bb.9:
	mov	x20, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x20, lsl #3]
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtsp_setup
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x20, x20, #1
	ldr	x8, [x19]
	cmp	x20, x8
	b.lo	LBB0_10
	b	LBB0_16
LBB0_12:
Lloh29:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh31:
	ldr	x20, [x8]
LBB0_13:
	ldr	x8, [x22]
Lloh32:
	adrp	x9, _VC_CONTAINER_ERROR_EOS@GOTPAGE
Lloh33:
	ldr	x9, [x9, _VC_CONTAINER_ERROR_EOS@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x20, x9
	ccmp	x20, x8, #4, ne
Lloh35:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGE
Lloh36:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	csel	x21, x8, x20, eq
Lloh38:
	adrp	x1, l_.str@PAGE
Lloh39:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_LOG_DEBUG
	mov	x0, x19
	bl	_rtsp_reader_close
LBB0_14:
	mov	x0, x21
	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
LBB0_15:
	mov	x20, x0
	mov	x0, x8
	cmp	x20, x8
	b.ne	LBB0_13
LBB0_16:
	ldr	x8, [x19]
	mov	x20, x0
	cbz	x8, LBB0_20
; %bb.17:
	mov	x21, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x21, lsl #3]
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtsp_play
	mov	x20, x0
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x21, x21, #1
	ldr	x8, [x19]
	cmp	x21, x8
	b.lo	LBB0_18
LBB0_20:
Lloh40:
	adrp	x8, _VC_CONTAINER_CONTROL_IO_SET_READ_TIMEOUT_MS@GOTPAGE
Lloh41:
	ldr	x8, [x8, _VC_CONTAINER_CONTROL_IO_SET_READ_TIMEOUT_MS@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	adrp	x8, _DATA_UNAVAILABLE_READ_TIMEOUT_MS@GOTPAGE
Lloh44:
	ldr	x8, [x8, _DATA_UNAVAILABLE_READ_TIMEOUT_MS@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_vc_container_control
	ldr	x8, [x19, #8]
Lloh46:
	adrp	x9, _rtsp_reader_close@GOTPAGE
Lloh47:
	ldr	x9, [x9, _rtsp_reader_close@GOTPAGEOFF]
	str	x9, [x8, #8]
Lloh48:
	adrp	x9, _rtsp_reader_read@GOTPAGE
Lloh49:
	ldr	x9, [x9, _rtsp_reader_read@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
Lloh51:
	adrp	x10, _rtsp_reader_seek@GOTPAGE
Lloh52:
	ldr	x10, [x10, _rtsp_reader_seek@GOTPAGEOFF]
Lloh53:
	ldr	w10, [x10]
	stp	w10, w9, [x8]
	mov	x0, x19
	bl	_STREAM_STATUS
	mov	x21, x0
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_13
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.comm	_RTSP_SCHEME,4,2                ; @RTSP_SCHEME
	.comm	_RTSP_PKT_SCHEME,4,2            ; @RTSP_PKT_SCHEME
	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,8,3 ; @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_FIRST_DYNAMIC_PORT,4,2         ; @FIRST_DYNAMIC_PORT
	.comm	_RTSP_NETWORK_URI_START,4,2     ; @RTSP_NETWORK_URI_START
	.comm	_RTSP_NETWORK_URI_START_LENGTH,4,2 ; @RTSP_NETWORK_URI_START_LENGTH
	.comm	_COMMS_BUFFER_SIZE,8,3          ; @COMMS_BUFFER_SIZE
	.comm	_HEADER_LIST_INITIAL_CAPACITY,4,2 ; @HEADER_LIST_INITIAL_CAPACITY
	.comm	_rtsp_header_comparator,8,3     ; @rtsp_header_comparator
	.comm	_VC_CONTAINER_CONTROL_IO_SET_READ_TIMEOUT_MS,4,2 ; @VC_CONTAINER_CONTROL_IO_SET_READ_TIMEOUT_MS
	.comm	_DATA_UNAVAILABLE_READ_TIMEOUT_MS,4,2 ; @DATA_UNAVAILABLE_READ_TIMEOUT_MS
	.comm	_rtsp_reader_read,4,2           ; @rtsp_reader_read
	.comm	_rtsp_reader_seek,4,2           ; @rtsp_reader_seek
	.comm	_VC_CONTAINER_ERROR_EOS,8,3     ; @VC_CONTAINER_ERROR_EOS
	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,8,3 ; @VC_CONTAINER_ERROR_FORMAT_INVALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error opening RTSP stream (%i)"

.subsections_via_symbols
