	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_rgb2rgb_matrix
_get_rgb2rgb_matrix:                    ## @get_rgb2rgb_matrix
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_primaries_table@GOTPCREL(%rip), %rax
	movl	%esi, %esi
	shlq	$2, %rsi
	movq	(%rax), %rdi
	addq	%rsi, %rdi
	movq	_whitepoint_table@GOTPCREL(%rip), %r13
	addq	(%r13), %rsi
	leaq	-128(%rbp), %rbx
	movq	%rbx, %rdx
	callq	_ff_fill_rgb2xyz_table
	leaq	-208(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ff_matrix_invert_3x3
	movl	%r15d, %esi
	shlq	$2, %rsi
	movq	_primaries_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rsi, %rdi
	addq	(%r13), %rsi
	movq	%rbx, %rdx
	callq	_ff_fill_rgb2xyz_table
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_ff_matrix_mul_3x3
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_primaries_table,8,3            ## @primaries_table
	.comm	_whitepoint_table,8,3           ## @whitepoint_table
	.no_dead_strip	_get_rgb2rgb_matrix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_rgb2rgb_matrix
_get_rgb2rgb_matrix:                    ; @get_rgb2rgb_matrix
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	mov	x19, x2
	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, #-40]
Lloh3:
	adrp	x21, _primaries_table@GOTPAGE
Lloh4:
	ldr	x21, [x21, _primaries_table@GOTPAGEOFF]
	ldr	x8, [x21]
	mov	w9, w1
	lsl	x9, x9, #2
	add	x0, x8, x9
Lloh5:
	adrp	x22, _whitepoint_table@GOTPAGE
Lloh6:
	ldr	x22, [x22, _whitepoint_table@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x1, x8, x9
	add	x2, sp, #80
	bl	_ff_fill_rgb2xyz_table
	add	x0, sp, #80
	add	x1, sp, #8
	bl	_ff_matrix_invert_3x3
	ldr	x8, [x21]
	mov	w9, w20
	lsl	x9, x9, #2
	add	x0, x8, x9
	ldr	x8, [x22]
	add	x1, x8, x9
	add	x2, sp, #80
	bl	_ff_fill_rgb2xyz_table
	add	x1, sp, #80
	add	x2, sp, #8
	mov	x0, x19
	bl	_ff_matrix_mul_3x3
	ldur	x8, [x29, #-40]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_primaries_table,8,3            ; @primaries_table
	.comm	_whitepoint_table,8,3           ; @whitepoint_table
	.no_dead_strip	_get_rgb2rgb_matrix
.subsections_via_symbols
