	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_dat
_parse_dat:                             ## @parse_dat
	.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	$72, %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), %r15
	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, -104(%rbp)                ## 8-byte Spill
	movl	$33, (%r15)
	movq	%rbx, %rdi
	callq	_skip_line
	movl	%eax, %edi
	callq	_NEXT_LINE
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	$33, %r12d
	movq	%r14, %rdi
	movl	$33, %esi
	callq	_allocate_3dlut
	testl	%eax, %eax
	jns	LBB0_5
	jmp	LBB0_15
LBB0_3:
	movq	%rbx, %rdi
	addq	$10, %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_skip_line
	movl	%eax, %edi
	callq	_NEXT_LINE
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_allocate_3dlut
	testl	%eax, %eax
	js	LBB0_15
## %bb.4:
	testl	%r12d, %r12d
	jle	LBB0_16
LBB0_5:
	movl	%r12d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %rax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$8, %r14d
	xorl	%ecx, %ecx
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	movq	%rcx, %rax
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	orq	%rdx, %rax
	setne	%r15b
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %r12
	testq	%r13, %r13
	setne	%al
	orb	%r15b, %al
	cmpb	$1, %al
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=3
	movq	%rbx, %rdi
	callq	_skip_line
	movl	%eax, %edi
	callq	_NEXT_LINE
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=3
	leaq	(%r12,%r14), %rdx
	leaq	(%r12,%r14), %rcx
	addq	$-4, %rcx
	leaq	(%r12,%r14), %r8
	addq	$-8, %r8
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_av_sscanf
	cmpl	$3, %eax
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=3
	incq	%r13
	addq	$12, %r14
	cmpq	%r13, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	addq	-72(%rbp), %r14                 ## 8-byte Folded Reload
	cmpq	-56(%rbp), %rdx                 ## 8-byte Folded Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_7
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	addq	$13068, %r14                    ## imm = 0x330C
	xorl	%r15d, %r15d
	cmpq	-56(%rbp), %rcx                 ## 8-byte Folded Reload
	jne	LBB0_6
	jmp	LBB0_16
LBB0_14:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_16
LBB0_15:
	movl	%eax, %r15d
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	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	"3DLUTSIZE "

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

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_dat
_parse_dat:                             ; @parse_dat
	.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
	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, #-88]
	ldr	x22, [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
	mov	w8, #33
	str	w8, [x22]
	mov	x0, x19
	bl	_skip_line
	bl	_NEXT_LINE
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #10
	bl	_strncmp
	cbz	w0, LBB0_2
; %bb.1:
	mov	w21, #33
	mov	x0, x20
	mov	w1, #33
	bl	_allocate_3dlut
	tbz	w0, #31, LBB0_4
	b	LBB0_14
LBB0_2:
	add	x0, x19, #10
	mov	x1, #0
	mov	w2, #0
	bl	_strtol
	mov	x21, x0
	mov	x0, x19
	bl	_skip_line
	bl	_NEXT_LINE
	mov	x0, x20
	mov	x1, x21
	bl	_allocate_3dlut
	tbnz	w0, #31, LBB0_14
; %bb.3:
	cmp	w21, #1
	b.lt	LBB0_16
LBB0_4:
	mov	x9, #0
	mov	w24, w21
	add	x8, x24, w21, uxtw #1
	lsl	x8, x8, #2
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
	mov	w25, #8
Lloh10:
	adrp	x20, l_.str.1@PAGE
Lloh11:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_7 Depth 3
	mov	x27, #0
	stur	x25, [x29, #-112]               ; 8-byte Folded Spill
	stur	x9, [x29, #-96]                 ; 8-byte Folded Spill
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_7 Depth 3
	mov	x26, #0
	orr	x8, x9, x27
	cmp	x8, #0
	cset	w21, ne
	mov	x28, x25
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x23, [x22, #8]
	cmp	x26, #0
	cset	w8, ne
	orr	w8, w21, w8
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=3
	mov	x0, x19
	bl	_skip_line
	bl	_NEXT_LINE
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=3
	add	x2, x23, x28
	sub	x3, x2, #4
	sub	x4, x2, #8
	mov	x0, x19
	mov	x1, x20
	bl	_av_sscanf
	cmp	w0, #3
	b.ne	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=3
	add	x26, x26, #1
	add	x28, x28, #12
	cmp	x24, x26
	b.ne	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=2
	add	x27, x27, #1
	ldp	x8, x9, [x29, #-104]            ; 16-byte Folded Reload
	add	x25, x25, x8
	cmp	x27, x24
	b.ne	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #0
	add	x9, x9, #1
	ldur	x25, [x29, #-112]               ; 8-byte Folded Reload
	mov	w8, #13068
	add	x25, x25, x8
	cmp	x9, x24
	b.ne	LBB0_5
	b	LBB0_14
LBB0_13:
Lloh12:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.15:
	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_16:
	mov	w0, #0
	b	LBB0_14
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_LINE_SIZE,4,2              ; @MAX_LINE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"3DLUTSIZE "

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

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