	.file	"extr_apngenc.c_apng_write_header.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"APNG muxer supports only a single video APNG stream.\n"
	.align 8
.LC1:
	.string	"Last frame delay is too precise. Reducing to %d/%d (%f).\n"
	.text
	.p2align 4
	.type	apng_write_header, @function
apng_write_header:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmp	DWORD PTR [rdi], 1
	jne	.L2
	mov	rax, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR [rax]
	mov	rbx, QWORD PTR [rax]
	mov	rax, QWORD PTR AVMEDIA_TYPE_VIDEO[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L12
.L2:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	mov	rdi, rbp
	lea	rdx, .LC0[rip]
	xor	eax, eax
	call	av_log@PLT
	mov	edi, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	AVERROR@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rax, QWORD PTR AV_CODEC_ID_APNG[rip]
	cmp	QWORD PTR 8[rbx], rax
	jne	.L2
	mov	r12, QWORD PTR 16[rdi]
	mov	r8, QWORD PTR USHRT_MAX[rip]
	mov	rdx, QWORD PTR 16[r12]
	mov	rcx, QWORD PTR 24[r12]
	cmp	rdx, r8
	jg	.L4
	cmp	r8, rcx
	jge	.L5
.L4:
	lea	rsi, 24[r12]
	lea	rdi, 16[r12]
	call	av_reduce@PLT
	pxor	xmm0, xmm0
	pxor	xmm1, xmm1
	mov	rdi, rbp
	mov	rcx, QWORD PTR 16[r12]
	mov	r8, QWORD PTR 24[r12]
	cvtsi2sd	xmm1, QWORD PTR 24[r12]
	lea	rdx, .LC1[rip]
	mov	esi, DWORD PTR AV_LOG_WARNING[rip]
	mov	eax, 1
	cvtsi2sd	xmm0, rcx
	divsd	xmm0, xmm1
	call	av_log@PLT
.L5:
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR PNGSIG[rip]
	call	avio_wb64@PLT
	mov	rdi, QWORD PTR 16[rbx]
	test	rdi, rdi
	jne	.L13
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	add	rdi, QWORD PTR AV_INPUT_BUFFER_PADDING_SIZE[rip]
	call	av_mallocz@PLT
	mov	DWORD PTR [r12], eax
	mov	edi, eax
	test	eax, eax
	je	.L14
	mov	rdx, QWORD PTR 16[rbx]
	mov	esi, DWORD PTR 24[rbx]
	mov	QWORD PTR 8[r12], rdx
	call	memcpy@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	AVERROR@PLT
	.cfi_endproc
.LFE0:
	.size	apng_write_header, .-apng_write_header
	.comm	USHRT_MAX,8,8
	.comm	PNGSIG,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	AV_LOG_WARNING,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AV_INPUT_BUFFER_PADDING_SIZE,8,8
	.comm	AV_CODEC_ID_APNG,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_apngenc.c_apng_write_header.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"APNG muxer supports only a single video APNG stream"
	.ascii	".\012\000"
	.align	2
.LC1:
	.ascii	"Last frame delay is too precise. Reducing to %d/%d "
	.ascii	"(%f).\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	apng_write_header, %function
apng_write_header:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0]
	mov	r4, r0
	cmp	r3, #1
	sub	sp, sp, #20
	bne	.L2
	ldr	r2, [r0, #8]
	ldr	r3, .L17
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r5, [r2]
	ldr	r2, [r5]
	cmp	r2, r3
	beq	.L14
.L2:
	ldr	r3, .L17+4
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r2, .L17+8
	bl	av_log
	ldr	r3, .L17+12
.L12:
	ldr	r0, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	AVERROR
.L14:
	ldr	r3, .L17+16
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L2
	ldr	r6, [r0, #12]
	ldr	r3, .L17+20
	ldr	r2, [r6, #8]
	ldr	r1, [r3]
	ldr	r3, [r6, #12]
	cmp	r2, r1
	bgt	.L4
	cmp	r1, r3
	bge	.L5
.L4:
	str	r1, [sp]
	add	r0, r6, #8
	add	r1, r6, #12
	bl	av_reduce
	ldr	r7, [r6, #8]
	ldr	r3, .L17+24
	mov	r0, r7
	ldr	fp, [r3]
	bl	__aeabi_i2d
	ldr	r10, [r6, #12]
	mov	r8, r0
	mov	r0, r10
	mov	r9, r1
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_ddiv
	mov	r8, r0
	mov	r9, r1
	mov	r3, r7
	mov	r1, fp
	mov	r0, r4
	str	r8, [sp, #8]
	str	r9, [sp, #12]
	ldr	r2, .L17+28
	str	r10, [sp]
	bl	av_log
.L5:
	ldr	r3, .L17+32
	ldr	r0, [r4, #4]
	ldr	r1, [r3]
	bl	avio_wb64
	ldr	r3, [r5, #8]
	cmp	r3, #0
	bne	.L15
.L1:
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r2, .L17+36
	ldr	r0, [r2]
	add	r0, r3, r0
	bl	av_mallocz
	cmp	r0, #0
	str	r0, [r6]
	beq	.L16
	ldr	r2, [r5, #8]
	ldr	r1, [r5, #12]
	str	r2, [r6, #4]
	bl	memcpy
	b	.L1
.L16:
	ldr	r3, .L17+40
	b	.L12
.L18:
	.align	2
.L17:
	.word	AVMEDIA_TYPE_VIDEO
	.word	AV_LOG_ERROR
	.word	.LC0
	.word	EINVAL
	.word	AV_CODEC_ID_APNG
	.word	USHRT_MAX
	.word	AV_LOG_WARNING
	.word	.LC1
	.word	PNGSIG
	.word	AV_INPUT_BUFFER_PADDING_SIZE
	.word	ENOMEM
	.size	apng_write_header, .-apng_write_header
	.comm	USHRT_MAX,4,4
	.comm	PNGSIG,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	AV_LOG_WARNING,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AV_INPUT_BUFFER_PADDING_SIZE,4,4
	.comm	AV_CODEC_ID_APNG,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
