	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtsp_merge_uris
_rtsp_merge_uris:                       ## @rtsp_merge_uris
	.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	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	$0, (%rcx)
	xorl	%eax, %eax
	callq	_vc_uri_create
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_vc_uri_parse
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	callq	_vc_uri_scheme
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %r14
	leaq	1(%rax), %rdi
	callq	_malloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_strncpy
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_14
LBB0_2:
	movq	_VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_14
LBB0_6:
	xorl	%eax, %eax
	callq	_vc_uri_create
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_vc_uri_parse
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_vc_uri_merge
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_vc_uri_build
	movq	%rax, %r14
	incq	%r14
	movq	%r14, %rdi
	callq	_malloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_vc_uri_build
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	movq	_VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %r13
LBB0_13:
	movq	%rbx, %rdi
	callq	_vc_uri_release
LBB0_14:
	movq	%r15, %rdi
	callq	_vc_uri_release
LBB0_15:
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_17
## %bb.16:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_LOG_ERROR
LBB0_17:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,8,3 ## @VC_CONTAINER_ERROR_FORMAT_INVALID
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RTSP: Error merging URIs: %d"

	.no_dead_strip	_rtsp_merge_uris
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtsp_merge_uris
_rtsp_merge_uris:                       ; @rtsp_merge_uris
	.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	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	str	xzr, [x3]
	bl	_vc_uri_create
Lloh3:
	adrp	x25, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	cbz	x0, LBB0_14
; %bb.1:
	mov	x21, x0
	mov	x1, x23
	bl	_vc_uri_parse
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_vc_uri_scheme
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x23
	bl	_strlen
	mov	x24, x0
	add	x0, x0, #1
	bl	_malloc
	str	x0, [x22]
	cbz	x0, LBB0_13
; %bb.4:
	mov	x1, x23
	mov	x2, x24
	bl	_strncpy
	ldr	x20, [x25]
	b	LBB0_13
LBB0_5:
Lloh5:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGEOFF]
Lloh7:
	ldr	x20, [x8]
	b	LBB0_13
LBB0_6:
	bl	_vc_uri_create
	cbz	x0, LBB0_13
; %bb.7:
	mov	x23, x0
	mov	x1, x24
	bl	_vc_uri_parse
	cbz	w0, LBB0_11
; %bb.8:
	mov	x0, x23
	mov	x1, x21
	bl	_vc_uri_merge
	cbz	w0, LBB0_12
; %bb.9:
	mov	x0, x21
	mov	x1, #0
	mov	x2, #0
	bl	_vc_uri_build
	add	x24, x0, #1
	mov	x0, x24
	bl	_malloc
	str	x0, [x22]
	cbz	x0, LBB0_12
; %bb.10:
	mov	x1, x0
	mov	x0, x21
	mov	x2, x24
	bl	_vc_uri_build
	ldr	x20, [x25]
	b	LBB0_12
LBB0_11:
Lloh8:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGEOFF]
Lloh10:
	ldr	x20, [x8]
LBB0_12:
	mov	x0, x23
	bl	_vc_uri_release
LBB0_13:
	mov	x0, x21
	bl	_vc_uri_release
LBB0_14:
	ldr	x8, [x25]
	cmp	x20, x8
	b.eq	LBB0_16
; %bb.15:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_LOG_ERROR
LBB0_16:
	mov	x0, 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
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,8,3 ; @VC_CONTAINER_ERROR_FORMAT_INVALID
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RTSP: Error merging URIs: %d"

	.no_dead_strip	_rtsp_merge_uris
.subsections_via_symbols
