	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function calc_coefficients
LCPI0_0:
	.quad	0xbff0000000000000              ## double -1
	.quad	0xbff0000000000000              ## double -1
LCPI0_1:
	.quad	0x3fe0000000000000              ## double 0.5
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_calc_coefficients:                     ## @calc_coefficients
	.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	$2584, %rsp                     ## imm = 0xA18
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -2616(%rbp)               ## 8-byte Spill
	movq	(%rdi), %r15
	movq	_yuv_coeff_luma@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	-352(%rbp), %rcx
	xorl	%edx, %edx
	movapd	LCPI0_0(%rip), %xmm0            ## xmm0 = [-1.0E+0,-1.0E+0]
	movapd	LCPI0_1(%rip), %xmm1            ## xmm1 = [5.0E-1,5.0E-1]
	movabsq	$4602678819172646912, %rsi      ## imm = 0x3FE0000000000000
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdx,8), %rdi
	movsd	(%rdi), %xmm2                   ## xmm2 = mem[0],zero
	movsd	%xmm2, -64(%rcx)
	movsd	8(%rdi), %xmm3                  ## xmm3 = mem[0],zero
	movsd	%xmm3, -56(%rcx)
	movsd	16(%rdi), %xmm4                 ## xmm4 = mem[0],zero
	movsd	%xmm4, -48(%rcx)
	movapd	%xmm3, %xmm5
	unpcklpd	%xmm4, %xmm5                    ## xmm5 = xmm5[0],xmm4[0]
	addpd	%xmm0, %xmm5
	movapd	%xmm1, %xmm6
	divpd	%xmm5, %xmm6
	unpcklpd	%xmm2, %xmm4                    ## xmm4 = xmm4[0],xmm2[0]
	mulsd	%xmm6, %xmm2
	movsd	%xmm2, -40(%rcx)
	movq	%rsi, -32(%rcx)
	mulpd	%xmm6, %xmm4
	movupd	%xmm4, -24(%rcx)
	unpckhpd	%xmm6, %xmm6                    ## xmm6 = xmm6[1,1]
	mulsd	%xmm3, %xmm6
	movsd	%xmm6, -8(%rcx)
	movq	%rsi, (%rcx)
	incq	%rdx
	addq	$72, %rcx
	cmpq	$5, %rdx
	jne	LBB0_1
## %bb.2:
	leaq	-784(%rbp), %rdi
	leaq	-416(%rbp), %rsi
	callq	_inverse3x3
	leaq	-712(%rbp), %rdi
	leaq	-344(%rbp), %rsi
	callq	_inverse3x3
	leaq	-640(%rbp), %rdi
	leaq	-272(%rbp), %rsi
	callq	_inverse3x3
	leaq	-568(%rbp), %rdi
	leaq	-200(%rbp), %rsi
	callq	_inverse3x3
	leaq	-496(%rbp), %rdi
	leaq	-128(%rbp), %rsi
	callq	_inverse3x3
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rax, -2608(%rbp)               ## 8-byte Spill
	leaq	(%rax,%rax,8), %rax
	leaq	-784(,%rax,8), %rax
	addq	%rbp, %rax
	movq	%rax, -2624(%rbp)               ## 8-byte Spill
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,8), %rax
	leaq	-2592(%rbp,%rax,8), %rbx
	movq	%rcx, -2600(%rbp)               ## 8-byte Spill
	leaq	(,%rcx,8), %r13
	leaq	-416(%rbp), %r14
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movq	-2624(%rbp), %rsi               ## 8-byte Reload
	movq	%r14, %rdx
	callq	_solve_coefficients
	movsd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero
	callq	_NS
	movq	(%r15), %rcx
	addq	%r13, %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movsd	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero
	callq	_NS
	movq	(%r15), %rcx
	addq	%r13, %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 4(%rcx)
	movsd	16(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	callq	_NS
	movq	(%r15), %rcx
	addq	%r13, %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 8(%rcx)
	movsd	24(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	callq	_NS
	movq	(%r15), %rcx
	addq	%r13, %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, (%rcx)
	movsd	32(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	callq	_NS
	movq	(%r15), %rcx
	addq	%r13, %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, 4(%rcx)
	movsd	40(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	callq	_NS
	movq	(%r15), %rcx
	addq	%r13, %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, 8(%rcx)
	movsd	48(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	callq	_NS
	movq	(%r15), %rcx
	addq	%r13, %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	16(%rcx), %rcx
	movl	%eax, (%rcx)
	movsd	56(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	callq	_NS
	movq	(%r15), %rcx
	addq	%r13, %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	16(%rcx), %rcx
	movl	%eax, 4(%rcx)
	movsd	64(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	callq	_NS
	movq	(%r15), %rcx
	addq	%r13, %rcx
	movq	(%rcx,%r12,8), %rdx
	movq	16(%rdx), %rcx
	movl	%eax, 8(%rcx)
	movq	(%rdx), %rax
	cmpl	$65536, (%rax)                  ## imm = 0x10000
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	8(%rdx), %rax
	cmpl	$0, (%rax)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$0, (%rcx)
	je	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-2616(%rbp), %rdi               ## 8-byte Reload
	leaq	L_.str(%rip), %rdx
	callq	_av_log
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%r12
	addq	$72, %rbx
	addq	$72, %r14
	cmpq	$5, %r12
	jne	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-2608(%rbp), %rax               ## 8-byte Reload
	incq	%rax
	movq	-2600(%rbp), %rcx               ## 8-byte Reload
	addq	%r12, %rcx
	cmpq	$5, %rax
	jne	LBB0_3
## %bb.10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$2584, %rsp                     ## imm = 0xA18
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_yuv_coeff_luma,8,3             ## @yuv_coeff_luma
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error calculating conversion coefficients\n"

	.no_dead_strip	_calc_coefficients
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_coefficients
_calc_coefficients:                     ; @calc_coefficients
	.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, #2560
	mov	x19, x0
	mov	x8, #0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-96]
	ldr	x24, [x0]
Lloh3:
	adrp	x9, _yuv_coeff_luma@GOTPAGE
Lloh4:
	ldr	x9, [x9, _yuv_coeff_luma@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x10, sp, #2184
	add	x10, x10, #32
	fmov	d0, #-1.00000000
	fmov	d1, #0.50000000
	mov	x11, #4602678819172646912
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9, x8]
	ldr	d2, [x12]
	stur	d2, [x10, #-32]
	ldr	d3, [x12, #8]
	stur	d3, [x10, #-24]
	ldr	d4, [x12, #16]
	fadd	d5, d3, d0
	fdiv	d5, d1, d5
	fadd	d6, d4, d0
	fdiv	d6, d1, d6
	fmul	d7, d2, d5
	stp	d4, d7, [x10, #-16]
	str	x11, [x10]
	fmul	d4, d5, d4
	fmul	d2, d2, d6
	stp	d4, d2, [x10, #8]
	fmul	d2, d3, d6
	str	d2, [x10, #24]
	str	x11, [x10, #32]
	add	x8, x8, #8
	add	x10, x10, #72
	cmp	x8, #40
	b.ne	LBB0_1
; %bb.2:
	add	x21, sp, #1824
	add	x20, sp, #2184
	add	x0, sp, #1824
	add	x1, sp, #2184
	bl	_inverse3x3
	add	x0, x21, #72
	add	x1, x20, #72
	bl	_inverse3x3
	add	x0, x21, #144
	add	x1, x20, #144
	bl	_inverse3x3
	add	x0, x21, #216
	add	x1, x20, #216
	bl	_inverse3x3
	add	x0, x21, #288
	add	x1, x20, #288
	bl	_inverse3x3
	mov	x10, #0
	mov	x8, #0
Lloh6:
	adrp	x25, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x25, [x25, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	adrp	x20, l_.str@PAGE
Lloh9:
	add	x20, x20, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	x28, #0
	add	x9, sp, #1824
	mov	w11, #72
	madd	x21, x10, x11, x9
	sxtw	x9, w8
	add	x8, sp, #24
	smaddl	x22, w9, w11, x8
	stp	x9, x10, [sp, #8]               ; 16-byte Folded Spill
	lsl	x27, x9, #3
	add	x23, sp, #2184
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_solve_coefficients
	ldr	d0, [x22]
	bl	_NS
	ldr	x8, [x24]
	add	x8, x8, x27
	lsl	x26, x28, #3
	ldr	x8, [x8, x26]
	ldr	x8, [x8]
	str	w0, [x8]
	ldr	d0, [x22, #8]
	bl	_NS
	ldr	x8, [x24]
	add	x8, x8, x27
	ldr	x8, [x8, x26]
	ldr	x8, [x8]
	str	w0, [x8, #4]
	ldr	d0, [x22, #16]
	bl	_NS
	ldr	x8, [x24]
	add	x8, x8, x27
	ldr	x8, [x8, x26]
	ldr	x8, [x8]
	str	w0, [x8, #8]
	ldr	d0, [x22, #24]
	bl	_NS
	ldr	x8, [x24]
	add	x8, x8, x27
	ldr	x8, [x8, x26]
	ldr	x8, [x8, #8]
	str	w0, [x8]
	ldr	d0, [x22, #32]
	bl	_NS
	ldr	x8, [x24]
	add	x8, x8, x27
	ldr	x8, [x8, x26]
	ldr	x8, [x8, #8]
	str	w0, [x8, #4]
	ldr	d0, [x22, #40]
	bl	_NS
	ldr	x8, [x24]
	add	x8, x8, x27
	ldr	x8, [x8, x26]
	ldr	x8, [x8, #8]
	str	w0, [x8, #8]
	ldr	d0, [x22, #48]
	bl	_NS
	ldr	x8, [x24]
	add	x8, x8, x27
	ldr	x8, [x8, x26]
	ldr	x8, [x8, #16]
	str	w0, [x8]
	ldr	d0, [x22, #56]
	bl	_NS
	ldr	x8, [x24]
	add	x8, x8, x27
	ldr	x8, [x8, x26]
	ldr	x8, [x8, #16]
	str	w0, [x8, #4]
	ldr	d0, [x22, #64]
	bl	_NS
	ldr	x8, [x24]
	add	x8, x8, x27
	ldr	x9, [x8, x26]
	ldr	x8, [x9, #16]
	str	w0, [x8, #8]
	ldr	x10, [x9]
	ldr	w10, [x10]
	cmp	w10, #16, lsl #12               ; =65536
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x9, [x9, #8]
	ldr	w9, [x9]
	cbnz	w9, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w8, [x8]
	cbz	w8, LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=2
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x20
	bl	_av_log
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=2
	add	x28, x28, #1
	add	x22, x22, #72
	add	x23, x23, #72
	cmp	x28, #5
	b.ne	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x8, x10, [sp, #8]               ; 16-byte Folded Reload
	add	x10, x10, #1
	add	x8, x8, x28
	cmp	x10, #5
	b.ne	LBB0_3
; %bb.10:
	ldur	x8, [x29, #-96]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	add	sp, sp, #2560
	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_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_yuv_coeff_luma,8,3             ; @yuv_coeff_luma
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error calculating conversion coefficients\n"

	.no_dead_strip	_calc_coefficients
.subsections_via_symbols
