	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtsp_create_track_for_media_field
_rtsp_create_track_for_media_field:     ## @rtsp_create_track_for_media_field
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	%rsi, -64(%rbp)
	movq	$0, (%rdx)
	movq	(%rdi), %rdx
	movq	_RTSP_TRACKS_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_LOG_DEBUG
	jmp	LBB0_6
LBB0_2:
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	callq	_rtsp_parse_extract_ws
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_rtsp_parse_extract_ws
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_rtsp_parse_extract_ws
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_rtsp_parse_extract_ws
	cmpb	$0, (%r13)
	je	LBB0_5
## %bb.3:
	movq	%rax, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpb	$0, (%rax)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_LOG_ERROR
LBB0_6:
	movq	_VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	cmpb	$0, (%r12)
	je	LBB0_5
## %bb.9:
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_vc_container_allocate_track
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	(%rax), %r15
	leaq	24(%r15), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_sscanf
	movq	%r12, (%r15)
	movq	%r13, 8(%r15)
	xorl	%eax, %eax
	callq	_vc_uri_create
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	movq	_RTP_SCHEME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_vc_uri_set_scheme
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movq	16(%r15), %rdi
	movq	_PAYLOAD_TYPE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	callq	_vc_uri_add_query
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, (%rbx)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rcx,%rax,8)
	movq	%rdx, (%r14)
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_14:
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_vc_uri_release
LBB0_16:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_vc_container_free_track
LBB0_17:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_LOG_ERROR
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_RTSP_TRACKS_MAX,8,3            ## @RTSP_TRACKS_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RTSP: Too many media items in SDP data, only %d are supported."

	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,4,2 ## @VC_CONTAINER_ERROR_FORMAT_INVALID
L_.str.1:                               ## @.str.1
	.asciz	"RTP/AVP"

L_.str.2:                               ## @.str.2
	.asciz	"RTSP: Failure to parse media field"

L_.str.3:                               ## @.str.3
	.asciz	"%hu"

	.comm	_RTP_SCHEME,4,2                 ## @RTP_SCHEME
	.comm	_PAYLOAD_TYPE_NAME,4,2          ## @PAYLOAD_TYPE_NAME
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
L_.str.4:                               ## @.str.4
	.asciz	"RTSP: Memory allocation failure creating track"

	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,4,2 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.no_dead_strip	_rtsp_create_track_for_media_field
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtsp_create_track_for_media_field
_rtsp_create_track_for_media_field:     ; @rtsp_create_track_for_media_field
	.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	x20, x2
	mov	x19, x0
	str	x1, [sp, #8]
	str	xzr, [x2]
	ldr	x2, [x0]
Lloh0:
	adrp	x8, _RTSP_TRACKS_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTSP_TRACKS_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_LOG_DEBUG
	b	LBB0_6
LBB0_2:
	add	x0, sp, #8
	bl	_rtsp_parse_extract_ws
	mov	x23, x0
	add	x0, sp, #8
	bl	_rtsp_parse_extract_ws
	mov	x24, x0
	add	x0, sp, #8
	bl	_rtsp_parse_extract_ws
	mov	x22, x0
	add	x0, sp, #8
	bl	_rtsp_parse_extract_ws
	ldrb	w8, [x23]
	cbz	w8, LBB0_5
; %bb.3:
	ldrb	w8, [x24]
	cbz	w8, LBB0_5
; %bb.4:
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_8
LBB0_5:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_LOG_ERROR
LBB0_6:
Lloh9:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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_8:
	ldrb	w8, [x21]
	cbz	w8, LBB0_5
; %bb.9:
	mov	x0, x19
	mov	w1, #32
	bl	_vc_container_allocate_track
	cbz	x0, LBB0_17
; %bb.10:
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x25, [x8]
	add	x2, x25, #24
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x24
	bl	_sscanf
	stp	x21, x23, [x25]
	bl	_vc_uri_create
	str	x0, [x25, #16]
	cbz	x0, LBB0_16
; %bb.11:
Lloh13:
	adrp	x8, _RTP_SCHEME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RTP_SCHEME@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_vc_uri_set_scheme
	cbz	w0, LBB0_14
; %bb.12:
	ldr	x0, [x25, #16]
Lloh16:
	adrp	x8, _PAYLOAD_TYPE_NAME@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PAYLOAD_TYPE_NAME@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_vc_uri_add_query
	cbz	w0, LBB0_14
; %bb.13:
	ldp	x9, x8, [x19]
	add	x10, x9, #1
	str	x10, [x19]
	str	x22, [x8, x9, lsl #3]
	str	x22, [x20]
Lloh19:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	b	LBB0_7
LBB0_14:
	ldr	x0, [x25, #16]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_vc_uri_release
LBB0_16:
	mov	x0, x19
	mov	x1, x22
	bl	_vc_container_free_track
LBB0_17:
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@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]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_RTSP_TRACKS_MAX,8,3            ; @RTSP_TRACKS_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RTSP: Too many media items in SDP data, only %d are supported."

	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,4,2 ; @VC_CONTAINER_ERROR_FORMAT_INVALID
l_.str.1:                               ; @.str.1
	.asciz	"RTP/AVP"

l_.str.2:                               ; @.str.2
	.asciz	"RTSP: Failure to parse media field"

l_.str.3:                               ; @.str.3
	.asciz	"%hu"

	.comm	_RTP_SCHEME,4,2                 ; @RTP_SCHEME
	.comm	_PAYLOAD_TYPE_NAME,4,2          ; @PAYLOAD_TYPE_NAME
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
l_.str.4:                               ; @.str.4
	.asciz	"RTSP: Memory allocation failure creating track"

	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,4,2 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.no_dead_strip	_rtsp_create_track_for_media_field
.subsections_via_symbols
