	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dv_handle_packet
_dv_handle_packet:                      ## @dv_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	%r8, %r14
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	movl	32(%rbp), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	16(%rbp), %ebx
	leaq	8(%rsi), %r12
	cmpq	$0, 8(%rsi)
	je	LBB0_3
## %bb.1:
	movq	(%r15), %rax
	cmpq	(%r14), %rax
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	callq	_ffio_free_dyn_buf
	movq	-56(%rbp), %r9                  ## 8-byte Reload
LBB0_3:
	testl	%ebx, %ebx
	jle	LBB0_4
## %bb.5:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	jne	LBB0_8
## %bb.6:
	movq	%r9, %r13
	movq	%r12, %rdi
	callq	_avio_open_dyn_buf
	testl	%eax, %eax
	js	LBB0_10
## %bb.7:
	movq	(%r14), %rax
	movq	%rax, (%r15)
	movq	8(%r15), %rdi
	movq	%r13, %r9
LBB0_8:
	movq	%r9, %rsi
	movl	%ebx, %edx
	callq	_avio_write
	movq	_RTP_FLAG_MARKER@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_ff_rtp_finalize_packet
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
	jmp	LBB0_10
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %ecx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too short RTP/DV packet, got %d bytes\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_RTP_FLAG_MARKER,4,2            ## @RTP_FLAG_MARKER
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_dv_handle_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dv_handle_packet
_dv_handle_packet:                      ; @dv_handle_packet
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	mov	x23, x5
	mov	x24, x4
	mov	x20, x3
	mov	x21, x2
	mov	x25, x1
	mov	x26, x0
	ldr	w27, [x29, #16]
	mov	x22, x1
	ldr	x8, [x22, #8]!
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x25]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x22
	bl	_ffio_free_dyn_buf
LBB0_3:
	cmp	w19, #0
	b.le	LBB0_9
; %bb.4:
	ldr	x0, [x22]
	cbnz	x0, LBB0_7
; %bb.5:
	mov	x0, x22
	bl	_avio_open_dyn_buf
	tbnz	w0, #31, LBB0_10
; %bb.6:
	ldr	x8, [x24]
	str	x8, [x25]
	ldr	x0, [x25, #8]
LBB0_7:
	mov	x1, x23
	mov	x2, x19
	bl	_avio_write
Lloh0:
	adrp	x8, _RTP_FLAG_MARKER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTP_FLAG_MARKER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w27
	b.eq	LBB0_11
; %bb.8:
	ldr	w2, [x21]
	mov	x0, x20
	mov	x1, x22
	bl	_ff_rtp_finalize_packet
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	b	LBB0_10
LBB0_9:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x26
	mov	x3, x19
	bl	_av_log
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_10:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh11:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too short RTP/DV packet, got %d bytes\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_RTP_FLAG_MARKER,4,2            ; @RTP_FLAG_MARKER
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_dv_handle_packet
.subsections_via_symbols
