	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function parse_cinespace
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_parse_cinespace:                       ## @parse_cinespace
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rbx
	movq	_MAX_LINE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	movl	l___const.parse_cinespace.out_max+8(%rip), %eax
	movl	%eax, -72(%rbp)
	movq	l___const.parse_cinespace.out_max(%rip), %rcx
	movq	%rcx, -80(%rbp)
	movl	$0, -88(%rbp)
	movq	$0, -96(%rbp)
	movl	%eax, -104(%rbp)
	movq	%rcx, -112(%rbp)
	movq	%r12, %rdi
	callq	_skip_line
	movl	%eax, %edi
	callq	_NEXT_LINE
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	$10, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_2
LBB0_3:
	movq	%r12, %rdi
	callq	_skip_line
	movl	%eax, %edi
	callq	_NEXT_LINE
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	$2, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.40:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_2:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_38:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_41
## %bb.39:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, -168(%rbp)                ## 8-byte Spill
	movb	$1, %cl
	leaq	L_.str.4(%rip), %rbx
	leaq	L_.str.5(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %r13d
	movq	%r12, %rdi
	callq	_skip_line
	movl	%eax, %edi
	callq	_NEXT_LINE
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$14, %edx
	callq	_strncmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$12, %edx
	callq	_strncmp
	xorb	$1, %r13b
	testq	%rax, %rax
	sete	%cl
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	testb	$1, %r13b
	jne	LBB0_5
## %bb.8:
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	cmpl	$2, %eax
	jne	LBB0_9
## %bb.11:
	movq	%r12, %rdi
	callq	_skip_line
	movl	%eax, %edi
	callq	_NEXT_LINE
	leaq	L_.str.7(%rip), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_sscanf
	cmpl	$2, %eax
	jne	LBB0_36
## %bb.12:
	movq	%r12, %rdi
	callq	_skip_line
	movl	%eax, %edi
	callq	_NEXT_LINE
	leaq	L_.str.7(%rip), %rsi
	leaq	-96(%rbp), %rdx
	leaq	-112(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_sscanf
	cmpl	$2, %eax
	jne	LBB0_36
## %bb.13:
	movq	%r12, %rdi
	callq	_skip_line
	movl	%eax, %edi
	callq	_NEXT_LINE
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	cmpl	$2, %eax
	jne	LBB0_9
## %bb.14:
	movq	%r12, %rdi
	callq	_skip_line
	movl	%eax, %edi
	callq	_NEXT_LINE
	leaq	-60(%rbp), %rdx
	leaq	-76(%rbp), %rcx
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_sscanf
	cmpl	$2, %eax
	jne	LBB0_36
## %bb.15:
	movq	%r12, %rdi
	callq	_skip_line
	movl	%eax, %edi
	callq	_NEXT_LINE
	leaq	-92(%rbp), %rdx
	leaq	-108(%rbp), %rcx
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_sscanf
	cmpl	$2, %eax
	jne	LBB0_36
## %bb.16:
	movq	%r12, %rdi
	callq	_skip_line
	movl	%eax, %edi
	callq	_NEXT_LINE
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	cmpl	$2, %eax
	jne	LBB0_9
## %bb.17:
	movq	%r12, %rdi
	callq	_skip_line
	movl	%eax, %edi
	callq	_NEXT_LINE
	leaq	-56(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_sscanf
	cmpl	$2, %eax
	jne	LBB0_36
## %bb.18:
	movq	%r12, %rdi
	callq	_skip_line
	movl	%eax, %edi
	callq	_NEXT_LINE
	leaq	-88(%rbp), %rdx
	leaq	-104(%rbp), %rcx
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_sscanf
	cmpl	$2, %eax
	jne	LBB0_36
## %bb.19:
	movq	%r12, %rdi
	callq	_skip_line
	movl	%eax, %edi
	callq	_NEXT_LINE
	leaq	L_.str.8(%rip), %rsi
	leaq	-156(%rbp), %rdx
	leaq	-152(%rbp), %rcx
	leaq	-148(%rbp), %r8
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_sscanf
	cmpl	$3, %eax
	jne	LBB0_20
## %bb.21:
	movl	-156(%rbp), %ecx
	movl	-152(%rbp), %r8d
	movl	-148(%rbp), %r9d
	cmpl	%r8d, %ecx
	jne	LBB0_23
## %bb.22:
	cmpl	%r9d, %ecx
	jne	LBB0_23
## %bb.24:
	movq	%r14, %rdi
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	movl	%ecx, %esi
	callq	_allocate_3dlut
	testl	%eax, %eax
	js	LBB0_38
## %bb.25:
	cmpl	$0, -136(%rbp)                  ## 4-byte Folded Reload
	jle	LBB0_35
## %bb.26:
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movl	%eax, %ecx
	imull	%eax, %ecx
	movl	%ecx, -144(%rbp)                ## 4-byte Spill
	movl	$0, -120(%rbp)                  ## 4-byte Folded Spill
LBB0_27:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_28 Depth 2
                                        ##       Child Loop BB0_29 Depth 3
	movl	-120(%rbp), %eax                ## 4-byte Reload
	movl	%eax, -140(%rbp)                ## 4-byte Spill
	movl	$0, -124(%rbp)                  ## 4-byte Folded Spill
LBB0_28:                                ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_29 Depth 3
	movl	-120(%rbp), %eax                ## 4-byte Reload
	orl	-124(%rbp), %eax                ## 4-byte Folded Reload
	setne	-113(%rbp)                      ## 1-byte Folded Spill
	movl	-140(%rbp), %r13d               ## 4-byte Reload
	xorl	%eax, %eax
LBB0_29:                                ##   Parent Loop BB0_27 Depth=1
                                        ##     Parent Loop BB0_28 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-168(%rbp), %rcx                ## 8-byte Reload
	movq	24(%rcx), %r15
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	setne	%al
	orb	-113(%rbp), %al                 ## 1-byte Folded Reload
	cmpb	$1, %al
	jne	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=3
	movq	%r12, %rdi
	callq	_skip_line
	movl	%eax, %edi
	callq	_NEXT_LINE
LBB0_31:                                ##   in Loop: Header=BB0_29 Depth=3
	movslq	%r13d, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%r15,%rax,4), %r14
	leaq	(%r15,%rax,4), %rbx
	addq	$4, %rbx
	leaq	8(%r15,%rax,4), %r15
	movq	%r12, %rdi
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_av_sscanf
	cmpl	$3, %eax
	jne	LBB0_36
## %bb.32:                              ##   in Loop: Header=BB0_29 Depth=3
	movss	-112(%rbp), %xmm0               ## xmm0 = mem[0],zero,zero,zero
	subss	-96(%rbp), %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2ssl	(%r14), %xmm1
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %eax
	movl	%eax, (%r14)
	movss	-108(%rbp), %xmm0               ## xmm0 = mem[0],zero,zero,zero
	subss	-92(%rbp), %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2ssl	(%rbx), %xmm1
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %eax
	movl	%eax, (%rbx)
	movss	-104(%rbp), %xmm0               ## xmm0 = mem[0],zero,zero,zero
	subss	-88(%rbp), %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2ssl	(%r15), %xmm1
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %eax
	movl	%eax, (%r15)
	movq	-176(%rbp), %rax                ## 8-byte Reload
	incq	%rax
	addl	-144(%rbp), %r13d               ## 4-byte Folded Reload
	cmpq	%rax, -136(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_29
## %bb.33:                              ##   in Loop: Header=BB0_28 Depth=2
	movl	-124(%rbp), %ecx                ## 4-byte Reload
	incl	%ecx
	movq	-136(%rbp), %rax                ## 8-byte Reload
	addl	%eax, -140(%rbp)                ## 4-byte Folded Spill
	movl	%ecx, -124(%rbp)                ## 4-byte Spill
	cmpl	%eax, %ecx
	jne	LBB0_28
## %bb.34:                              ##   in Loop: Header=BB0_27 Depth=1
	movl	-120(%rbp), %eax                ## 4-byte Reload
	incl	%eax
	movl	%eax, -120(%rbp)                ## 4-byte Spill
	cmpl	-136(%rbp), %eax                ## 4-byte Folded Reload
	jne	LBB0_27
LBB0_35:
	movss	-80(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	subss	-64(%rbp), %xmm0
	cvtss2sd	%xmm0, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %edi
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	xorps	%xmm0, %xmm0
	callq	_av_clipf
	movq	-168(%rbp), %rbx                ## 8-byte Reload
	movq	%rax, 16(%rbx)
	movss	-76(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	subss	-60(%rbp), %xmm0
	cvtss2sd	%xmm0, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %edi
	xorps	%xmm0, %xmm0
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	callq	_av_clipf
	movq	%rax, 8(%rbx)
	movss	-72(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	subss	-56(%rbp), %xmm0
	cvtss2sd	%xmm0, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %edi
	xorps	%xmm0, %xmm0
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	callq	_av_clipf
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_38
LBB0_9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_36:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_37:
	movl	(%rax), %eax
	jmp	LBB0_38
LBB0_23:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.9(%rip), %rdx
	movq	%r14, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_41:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_LINE_SIZE,4,2              ## @MAX_LINE_SIZE
	.section	__TEXT,__const
	.p2align	2                               ## @__const.parse_cinespace.out_max
l___const.parse_cinespace.out_max:
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CSPLUTV100"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Not cineSpace LUT format\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"3D"

L_.str.3:                               ## @.str.3
	.asciz	"Not 3D LUT format\n"

L_.str.4:                               ## @.str.4
	.asciz	"BEGIN METADATA"

L_.str.5:                               ## @.str.5
	.asciz	"END METADATA"

L_.str.6:                               ## @.str.6
	.asciz	"Unsupported number of pre-lut points.\n"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
L_.str.7:                               ## @.str.7
	.asciz	"%f %f"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.8:                               ## @.str.8
	.asciz	"%d %d %d"

L_.str.9:                               ## @.str.9
	.asciz	"Unsupported size combination: %dx%dx%d.\n"

L_.str.10:                              ## @.str.10
	.asciz	"%f %f %f"

	.no_dead_strip	_parse_cinespace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_cinespace
_parse_cinespace:                       ; @parse_cinespace
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	sub	sp, sp, #96
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-104]
	ldr	x23, [x0]
Lloh3:
	adrp	x8, _MAX_LINE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_LINE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	stur	wzr, [x29, #-112]
	stur	xzr, [x29, #-120]
Lloh8:
	adrp	x8, l___const.parse_cinespace.out_max@PAGE
Lloh9:
	add	x8, x8, l___const.parse_cinespace.out_max@PAGEOFF
	ldr	x9, [x8]
	stur	x9, [x29, #-136]
	ldr	w8, [x8, #8]
	stur	w8, [x29, #-128]
	stur	wzr, [x29, #-144]
	stur	xzr, [x29, #-152]
	stur	x9, [x29, #-168]
	stur	w8, [x29, #-160]
	mov	x0, x19
	bl	_skip_line
	bl	_NEXT_LINE
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #10
	bl	_strncmp
	cbz	x0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_skip_line
	bl	_NEXT_LINE
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w2, #2
	bl	_strncmp
	cbz	x0, LBB0_8
; %bb.3:
Lloh19:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.3@PAGE
Lloh23:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_4:
	mov	x0, x20
	bl	_av_log
LBB0_5:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_6:
	ldur	x8, [x29, #-104]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_41
; %bb.7:
	sub	sp, x29, #96
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w8, #1
Lloh30:
	adrp	x21, l_.str.4@PAGE
Lloh31:
	add	x21, x21, l_.str.4@PAGEOFF
Lloh32:
	adrp	x22, l_.str.5@PAGE
Lloh33:
	add	x22, x22, l_.str.5@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x8
	mov	x0, x19
	bl	_skip_line
	bl	_NEXT_LINE
	mov	x0, x19
	mov	x1, x21
	mov	w2, #14
	bl	_strncmp
	mov	w8, #0
	cbz	x0, LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	w2, #12
	bl	_strncmp
	cmp	x0, #0
	cset	w8, eq
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	eor	w9, w24, #0x1
	tbnz	w9, #0, LBB0_9
; %bb.12:
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_strtol
	cmp	w0, #2
	b.ne	LBB0_36
; %bb.13:
	mov	x0, x19
	bl	_skip_line
	bl	_NEXT_LINE
	sub	x8, x29, #136
	sub	x9, x29, #120
	stp	x9, x8, [sp, #-16]!
Lloh34:
	adrp	x1, l_.str.7@PAGE
Lloh35:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_av_sscanf
	add	sp, sp, #16
	cmp	w0, #2
	b.ne	LBB0_38
; %bb.14:
	mov	x0, x19
	bl	_skip_line
	bl	_NEXT_LINE
	sub	x8, x29, #168
	sub	x9, x29, #152
	stp	x9, x8, [sp, #-16]!
Lloh36:
	adrp	x1, l_.str.7@PAGE
Lloh37:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_av_sscanf
	add	sp, sp, #16
	cmp	w0, #2
	b.ne	LBB0_38
; %bb.15:
	mov	x0, x19
	bl	_skip_line
	bl	_NEXT_LINE
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_strtol
	cmp	w0, #2
	b.ne	LBB0_36
; %bb.16:
	mov	x0, x19
	bl	_skip_line
	bl	_NEXT_LINE
	sub	x8, x29, #120
	orr	x8, x8, #0x4
	sub	x9, x29, #136
	orr	x9, x9, #0x4
	stp	x8, x9, [sp, #-16]!
Lloh38:
	adrp	x1, l_.str.7@PAGE
Lloh39:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_av_sscanf
	add	sp, sp, #16
	cmp	w0, #2
	b.ne	LBB0_38
; %bb.17:
	mov	x0, x19
	bl	_skip_line
	bl	_NEXT_LINE
	sub	x8, x29, #152
	orr	x8, x8, #0x4
	sub	x9, x29, #168
	orr	x9, x9, #0x4
	stp	x8, x9, [sp, #-16]!
Lloh40:
	adrp	x1, l_.str.7@PAGE
Lloh41:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_av_sscanf
	add	sp, sp, #16
	cmp	w0, #2
	b.ne	LBB0_38
; %bb.18:
	mov	x0, x19
	bl	_skip_line
	bl	_NEXT_LINE
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_strtol
	cmp	w0, #2
	b.ne	LBB0_36
; %bb.19:
	mov	x0, x19
	bl	_skip_line
	bl	_NEXT_LINE
	sub	x8, x29, #120
	add	x8, x8, #8
	sub	x9, x29, #136
	add	x9, x9, #8
	stp	x8, x9, [sp, #-16]!
Lloh42:
	adrp	x1, l_.str.7@PAGE
Lloh43:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_av_sscanf
	add	sp, sp, #16
	cmp	w0, #2
	b.ne	LBB0_38
; %bb.20:
	mov	x0, x19
	bl	_skip_line
	bl	_NEXT_LINE
	sub	x8, x29, #152
	add	x8, x8, #8
	sub	x9, x29, #168
	add	x9, x9, #8
	stp	x8, x9, [sp, #-16]!
Lloh44:
	adrp	x1, l_.str.7@PAGE
Lloh45:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_av_sscanf
	add	sp, sp, #16
	cmp	w0, #2
	b.ne	LBB0_38
; %bb.21:
	mov	x0, x19
	bl	_skip_line
	bl	_NEXT_LINE
	sub	sp, sp, #32
	sub	x8, x29, #180
	str	x8, [sp, #16]
	sub	x8, x29, #176
	sub	x9, x29, #172
	stp	x9, x8, [sp]
Lloh46:
	adrp	x1, l_.str.8@PAGE
Lloh47:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_av_sscanf
	add	sp, sp, #32
	cmp	w0, #3
	b.ne	LBB0_5
; %bb.22:
	ldp	w8, w21, [x29, #-176]
	ldur	w9, [x29, #-180]
	cmp	w21, w8
	b.ne	LBB0_40
; %bb.23:
	cmp	w21, w9
	b.ne	LBB0_40
; %bb.24:
	mov	x0, x20
	mov	x1, x21
	bl	_allocate_3dlut
	tbnz	w0, #31, LBB0_6
; %bb.25:
	cmp	w21, #1
	b.lt	LBB0_35
; %bb.26:
	stur	wzr, [x29, #-192]               ; 4-byte Folded Spill
	mul	w24, w21, w21
Lloh48:
	adrp	x20, l_.str.10@PAGE
Lloh49:
	add	x20, x20, l_.str.10@PAGEOFF
LBB0_27:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_28 Depth 2
                                        ;       Child Loop BB0_29 Depth 3
	ldur	w8, [x29, #-192]                ; 4-byte Folded Reload
	stp	w8, wzr, [x29, #-188]           ; 8-byte Folded Spill
LBB0_28:                                ;   Parent Loop BB0_27 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_29 Depth 3
	mov	x28, #0
	ldp	w8, w26, [x29, #-192]           ; 8-byte Folded Reload
	ldur	w9, [x29, #-184]                ; 4-byte Folded Reload
	orr	w8, w8, w9
	cmp	w8, #0
	cset	w22, ne
LBB0_29:                                ;   Parent Loop BB0_27 Depth=1
                                        ;     Parent Loop BB0_28 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x25, [x23, #24]
	cmp	x28, #0
	cset	w8, ne
	orr	w8, w22, w8
	cmp	w8, #1
	b.ne	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=3
	mov	x0, x19
	bl	_skip_line
	bl	_NEXT_LINE
LBB0_31:                                ;   in Loop: Header=BB0_29 Depth=3
	sxtw	x27, w26
	mov	w8, #12
	madd	x25, x27, x8, x25
	add	x8, x25, #4
	add	x26, x25, #8
	sub	sp, sp, #32
	stp	x8, x26, [sp, #8]
	str	x25, [sp]
	mov	x0, x19
	mov	x1, x20
	bl	_av_sscanf
	add	sp, sp, #32
	cmp	w0, #3
	b.ne	LBB0_38
; %bb.32:                               ;   in Loop: Header=BB0_29 Depth=3
	ldur	d0, [x29, #-168]
	ldur	d1, [x29, #-152]
	fsub.2s	v0, v0, v1
	ldr	d1, [x25]
	scvtf.2s	v1, v1
	fmul.2s	v0, v0, v1
	fcvtzs.2s	v0, v0
	str	d0, [x25]
	ldur	s0, [x29, #-160]
	ldur	s1, [x29, #-144]
	fsub	s0, s0, s1
	ldr	s1, [x26]
	scvtf	s1, s1
	fmul	s0, s0, s1
	fcvtzs	w8, s0
	str	w8, [x26]
	add	x28, x28, #1
	add	w26, w27, w24
	cmp	x21, x28
	b.ne	LBB0_29
; %bb.33:                               ;   in Loop: Header=BB0_28 Depth=2
	ldp	w9, w8, [x29, #-188]            ; 8-byte Folded Reload
	add	w8, w8, #1
	add	w9, w9, w21
	stp	w9, w8, [x29, #-188]            ; 8-byte Folded Spill
	cmp	w8, w21
	b.ne	LBB0_28
; %bb.34:                               ;   in Loop: Header=BB0_27 Depth=1
	ldur	w8, [x29, #-192]                ; 4-byte Folded Reload
	add	w8, w8, #1
	stur	w8, [x29, #-192]                ; 4-byte Folded Spill
	cmp	w8, w21
	b.ne	LBB0_27
LBB0_35:
	ldur	s0, [x29, #-136]
	ldur	s1, [x29, #-120]
	fsub	s0, s0, s1
	fcvt	d0, s0
	fmov	d8, #1.00000000
	fdiv	d0, d8, d0
	fcvtzs	w0, d0
	movi	d0, #0000000000000000
	fmov	s1, #1.00000000
	bl	_av_clipf
	str	x0, [x23, #16]
	ldur	s0, [x29, #-132]
	ldur	s1, [x29, #-116]
	fsub	s0, s0, s1
	fcvt	d0, s0
	fdiv	d0, d8, d0
	fcvtzs	w0, d0
	movi	d0, #0000000000000000
	fmov	s1, #1.00000000
	bl	_av_clipf
	str	x0, [x23, #8]
	ldur	s0, [x29, #-128]
	ldur	s1, [x29, #-112]
	fsub	s0, s0, s1
	fcvt	d0, s0
	fdiv	d0, d8, d0
	fcvtzs	w0, d0
	movi	d0, #0000000000000000
	fmov	s1, #1.00000000
	bl	_av_clipf
	mov	x8, x0
	mov	w0, #0
	str	x8, [x23]
	b	LBB0_6
LBB0_36:
Lloh50:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh51:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
Lloh53:
	adrp	x2, l_.str.6@PAGE
Lloh54:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_av_log
LBB0_37:
Lloh55:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh56:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
	b	LBB0_39
LBB0_38:
Lloh57:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_39:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_40:
Lloh59:
	adrp	x10, _AV_LOG_ERROR@GOTPAGE
Lloh60:
	ldr	x10, [x10, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x10]
	sub	sp, sp, #32
	stp	x8, x9, [sp, #8]
	str	x21, [sp]
Lloh62:
	adrp	x2, l_.str.9@PAGE
Lloh63:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_av_log
	add	sp, sp, #32
	b	LBB0_37
LBB0_41:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_LINE_SIZE,4,2              ; @MAX_LINE_SIZE
	.section	__TEXT,__const
	.p2align	2                               ; @__const.parse_cinespace.out_max
l___const.parse_cinespace.out_max:
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CSPLUTV100"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Not cineSpace LUT format\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"3D"

l_.str.3:                               ; @.str.3
	.asciz	"Not 3D LUT format\n"

l_.str.4:                               ; @.str.4
	.asciz	"BEGIN METADATA"

l_.str.5:                               ; @.str.5
	.asciz	"END METADATA"

l_.str.6:                               ; @.str.6
	.asciz	"Unsupported number of pre-lut points.\n"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
l_.str.7:                               ; @.str.7
	.asciz	"%f %f"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.8:                               ; @.str.8
	.asciz	"%d %d %d"

l_.str.9:                               ; @.str.9
	.asciz	"Unsupported size combination: %dx%dx%d.\n"

l_.str.10:                              ; @.str.10
	.asciz	"%f %f %f"

	.no_dead_strip	_parse_cinespace
.subsections_via_symbols
