	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtsp_parse_rtpmap_attribute
_rtsp_parse_rtpmap_attribute:           ## @rtsp_parse_rtpmap_attribute
	.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), %r14
	movq	%rdx, -48(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_rtsp_parse_extract_ws
	movl	12(%r14), %esi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_LOG_DEBUG
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rbx
	jmp	LBB0_17
LBB0_2:
	movq	_slash_delimiter_fn@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdi
	xorl	%edx, %edx
	callq	_rtsp_parse_extract
	cmpb	$0, (%rax)
	je	LBB0_3
## %bb.5:
	movq	%rax, %r13
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdi
	xorl	%edx, %edx
	callq	_rtsp_parse_extract
	cmpb	$0, (%rax)
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	movq	(%r14), %rdi
	callq	_strlen
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_strlen
	leaq	(%r12,%rax), %rdi
	addq	$2, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r12
	movq	(%r14), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%rax, %rdi
	movq	%r13, %rcx
	callq	_sprintf
	movl	8(%r14), %edi
	movq	_MIME_TYPE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	callq	_vc_uri_add_query
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_free
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.11:
	movl	8(%r14), %edi
	movq	_SAMPLE_RATE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_vc_uri_add_query
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	leaq	-48(%rbp), %rdi
	callq	_rtsp_parse_extract_ws
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rbx
	cmpb	$0, (%rax)
	je	LBB0_17
## %bb.14:
	movl	8(%r14), %edi
	movq	_CHANNELS_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdx
	callq	_vc_uri_add_query
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_16
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movq	%r15, %rdi
	callq	_LOG_ERROR
	movq	_VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPCREL(%rip), %rbx
	jmp	LBB0_17
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_16
LBB0_10:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_16
LBB0_12:
	leaq	L_.str.6(%rip), %rsi
LBB0_16:
	movq	%r15, %rdi
	callq	_LOG_ERROR
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rbx
LBB0_17:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RTSP: Secondary payload type attribute - not supported"

	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.comm	_slash_delimiter_fn,4,2         ## @slash_delimiter_fn
L_.str.1:                               ## @.str.1
	.asciz	"RTSP: rtpmap: MIME type missing"

	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,4,2 ## @VC_CONTAINER_ERROR_FORMAT_INVALID
L_.str.2:                               ## @.str.2
	.asciz	"RTSP: rtpmap: sample rate missing"

L_.str.3:                               ## @.str.3
	.asciz	"RTSP: Failed to allocate space for full MIME type"

	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,4,2 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
L_.str.4:                               ## @.str.4
	.asciz	"%s/%s"

	.comm	_MIME_TYPE_NAME,4,2             ## @MIME_TYPE_NAME
L_.str.5:                               ## @.str.5
	.asciz	"RTSP: Failed to add MIME type to URI"

	.comm	_SAMPLE_RATE_NAME,4,2           ## @SAMPLE_RATE_NAME
L_.str.6:                               ## @.str.6
	.asciz	"RTSP: Failed to add sample rate to URI"

	.comm	_CHANNELS_NAME,4,2              ## @CHANNELS_NAME
L_.str.7:                               ## @.str.7
	.asciz	"RTSP: Failed to add channels to URI"

	.no_dead_strip	_rtsp_parse_rtpmap_attribute
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtsp_parse_rtpmap_attribute
_rtsp_parse_rtpmap_attribute:           ; @rtsp_parse_rtpmap_attribute
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x8, [x1]
	ldr	x23, [x8]
	str	x2, [sp, #8]
	add	x0, sp, #8
	bl	_rtsp_parse_extract_ws
	ldr	w1, [x23, #12]
	bl	_strcmp
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_LOG_DEBUG
LBB0_2:
Lloh2:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	b	LBB0_18
LBB0_3:
Lloh4:
	adrp	x20, _slash_delimiter_fn@GOTPAGE
Lloh5:
	ldr	x20, [x20, _slash_delimiter_fn@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x0, sp, #8
	mov	x2, #0
	bl	_rtsp_parse_extract
	ldrb	w8, [x0]
	cbz	w8, LBB0_11
; %bb.4:
	mov	x21, x0
	ldr	w1, [x20]
	add	x0, sp, #8
	mov	x2, #0
	bl	_rtsp_parse_extract
	ldrb	w8, [x0]
	cbz	w8, LBB0_12
; %bb.5:
	mov	x20, x0
	ldr	x0, [x23]
	bl	_strlen
	mov	x22, x0
	mov	x0, x21
	bl	_strlen
	add	x8, x22, x0
	add	x0, x8, #2
	bl	_malloc
	cbz	x0, LBB0_14
; %bb.6:
	mov	x22, x0
	ldr	x2, [x23]
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x3, x21
	bl	_sprintf
	ldr	w0, [x23, #8]
Lloh8:
	adrp	x8, _MIME_TYPE_NAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MIME_TYPE_NAME@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_vc_uri_add_query
	mov	x21, x0
	mov	x0, x22
	bl	_free
	cbz	w21, LBB0_15
; %bb.7:
	ldr	w0, [x23, #8]
Lloh11:
	adrp	x8, _SAMPLE_RATE_NAME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SAMPLE_RATE_NAME@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_vc_uri_add_query
	cbz	w0, LBB0_16
; %bb.8:
	add	x0, sp, #8
	bl	_rtsp_parse_extract_ws
	ldrb	w8, [x0]
	cbz	w8, LBB0_2
; %bb.9:
	mov	x2, x0
	ldr	w0, [x23, #8]
Lloh14:
	adrp	x8, _CHANNELS_NAME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CHANNELS_NAME@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_vc_uri_add_query
	cbnz	w0, LBB0_2
; %bb.10:
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_17
LBB0_11:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_LOG_ERROR
Lloh23:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGEOFF]
	b	LBB0_18
LBB0_14:
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_15:
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_17:
	mov	x0, x19
	bl	_LOG_ERROR
Lloh31:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh32:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RTSP: Secondary payload type attribute - not supported"

	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.comm	_slash_delimiter_fn,4,2         ; @slash_delimiter_fn
l_.str.1:                               ; @.str.1
	.asciz	"RTSP: rtpmap: MIME type missing"

	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,4,2 ; @VC_CONTAINER_ERROR_FORMAT_INVALID
l_.str.2:                               ; @.str.2
	.asciz	"RTSP: rtpmap: sample rate missing"

l_.str.3:                               ; @.str.3
	.asciz	"RTSP: Failed to allocate space for full MIME type"

	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,4,2 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
l_.str.4:                               ; @.str.4
	.asciz	"%s/%s"

	.comm	_MIME_TYPE_NAME,4,2             ; @MIME_TYPE_NAME
l_.str.5:                               ; @.str.5
	.asciz	"RTSP: Failed to add MIME type to URI"

	.comm	_SAMPLE_RATE_NAME,4,2           ; @SAMPLE_RATE_NAME
l_.str.6:                               ; @.str.6
	.asciz	"RTSP: Failed to add sample rate to URI"

	.comm	_CHANNELS_NAME,4,2              ; @CHANNELS_NAME
l_.str.7:                               ; @.str.7
	.asciz	"RTSP: Failed to add channels to URI"

	.no_dead_strip	_rtsp_parse_rtpmap_attribute
.subsections_via_symbols
