	.file	"extr_vf_lut3d.c_parse_cube.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"LUT_3D_SIZE"
.LC4:
	.string	"DOMAIN_"
.LC5:
	.string	"MIN "
.LC6:
	.string	"MAX "
.LC7:
	.string	"%f %f %f"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC8:
	.string	"min: %f %f %f | max: %f %f %f\n"
	.section	.rodata.str1.1
.LC9:
	.string	"TITLE"
	.text
	.p2align 4
	.type	parse_cube, @function
parse_cube:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15, rdi
	push	r14
	push	r13
	push	r12
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rsi
	push	rbx
	sub	rsp, 120
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	mov	rcx, rsp
	mov	QWORD PTR -88[rbp], rax
	movsx	rax, DWORD PTR MAX_LINE_SIZE[rip]
	mov	r13, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L34:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L34
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L35
.L4:
	movabs	rax, 4575657222473777152
	mov	QWORD PTR -80[rbp], 0
	mov	rbx, rsp
	lea	r14, .LC2[rip]
	mov	DWORD PTR -72[rbp], 0x00000000
	mov	QWORD PTR -68[rbp], rax
	mov	DWORD PTR -60[rbp], 0x3f800000
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edx, 11
	mov	rsi, r14
	mov	rdi, rbx
	call	strncmp@PLT
	test	eax, eax
	je	.L36
.L5:
	mov	rdx, r12
	mov	esi, r13d
	mov	rdi, rbx
	call	fgets@PLT
	test	rax, rax
	jne	.L19
.L17:
	movss	xmm0, DWORD PTR -68[rbp]
	subss	xmm0, DWORD PTR -80[rbp]
	movsd	xmm6, QWORD PTR .LC3[rip]
	movss	xmm1, DWORD PTR .LC1[rip]
	cvtss2sd	xmm0, xmm0
	divsd	xmm6, xmm0
	pxor	xmm0, xmm0
	cvttsd2si	edi, xmm6
	call	av_clipf@PLT
	movss	xmm0, DWORD PTR -64[rbp]
	subss	xmm0, DWORD PTR -76[rbp]
	movsd	xmm7, QWORD PTR .LC3[rip]
	mov	rbx, QWORD PTR -88[rbp]
	movss	xmm1, DWORD PTR .LC1[rip]
	cvtss2sd	xmm0, xmm0
	divsd	xmm7, xmm0
	mov	QWORD PTR 16[rbx], rax
	pxor	xmm0, xmm0
	cvttsd2si	edi, xmm7
	call	av_clipf@PLT
	movss	xmm0, DWORD PTR -60[rbp]
	subss	xmm0, DWORD PTR -72[rbp]
	movsd	xmm6, QWORD PTR .LC3[rip]
	mov	QWORD PTR 8[rbx], rax
	movss	xmm1, DWORD PTR .LC1[rip]
	cvtss2sd	xmm0, xmm0
	divsd	xmm6, xmm0
	pxor	xmm0, xmm0
	cvttsd2si	edi, xmm6
	call	av_clipf@PLT
	mov	QWORD PTR [rbx], rax
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR -56[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L37
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L36:
	.cfi_restore_state
	xor	esi, esi
	lea	rdi, 12[rbx]
	xor	edx, edx
	call	strtol@PLT
	mov	rdi, r15
	mov	esi, eax
	mov	r13d, eax
	call	allocate_3dlut@PLT
	test	eax, eax
	js	.L1
	test	r13d, r13d
	jle	.L17
	lea	eax, -1[r13]
	lea	r12, 11[rbx]
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -144[rbp], rax
	movsx	rax, r13d
	lea	r14, 7[rbx]
	lea	rax, [rax+rax*2]
	mov	DWORD PTR -96[rbp], r13d
	sal	rax, 2
	mov	QWORD PTR -152[rbp], rax
	mov	eax, r13d
	imul	eax, r13d
	cdqe
	lea	rax, [rax+rax*2]
	sal	rax, 2
	mov	QWORD PTR -128[rbp], rax
	mov	rax, r12
	mov	r12, r15
	mov	r15, rax
.L8:
	mov	DWORD PTR -132[rbp], 0
	mov	rax, QWORD PTR -120[rbp]
	lea	rax, [rax+rax*2]
	sal	rax, 2
	mov	QWORD PTR -112[rbp], rax
.L18:
	mov	DWORD PTR -92[rbp], 0
	mov	r13, QWORD PTR -112[rbp]
.L15:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -104[rbp], rax
	.p2align 4,,10
	.p2align 3
.L9:
	xor	edi, edi
	call	NEXT_LINE@PLT
	mov	edx, 7
	lea	rsi, .LC4[rip]
	mov	rdi, rbx
	call	strncmp@PLT
	test	eax, eax
	jne	.L10
	mov	edx, 4
	lea	rsi, .LC5[rip]
	mov	rdi, r14
	call	strncmp@PLT
	test	eax, eax
	je	.L21
	mov	edx, 4
	lea	rsi, .LC6[rip]
	mov	rdi, r14
	call	strncmp@PLT
	test	eax, eax
	jne	.L32
	lea	rdx, -68[rbp]
.L11:
	lea	rcx, 4[rdx]
	lea	r8, 8[rdx]
	mov	rdi, r15
	lea	rsi, .LC7[rip]
	call	av_sscanf@PLT
	movss	xmm5, DWORD PTR -60[rbp]
	movss	xmm4, DWORD PTR -64[rbp]
	lea	rdx, .LC8[rip]
	movss	xmm3, DWORD PTR -68[rbp]
	movss	xmm2, DWORD PTR -72[rbp]
	mov	rdi, r12
	movss	xmm1, DWORD PTR -76[rbp]
	movss	xmm0, DWORD PTR -80[rbp]
	mov	esi, DWORD PTR AV_LOG_DEBUG[rip]
	call	av_log@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edx, 5
	lea	rsi, .LC9[rip]
	mov	rdi, rbx
	call	strncmp@PLT
	test	eax, eax
	je	.L9
	mov	rdi, rbx
	call	skip_line@PLT
	test	rax, rax
	jne	.L9
	mov	rdx, QWORD PTR -104[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rbx
	add	rdx, r13
	lea	rcx, 4[rdx]
	lea	r8, 8[rdx]
	call	av_sscanf@PLT
	cmp	eax, 3
	jne	.L32
	mov	eax, DWORD PTR -92[rbp]
	add	r13, QWORD PTR -128[rbp]
	add	eax, 1
	cmp	DWORD PTR -96[rbp], eax
	je	.L38
	mov	DWORD PTR -92[rbp], eax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rdx, -80[rbp]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L32:
	mov	eax, DWORD PTR AVERROR_INVALIDDATA[rip]
	jmp	.L1
.L35:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L38:
	mov	ecx, DWORD PTR -132[rbp]
	mov	rdi, QWORD PTR -152[rbp]
	add	QWORD PTR -112[rbp], rdi
	lea	eax, 1[rcx]
	cmp	DWORD PTR -92[rbp], ecx
	je	.L16
	mov	DWORD PTR -132[rbp], eax
	jmp	.L18
.L16:
	mov	rcx, QWORD PTR -120[rbp]
	lea	rax, 1[rcx]
	cmp	QWORD PTR -144[rbp], rcx
	je	.L17
	mov	QWORD PTR -120[rbp], rax
	jmp	.L8
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	parse_cube, .-parse_cube
	.comm	MAX_LINE_SIZE,4,4
	.comm	AV_LOG_DEBUG,4,4
	.comm	AVERROR_INVALIDDATA,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC1:
	.long	1065353216
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.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_vf_lut3d.c_parse_cube.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC1:
	.ascii	"LUT_3D_SIZE\000"
	.global	__aeabi_fsub
	.global	__aeabi_f2d
	.global	__aeabi_ddiv
	.global	__aeabi_d2iz
	.align	2
.LC2:
	.ascii	"DOMAIN_\000"
	.align	2
.LC3:
	.ascii	"MIN \000"
	.align	2
.LC4:
	.ascii	"MAX \000"
	.align	2
.LC5:
	.ascii	"%f %f %f\000"
	.align	2
.LC6:
	.ascii	"min: %f %f %f | max: %f %f %f\012\000"
	.align	2
.LC7:
	.ascii	"TITLE\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_cube, %function
parse_cube:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #100
	mov	r9, r0
	ldr	r3, .L31
	ldr	ip, .L31+4
	ldr	r6, [r3]
	mov	r3, #0
	ldr	ip, [ip]
	str	ip, [fp, #-40]
	mov	ip,#0
	add	r0, r6, #7
	ldr	ip, [r9]
	bic	r0, r0, #7
	ldr	r2, .L31+8
	sub	sp, sp, r0
	str	ip, [fp, #-72]
	sub	ip, fp, #52
	mov	r5, r1
	ldm	r2, {r0, r1, r2}
	ldr	r7, .L31+12
	stm	ip, {r0, r1, r2}
	add	r4, sp, #24
	str	r3, [fp, #-64]	@ float
	str	r3, [fp, #-60]	@ float
	str	r3, [fp, #-56]	@ float
	b	.L2
.L17:
	mov	r2, #11
	mov	r1, r7
	mov	r0, r4
	bl	strncmp
	cmp	r0, #0
	beq	.L28
.L2:
	mov	r2, r5
	mov	r1, r6
	mov	r0, r4
	bl	fgets
	cmp	r0, #0
	bne	.L17
.L15:
	ldr	r1, [fp, #-64]	@ float
	ldr	r0, [fp, #-52]	@ float
	bl	__aeabi_fsub
	bl	__aeabi_f2d
	mov	r3, r1
	mov	r2, r0
	ldr	r1, .L31+16
	mov	r0, #0
	bl	__aeabi_ddiv
	bl	__aeabi_d2iz
	mov	r2, #1065353216
	mov	r1, #0
	bl	av_clipf
	ldr	r4, [fp, #-72]
	ldr	r1, [fp, #-60]	@ float
	str	r0, [r4, #8]
	ldr	r0, [fp, #-48]	@ float
	bl	__aeabi_fsub
	bl	__aeabi_f2d
	mov	r3, r1
	mov	r2, r0
	ldr	r1, .L31+16
	mov	r0, #0
	bl	__aeabi_ddiv
	bl	__aeabi_d2iz
	mov	r2, #1065353216
	mov	r1, #0
	bl	av_clipf
	ldr	r1, [fp, #-56]	@ float
	str	r0, [r4, #4]
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_fsub
	bl	__aeabi_f2d
	mov	r3, r1
	mov	r2, r0
	ldr	r1, .L31+16
	mov	r0, #0
	bl	__aeabi_ddiv
	bl	__aeabi_d2iz
	mov	r2, #1065353216
	mov	r1, #0
	bl	av_clipf
	mov	r3, r0
	mov	r0, #0
	str	r3, [r4]
.L1:
	ldr	r3, .L31+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L28:
	mov	r2, r0
	mov	r1, r0
	mov	r8, r0
	add	r0, r4, #12
	bl	strtol
	mov	r5, r0
	str	r0, [fp, #-76]
	mov	r1, r5
	mov	r0, r9
	bl	allocate_3dlut
	cmp	r0, #0
	blt	.L1
	cmp	r5, #0
	ble	.L15
	ldr	r2, [fp, #-76]
	mov	r7, r9
	mov	r3, r2
	mov	r9, r4
	mul	r3, r2, r3
	add	r3, r3, r3, lsl #1
	str	r8, [fp, #-96]
	lsl	r3, r3, #2
	ldr	r10, .L31+20
	ldr	r6, .L31+24
	ldr	r8, .L31+28
	str	r3, [fp, #-100]
.L5:
	mov	r3, #0
	str	r3, [fp, #-104]
	str	r3, [fp, #-92]
.L16:
	ldr	r3, [fp, #-96]
	ldr	r2, [fp, #-92]
	add	r3, r3, r2
	add	r3, r3, r3, lsl #1
	lsl	r3, r3, #2
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-84]
.L13:
	ldr	r3, [fp, #-72]
	ldr	r4, .L31+32
	ldr	r3, [r3, #12]
	str	r3, [fp, #-88]
.L6:
	mov	r0, #0
	bl	NEXT_LINE
	mov	r2, #7
	mov	r1, r10
	mov	r0, r9
	bl	strncmp
	cmp	r0, #0
	bne	.L7
	add	r5, r9, #7
	mov	r0, r5
	mov	r2, #4
	mov	r1, r8
	bl	strncmp
	cmp	r0, #0
	beq	.L19
	mov	r0, r5
	mov	r2, #4
	ldr	r1, .L31+36
	bl	strncmp
	cmp	r0, #0
	bne	.L26
	sub	r2, fp, #52
.L8:
	add	r3, r2, #8
	str	r3, [sp]
	ldr	r1, .L31+40
	add	r3, r2, #4
	add	r0, r9, #11
	bl	av_sscanf
	ldr	r1, [fp, #-52]	@ float
	ldr	r0, [fp, #-48]	@ float
	ldr	r2, [fp, #-56]	@ float
	ldr	r3, [fp, #-60]	@ float
	ldr	ip, [fp, #-44]	@ float
	str	r1, [sp, #8]	@ float
	ldr	r1, .L31+44
	str	r0, [sp, #12]	@ float
	str	r2, [sp, #4]	@ float
	str	r3, [sp]	@ float
	str	ip, [sp, #16]	@ float
	mov	r2, r4
	mov	r0, r7
	ldr	r3, [fp, #-64]	@ float
	ldr	r1, [r1]
	bl	av_log
	b	.L6
.L7:
	mov	r2, #5
	mov	r1, r6
	mov	r0, r9
	bl	strncmp
	cmp	r0, #0
	beq	.L6
	mov	r0, r9
	bl	skip_line
	cmp	r0, #0
	bne	.L6
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-80]
	mov	r0, r9
	add	r2, r3, r2
	add	r3, r2, #8
	str	r3, [sp]
	ldr	r1, .L31+40
	add	r3, r2, #4
	bl	av_sscanf
	cmp	r0, #3
	bne	.L26
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-76]
	add	r3, r3, #1
	ldr	r1, [fp, #-100]
	cmp	r2, r3
	ldr	r2, [fp, #-80]
	add	r2, r2, r1
	str	r2, [fp, #-80]
	beq	.L30
	str	r3, [fp, #-84]
	b	.L13
.L26:
	ldr	r3, .L31+48
	ldr	r0, [r3]
	b	.L1
.L19:
	sub	r2, fp, #64
	b	.L8
.L30:
	ldr	r3, [fp, #-104]
	ldr	r2, [fp, #-84]
	ldr	r1, [fp, #-76]
	cmp	r3, r2
	ldr	r2, [fp, #-92]
	add	r3, r3, #1
	add	r2, r2, r1
	str	r2, [fp, #-92]
	strne	r3, [fp, #-104]
	bne	.L16
.L14:
	ldr	r3, [fp, #-96]
	ldr	r2, [fp, #-104]
	cmp	r3, r2
	add	r3, r3, #1
	beq	.L15
	str	r3, [fp, #-96]
	b	.L5
.L29:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	MAX_LINE_SIZE
	.word	.LC8
	.word	.LANCHOR0
	.word	.LC1
	.word	1072693248
	.word	.LC2
	.word	.LC7
	.word	.LC3
	.word	.LC6
	.word	.LC4
	.word	.LC5
	.word	AV_LOG_DEBUG
	.word	AVERROR_INVALIDDATA
	.size	parse_cube, .-parse_cube
	.comm	MAX_LINE_SIZE,4,4
	.comm	AV_LOG_DEBUG,4,4
	.comm	AVERROR_INVALIDDATA,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC0:
	.word	1065353216
	.word	1065353216
	.word	1065353216
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
