	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtsp_complete_track
_rtsp_complete_track:                   ## @rtsp_complete_track
	.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	%rdi, %r15
	movq	(%rsi), %rax
	movq	(%rax), %r12
	cmpl	$0, 24(%r12)
	je	LBB0_12
## %bb.1:
	movq	%rsi, %r14
	movq	(%r15), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.2:
	movq	(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_vc_uri_set_host
	testl	%eax, %eax
	je	LBB0_17
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_rtsp_open_network_reader
	movq	%rax, %rbx
	movq	_VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_8
## %bb.4:
	movq	_DYNAMIC_PORT_ATTEMPTS_MAX@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_8
## %bb.5:
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, 16(%r12)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_rtsp_open_network_reader
	movq	%rax, %rbx
	movq	_VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leal	1(%r13), %eax
	cmpl	(%r14), %r13d
	movl	%eax, %r13d
	jl	LBB0_6
LBB0_8:
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpq	%rax, %rbx
	jne	LBB0_10
## %bb.9:
	movl	8(%r12), %edi
	movq	_VC_CONTAINER_CONTROL_IO_SET_READ_TIMEOUT_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_vc_container_control
	movq	%rax, %rbx
	movq	(%r14), %rax
LBB0_10:
	cmpq	%rax, %rbx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_15
## %bb.11:
	movl	8(%r12), %edi
	movq	_VC_CONTAINER_CONTROL_IO_SET_READ_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_UDP_READ_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_vc_container_control
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_LOG_ERROR
	movq	_VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_13:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_rtsp_open_file_reader
LBB0_14:
	movq	%rax, %rbx
LBB0_15:
	movq	(%r12), %rdi
	callq	_vc_uri_release
	movq	$0, (%r12)
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_19
## %bb.16:
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtsp_copy_track_data_from_reader ## TAILCALL
LBB0_17:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_LOG_ERROR
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
LBB0_18:
	movq	(%rax), %rbx
LBB0_19:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RTSP: Track control URI is missing"

	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,8,3 ## @VC_CONTAINER_ERROR_FORMAT_INVALID
L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"RTSP: Failed to set track reader URI host"

	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_VC_CONTAINER_ERROR_URI_OPEN_FAILED,8,3 ## @VC_CONTAINER_ERROR_URI_OPEN_FAILED
	.comm	_DYNAMIC_PORT_ATTEMPTS_MAX,4,2  ## @DYNAMIC_PORT_ATTEMPTS_MAX
	.comm	_VC_CONTAINER_CONTROL_IO_SET_READ_TIMEOUT_MS,4,2 ## @VC_CONTAINER_CONTROL_IO_SET_READ_TIMEOUT_MS
	.comm	_VC_CONTAINER_CONTROL_IO_SET_READ_BUFFER_SIZE,4,2 ## @VC_CONTAINER_CONTROL_IO_SET_READ_BUFFER_SIZE
	.comm	_UDP_READ_BUFFER_SIZE,4,2       ## @UDP_READ_BUFFER_SIZE
	.no_dead_strip	_rtsp_complete_track
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtsp_complete_track
_rtsp_complete_track:                   ; @rtsp_complete_track
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	x8, [x1]
	ldr	x21, [x8]
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_11
; %bb.1:
	mov	x20, x1
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh0:
	adrp	x23, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	cbz	x8, LBB0_12
; %bb.2:
	ldr	x0, [x21]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_vc_uri_set_host
	cbz	w0, LBB0_16
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	bl	_rtsp_open_network_reader
	mov	x22, x0
Lloh4:
	adrp	x24, _VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPAGE
Lloh5:
	ldr	x24, [x24, _VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh6:
	adrp	x25, _DYNAMIC_PORT_ATTEMPTS_MAX@GOTPAGE
Lloh7:
	ldr	x25, [x25, _DYNAMIC_PORT_ATTEMPTS_MAX@GOTPAGEOFF]
	ldr	w9, [x25]
	cmp	x0, x8
	ccmp	w9, #1, #8, eq
	b.lt	LBB0_7
; %bb.4:
	mov	w26, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x21, #16]
	mov	x0, x19
	mov	x1, x21
	bl	_rtsp_open_network_reader
	ldr	x8, [x24]
	ldr	w9, [x25]
	cmp	x0, x8
	ccmp	w26, w9, #0, eq
	add	w26, w26, #1
	b.lt	LBB0_5
; %bb.6:
	mov	x22, x0
LBB0_7:
	ldr	x8, [x23]
	cmp	x22, x8
	b.ne	LBB0_9
; %bb.8:
	ldr	w0, [x21, #8]
Lloh8:
	adrp	x8, _VC_CONTAINER_CONTROL_IO_SET_READ_TIMEOUT_MS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VC_CONTAINER_CONTROL_IO_SET_READ_TIMEOUT_MS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_vc_container_control
	mov	x22, x0
	ldr	x8, [x23]
LBB0_9:
	cmp	x22, x8
	b.ne	LBB0_14
; %bb.10:
	ldr	w0, [x21, #8]
Lloh11:
	adrp	x8, _VC_CONTAINER_CONTROL_IO_SET_READ_BUFFER_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VC_CONTAINER_CONTROL_IO_SET_READ_BUFFER_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _UDP_READ_BUFFER_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UDP_READ_BUFFER_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	bl	_vc_container_control
	b	LBB0_13
LBB0_11:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_LOG_ERROR
Lloh19:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGEOFF]
	b	LBB0_17
LBB0_12:
	mov	x0, x19
	mov	x1, x21
	bl	_rtsp_open_file_reader
LBB0_13:
	mov	x22, x0
LBB0_14:
	ldr	x0, [x21]
	bl	_vc_uri_release
	str	xzr, [x21]
	ldr	x8, [x23]
	cmp	x22, x8
	b.ne	LBB0_18
; %bb.15:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_rtsp_copy_track_data_from_reader
LBB0_16:
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_LOG_ERROR
Lloh23:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
LBB0_17:
	ldr	x22, [x8]
LBB0_18:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RTSP: Track control URI is missing"

	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,8,3 ; @VC_CONTAINER_ERROR_FORMAT_INVALID
l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"RTSP: Failed to set track reader URI host"

	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_VC_CONTAINER_ERROR_URI_OPEN_FAILED,8,3 ; @VC_CONTAINER_ERROR_URI_OPEN_FAILED
	.comm	_DYNAMIC_PORT_ATTEMPTS_MAX,4,2  ; @DYNAMIC_PORT_ATTEMPTS_MAX
	.comm	_VC_CONTAINER_CONTROL_IO_SET_READ_TIMEOUT_MS,4,2 ; @VC_CONTAINER_CONTROL_IO_SET_READ_TIMEOUT_MS
	.comm	_VC_CONTAINER_CONTROL_IO_SET_READ_BUFFER_SIZE,4,2 ; @VC_CONTAINER_CONTROL_IO_SET_READ_BUFFER_SIZE
	.comm	_UDP_READ_BUFFER_SIZE,4,2       ; @UDP_READ_BUFFER_SIZE
	.no_dead_strip	_rtsp_complete_track
.subsections_via_symbols
