	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svq3_parse_packet
_svq3_parse_packet:                     ## @svq3_parse_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	16(%rbp), %r12d
	cmpl	$1, %r12d
	jg	LBB0_2
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r9, %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	(%r9), %r14d
	addq	$8, %rbx
	leal	-2(%r12), %edx
	testb	$64, %r14b
	jne	LBB0_3
## %bb.7:
	movq	%rcx, %r15
	movq	%rsi, %r13
	testb	$32, %r14b
	je	LBB0_10
## %bb.8:
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	leaq	4(%r13), %r12
	movq	%r12, %rdi
	callq	_ffio_free_dyn_buf
	movq	%r12, %rdi
	callq	_avio_open_dyn_buf
	testl	%eax, %eax
	js	LBB0_14
## %bb.9:
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	(%r8), %eax
	movl	%eax, (%r13)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_10:
	movl	4(%r13), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.11:
	movq	%r8, %r12
	movq	%rbx, %rsi
	callq	_avio_write
	testb	$16, %r14b
	je	LBB0_6
## %bb.12:
	leaq	4(%r13), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ff_rtp_finalize_packet
	testl	%eax, %eax
	js	LBB0_14
## %bb.13:
	movl	(%r13), %eax
	movl	%eax, (%r12)
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_3:
	movl	%edx, %r15d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %rdi
	addq	$8, %rdi
	callq	_av_freep
	movq	8(%r14), %rdi
	movq	$0, 16(%rdi)
	cmpl	$4, %r12d
	jb	LBB0_1
## %bb.4:
	addl	$6, %r12d
	movl	%r12d, %esi
	callq	_ff_alloc_extradata
	testq	%rax, %rax
	jne	LBB0_1
## %bb.5:
	movq	8(%r14), %rax
	movq	8(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_memcpy
	movq	8(%r14), %rax
	movq	8(%rax), %rdi
	addq	$4, %rdi
	movl	%r15d, %esi
	callq	_AV_WB32
	movq	8(%r14), %rax
	movq	8(%rax), %rdi
	addq	$8, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_memcpy
	movq	_AV_CODEC_ID_SVQ3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
LBB0_6:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SEQH"

	.comm	_AV_CODEC_ID_SVQ3,4,2           ## @AV_CODEC_ID_SVQ3
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_svq3_parse_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svq3_parse_packet
_svq3_parse_packet:                     ; @svq3_parse_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	cmp	w6, #1
	b.gt	LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_2:
	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
	add	sp, sp, #96
	ret
LBB0_3:
	mov	x25, x6
	mov	x20, x5
	mov	x19, x2
	ldr	w26, [x20], #8
	sub	w21, w6, #2
	tbnz	w26, #6, LBB0_11
; %bb.4:
	mov	x22, x4
	mov	x24, x3
	mov	x23, x1
	tbz	w26, #5, LBB0_7
; %bb.5:
	add	x25, x23, #4
	mov	x0, x25
	bl	_ffio_free_dyn_buf
	mov	x0, x25
	bl	_avio_open_dyn_buf
	tbnz	w0, #31, LBB0_2
; %bb.6:
	ldr	w8, [x22]
	str	w8, [x23]
LBB0_7:
	mov	x25, x23
	ldr	w0, [x25, #4]!
	cbz	w0, LBB0_1
; %bb.8:
	mov	x1, x20
	mov	x2, x21
	bl	_avio_write
	tbz	w26, #4, LBB0_14
; %bb.9:
	ldr	w2, [x19]
	mov	x0, x24
	mov	x1, x25
	bl	_ff_rtp_finalize_packet
	tbnz	w0, #31, LBB0_2
; %bb.10:
	mov	w0, #0
	ldr	w8, [x23]
	str	w8, [x22]
	b	LBB0_2
LBB0_11:
	ldr	x8, [x19, #8]
	add	x0, x8, #8
	bl	_av_freep
	ldr	x0, [x19, #8]
	str	xzr, [x0, #16]
	cmp	w25, #4
	b.lo	LBB0_1
; %bb.12:
	add	w1, w25, #6
	bl	_ff_alloc_extradata
	cbnz	x0, LBB0_1
; %bb.13:
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #8]
	mov	w8, #4
Lloh3:
	adrp	x9, l_.str@PAGE
Lloh4:
	add	x9, x9, l_.str@PAGEOFF
	stp	x9, x8, [sp]
	bl	_memcpy
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	add	x0, x8, #4
	mov	x1, x21
	bl	_AV_WB32
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	add	x0, x8, #8
	stp	x20, x21, [sp]
	bl	_memcpy
Lloh5:
	adrp	x8, _AV_CODEC_ID_SVQ3@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_CODEC_ID_SVQ3@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	str	w8, [x9]
LBB0_14:
Lloh8:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh10:
	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
	add	sp, sp, #96
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SEQH"

	.comm	_AV_CODEC_ID_SVQ3,4,2           ; @AV_CODEC_ID_SVQ3
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_svq3_parse_packet
.subsections_via_symbols
