	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtp_reader_open                ## -- Begin function rtp_reader_open
	.p2align	4, 0x90
_rtp_reader_open:                       ## @rtp_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	%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, %r12
	movq	8(%rdi), %rax
	movl	32(%rax), %edi
	callq	_vc_uri_scheme
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	8(%r12), %rax
	movl	32(%rax), %edi
	callq	_vc_uri_scheme
	movq	_RTP_SCHEME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	8(%r12), %rax
	movl	32(%rax), %edi
	callq	_vc_uri_scheme
	movq	_RTP_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_23
LBB0_4:
	movq	8(%r12), %rax
	movl	32(%rax), %edi
	callq	_fill_parameter_list
	testq	%rax, %rax
	je	LBB0_21
## %bb.5:
	movq	%rax, %r14
	movq	_PAYLOAD_TYPE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_rtp_get_parameter_u32
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	cmpl	$128, -44(%rbp)
	jge	LBB0_7
## %bb.8:
	movl	$8, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.12:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	8(%r12), %rax
	movq	%rbx, 24(%rax)
	movq	%rbx, 16(%r12)
	movq	_MAXIMUM_PACKET_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$48, %rsi
	movq	%r12, %rdi
	callq	_vc_container_allocate_track
	testq	%rax, %rax
	je	LBB0_9
## %bb.13:
	movq	%rax, %r15
	movq	%rax, (%rbx)
	movl	$1, (%r12)
	movq	8(%rax), %rax
	movq	(%rax), %rbx
	leaq	48(%rbx), %rax
	movq	%rax, 40(%rbx)
	movl	-44(%rbp), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_decode_payload_type
	movq	%rax, %r13
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_11
## %bb.14:
	movq	%rax, %r13
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setne	%dil
	callq	_vc_container_assert
	cmpq	$0, 32(%rbx)
	jne	LBB0_16
## %bb.15:
	movq	_generic_payload_handler@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
LBB0_16:
	movq	_SSRC_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	28(%rbx), %rdx
	movq	%r14, %rdi
	callq	_rtp_get_parameter_x32
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movl	24(%rbx), %edi
	movq	_TRACK_SSRC_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SET_BIT
LBB0_18:
	movq	_MIN_SEQUENTIAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_SEQ_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_rtp_get_parameter_u32
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movslq	-48(%rbp), %rax
	movq	%rax, 16(%rbx)
	movq	$0, 8(%rbx)
LBB0_20:
	movl	$1, (%r15)
	movq	%r14, %rdi
	callq	_vc_containers_list_destroy
	movq	8(%r12), %rax
	movq	_rtp_reader_close@GOTPCREL(%rip), %rcx
	movq	%rcx, 16(%rax)
	movq	_rtp_reader_read@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_rtp_reader_seek@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_rtp_reader_control@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	(%r13), %rbx
	jmp	LBB0_23
LBB0_21:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_22
LBB0_7:
	movq	_VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %r13
LBB0_11:
	movq	%r14, %rdi
	callq	_vc_containers_list_destroy
LBB0_22:
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	movq	_VC_CONTAINER_ERROR_EOS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r13
	movq	_VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%r13, %rbx
	cmoveq	%rcx, %rbx
	cmpq	(%rax), %r13
	cmoveq	%rcx, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_LOG_DEBUG
	movq	%r12, %rdi
	callq	_rtp_reader_close
LBB0_23:
	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
	.comm	_RTP_SCHEME,4,2                 ## @RTP_SCHEME
	.comm	_RTP_PKT_SCHEME,4,2             ## @RTP_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	_PAYLOAD_TYPE_NAME,4,2          ## @PAYLOAD_TYPE_NAME
	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,8,3 ## @VC_CONTAINER_ERROR_FORMAT_INVALID
	.comm	_MAXIMUM_PACKET_SIZE,8,3        ## @MAXIMUM_PACKET_SIZE
	.comm	_generic_payload_handler,8,3    ## @generic_payload_handler
	.comm	_SSRC_NAME,4,2                  ## @SSRC_NAME
	.comm	_TRACK_SSRC_SET,4,2             ## @TRACK_SSRC_SET
	.comm	_MIN_SEQUENTIAL,8,3             ## @MIN_SEQUENTIAL
	.comm	_SEQ_NAME,4,2                   ## @SEQ_NAME
	.comm	_rtp_reader_read,4,2            ## @rtp_reader_read
	.comm	_rtp_reader_seek,4,2            ## @rtp_reader_seek
	.comm	_rtp_reader_control,4,2         ## @rtp_reader_control
	.comm	_VC_CONTAINER_ERROR_EOS,8,3     ## @VC_CONTAINER_ERROR_EOS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error opening RTP (%i)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtp_reader_open                ; -- Begin function rtp_reader_open
	.p2align	2
_rtp_reader_open:                       ; @rtp_reader_open
	.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	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, _RTP_SCHEME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTP_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, _RTP_PKT_SCHEME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTP_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	x20, [x8]
	b	LBB0_22
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #32]
	bl	_fill_parameter_list
Lloh9:
	adrp	x23, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh10:
	ldr	x23, [x23, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh11:
	adrp	x24, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGE
Lloh12:
	ldr	x24, [x24, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGEOFF]
	cbz	x0, LBB0_17
; %bb.5:
	mov	x20, x0
Lloh13:
	adrp	x8, _PAYLOAD_TYPE_NAME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PAYLOAD_TYPE_NAME@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_rtp_get_parameter_u32
	cbz	x0, LBB0_18
; %bb.6:
	ldr	w8, [sp, #12]
	cmp	w8, #128
	b.ge	LBB0_18
; %bb.7:
	mov	w0, #8
	bl	_malloc
	cbz	x0, LBB0_19
; %bb.8:
	mov	x22, x0
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x19, #8]
	str	x22, [x8, #24]
	str	x22, [x19, #16]
Lloh16:
	adrp	x8, _MAXIMUM_PACKET_SIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MAXIMUM_PACKET_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	add	x1, x8, #48
	mov	x0, x19
	bl	_vc_container_allocate_track
	cbz	x0, LBB0_19
; %bb.9:
	mov	x21, x0
	str	x0, [x22]
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x0, #8]
	ldr	x25, [x8]
	add	x8, x25, #48
	str	x8, [x25, #40]
	ldr	w3, [sp, #12]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_decode_payload_type
	mov	x22, x0
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.10:
	ldr	x8, [x25]
	cmp	x8, #0
	cset	w0, ne
	bl	_vc_container_assert
	ldr	x8, [x25, #32]
	cbnz	x8, LBB0_12
; %bb.11:
Lloh19:
	adrp	x8, _generic_payload_handler@GOTPAGE
Lloh20:
	ldr	x8, [x8, _generic_payload_handler@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x25, #32]
LBB0_12:
Lloh22:
	adrp	x8, _SSRC_NAME@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SSRC_NAME@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	add	x2, x25, #28
	mov	x0, x20
	bl	_rtp_get_parameter_x32
	cbz	x0, LBB0_14
; %bb.13:
	ldr	w0, [x25, #24]
Lloh25:
	adrp	x8, _TRACK_SSRC_SET@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TRACK_SSRC_SET@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_SET_BIT
LBB0_14:
Lloh28:
	adrp	x8, _MIN_SEQUENTIAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MIN_SEQUENTIAL@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	str	x8, [x25, #8]
Lloh31:
	adrp	x8, _SEQ_NAME@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SEQ_NAME@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_rtp_get_parameter_u32
	cbz	x0, LBB0_16
; %bb.15:
	ldrsw	x8, [sp, #8]
	stp	xzr, x8, [x25, #8]
LBB0_16:
	mov	w8, #1
	str	w8, [x21]
	mov	x0, x20
	bl	_vc_containers_list_destroy
	ldr	x8, [x19, #8]
Lloh34:
	adrp	x9, _rtp_reader_close@GOTPAGE
Lloh35:
	ldr	x9, [x9, _rtp_reader_close@GOTPAGEOFF]
Lloh36:
	adrp	x10, _rtp_reader_read@GOTPAGE
Lloh37:
	ldr	x10, [x10, _rtp_reader_read@GOTPAGEOFF]
	str	x9, [x8, #16]
Lloh38:
	ldr	w9, [x10]
	str	w9, [x8, #8]
Lloh39:
	adrp	x9, _rtp_reader_seek@GOTPAGE
Lloh40:
	ldr	x9, [x9, _rtp_reader_seek@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
Lloh42:
	adrp	x10, _rtp_reader_control@GOTPAGE
Lloh43:
	ldr	x10, [x10, _rtp_reader_control@GOTPAGEOFF]
Lloh44:
	ldr	w10, [x10]
	stp	w10, w9, [x8]
	ldr	x20, [x23]
	b	LBB0_22
LBB0_17:
Lloh45:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh46:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh47:
	ldr	x22, [x8]
	b	LBB0_21
LBB0_18:
	ldr	x22, [x24]
	b	LBB0_20
LBB0_19:
Lloh48:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh49:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh50:
	ldr	x22, [x8]
LBB0_20:
	mov	x0, x20
	bl	_vc_containers_list_destroy
LBB0_21:
Lloh51:
	adrp	x8, _VC_CONTAINER_ERROR_EOS@GOTPAGE
Lloh52:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_EOS@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh53:
	ldr	x8, [x8]
	cmp	x22, x8
	ccmp	x22, x9, #4, ne
	ldr	x8, [x24]
	csel	x20, x8, x22, eq
Lloh54:
	adrp	x1, l_.str@PAGE
Lloh55:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_LOG_DEBUG
	mov	x0, x19
	bl	_rtp_reader_close
LBB0_22:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.comm	_RTP_SCHEME,4,2                 ; @RTP_SCHEME
	.comm	_RTP_PKT_SCHEME,4,2             ; @RTP_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	_PAYLOAD_TYPE_NAME,4,2          ; @PAYLOAD_TYPE_NAME
	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,8,3 ; @VC_CONTAINER_ERROR_FORMAT_INVALID
	.comm	_MAXIMUM_PACKET_SIZE,8,3        ; @MAXIMUM_PACKET_SIZE
	.comm	_generic_payload_handler,8,3    ; @generic_payload_handler
	.comm	_SSRC_NAME,4,2                  ; @SSRC_NAME
	.comm	_TRACK_SSRC_SET,4,2             ; @TRACK_SSRC_SET
	.comm	_MIN_SEQUENTIAL,8,3             ; @MIN_SEQUENTIAL
	.comm	_SEQ_NAME,4,2                   ; @SEQ_NAME
	.comm	_rtp_reader_read,4,2            ; @rtp_reader_read
	.comm	_rtp_reader_seek,4,2            ; @rtp_reader_seek
	.comm	_rtp_reader_control,4,2         ; @rtp_reader_control
	.comm	_VC_CONTAINER_ERROR_EOS,8,3     ; @VC_CONTAINER_ERROR_EOS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error opening RTP (%i)"

.subsections_via_symbols
