	.file	"extr_ao_lavc.c_encode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"audio frame pts went backwards (%d <- %d), autofixed\n"
	.text
	.p2align 4
	.type	encode, @function
encode:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	r13, QWORD PTR 32[rdi]
	mov	r14, QWORD PTR 24[rdi]
	movsd	QWORD PTR [rsp], xmm0
	movsd	xmm4, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	movsd	xmm1, QWORD PTR 0[r13]
	mov	rax, QWORD PTR 24[r13]
	lea	r15, 8[r14]
	mov	rdi, r15
	movsd	QWORD PTR 16[rsp], xmm4
	movapd	xmm2, xmm1
	addsd	xmm2, QWORD PTR .LC0[rip]
	mov	rbx, QWORD PTR [rax]
	movsd	QWORD PTR 24[rsp], xmm1
	mov	eax, DWORD PTR 8[r13]
	movsd	QWORD PTR 0[r13], xmm2
	mov	DWORD PTR 12[rsp], eax
	call	pthread_mutex_lock@PLT
	test	r12, r12
	je	.L2
	pxor	xmm0, xmm0
	movsd	xmm1, QWORD PTR 24[rsp]
	mov	rdi, r15
	cvtsi2sd	xmm0, DWORD PTR 12[rsp]
	mulsd	xmm0, xmm1
	divsd	xmm0, QWORD PTR 16[rsp]
	subsd	xmm0, QWORD PTR [rsp]
	movsd	QWORD PTR [r14], xmm0
	call	pthread_mutex_unlock@PLT
	xor	eax, eax
	call	av_frame_alloc@PLT
	mov	edi, DWORD PTR 16[rbp]
	mov	r14, rax
	mov	QWORD PTR 32[rsp], rax
	call	af_to_avformat@PLT
	mov	edx, DWORD PTR 8[r13]
	mov	edi, DWORD PTR 16[rbp]
	mov	DWORD PTR 40[r14], eax
	mov	rax, QWORD PTR 32[rsp]
	mov	DWORD PTR [rax], edx
	call	af_fmt_is_planar@PLT
	test	rax, rax
	jne	.L3
	xor	edi, edi
	cmp	QWORD PTR AV_NUM_DATA_POINTERS[rip], 0
	setne	dil
	call	assert@PLT
	mov	rax, QWORD PTR 32[rsp]
	mov	rdx, QWORD PTR [r12]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR [rax], rdx
.L4:
	mov	rax, QWORD PTR 32[rsp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR [rax]
	imul	eax, DWORD PTR 8[rbp]
	mov	DWORD PTR [rdx], eax
	mov	edi, DWORD PTR 4[rbx]
	call	av_inv_q@PLT
	mov	edi, eax
	call	av_q2d@PLT
	mulsd	xmm0, QWORD PTR [rsp]
	mov	r12, QWORD PTR 32[rsp]
	call	rint@PLT
	mov	edx, DWORD PTR 32[r13]
	mov	esi, DWORD PTR 4[rbx]
	mov	QWORD PTR 16[r12], rax
	mov	rax, QWORD PTR 32[rsp]
	mov	rdi, QWORD PTR 16[rax]
	call	av_rescale_q@PLT
	mov	rcx, QWORD PTR 16[r13]
	cmp	QWORD PTR AV_NOPTS_VALUE[rip], rcx
	mov	r12, rax
	je	.L7
	cmp	rcx, rax
	jl	.L7
	mov	rax, QWORD PTR 32[rsp]
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	mov	rdx, QWORD PTR 16[rax]
	call	MP_WARN@PLT
	mov	rax, QWORD PTR 16[r13]
	mov	edx, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR 32[r13]
	mov	rbp, QWORD PTR 32[rsp]
	lea	r12, 1[rax]
	mov	rdi, r12
	call	av_rescale_q@PLT
	mov	QWORD PTR 16[rbp], rax
.L7:
	mov	rsi, QWORD PTR 32[rsp]
	mov	eax, DWORD PTR [rbx]
	mov	QWORD PTR 16[r13], r12
	mov	rdi, QWORD PTR 24[r13]
	mov	DWORD PTR 24[rsi], eax
	call	encoder_encode@PLT
	lea	rdi, 32[rsp]
	call	av_frame_free@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 56
	.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
.L3:
	.cfi_restore_state
	movsx	r14, DWORD PTR 12[rbp]
	xor	edi, edi
	cmp	QWORD PTR AV_NUM_DATA_POINTERS[rip], r14
	setnb	dil
	call	assert@PLT
	test	r14, r14
	je	.L4
	lea	rsi, 0[0+r14*8]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, QWORD PTR 32[rsp]
	mov	rcx, QWORD PTR [r12+rax]
	mov	rdx, QWORD PTR 32[rdx]
	mov	QWORD PTR [rdx+rax], rcx
	add	rax, 8
	cmp	rsi, rax
	jne	.L6
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, r15
	call	pthread_mutex_unlock@PLT
	mov	rdi, QWORD PTR 24[r13]
	xor	esi, esi
	call	encoder_encode@PLT
	jmp	.L1
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	encode, .-encode
	.comm	AV_NUM_DATA_POINTERS,8,8
	.comm	AV_NOPTS_VALUE,8,8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.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_ao_lavc.c_encode.c"
	.text
	.global	__aeabi_dadd
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_ddiv
	.global	__aeabi_dsub
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"audio frame pts went backwards (%d <- %d), autofixe"
	.ascii	"d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	encode, %function
encode:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r10, r2
	mov	fp, r3
	ldmia	r0, {r3-r4}
	sub	sp, sp, #36
	str	r3, [sp, #8]
	str	r4, [sp, #12]
	ldr	r4, [r0, #24]
	stm	sp, {r10-fp}
	ldmia	r4, {r8-r9}
	mov	r6, r0
	ldr	ip, [r4, #16]
	ldr	lr, .L21
	mov	r2, #0
	ldr	r3, .L21+4
	mov	r0, r8
	mov	r1, r9
	ldr	lr, [lr]
	str	lr, [sp, #28]
	mov	lr,#0
	ldr	r7, [ip]
	bl	__aeabi_dadd
	ldr	fp, [r6, #20]
	ldr	r5, [sp, #72]
	ldr	r3, [r4, #8]
	add	r10, fp, #8
	stm	r4, {r0-r1}
	mov	r0, r10
	str	r3, [sp, #20]
	bl	pthread_mutex_lock
	cmp	r5, #0
	beq	.L2
	ldr	r3, [sp, #20]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r8
	mov	r3, r9
	bl	__aeabi_dmul
	add	r3, sp, #8
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	ldmia	sp, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r10
	stm	fp, {r2-r3}
	bl	pthread_mutex_unlock
	bl	av_frame_alloc
	mov	r8, r0
	ldr	r0, [r6, #16]
	str	r8, [sp, #24]
	bl	af_to_avformat
	ldr	r3, [sp, #24]
	ldr	r2, [r4, #8]
	str	r0, [r8, #20]
	ldr	r0, [r6, #16]
	str	r2, [r3]
	bl	af_fmt_is_planar
	cmp	r0, #0
	ldr	r3, .L21+8
	bne	.L3
	ldr	r0, [r3]
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	ldr	r3, [sp, #24]
	ldr	r2, [r5]
	ldr	r3, [r3, #16]
	str	r2, [r3]
.L4:
	ldr	r2, [sp, #24]
	ldr	r1, [r6, #8]
	ldr	r3, [r2]
	ldr	r2, [r2, #4]
	mul	r3, r1, r3
	str	r3, [r2]
	ldr	r0, [r7, #4]
	bl	av_inv_q
	bl	av_q2d
	ldmia	sp, {r2-r3}
	bl	__aeabi_dmul
	ldr	r5, [sp, #24]
	bl	rint
	ldr	r3, [sp, #24]
	str	r0, [r5, #8]
	ldr	r0, [r3, #8]
	ldr	r2, [r4, #20]
	ldr	r1, [r7, #4]
	bl	av_rescale_q
	ldr	r2, .L21+12
	ldr	r3, [r4, #12]
	ldr	r2, [r2]
	mov	r5, r0
	subs	r2, r2, r3
	movne	r2, #1
	cmp	r3, r0
	movlt	r2, #0
	cmp	r2, #0
	bne	.L19
.L7:
	ldr	r3, [r7]
	ldr	r1, [sp, #24]
	ldr	r0, [r4, #16]
	str	r5, [r4, #12]
	str	r3, [r1, #12]
	bl	encoder_encode
	add	r0, sp, #24
	bl	av_frame_free
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r0, [r3]
	ldr	r8, [r6, #12]
	cmp	r0, r8
	movcc	r0, #0
	movcs	r0, #1
	bl	assert
	cmp	r8, #0
	beq	.L4
	sub	r3, r5, #4
	add	ip, r3, r8, lsl #2
	rsb	r5, r5, #4
.L6:
	ldr	r1, [sp, #24]
	add	r2, r5, r3
	ldr	r0, [r3, #4]!
	ldr	r1, [r1, #16]
	cmp	r3, ip
	str	r0, [r1, r2]
	bne	.L6
	b	.L4
.L2:
	mov	r0, r10
	bl	pthread_mutex_unlock
	mov	r1, r5
	ldr	r0, [r4, #16]
	bl	encoder_encode
	b	.L1
.L19:
	ldr	r2, [sp, #24]
	mov	r0, r6
	ldr	r2, [r2, #8]
	ldr	r1, .L21+16
	bl	MP_WARN
	ldr	r5, [r4, #12]
	ldr	r2, [r7, #4]
	add	r5, r5, #1
	mov	r0, r5
	ldr	r1, [r4, #20]
	ldr	r6, [sp, #24]
	bl	av_rescale_q
	str	r0, [r6, #8]
	b	.L7
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC1
	.word	1072693248
	.word	AV_NUM_DATA_POINTERS
	.word	AV_NOPTS_VALUE
	.word	.LC0
	.size	encode, .-encode
	.comm	AV_NUM_DATA_POINTERS,4,4
	.comm	AV_NOPTS_VALUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
