	.file	"extr_movenc.c_mov_write_single_packet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mov_write_single_packet, @function
mov_write_single_packet:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r15, QWORD PTR 16[rdi]
	movsx	r13, DWORD PTR 8[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rsi]
	lea	rbx, [rax+rax*4]
	sal	rbx, 4
	add	rbx, QWORD PTR 40[r15]
	mov	r12, QWORD PTR 72[rbx]
	call	check_pkt@PLT
	test	eax, eax
	js	.L1
	mov	esi, DWORD PTR [r15]
	mov	edi, DWORD PTR FF_MOV_FLAG_FRAG_DISCONT[rip]
	test	esi, edi
	je	.L3
	mov	eax, DWORD PTR [r14]
	test	eax, eax
	jle	.L6
	sub	eax, 1
	mov	rdx, QWORD PTR 40[r15]
	lea	rcx, [rax+rax*4]
	sal	rcx, 4
	lea	rax, 80[rdx]
	add	rcx, rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L60:
	add	rax, 80
.L5:
	mov	DWORD PTR [rdx], 1
	mov	rdx, rax
	cmp	rcx, rax
	jne	.L60
.L6:
	not	edi
	and	esi, edi
	mov	DWORD PTR [r15], esi
.L3:
	test	DWORD PTR FF_MOV_FLAG_NEGATIVE_CTS_OFFSETS[rip], esi
	je	.L7
	mov	rax, QWORD PTR 8[rbx]
	cmp	rax, QWORD PTR AV_NOPTS_VALUE[rip]
	mov	rdx, QWORD PTR 24[rbp]
	je	.L8
	add	rax, rdx
.L9:
	mov	QWORD PTR 24[rbp], rax
.L7:
	mov	rax, QWORD PTR 72[rbx]
	mov	rax, QWORD PTR [rax]
	cmp	rax, QWORD PTR AV_CODEC_ID_MP4ALS[rip]
	je	.L10
	cmp	rax, QWORD PTR AV_CODEC_ID_AAC[rip]
	je	.L10
	cmp	rax, QWORD PTR AV_CODEC_ID_AV1[rip]
	je	.L10
	cmp	rax, QWORD PTR AV_CODEC_ID_FLAC[rip]
	je	.L10
.L58:
	mov	eax, DWORD PTR 8[rbp]
	test	eax, eax
	je	.L18
.L19:
	mov	rax, QWORD PTR 56[rbx]
	test	rax, rax
	je	.L21
	mov	rdx, QWORD PTR 0[rbp]
	movsx	rcx, DWORD PTR [r14]
	xor	eax, eax
	cmp	rdx, rcx
	jb	.L61
.L21:
	mov	rdx, QWORD PTR 8[r15]
	cmp	rdx, rax
	jg	.L31
	test	rdx, rdx
	jne	.L22
.L31:
	mov	rdx, QWORD PTR 16[r15]
	test	rdx, rdx
	je	.L24
	add	r13, QWORD PTR 24[r15]
	cmp	rdx, r13
	jg	.L24
.L22:
	cmp	QWORD PTR 32[r15], rax
	jg	.L26
.L66:
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, r14
	mov	rdx, rax
	sub	rdx, QWORD PTR 16[rbx]
	mov	QWORD PTR 32[rbx], rdx
	mov	rdx, QWORD PTR 16[rbp]
	cmp	rdx, QWORD PTR AV_NOPTS_VALUE[rip]
	mov	DWORD PTR 48[rbx], 1
	cmovne	rax, rdx
	xor	esi, esi
	mov	QWORD PTR 40[rbx], rax
	call	mov_auto_flush_fragment@PLT
.L26:
	mov	rsi, rbp
	mov	rdi, r14
	call	ff_mov_write_packet@PLT
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L62
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, DWORD PTR AV_PKT_DATA_NEW_EXTRADATA[rip]
	lea	rdx, 20[rsp]
	mov	rdi, rbp
	mov	DWORD PTR 20[rsp], 0
	call	av_packet_get_side_data@PLT
	mov	r8, rax
	test	rax, rax
	je	.L58
	movsx	rdx, DWORD PTR 20[rsp]
	test	edx, edx
	jle	.L58
	cmp	edx, DWORD PTR 8[r12]
	je	.L63
.L15:
	mov	rdi, QWORD PTR AV_INPUT_BUFFER_PADDING_SIZE[rip]
	mov	QWORD PTR [rsp], r8
	add	rdi, rdx
	call	av_mallocz@PLT
	mov	r8, QWORD PTR [rsp]
	test	rax, rax
	je	.L64
	mov	rdi, QWORD PTR 24[r12]
	mov	QWORD PTR [rsp], r8
	mov	QWORD PTR 8[rsp], rax
	call	av_free@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	r8, QWORD PTR [rsp]
	mov	edx, DWORD PTR 20[rsp]
	mov	QWORD PTR 24[r12], r9
	mov	rsi, r8
	mov	rdi, r9
	call	memcpy@PLT
	mov	eax, DWORD PTR 20[rsp]
	mov	DWORD PTR 8[r12], eax
	mov	eax, DWORD PTR 8[rbp]
	test	eax, eax
	jne	.L19
	mov	DWORD PTR 4[r15], 1
.L18:
	mov	rdx, QWORD PTR AV_NOPTS_VALUE[rip]
	xor	eax, eax
	cmp	QWORD PTR 16[rbx], rdx
	jne	.L1
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L1
	mov	rcx, QWORD PTR 24[rbp]
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR 16[rbx], rcx
	cmp	rdx, rax
	je	.L20
	sub	rax, rcx
	mov	QWORD PTR 24[rbx], rax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edx, DWORD PTR [r15]
	test	DWORD PTR FF_MOV_FLAG_FRAG_KEYFRAME[rip], edx
	je	.L25
	mov	rcx, QWORD PTR AVMEDIA_TYPE_VIDEO[rip]
	cmp	QWORD PTR 16[r12], rcx
	je	.L65
.L25:
	test	DWORD PTR FF_MOV_FLAG_FRAG_EVERY_FRAME[rip], edx
	je	.L26
	cmp	QWORD PTR 32[r15], rax
	jg	.L26
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L63:
	mov	rsi, QWORD PTR 24[r12]
	mov	rdi, rax
	mov	QWORD PTR [rsp], rax
	call	memcmp@PLT
	mov	r8, QWORD PTR [rsp]
	test	rax, rax
	je	.L58
	movsx	rdx, DWORD PTR 20[rsp]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L61:
	mov	rax, QWORD PTR 8[r14]
	mov	rdi, QWORD PTR 24[rbp]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	rdx, QWORD PTR 64[rbx]
	mov	esi, DWORD PTR [rax]
	sub	rdi, QWORD PTR [rdx]
	mov	edx, DWORD PTR AV_TIME_BASE_Q[rip]
	call	av_rescale_q@PLT
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR 16[rbp]
	mov	rcx, rax
	sub	rcx, rdx
	mov	QWORD PTR 8[rbx], rcx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L65:
	cmp	QWORD PTR 56[rbx], 0
	je	.L25
	mov	ecx, DWORD PTR 32[rbp]
	test	DWORD PTR AV_PKT_FLAG_KEY[rip], ecx
	jne	.L22
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L64:
	mov	edi, DWORD PTR ENOMEM[rip]
	call	AVERROR@PLT
	jmp	.L1
.L20:
	mov	QWORD PTR 24[rbx], 0
	xor	eax, eax
	jmp	.L1
.L62:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mov_write_single_packet, .-mov_write_single_packet
	.comm	FF_MOV_FLAG_NEGATIVE_CTS_OFFSETS,4,4
	.comm	FF_MOV_FLAG_FRAG_KEYFRAME,4,4
	.comm	FF_MOV_FLAG_FRAG_EVERY_FRAME,4,4
	.comm	FF_MOV_FLAG_FRAG_DISCONT,4,4
	.comm	ENOMEM,4,4
	.comm	AV_TIME_BASE_Q,4,4
	.comm	AV_PKT_FLAG_KEY,4,4
	.comm	AV_PKT_DATA_NEW_EXTRADATA,4,4
	.comm	AV_NOPTS_VALUE,8,8
	.comm	AV_INPUT_BUFFER_PADDING_SIZE,8,8
	.comm	AV_CODEC_ID_MP4ALS,8,8
	.comm	AV_CODEC_ID_FLAC,8,8
	.comm	AV_CODEC_ID_AV1,8,8
	.comm	AV_CODEC_ID_AAC,8,8
	.comm	AVMEDIA_TYPE_VIDEO,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_movenc.c_mov_write_single_packet.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mov_write_single_packet, %function
mov_write_single_packet:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, [r0, #8]
	ldr	r5, [r1]
	ldr	r9, [r7, #24]
	ldr	r3, .L65
	add	r5, r5, r5, lsl #2
	sub	sp, sp, #20
	add	r8, r9, r5, lsl #3
	mov	r6, r0
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r10, [r8, #36]
	ldr	fp, [r1, #4]
	bl	check_pkt
	cmp	r0, #0
	blt	.L1
	ldr	r2, .L65+4
	ldr	r0, [r7]
	ldr	lr, [r2]
	lsl	r5, r5, #3
	tst	r0, lr
	beq	.L3
	ldr	r1, [r6]
	cmp	r1, #0
	ble	.L6
	mov	ip, #1
	ldr	r2, [r7, #24]
	add	r1, r1, r1, lsl #2
	add	r1, r2, r1, lsl #3
.L5:
	str	ip, [r2], #40
	cmp	r1, r2
	bne	.L5
.L6:
	bic	r0, r0, lr
	str	r0, [r7]
.L3:
	ldr	r2, .L65+8
	ldr	r2, [r2]
	tst	r0, r2
	bne	.L59
.L7:
	ldr	r2, [r8, #36]
	ldr	r1, .L65+12
	ldr	r2, [r2]
	ldr	r1, [r1]
	cmp	r2, r1
	beq	.L10
	ldr	r1, .L65+16
	ldr	r1, [r1]
	cmp	r2, r1
	beq	.L10
	ldr	r1, .L65+20
	ldr	r1, [r1]
	cmp	r2, r1
	beq	.L10
	ldr	r1, .L65+24
	ldr	r1, [r1]
	cmp	r2, r1
	beq	.L10
.L14:
	ldr	r2, [r4, #4]
	cmp	r2, #0
	beq	.L17
.L18:
	ldr	r0, [r8, #28]
	cmp	r0, #0
	beq	.L20
	ldr	r2, [r4]
	ldr	r1, [r6]
	cmp	r2, r1
	movcs	r0, #0
	bcc	.L60
.L20:
	ldr	r2, [r7, #8]
	cmp	r2, r0
	movgt	r1, #0
	movle	r1, #1
	cmp	r2, #0
	moveq	r1, #0
	cmp	r1, #0
	bne	.L21
	ldr	r2, [r7, #12]
	cmp	r2, #0
	beq	.L22
	ldr	r1, [r7, #16]
	add	fp, fp, r1
	cmp	r2, fp
	bgt	.L22
.L21:
	ldr	r2, [r7, #20]
	cmp	r2, r0
	bgt	.L24
.L64:
	ldr	r1, .L65+28
	ldr	r0, [r4, #8]
	ldr	ip, [r1]
	ldr	r2, [r4, #12]
	ldr	r1, [r8, #8]
	cmp	r0, ip
	sub	r1, r2, r1
	movne	r2, r0
	mov	r0, #1
	str	r1, [r8, #16]
	str	r0, [r8, #24]
	mov	r1, #0
	mov	r0, r6
	str	r2, [r8, #20]
	bl	mov_auto_flush_fragment
.L24:
	mov	r1, r4
	mov	r0, r6
	bl	ff_mov_write_packet
.L1:
	ldr	r3, .L65
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L61
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	mov	ip, #0
	ldr	r1, .L65+32
	mov	r0, r4
	ldr	r1, [r1]
	add	r2, sp, #8
	str	ip, [sp, #8]
	bl	av_packet_get_side_data
	subs	r3, r0, #0
	str	r3, [sp]
	beq	.L14
	ldr	r2, [sp, #8]
	cmp	r2, #0
	ble	.L14
	ldr	r1, [r10, #4]
	cmp	r2, r1
	bne	.L15
	ldr	r1, [r10, #12]
	str	r2, [sp, #4]
	bl	memcmp
	cmp	r0, #0
	ldr	r2, [sp, #4]
	beq	.L14
.L15:
	ldr	r1, .L65+36
	ldr	r0, [r1]
	add	r0, r2, r0
	bl	av_mallocz
	subs	r2, r0, #0
	beq	.L62
	ldr	r0, [r10, #12]
	str	r2, [sp, #4]
	bl	av_free
	ldr	r2, [sp, #4]
	ldr	r1, [sp]
	mov	r0, r2
	str	r2, [r10, #12]
	ldr	r2, [sp, #8]
	bl	memcpy
	ldr	r2, [r4, #4]
	ldr	r1, [sp, #8]
	cmp	r2, #0
	moveq	r2, #1
	str	r1, [r10, #4]
	streq	r2, [r7, #4]
	bne	.L18
.L17:
	ldr	r1, .L65+28
	ldr	r2, [r8, #8]
	ldr	r1, [r1]
	cmp	r2, r1
	movne	r0, #0
	bne	.L1
	ldr	r0, [r9, r5]
	cmp	r0, #0
	beq	.L1
	ldr	r1, [r4, #8]
	ldr	r0, [r4, #12]
	cmp	r2, r1
	str	r0, [r8, #8]
	moveq	r0, #0
	subne	r1, r1, r0
	strne	r1, [r8, #12]
	movne	r0, #0
	streq	r0, [r8, #12]
	b	.L1
.L59:
	ldr	r1, .L65+28
	ldr	r2, [r8, #4]
	ldr	r0, [r1]
	ldr	r1, [r4, #12]
	cmp	r2, r0
	ldreq	r2, [r4, #8]
	addne	r2, r2, r1
	subeq	r1, r2, r1
	streq	r1, [r8, #4]
	str	r2, [r4, #12]
	b	.L7
.L22:
	ldr	r1, .L65+40
	ldr	r2, [r7]
	ldr	r1, [r1]
	tst	r2, r1
	beq	.L23
	ldr	r1, .L65+44
	ldr	ip, [r10, #8]
	ldr	r1, [r1]
	cmp	ip, r1
	beq	.L63
.L23:
	ldr	r1, .L65+48
	ldr	r1, [r1]
	tst	r2, r1
	beq	.L24
	ldr	r2, [r7, #20]
	cmp	r2, r0
	bgt	.L24
	b	.L64
.L60:
	ldr	r1, [r6, #4]
	ldr	r0, [r8, #32]
	ldr	r1, [r1, r2, lsl #2]
	ldr	ip, [r4, #12]
	ldr	r0, [r0]
	ldr	r2, .L65+52
	ldr	r1, [r1]
	ldr	r2, [r2]
	sub	r0, ip, r0
	bl	av_rescale_q
	b	.L20
.L63:
	ldr	r1, [r8, #28]
	cmp	r1, #0
	beq	.L23
	ldr	r1, .L65+56
	ldr	ip, [r4, #16]
	ldr	r1, [r1]
	tst	ip, r1
	bne	.L21
	b	.L23
.L62:
	ldr	r3, .L65+60
	ldr	r0, [r3]
	bl	AVERROR
	b	.L1
.L61:
	bl	__stack_chk_fail
.L66:
	.align	2
.L65:
	.word	.LC0
	.word	FF_MOV_FLAG_FRAG_DISCONT
	.word	FF_MOV_FLAG_NEGATIVE_CTS_OFFSETS
	.word	AV_CODEC_ID_MP4ALS
	.word	AV_CODEC_ID_AAC
	.word	AV_CODEC_ID_AV1
	.word	AV_CODEC_ID_FLAC
	.word	AV_NOPTS_VALUE
	.word	AV_PKT_DATA_NEW_EXTRADATA
	.word	AV_INPUT_BUFFER_PADDING_SIZE
	.word	FF_MOV_FLAG_FRAG_KEYFRAME
	.word	AVMEDIA_TYPE_VIDEO
	.word	FF_MOV_FLAG_FRAG_EVERY_FRAME
	.word	AV_TIME_BASE_Q
	.word	AV_PKT_FLAG_KEY
	.word	ENOMEM
	.size	mov_write_single_packet, .-mov_write_single_packet
	.comm	FF_MOV_FLAG_NEGATIVE_CTS_OFFSETS,4,4
	.comm	FF_MOV_FLAG_FRAG_KEYFRAME,4,4
	.comm	FF_MOV_FLAG_FRAG_EVERY_FRAME,4,4
	.comm	FF_MOV_FLAG_FRAG_DISCONT,4,4
	.comm	ENOMEM,4,4
	.comm	AV_TIME_BASE_Q,4,4
	.comm	AV_PKT_FLAG_KEY,4,4
	.comm	AV_PKT_DATA_NEW_EXTRADATA,4,4
	.comm	AV_NOPTS_VALUE,4,4
	.comm	AV_INPUT_BUFFER_PADDING_SIZE,4,4
	.comm	AV_CODEC_ID_MP4ALS,4,4
	.comm	AV_CODEC_ID_FLAC,4,4
	.comm	AV_CODEC_ID_AV1,4,4
	.comm	AV_CODEC_ID_AAC,4,4
	.comm	AVMEDIA_TYPE_VIDEO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
