	.file	"extr_videotoolboxenc.c_vtenc_send_frame.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Not enough memory for closed captions, skipping\n"
	.align 8
.LC1:
	.string	"Error: cannot encode frame: %d\n"
	.text
	.p2align 4
	.type	vtenc_send_frame, @function
vtenc_send_frame:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	mov	rsi, rbx
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rdx, 16[rsp]
	mov	QWORD PTR 16[rsp], 0
	call	create_cv_pixel_buffer@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L24
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L25
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	lea	rsi, 8[rsp]
	mov	rdi, rbx
	call	create_encoder_dict_h264@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L26
	mov	esi, DWORD PTR AV_FRAME_DATA_A53_CC[rip]
	mov	rdi, rbx
	xor	r12d, r12d
	call	av_frame_get_side_data@PLT
	cmp	QWORD PTR 8[r13], 0
	je	.L4
	test	rax, rax
	je	.L4
	cmp	QWORD PTR [rax], 0
	jne	.L27
.L4:
	mov	edi, DWORD PTR [rbx]
	imul	edi, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR 4[rbp]
	call	CMTimeMake@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	edi, DWORD PTR 0[r13]
	mov	r9, r12
	push	0
	.cfi_def_cfa_offset 96
	mov	ecx, DWORD PTR kCMTimeInvalid[rip]
	mov	edx, eax
	mov	r8, QWORD PTR 24[rsp]
	mov	rsi, QWORD PTR 32[rsp]
	call	VTCompressionSessionEncodeFrame@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	r12d, eax
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	test	rdi, rdi
	je	.L6
	call	CFRelease@PLT
.L6:
	mov	rdi, QWORD PTR 16[rsp]
	call	CFRelease@PLT
	test	r12d, r12d
	je	.L1
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	mov	ecx, r12d
	mov	rdi, rbp
	xor	eax, eax
	lea	rdx, .LC1[rip]
	call	av_log@PLT
	mov	r12d, DWORD PTR AVERROR_EXTERNAL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdi, QWORD PTR 16[rsp]
	call	CFRelease@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edi, 8
	call	av_mallocz@PLT
	mov	r12, rax
	test	rax, rax
	je	.L28
	xor	esi, esi
	lea	rdx, 4[rax]
	mov	rcx, rax
	mov	rdi, rbx
	call	ff_alloc_a53_sei@PLT
	test	eax, eax
	jns	.L4
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	av_log@PLT
	mov	rdi, r12
	xor	r12d, r12d
	call	av_free@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L28:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	av_log@PLT
	jmp	.L4
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vtenc_send_frame, .-vtenc_send_frame
	.comm	kCMTimeInvalid,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AV_FRAME_DATA_A53_CC,4,4
	.comm	AVERROR_EXTERNAL,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_videotoolboxenc.c_vtenc_send_frame.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Not enough memory for closed captions, skipping\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"Error: cannot encode frame: %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vtenc_send_frame, %function
vtenc_send_frame:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	ip, .L23
	sub	sp, sp, #32
	mov	r5, r2
	mov	r7, r1
	mov	r1, r2
	add	r2, sp, #24
	ldr	ip, [ip]
	str	ip, [sp, #28]
	mov	ip,#0
	mov	r6, r0
	str	r3, [sp, #24]
	bl	create_cv_pixel_buffer
	subs	r4, r0, #0
	beq	.L18
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r4
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	mov	r0, r5
	add	r1, sp, #20
	bl	create_encoder_dict_h264
	subs	r4, r0, #0
	bne	.L20
	ldr	r3, .L23+4
	mov	r0, r5
	ldr	r1, [r3]
	bl	av_frame_get_side_data
	ldr	r2, [r7, #4]
	subs	r3, r0, #0
	movne	r3, #1
	cmp	r2, #0
	moveq	r3, #0
	cmp	r3, #0
	bne	.L21
.L9:
	mov	r8, r3
.L4:
	ldm	r6, {r0, r1}
	ldr	r3, [r5]
	mul	r0, r3, r0
	bl	CMTimeMake
	mov	ip, #0
	ldr	r1, [sp, #20]
	str	r8, [sp, #4]
	ldr	r3, .L23+8
	mov	r2, r0
	ldr	r0, [r7]
	str	ip, [sp, #8]
	ldr	r3, [r3]
	str	r1, [sp]
	ldr	r1, [sp, #24]
	bl	VTCompressionSessionEncodeFrame
	ldr	r3, [sp, #20]
	mov	r4, r0
	cmp	r3, #0
	beq	.L6
	mov	r0, r3
	bl	CFRelease
.L6:
	ldr	r0, [sp, #24]
	bl	CFRelease
	cmp	r4, #0
	beq	.L1
	ldr	r2, .L23+12
	mov	r3, r4
	ldr	r1, [r2]
	mov	r0, r6
	ldr	r2, .L23+16
	bl	av_log
	ldr	r3, .L23+20
	ldr	r4, [r3]
	b	.L1
.L20:
	ldr	r0, [sp, #24]
	bl	CFRelease
	b	.L1
.L21:
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L9
	mov	r0, #8
	bl	av_mallocz
	subs	r8, r0, #0
	beq	.L22
	mov	r3, r8
	mov	r1, r4
	mov	r0, r5
	add	r2, r8, #4
	bl	ff_alloc_a53_sei
	cmp	r0, #0
	bge	.L4
	ldr	r3, .L23+12
	ldr	r2, .L23+24
	ldr	r1, [r3]
	mov	r0, r6
	bl	av_log
	mov	r0, r8
	bl	av_free
	mov	r8, r4
	b	.L4
.L22:
	ldr	r3, .L23+12
	mov	r0, r6
	ldr	r2, .L23+24
	ldr	r1, [r3]
	bl	av_log
	b	.L4
.L19:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC2
	.word	AV_FRAME_DATA_A53_CC
	.word	kCMTimeInvalid
	.word	AV_LOG_ERROR
	.word	.LC1
	.word	AVERROR_EXTERNAL
	.word	.LC0
	.size	vtenc_send_frame, .-vtenc_send_frame
	.comm	kCMTimeInvalid,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AV_FRAME_DATA_A53_CC,4,4
	.comm	AVERROR_EXTERNAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
