	.file	"extr_movenccenc.c_mov_cenc_end_packet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mov_cenc_end_packet, @function
mov_cenc_end_packet:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR 52[rdi]
	call	av_aes_ctr_increment_iv@PLT
	mov	eax, DWORD PTR 48[rbx]
	test	eax, eax
	je	.L8
	mov	eax, DWORD PTR [rbx]
	cmp	eax, DWORD PTR 4[rbx]
	jl	.L4
	lea	ebp, 1[rax+rax]
	lea	rdi, 40[rbx]
	movsx	rsi, ebp
	call	av_reallocp@PLT
	test	rax, rax
	jne	.L9
	mov	DWORD PTR 4[rbx], ebp
	mov	eax, DWORD PTR [rbx]
.L4:
	mov	rcx, QWORD PTR 40[rbx]
	mov	rdx, QWORD PTR AES_CTR_IV_SIZE[rip]
	movsx	rsi, eax
	add	eax, 1
	add	rdx, QWORD PTR 32[rbx]
	sub	rdx, QWORD PTR 16[rbx]
	mov	QWORD PTR [rcx+rsi*8], rdx
	mov	esi, DWORD PTR 8[rbx]
	mov	DWORD PTR [rbx], eax
	mov	rdi, QWORD PTR 16[rbx]
	add	rdi, QWORD PTR 24[rbx]
	call	AV_WB16@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	add	DWORD PTR [rbx], 1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	AVERROR@PLT
	.cfi_endproc
.LFE0:
	.size	mov_cenc_end_packet, .-mov_cenc_end_packet
	.comm	ENOMEM,4,4
	.comm	AES_CTR_IV_SIZE,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_movenccenc.c_mov_cenc_end_packet.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mov_cenc_end_packet, %function
mov_cenc_end_packet:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0, #32]
	bl	av_aes_ctr_increment_iv
	ldr	r3, [r4, #28]
	cmp	r3, #0
	ldr	r3, [r4]
	addeq	r3, r3, #1
	streq	r3, [r4]
	beq	.L1
	ldr	r2, [r4, #4]
	cmp	r3, r2
	blt	.L4
	lsl	r3, r3, #1
	add	r5, r3, #1
	mov	r1, r5
	add	r0, r4, #24
	bl	av_reallocp
	cmp	r0, #0
	bne	.L8
	ldr	r3, [r4]
	str	r5, [r4, #4]
.L4:
	ldr	r1, .L9
	ldr	r2, [r4, #20]
	ldr	r1, [r1]
	ldr	r0, [r4, #12]
	add	r2, r2, r1
	ldr	r1, [r4, #24]
	sub	r2, r2, r0
	str	r2, [r1, r3, lsl #2]
	ldr	r0, [r4, #16]
	ldr	r2, [r4, #12]
	add	r3, r3, #1
	ldr	r1, [r4, #8]
	str	r3, [r4]
	add	r0, r0, r2
	bl	AV_WB16
.L1:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r3, .L9+4
	pop	{r4, r5, r6, lr}
	ldr	r0, [r3]
	b	AVERROR
.L10:
	.align	2
.L9:
	.word	AES_CTR_IV_SIZE
	.word	ENOMEM
	.size	mov_cenc_end_packet, .-mov_cenc_end_packet
	.comm	ENOMEM,4,4
	.comm	AES_CTR_IV_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
