	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc2hq_handle_frame_fragment
_vc2hq_handle_frame_fragment:           ## @vc2hq_handle_frame_fragment
	.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	%rdi, %r12
	movl	16(%rbp), %r13d
	cmpl	$15, %r13d
	jle	LBB0_1
## %bb.2:
	movq	%r9, %rbx
	movq	%rsi, %r14
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	24(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	16(%r9), %rdi
	callq	_AV_RB32
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	48(%rbx), %rdi
	callq	_AV_RB16
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	56(%rbx), %rdi
	callq	_AV_RB16
	movq	%rax, %r15
	leaq	16(%r14), %rdx
	cmpq	$0, 16(%r14)
	je	LBB0_5
## %bb.3:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, (%r14)
	je	LBB0_5
## %bb.4:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ffio_free_dyn_buf
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
LBB0_5:
	movl	%r13d, %eax
	testq	%r15, %r15
	je	LBB0_6
## %bb.13:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rcx
	addq	$20, %rcx
	cmpq	%rax, %rcx
	jg	LBB0_1
## %bb.14:
	movq	(%rdx), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.16:
	movq	%rdx, %r12
	addq	$80, %rbx
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_avio_write
	addq	%r15, 8(%r14)
	movq	_RTP_FLAG_MARKER@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_12
## %bb.17:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ff_rtp_finalize_packet
	testl	%eax, %eax
	js	LBB0_19
## %bb.18:
	movq	(%rbx), %rsi
	movq	_DIRAC_PCODE_PICTURE_HQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%r14), %rcx
	movq	%r14, %rdi
	callq	_fill_parse_info_header
	movq	(%rbx), %rdi
	addq	$52, %rdi
	movq	(%r14), %rsi
	callq	_AV_WB32
	movq	$0, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_6:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rcx
	addq	$16, %rcx
	cmpq	%rax, %rcx
	jle	LBB0_7
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_av_log
LBB0_15:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_19:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%rdx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_11
## %bb.8:
	movq	%rdx, %rdi
	movq	%rdx, %r15
	callq	_avio_open_dyn_buf
	testl	%eax, %eax
	js	LBB0_19
## %bb.9:
	movq	(%r15), %rdi
	movq	_DIRAC_DATA_UNIT_HEADER_SIZE@GOTPCREL(%rip), %r15
	movq	_DIRAC_PIC_NR_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_avio_seek
	testl	%eax, %eax
	js	LBB0_19
## %bb.10:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r14)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, 24(%r14)
	movq	(%r12), %rax
	addq	(%r15), %rax
	movq	%rax, 8(%r14)
	movq	16(%r14), %rdi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_11:
	addq	$64, %rbx
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_avio_write
	addq	%r15, 8(%r14)
LBB0_12:
	movq	_EAGAIN@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	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too short RTP/VC2hq packet, got %d bytes\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Dropping buffered RTP/VC2hq packet fragments - non-continuous picture numbers\n"

	.comm	_DIRAC_DATA_UNIT_HEADER_SIZE,8,3 ## @DIRAC_DATA_UNIT_HEADER_SIZE
	.comm	_DIRAC_PIC_NR_SIZE,8,3          ## @DIRAC_PIC_NR_SIZE
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_RTP_FLAG_MARKER,4,2            ## @RTP_FLAG_MARKER
	.comm	_DIRAC_PCODE_PICTURE_HQ,4,2     ## @DIRAC_PCODE_PICTURE_HQ
	.no_dead_strip	_vc2hq_handle_frame_fragment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc2hq_handle_frame_fragment
_vc2hq_handle_frame_fragment:           ; @vc2hq_handle_frame_fragment
	.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	x27, x6
	mov	x24, x0
	cmp	w6, #15
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	b	LBB0_13
LBB0_2:
	mov	x25, x7
	mov	x20, x5
	mov	x22, x3
	mov	x26, x2
	mov	x28, x1
	str	x4, [sp, #16]                   ; 8-byte Folded Spill
	add	x0, x5, #16
	bl	_AV_RB32
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	add	x0, x20, #48
	bl	_AV_RB16
	mov	x21, x0
	add	x0, x20, #56
	bl	_AV_RB16
	mov	x23, x0
	mov	x19, x28
	ldr	x8, [x19, #16]!
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x28]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_av_log
	mov	x0, x19
	bl	_ffio_free_dyn_buf
LBB0_5:
	mov	w8, w27
	cbz	x23, LBB0_11
; %bb.6:
	add	x9, x21, #20
	cmp	x9, x8
	b.gt	LBB0_12
; %bb.7:
	ldr	x0, [x19]
	cbz	x0, LBB0_14
; %bb.8:
	add	x1, x20, #80
	mov	x2, x21
	bl	_avio_write
	ldr	x8, [x28, #8]
	add	x8, x8, x21
	str	x8, [x28, #8]
Lloh8:
	adrp	x8, _RTP_FLAG_MARKER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RTP_FLAG_MARKER@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_21
; %bb.9:
	ldr	w2, [x26]
	mov	x0, x22
	mov	x1, x19
	bl	_ff_rtp_finalize_packet
	tbnz	w0, #31, LBB0_15
; %bb.10:
	ldr	x1, [x22]
Lloh11:
	adrp	x8, _DIRAC_PCODE_PICTURE_HQ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DIRAC_PCODE_PICTURE_HQ@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldr	x3, [x28, #8]
	mov	x0, x28
	bl	_fill_parse_info_header
	ldr	x8, [x22]
	add	x0, x8, #52
	ldr	x1, [x28]
	bl	_AV_WB32
	mov	w0, #0
	str	xzr, [x28, #8]
	b	LBB0_15
LBB0_11:
	add	x9, x21, #16
	cmp	x9, x8
	b.le	LBB0_16
LBB0_12:
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
LBB0_13:
	str	x27, [sp]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	bl	_av_log
LBB0_14:
Lloh19:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
LBB0_15:
	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_16:
	ldr	x0, [x19]
	cbnz	x0, LBB0_20
; %bb.17:
	mov	x0, x19
	bl	_avio_open_dyn_buf
	tbnz	w0, #31, LBB0_15
; %bb.18:
	ldr	x0, [x19]
Lloh22:
	adrp	x19, _DIRAC_DATA_UNIT_HEADER_SIZE@GOTPAGE
Lloh23:
	ldr	x19, [x19, _DIRAC_DATA_UNIT_HEADER_SIZE@GOTPAGEOFF]
Lloh24:
	adrp	x22, _DIRAC_PIC_NR_SIZE@GOTPAGE
Lloh25:
	ldr	x22, [x22, _DIRAC_PIC_NR_SIZE@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, x8
Lloh26:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	bl	_avio_seek
	tbnz	w0, #31, LBB0_15
; %bb.19:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	x8, [x28]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	str	x8, [x28, #24]
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x8, x9, x8
	str	x8, [x28, #8]
	ldr	x0, [x28, #16]
LBB0_20:
	add	x1, x20, #64
	mov	x2, x21
	bl	_avio_write
	ldr	x8, [x28, #8]
	add	x8, x8, x21
	str	x8, [x28, #8]
LBB0_21:
Lloh29:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh31:
	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
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.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/VC2hq packet, got %d bytes\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Dropping buffered RTP/VC2hq packet fragments - non-continuous picture numbers\n"

	.comm	_DIRAC_DATA_UNIT_HEADER_SIZE,8,3 ; @DIRAC_DATA_UNIT_HEADER_SIZE
	.comm	_DIRAC_PIC_NR_SIZE,8,3          ; @DIRAC_PIC_NR_SIZE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_RTP_FLAG_MARKER,4,2            ; @RTP_FLAG_MARKER
	.comm	_DIRAC_PCODE_PICTURE_HQ,4,2     ; @DIRAC_PCODE_PICTURE_HQ
	.no_dead_strip	_vc2hq_handle_frame_fragment
.subsections_via_symbols
