	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtp_parse_packet_internal
_rtp_parse_packet_internal:             ## @rtp_parse_packet_internal
	.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
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movl	(%rdx), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	4(%rdx), %r12d
	movsbl	%r12b, %r13d
	andl	$127, %r12d
	sarl	$7, %r13d
	movq	_RTP_FLAG_MARKER@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	leaq	8(%rdx), %rdi
	callq	_AV_RB16
	movl	%eax, %r15d
	leaq	16(%r14), %rdi
	callq	_AV_RB32
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, -80(%rbp)
	leaq	32(%r14), %rdi
	callq	_AV_RB32
	movl	%eax, (%rbx)
	movl	$-1, %eax
	cmpl	%r12d, 4(%rbx)
	jne	LBB0_20
## %bb.1:
	movq	16(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	40(%rbx), %rdi
	movl	%r15d, %esi
	callq	_rtp_valid_packet_in_sequence
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%rbx, %r12
	testb	$32, (%r14)
	jne	LBB0_5
## %bb.4:
	movq	%r15, %r10
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_2:
	movl	8(%rbx), %eax
	movl	28(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	incl	%eax
	movzwl	%ax, %r9d
	leaq	L_.str(%rip), %rdx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	callq	_av_log
	movl	$-1, %eax
	jmp	LBB0_20
LBB0_5:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movslq	%ebx, %rbx
	movl	-4(%r14,%rbx,4), %eax
	leal	12(%rax), %ecx
	xorl	%edx, %edx
	cmpl	%ebx, %ecx
	cmovlel	%eax, %edx
	subl	%edx, %ebx
	movq	%r15, %r10
LBB0_6:
	movq	%r12, %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r10d, 8(%r12)
	leal	(,%rdx,4), %eax
	andl	$60, %eax
	subl	%eax, %ebx
	addl	$-12, %ebx
	js	LBB0_7
## %bb.8:
	leaq	(%r14,%rax,4), %r14
	addq	$48, %r14
	testb	$16, %dl
	je	LBB0_13
## %bb.9:
	cmpl	$4, %ebx
	jae	LBB0_11
## %bb.10:
	movl	$-1, %eax
	jmp	LBB0_20
LBB0_7:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_20
LBB0_11:
	leaq	8(%r14), %rdi
	callq	_AV_RB16
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %ecx
	subl	%ecx, %ebx
	movl	$-1, %eax
	jl	LBB0_20
## %bb.12:
	movslq	%ecx, %rax
	leaq	(%r14,%rax,4), %r14
	movq	%r15, %r10
	movq	%r12, %rcx
LBB0_13:
	movq	32(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	28(%rcx), %edi
	movl	24(%rcx), %esi
	movq	16(%rcx), %rdx
	subq	$8, %rsp
	leaq	-80(%rbp), %r8
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	%r14, %r9
	pushq	%r13
	pushq	%r10
	pushq	%rbx
	callq	*%rax
	movq	%r12, %rdi
	addq	$32, %rsp
	movl	%eax, %r13d
	movq	-80(%rbp), %rdx
	jmp	LBB0_19
LBB0_16:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_21
## %bb.17:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_av_new_packet
	testl	%eax, %eax
	js	LBB0_20
## %bb.18:
	movl	%eax, %r13d
	movl	4(%r15), %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rdi
LBB0_19:
	movq	%r15, %rsi
	callq	_finalize_packet
	movl	%r13d, %eax
LBB0_20:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RTP_FLAG_MARKER,4,2            ## @RTP_FLAG_MARKER
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RTP: PT=%02x: bad cseq %04x expected=%04x\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rtp_parse_packet_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtp_parse_packet_internal
_rtp_parse_packet_internal:             ; @rtp_parse_packet_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x3
	mov	x24, x2
	mov	x20, x1
	mov	x19, x0
	ldp	w28, w26, [x2]
	and	w25, w26, #0x7f
Lloh0:
	adrp	x8, _RTP_FLAG_MARKER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTP_FLAG_MARKER@GOTPAGEOFF]
Lloh2:
	ldr	w27, [x8]
	add	x0, x2, #8
	bl	_AV_RB16
	mov	x21, x0
	add	x0, x24, #16
	bl	_AV_RB32
	mov	x22, x0
	str	x0, [sp, #24]
	add	x0, x24, #32
	bl	_AV_RB32
	str	w0, [x19]
	ldr	w8, [x19, #4]
	cmp	w8, w25
	b.ne	LBB0_8
; %bb.1:
	ldr	x8, [x19, #16]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	add	x0, x19, #40
	mov	x1, x21
	bl	_rtp_valid_packet_in_sequence
	cbz	w0, LBB0_9
; %bb.2:
	ldrb	w8, [x24]
	tbz	w8, #5, LBB0_4
; %bb.3:
	sub	w8, w23, #1
	ldr	w8, [x24, w8, sxtw #2]
	add	w9, w8, #12
	cmp	w9, w23
	csel	w8, wzr, w8, gt
	sub	w23, w23, w8
LBB0_4:
	str	w21, [x19, #8]
	lsl	w8, w28, #2
	and	x8, x8, #0x3c
	sub	w9, w23, w8
	subs	w23, w9, #12
	b.mi	LBB0_10
; %bb.5:
	add	x8, x24, x8, lsl #2
	add	x24, x8, #48
	tbz	w28, #4, LBB0_12
; %bb.6:
	cmp	w23, #4
	b.lo	LBB0_8
; %bb.7:
	add	x0, x24, #8
	bl	_AV_RB16
	lsl	w8, w0, #2
	add	w8, w8, #4
	subs	w23, w23, w8
	b.ge	LBB0_11
LBB0_8:
	mov	w21, #-1
	b	LBB0_19
LBB0_9:
	ldr	w0, [x19, #28]
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	and	w5, w8, #0xffff
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x25
	mov	x4, x21
	bl	_av_log
	mov	w21, #-1
	b	LBB0_19
LBB0_10:
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	b	LBB0_19
LBB0_11:
	add	x24, x24, w8, sxtw #2
LBB0_12:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_15
; %bb.13:
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.14:
	lsl	w9, w26, #24
	and	w9, w27, w9, asr #31
	ldp	w1, w0, [x19, #24]
	ldr	x2, [x19, #16]
	str	w9, [sp]
	add	x4, sp, #24
	mov	x3, x20
	mov	x5, x24
	mov	x6, x23
	mov	x7, x21
	blr	x8
	mov	x21, x0
	ldr	x22, [sp, #24]
	b	LBB0_18
LBB0_15:
	ldr	x25, [sp, #16]                  ; 8-byte Folded Reload
	cbz	x25, LBB0_20
; %bb.16:
	mov	x0, x20
	mov	x1, x23
	bl	_av_new_packet
	mov	x21, x0
	tbnz	w0, #31, LBB0_19
; %bb.17:
	ldr	w0, [x20, #4]
	mov	x1, x24
	mov	x2, x23
	bl	_memcpy
	ldr	w8, [x25]
	str	w8, [x20]
LBB0_18:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_finalize_packet
LBB0_19:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_20:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_RTP_FLAG_MARKER,4,2            ; @RTP_FLAG_MARKER
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RTP: PT=%02x: bad cseq %04x expected=%04x\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rtp_parse_packet_internal
.subsections_via_symbols
