	.file	"extr_vc2enc.c_encode_frame.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Error getting output packet.\n"
	.text
	.p2align 4
	.type	encode_frame, @function
encode_frame:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, rdx
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, r9d
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	mov	rdx, QWORD PTR 16[rdi]
	mov	r8, QWORD PTR 24[rdi]
	mov	rsi, QWORD PTR [rax]
	mov	rdi, QWORD PTR 8[rax]
	xor	eax, eax
.L2:
	lea	rcx, [r8+rax]
	mov	DWORD PTR [rdx+rax*8], r14d
	mov	QWORD PTR 16[rdx+rax*8], rcx
	mov	ecx, DWORD PTR [rdi+rax]
	mov	QWORD PTR 24[rdx+rax*8], rbp
	mov	DWORD PTR 8[rdx+rax*8], ecx
	mov	ecx, DWORD PTR [rsi+rax]
	mov	DWORD PTR 4[rdx+rax*8], ecx
	add	rax, 4
	cmp	rax, 12
	jne	.L2
	mov	rax, QWORD PTR 8[rbp]
	xor	ecx, ecx
	mov	esi, DWORD PTR dwt_plane[rip]
	mov	r9d, 4
	mov	r8d, 3
	mov	rdi, rax
	call	[QWORD PTR [rax]]
	mov	rdi, rbp
	call	calc_slice_sizes@PLT
	cmp	r14d, 1
	jle	.L13
.L3:
	mov	esi, DWORD PTR DIRAC_PCODE_SEQ_HEADER[rip]
	mov	rdi, rbp
	call	encode_parse_info@PLT
	mov	rdi, rbp
	call	encode_seq_header@PLT
	test	r12, r12
	je	.L6
	mov	esi, DWORD PTR DIRAC_PCODE_AUX[rip]
	mov	rdi, rbp
	call	encode_parse_info@PLT
	lea	rdi, 4[rbp]
	mov	edx, 1
	mov	rsi, r12
	call	avpriv_put_string@PLT
.L6:
	mov	esi, DWORD PTR DIRAC_PCODE_PICTURE_HQ[rip]
	mov	rdi, rbp
	xor	r13d, r13d
	call	encode_parse_info@PLT
	mov	rdi, rbp
	call	encode_picture_start@PLT
	mov	rdi, rbp
	call	encode_slices@PLT
	mov	esi, DWORD PTR DIRAC_PCODE_END_SEQ[rip]
	mov	rdi, rbp
	call	encode_parse_info@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	ecx, DWORD PTR 0[rbp]
	lea	edx, [rax+r13]
	mov	rdi, QWORD PTR 8[rbp]
	mov	rsi, rbx
	sal	edx, cl
	mov	ecx, edx
	call	ff_alloc_packet2@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L14
	mov	esi, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR [rbx]
	lea	rdi, 4[rbp]
	call	init_put_bits@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC0[rip]
	call	av_log@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	encode_frame, .-encode_frame
	.comm	dwt_plane,4,4
	.comm	DIRAC_PCODE_SEQ_HEADER,4,4
	.comm	DIRAC_PCODE_PICTURE_HQ,4,4
	.comm	DIRAC_PCODE_END_SEQ,4,4
	.comm	DIRAC_PCODE_AUX,4,4
	.comm	AV_LOG_ERROR,4,4
	.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_vc2enc.c_encode_frame.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error getting output packet.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	encode_frame, %function
encode_frame:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r0, r2
	ldr	r2, [r4, #12]
	mov	r7, r1
	mov	ip, r2
	ldr	lr, [r0]
	mov	r6, r3
	sub	sp, sp, #8
	ldr	r3, [r0, #4]
	ldr	r5, [sp, #36]
	ldr	r0, [r4, #16]
	add	r8, r2, #60
	sub	r3, r3, #4
	sub	lr, lr, #4
.L2:
	str	r5, [ip]
	ldr	r1, [r3, #4]!
	add	ip, ip, #20
	str	r1, [ip, #-12]
	ldr	r1, [lr, #4]!
	str	r4, [ip, #-4]
	str	r0, [ip, #-8]
	str	r1, [ip, #-16]
	cmp	ip, r8
	add	r0, r0, #4
	bne	.L2
	mov	ip, #4
	mov	r1, #3
	ldr	r0, [r4, #8]
	stm	sp, {r1, ip}
	ldr	r3, .L15
	ldr	r8, [r0]
	ldr	r1, [r3]
	mov	r3, #0
	blx	r8
	mov	r0, r4
	bl	calc_slice_sizes
	cmp	r5, #1
	ble	.L13
.L3:
	ldr	r3, .L15+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	encode_parse_info
	mov	r0, r4
	bl	encode_seq_header
	cmp	r6, #0
	beq	.L6
	ldr	r3, .L15+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	encode_parse_info
	mov	r1, r6
	mov	r2, #1
	add	r0, r4, #4
	bl	avpriv_put_string
.L6:
	mov	r5, #0
	ldr	r3, .L15+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	encode_parse_info
	mov	r0, r4
	bl	encode_picture_start
	mov	r0, r4
	bl	encode_slices
	ldr	r3, .L15+16
	mov	r0, r4
	ldr	r1, [r3]
	bl	encode_parse_info
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r2, [sp, #32]
	ldr	r3, [r4]
	add	r0, r0, r2
	lsl	r3, r0, r3
	mov	r2, r3
	mov	r1, r7
	ldr	r0, [r4, #8]
	bl	ff_alloc_packet2
	subs	r5, r0, #0
	bne	.L14
	ldr	r2, [r7]
	ldr	r1, [r7, #4]
	add	r0, r4, #4
	bl	init_put_bits
	b	.L3
.L14:
	ldr	r3, .L15+20
	ldr	r0, [r4, #8]
	ldr	r1, [r3]
	ldr	r2, .L15+24
	bl	av_log
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	.align	2
.L15:
	.word	dwt_plane
	.word	DIRAC_PCODE_SEQ_HEADER
	.word	DIRAC_PCODE_AUX
	.word	DIRAC_PCODE_PICTURE_HQ
	.word	DIRAC_PCODE_END_SEQ
	.word	AV_LOG_ERROR
	.word	.LC0
	.size	encode_frame, .-encode_frame
	.comm	dwt_plane,4,4
	.comm	DIRAC_PCODE_SEQ_HEADER,4,4
	.comm	DIRAC_PCODE_PICTURE_HQ,4,4
	.comm	DIRAC_PCODE_END_SEQ,4,4
	.comm	DIRAC_PCODE_AUX,4,4
	.comm	AV_LOG_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
