	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpa_robust_parse_rtp_header
_mpa_robust_parse_rtp_header:           ## @mpa_robust_parse_rtp_header
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$1, %edx
	jg	LBB0_2
## %bb.1:
	movl	%edx, %ecx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_6
LBB0_2:
	movq	%rcx, %rbx
	movl	(%rsi), %eax
	shrl	$7, %eax
	andl	$1, %eax
	movl	%eax, (%r8)
	movl	(%rsi), %eax
	testb	$64, %al
	jne	LBB0_4
## %bb.3:
	andl	$-193, %eax
	movl	$1, %ecx
	jmp	LBB0_5
LBB0_4:
	movq	%rsi, %rdi
	callq	_AV_RB16
	andl	$-49153, %eax                   ## imm = 0xFFFF3FFF
	movl	$2, %ecx
LBB0_5:
	movl	%eax, (%rbx)
LBB0_6:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid %d bytes packet\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_mpa_robust_parse_rtp_header
.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_rtp_header
_mpa_robust_parse_rtp_header:           ; @mpa_robust_parse_rtp_header
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w2, #1
	b.gt	LBB0_2
; %bb.1:
	mov	x3, x2
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_2:
	mov	x19, x3
	ldr	w8, [x1]
	ubfx	w8, w8, #7, #1
	str	w8, [x4]
	ldr	w8, [x1]
	tbnz	w8, #6, LBB0_4
; %bb.3:
	and	w8, w8, #0xffffff3f
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	x0, x1
	bl	_AV_RB16
	and	w8, w0, #0xffff3fff
	mov	w0, #2
LBB0_5:
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid %d bytes packet\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_mpa_robust_parse_rtp_header
.subsections_via_symbols
