	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc2hq_handle_packet
_vc2hq_handle_packet:                   ## @vc2hq_handle_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r10
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	32(%rbp), %r11d
	movl	16(%rbp), %r13d
	cmpq	$0, 24(%rsi)
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	cmpq	(%r8), %rax
	je	LBB0_3
## %bb.2:
	leaq	24(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	movq	%r10, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
	movq	%r11, %r14
	callq	_av_log
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ffio_free_dyn_buf
	movq	%r14, %r11
	movq	%r12, %r8
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r10                 ## 8-byte Reload
	movq	$0, 16(%rbx)
LBB0_3:
	movq	_RTP_VC2HQ_PL_HEADER_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	cmpl	%r13d, %edx
	jle	LBB0_6
## %bb.4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_6:
	movl	12(%r9), %ecx
	xorl	%eax, %eax
	cmpq	$0, 8(%rbx)
	jne	LBB0_8
## %bb.7:
	cmpl	$129, %ecx
	jne	LBB0_5
LBB0_8:
	cmpl	$128, %ecx
	je	LBB0_13
## %bb.9:
	cmpl	$130, %ecx
	je	LBB0_12
## %bb.10:
	cmpl	$129, %ecx
	jne	LBB0_5
## %bb.11:
	leaq	(%r9,%rdx,4), %rcx
	subl	%edx, %r13d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r10, %rdx
	movl	%r13d, %r8d
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vc2hq_handle_sequence_header   ## TAILCALL
LBB0_5:
	addq	$40, %rsp
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r10, %rcx
	pushq	%r11
	pushq	%r13
	callq	_vc2hq_handle_frame_fragment
	addq	$56, %rsp
	jmp	LBB0_14
LBB0_12:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r10, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vc2hq_mark_end_of_sequence     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Dropping buffered RTP/VC2hq packet fragments - non-continuous timestamps\n"

	.comm	_RTP_VC2HQ_PL_HEADER_SIZE,4,2   ## @RTP_VC2HQ_PL_HEADER_SIZE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Too short RTP/VC2hq packet, got %d bytes\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_vc2hq_handle_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc2hq_handle_packet
_vc2hq_handle_packet:                   ; @vc2hq_handle_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x6
	mov	x21, x5
	mov	x25, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	ldr	w26, [x29, #16]
	mov	x27, x1
	ldr	x8, [x27, #24]!
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x23]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	bl	_av_log
	mov	x0, x27
	bl	_ffio_free_dyn_buf
	str	xzr, [x23, #16]
LBB0_3:
Lloh5:
	adrp	x8, _RTP_VC2HQ_PL_HEADER_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RTP_VC2HQ_PL_HEADER_SIZE@GOTPAGEOFF]
Lloh7:
	ldrsw	x8, [x8]
	cmp	w8, w19
	b.le	LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	str	x19, [sp]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_av_log
Lloh13:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_5:
	ldr	w9, [x21, #12]
	ldr	x10, [x23, #8]
	cbnz	x10, LBB0_7
; %bb.6:
	cmp	w9, #129
	b.ne	LBB0_11
LBB0_7:
	cmp	w9, #128
	b.eq	LBB0_13
; %bb.8:
	cmp	w9, #130
	b.eq	LBB0_14
; %bb.9:
	cmp	w9, #129
	b.ne	LBB0_11
; %bb.10:
	add	x3, x21, x8, lsl #2
	sub	w4, w19, w8
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_vc2hq_handle_sequence_header
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	mov	x4, x25
	mov	x5, x21
	mov	x6, x19
	mov	x7, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_vc2hq_handle_frame_fragment
LBB0_14:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_vc2hq_mark_end_of_sequence
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Dropping buffered RTP/VC2hq packet fragments - non-continuous timestamps\n"

	.comm	_RTP_VC2HQ_PL_HEADER_SIZE,4,2   ; @RTP_VC2HQ_PL_HEADER_SIZE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Too short RTP/VC2hq packet, got %d bytes\n"

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