	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpa_robust_parse_packet
_mpa_robust_parse_packet:               ## @mpa_robust_parse_packet
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	testq	%r9, %r9
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.1:
	movq	%r9, %r14
	movq	%r8, %r12
	movl	16(%rbp), %r15d
	leaq	-44(%rbp), %rcx
	leaq	-68(%rbp), %r8
	movq	%r9, %rsi
	movl	%r15d, %edx
	callq	_mpa_robust_parse_rtp_header
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_28
## %bb.2:
	movl	%ebx, %eax
	leaq	(%r14,%rax,4), %r14
	subl	%ebx, %r15d
	cmpl	$0, -68(%rbp)
	je	LBB0_12
## %bb.3:
	movl	32(%r13), %edi
	testl	%edi, %edi
	je	LBB0_18
## %bb.4:
	leaq	32(%r13), %rbx
	movl	-44(%rbp), %eax
	cmpl	12(%r13), %eax
	jne	LBB0_16
## %bb.5:
	movq	24(%r13), %rax
	cmpq	(%r12), %rax
	jne	LBB0_16
## %bb.6:
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_avio_write
	addl	16(%r13), %r15d
	movl	%r15d, 16(%r13)
	cmpl	12(%r13), %r15d
	jae	LBB0_30
## %bb.7:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_8:
	leaq	40(%r13), %r14
	movq	(%r13), %rax
	leaq	(,%rax,4), %r12
	addq	40(%r13), %r12
	movl	8(%r13), %r15d
	subl	%eax, %r15d
	leaq	-44(%rbp), %rcx
	leaq	-68(%rbp), %r8
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_mpa_robust_parse_rtp_header
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_15
## %bb.9:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	cmpl	$0, -68(%rbp)
	jne	LBB0_11
## %bb.10:
	subl	%ebx, %r15d
	movl	-44(%rbp), %esi
	cmpl	%r15d, %esi
	jbe	LBB0_23
LBB0_11:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_freep
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_17
LBB0_12:
	movl	-44(%rbp), %esi
	cmpl	%r15d, %esi
	jbe	LBB0_19
## %bb.13:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	32(%r13), %r14
	movq	%r14, %rdi
	callq	_ffio_free_dyn_buf
	movl	-44(%rbp), %eax
	movl	%eax, 12(%r13)
	movl	%r15d, 16(%r13)
	movq	(%r12), %rax
	movq	%rax, 24(%r13)
	movq	%r14, %rdi
	callq	_avio_open_dyn_buf
	testl	%eax, %eax
	js	LBB0_27
## %bb.14:
	movl	(%r14), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_avio_write
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_15:
	movq	%r14, %rdi
	callq	_av_freep
	jmp	LBB0_28
LBB0_16:
	movq	%rbx, %rdi
	callq	_ffio_free_dyn_buf
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_17:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_28
LBB0_18:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_19:
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_av_new_packet
	testq	%rax, %rax
	jne	LBB0_24
## %bb.20:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	(%r12), %rdi
	movl	-44(%rbp), %edx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	callq	_memcpy
	movl	-44(%rbp), %r14d
	xorl	%ebx, %ebx
	subl	%r14d, %r15d
	je	LBB0_28
## %bb.21:
	movl	%r15d, 8(%r13)
	movl	%r15d, %edi
	callq	_av_malloc
	movq	%rax, 40(%r13)
	movq	$0, (%r13)
	testq	%rax, %rax
	je	LBB0_34
## %bb.22:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%r14,4), %rsi
	movl	8(%r13), %edx
	movq	%rax, %rdi
	callq	_memcpy
	movl	$1, %ebx
	jmp	LBB0_28
LBB0_23:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_av_new_packet
	testq	%rax, %rax
	je	LBB0_32
LBB0_24:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
LBB0_25:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_27:
	movl	%eax, %ebx
LBB0_28:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ff_rtp_finalize_packet
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_28
## %bb.31:
	movl	%eax, %r14d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	movl	%r14d, %ebx
	jmp	LBB0_28
LBB0_32:
	movl	%ebx, %eax
	leaq	(%r12,%rax,4), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	(%r15), %rdi
	movl	-44(%rbp), %edx
	callq	_memcpy
	movl	-44(%rbp), %eax
	addl	%ebx, %eax
	addq	(%r13), %rax
	movq	%rax, (%r13)
	movslq	8(%r13), %rcx
	movl	$1, %ebx
	cmpq	%rcx, %rax
	jne	LBB0_28
## %bb.33:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_freep
	xorl	%ebx, %ebx
	jmp	LBB0_28
LBB0_34:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	movq	%r12, %rdi
	callq	_av_packet_unref
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid frame\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Out of memory.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"Received packet without a start fragment; dropping.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid packet received\n"

L_.str.4:                               ## @.str.4
	.asciz	"Error occurred when getting fragment buffer.\n"

	.no_dead_strip	_mpa_robust_parse_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpa_robust_parse_packet
_mpa_robust_parse_packet:               ; @mpa_robust_parse_packet
	.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	x21, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	cbz	x5, LBB0_9
; %bb.1:
	mov	x25, x6
	mov	x24, x5
	mov	x26, x4
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x5
	mov	x2, x6
	bl	_mpa_robust_parse_rtp_header
	mov	x22, x0
	tbnz	w0, #31, LBB0_29
; %bb.2:
	add	x24, x24, w22, uxtw #2
	sub	w25, w25, w22
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_13
; %bb.3:
	mov	x22, x20
	ldr	w0, [x22, #32]!
	cbz	w0, LBB0_19
; %bb.4:
	ldr	w8, [sp, #12]
	ldr	w9, [x20, #12]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.5:
	ldr	x8, [x20, #24]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.6:
	mov	x1, x24
	mov	x2, x25
	bl	_avio_write
	ldp	w9, w8, [x20, #12]
	add	w8, w8, w25
	cmp	w8, w9
	str	w8, [x20, #16]
	b.lo	LBB0_20
; %bb.7:
	ldr	w2, [x23]
	mov	x0, x21
	mov	x1, x22
	bl	_ff_rtp_finalize_packet
	tbz	w0, #31, LBB0_23
; %bb.8:
	mov	x22, x0
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str.4@PAGE
Lloh4:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_av_log
	b	LBB0_29
LBB0_9:
	mov	x24, x20
	ldr	x8, [x24, #40]!
	ldr	x9, [x20]
	add	x25, x8, x9, lsl #2
	ldr	w8, [x20, #8]
	sub	w26, w8, w9
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x25
	mov	x2, x26
	bl	_mpa_robust_parse_rtp_header
	mov	x22, x0
	tbnz	w0, #31, LBB0_16
; %bb.10:
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_12
; %bb.11:
	ldr	w1, [sp, #12]
	sub	w8, w26, w22
	cmp	w1, w8
	b.ls	LBB0_24
LBB0_12:
	mov	x0, x24
	bl	_av_freep
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_18
LBB0_13:
	ldr	w1, [sp, #12]
	cmp	w1, w25
	b.ls	LBB0_21
; %bb.14:
	add	x19, x20, #32
	mov	x0, x19
	bl	_ffio_free_dyn_buf
	ldr	w8, [sp, #12]
	stp	w8, w25, [x20, #12]
	ldr	x8, [x26]
	str	x8, [x20, #24]
	mov	x0, x19
	bl	_avio_open_dyn_buf
	tbnz	w0, #31, LBB0_28
; %bb.15:
	ldr	w0, [x19]
	mov	x1, x24
	mov	x2, x25
	bl	_avio_write
	b	LBB0_20
LBB0_16:
	mov	x0, x24
	bl	_av_freep
	b	LBB0_29
LBB0_17:
	mov	x0, x22
	bl	_ffio_free_dyn_buf
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.3@PAGE
Lloh14:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_18:
	mov	x0, x19
	bl	_av_log
Lloh15:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
	b	LBB0_29
LBB0_19:
Lloh18:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_20:
Lloh23:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_27
LBB0_21:
	mov	x0, x21
	bl	_av_new_packet
	cbnz	x0, LBB0_25
; %bb.22:
	ldr	w8, [x23]
	str	w8, [x21, #8]
	ldr	x0, [x21]
	ldr	w2, [sp, #12]
	mov	x1, x24
	bl	_memcpy
	ldr	w22, [sp, #12]
	subs	w0, w25, w22
	b.ne	LBB0_32
LBB0_23:
	mov	w22, #0
	b	LBB0_29
LBB0_24:
	mov	x0, x21
	bl	_av_new_packet
	cbz	x0, LBB0_30
LBB0_25:
Lloh25:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x2, l_.str.1@PAGE
Lloh29:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_26:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_27:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_28:
	mov	x22, x0
LBB0_29:
	mov	x0, x22
	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_30:
	add	x1, x25, w22, uxtw #2
	ldr	w8, [x23]
	str	w8, [x21, #8]
	ldr	x0, [x21]
	ldr	w2, [sp, #12]
	bl	_memcpy
	ldr	w8, [sp, #12]
	ldr	x9, [x20]
	add	w8, w8, w22
	add	x8, x9, x8
	str	x8, [x20]
	ldrsw	x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_34
; %bb.31:
	mov	x0, x24
	bl	_av_freep
	mov	w22, #0
	b	LBB0_29
LBB0_32:
	str	w0, [x20, #8]
	bl	_av_malloc
	str	x0, [x20, #40]
	str	xzr, [x20]
	cbz	x0, LBB0_35
; %bb.33:
	add	x1, x24, x22, lsl #2
	ldr	w2, [x20, #8]
	bl	_memcpy
LBB0_34:
	mov	w22, #1
	b	LBB0_29
LBB0_35:
Lloh32:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x2, l_.str.1@PAGE
Lloh36:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
	mov	x0, x21
	bl	_av_packet_unref
	b	LBB0_26
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid frame\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Out of memory.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"Received packet without a start fragment; dropping.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid packet received\n"

l_.str.4:                               ; @.str.4
	.asciz	"Error occurred when getting fragment buffer.\n"

	.no_dead_strip	_mpa_robust_parse_packet
.subsections_via_symbols
