	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function parse_3dl
LCPI0_0:
	.long	0x39800000                      ## float 2.44140625E-4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_parse_3dl:                             ## @parse_3dl
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_LINE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	(%r15), %r14
	movl	$17, (%r14)
	movq	%r15, %rdi
	movl	$17, %esi
	callq	_allocate_3dlut
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	movq	%rbx, %rdi
	callq	_skip_line
	movl	%eax, %edi
	callq	_NEXT_LINE
	movl	$8, %r15d
	xorl	%ecx, %ecx
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_4 Depth 3
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_4 Depth 3
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	8(%r14), %r13
	movq	%rbx, %rdi
	callq	_skip_line
	movl	%eax, %edi
	callq	_NEXT_LINE
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-60(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-52(%rbp), %r8
	callq	_av_sscanf
	cmpl	$3, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=3
	xorps	%xmm0, %xmm0
	cvtsi2ssl	-60(%rbp), %xmm0
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	cvttss2si	%xmm0, %eax
	addq	%r15, %r13
	movl	%eax, -8(%r12,%r13)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	-56(%rbp), %xmm0
	mulss	%xmm1, %xmm0
	cvttss2si	%xmm0, %eax
	movl	%eax, -4(%r12,%r13)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	-52(%rbp), %xmm0
	mulss	%xmm1, %xmm0
	cvttss2si	%xmm0, %eax
	movl	%eax, (%r12,%r13)
	addq	$12, %r12
	cmpq	$204, %r12
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	addq	$204, %r15
	cmpq	$17, %rax
	jne	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	addq	$3468, %r15                     ## imm = 0xD8C
	xorl	%eax, %eax
	cmpq	$17, %rcx
	jne	LBB0_2
	jmp	LBB0_9
LBB0_5:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_LINE_SIZE,4,2              ## @MAX_LINE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d %d %d"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_parse_3dl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_3dl
_parse_3dl:                             ; @parse_3dl
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
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
	ldr	x21, [x0]
	mov	w8, #17
	str	w8, [x21]
	mov	w1, #17
	bl	_allocate_3dlut
	tbnz	w0, #31, LBB0_9
; %bb.1:
	mov	x0, x19
	bl	_skip_line
	bl	_NEXT_LINE
	mov	x22, #0
	mov	x23, #0
	mov	w24, #964689920
Lloh8:
	adrp	x20, l_.str@PAGE
Lloh9:
	add	x20, x20, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
                                        ;       Child Loop BB0_4 Depth 3
	mov	x25, #0
	mov	x26, x22
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_4 Depth 3
	mov	x27, #0
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_3 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x28, [x21, #8]
	mov	x0, x19
	bl	_skip_line
	bl	_NEXT_LINE
	sub	x2, x29, #92
	sub	x3, x29, #96
	sub	x4, x29, #100
	mov	x0, x19
	mov	x1, x20
	bl	_av_sscanf
	cmp	w0, #3
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=3
	ldur	s0, [x29, #-92]
	scvtf	s0, s0
	fmov	s1, w24
	fmul	s0, s0, s1
	fcvtzs	w8, s0
	add	x9, x28, x26
	add	x9, x9, x27
	str	w8, [x9]
	ldur	s0, [x29, #-96]
	scvtf	s0, s0
	fmul	s0, s0, s1
	fcvtzs	w8, s0
	str	w8, [x9, #4]
	ldur	s0, [x29, #-100]
	scvtf	s0, s0
	fmul	s0, s0, s1
	fcvtzs	w8, s0
	str	w8, [x9, #8]
	add	x27, x27, #12
	cmp	x27, #204
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=2
	add	x25, x25, #1
	add	x26, x26, #204
	cmp	x25, #17
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #0
	add	x23, x23, #1
	add	x22, x22, #3468
	cmp	x23, #17
	b.ne	LBB0_2
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
LBB0_9:
	ldur	x8, [x29, #-88]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_LINE_SIZE,4,2              ; @MAX_LINE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d %d %d"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_parse_3dl
.subsections_via_symbols
