	.file	"extr_af_aiir.c_convert_zp2tf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	convert_zp2tf, @function
convert_zp2tf:
.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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR [rdi]
	mov	QWORD PTR [rsp], rax
	test	esi, esi
	jle	.L12
	lea	r14d, -1[rsi]
	mov	r13, rdi
	xor	ebx, ebx
	add	r14, 1
	sal	r14, 4
	mov	QWORD PTR 8[rsp], r14
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR [rsp]
	mov	esi, 8
	mov	r15, QWORD PTR [rax]
	add	r15, rbx
	mov	rax, QWORD PTR [r15]
	mov	eax, DWORD PTR [rax]
	lea	edi, 2[rax+rax]
	call	av_calloc@PLT
	mov	esi, 8
	mov	rbp, rax
	mov	rax, QWORD PTR [r15]
	mov	eax, DWORD PTR 4[rax]
	lea	edi, 2[rax+rax]
	call	av_calloc@PLT
	mov	r14, rax
	test	rbp, rbp
	je	.L13
	test	rax, rax
	je	.L13
	mov	rdx, QWORD PTR [r15]
	mov	rax, QWORD PTR 8[r15]
	mov	rcx, r14
	mov	rdi, r13
	mov	edx, DWORD PTR [rdx]
	mov	rsi, QWORD PTR [rax]
	call	expand@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L6
	mov	rax, QWORD PTR [r15]
	mov	rcx, rbp
	mov	rdi, r13
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR 8[r15]
	mov	rsi, QWORD PTR 8[rax]
	call	expand@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L19
.L6:
	mov	rdi, rbp
	call	av_free@PLT
	mov	rdi, r14
	call	av_free@PLT
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR ENOMEM[rip]
	call	AVERROR@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	av_free@PLT
	mov	rdi, r14
	call	av_free@PLT
	test	r12d, r12d
	js	.L1
.L5:
	add	rbx, 16
	cmp	rbx, QWORD PTR 8[rsp]
	jne	.L11
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rsi, QWORD PTR [r15]
	mov	r10d, DWORD PTR 4[rsi]
	test	r10d, r10d
	js	.L7
	lea	eax, [r10+r10]
	movsx	rdi, r10d
	cdqe
	lea	rdx, 0[rbp+rax*8]
	mov	rax, QWORD PTR 8[r15]
	mov	rcx, QWORD PTR 8[rax]
	lea	rax, 8[rcx]
	lea	rdi, [rax+rdi*8]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L20:
	add	rax, 8
.L8:
	movsd	xmm0, QWORD PTR [rdx]
	sub	rdx, 16
	movsd	QWORD PTR [rcx], xmm0
	mov	rcx, rax
	cmp	rax, rdi
	jne	.L20
.L7:
	add	r10d, 1
	mov	DWORD PTR 4[rsi], r10d
	mov	r10d, DWORD PTR [rsi]
	test	r10d, r10d
	js	.L9
	lea	eax, [r10+r10]
	movsx	rdi, r10d
	cdqe
	lea	rdx, [r14+rax*8]
	mov	rax, QWORD PTR 8[r15]
	mov	rcx, QWORD PTR [rax]
	lea	rax, 8[rcx]
	lea	rdi, [rax+rdi*8]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L21:
	add	rax, 8
.L10:
	movsd	xmm0, QWORD PTR [rdx]
	sub	rdx, 16
	movsd	QWORD PTR [rcx], xmm0
	mov	rcx, rax
	cmp	rdi, rax
	jne	.L21
.L9:
	add	r10d, 1
	mov	rdi, rbp
	mov	DWORD PTR [rsi], r10d
	call	av_free@PLT
	mov	rdi, r14
	call	av_free@PLT
	jmp	.L5
.L12:
	xor	r12d, r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	convert_zp2tf, .-convert_zp2tf
	.comm	ENOMEM,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_af_aiir.c_convert_zp2tf.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	convert_zp2tf, %function
convert_zp2tf:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r3, r1, #0
	sub	sp, sp, #12
	str	r3, [sp, #4]
	ldr	r3, [r0]
	str	r3, [sp]
	ble	.L11
	mov	r10, r0
	mov	r4, #0
.L10:
	ldr	r3, [sp]
	mov	r1, #8
	ldr	r7, [r3]
	lsl	r9, r4, #3
	ldr	r3, [r7, r4, lsl #3]
	add	r8, r7, r4, lsl #3
	ldr	r0, [r3]
	add	r0, r0, #1
	lsl	r0, r0, #1
	bl	av_calloc
	ldr	r3, [r7, r4, lsl #3]
	mov	r6, r0
	ldr	r3, [r3, #4]
	mov	r1, #8
	add	r0, r3, #1
	lsl	r0, r0, #1
	bl	av_calloc
	cmp	r0, #0
	cmpne	r6, #0
	mov	r5, r0
	beq	.L19
	ldr	r3, [r8, #4]
	ldr	r2, [r7, r4, lsl #3]
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r3, r0
	mov	r0, r10
	bl	expand
	subs	fp, r0, #0
	blt	.L5
	ldr	r3, [r8, #4]
	ldr	r2, [r7, r9]
	ldr	r1, [r3, #4]
	mov	r0, r10
	mov	r3, r6
	ldr	r2, [r2, #4]
	bl	expand
	subs	fp, r0, #0
	bge	.L20
.L5:
	mov	r0, r6
	bl	av_free
	mov	r0, r5
	bl	av_free
.L1:
	mov	r0, fp
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	ldr	r3, .L23
	ldr	r0, [r3]
	bl	AVERROR
	mov	fp, r0
	mov	r0, r6
	bl	av_free
	mov	r0, r5
	bl	av_free
	cmp	fp, #0
	blt	.L1
.L4:
	ldr	r3, [sp, #4]
	add	r4, r4, #1
	cmp	r3, r4
	bne	.L10
	mov	r0, fp
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	ldr	r7, [r7, r9]
	ldr	lr, [r7, #4]
	cmp	lr, #0
	blt	.L6
	ldr	r2, [r8, #4]
	mov	r9, r4
	ldr	r0, [r2, #4]
	add	r1, r6, lr, lsl #4
	add	r2, r0, #8
	add	ip, r2, lr, lsl #3
	b	.L7
.L21:
	add	r2, r2, #8
.L7:
	cmp	r2, ip
	ldmia	r1, {r3-r4}
	sub	r1, r1, #16
	stm	r0, {r3-r4}
	mov	r0, r2
	bne	.L21
	mov	r4, r9
.L6:
	ldr	ip, [r7]
	add	lr, lr, #1
	cmp	ip, #0
	str	lr, [r7, #4]
	blt	.L8
	ldr	r2, [r8, #4]
	add	r1, r5, ip, lsl #4
	ldr	r0, [r2]
	add	r2, r0, #8
	add	lr, r2, ip, lsl #3
	b	.L9
.L22:
	add	r2, r2, #8
.L9:
	cmp	lr, r2
	ldmia	r1, {r8-r9}
	sub	r1, r1, #16
	stm	r0, {r8-r9}
	mov	r0, r2
	bne	.L22
.L8:
	add	ip, ip, #1
	mov	r0, r6
	str	ip, [r7]
	bl	av_free
	mov	r0, r5
	bl	av_free
	b	.L4
.L11:
	mov	fp, #0
	b	.L1
.L24:
	.align	2
.L23:
	.word	ENOMEM
	.size	convert_zp2tf, .-convert_zp2tf
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
