	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_csc_coeffs
_calc_csc_coeffs:                       ## @calc_csc_coeffs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	16(%rdi), %edi
	callq	_QUANT_MAP
	movl	%eax, %ebx
	addl	%eax, %ebx
	movl	36(%r14), %edi
	callq	_QUANT_MAP
	orl	%ebx, %eax
	movq	8(%r14), %rcx
	cmpq	24(%r14), %rcx
	jne	LBB0_5
## %bb.1:
	movq	_IPUV3_COLORSPACE_YUV@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.2:
	movq	_yuv2yuv@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_10
LBB0_5:
	movl	32(%r14), %edx
	cmpl	$129, %edx
	je	LBB0_6
## %bb.7:
	cmpl	$128, %edx
	jne	LBB0_12
## %bb.8:
	movq	_rgb2yuv_709@GOTPCREL(%rip), %rdx
	movq	_yuv2rgb_709@GOTPCREL(%rip), %rsi
	jmp	LBB0_9
LBB0_4:
	movq	_rgb2rgb@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_10
LBB0_6:
	movq	_rgb2yuv_601@GOTPCREL(%rip), %rdx
	movq	_yuv2rgb_601@GOTPCREL(%rip), %rsi
LBB0_9:
	movq	_IPUV3_COLORSPACE_YUV@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rcx
	cmovneq	%rdx, %rsi
	movq	(%rsi), %rcx
LBB0_10:
	cltq
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_IPUV3_COLORSPACE_YUV,8,3       ## @IPUV3_COLORSPACE_YUV
	.comm	_yuv2yuv,8,3                    ## @yuv2yuv
	.comm	_rgb2rgb,8,3                    ## @rgb2rgb
	.comm	_yuv2rgb_601,8,3                ## @yuv2rgb_601
	.comm	_rgb2yuv_601,8,3                ## @rgb2yuv_601
	.comm	_yuv2rgb_709,8,3                ## @yuv2rgb_709
	.comm	_rgb2yuv_709,8,3                ## @rgb2yuv_709
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_calc_csc_coeffs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_csc_coeffs
_calc_csc_coeffs:                       ; @calc_csc_coeffs
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_QUANT_MAP
	mov	x20, x0
	ldr	w0, [x19, #36]
	bl	_QUANT_MAP
	orr	w8, w0, w20, lsl #1
	ldr	x9, [x19, #8]
	ldr	x10, [x19, #24]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.1:
Lloh0:
	adrp	x10, _IPUV3_COLORSPACE_YUV@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IPUV3_COLORSPACE_YUV@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.2:
	mov	w0, #0
Lloh3:
	adrp	x9, _yuv2yuv@GOTPAGE
Lloh4:
	ldr	x9, [x9, _yuv2yuv@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
	ldr	w10, [x19, #32]
	cmp	w10, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w10, #128
	b.ne	LBB0_11
; %bb.5:
Lloh5:
	adrp	x10, _rgb2yuv_709@GOTPAGE
Lloh6:
	ldr	x10, [x10, _rgb2yuv_709@GOTPAGEOFF]
Lloh7:
	adrp	x11, _yuv2rgb_709@GOTPAGE
Lloh8:
	ldr	x11, [x11, _yuv2rgb_709@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	w0, #0
Lloh9:
	adrp	x9, _rgb2rgb@GOTPAGE
Lloh10:
	ldr	x9, [x9, _rgb2rgb@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh11:
	adrp	x10, _rgb2yuv_601@GOTPAGE
Lloh12:
	ldr	x10, [x10, _rgb2yuv_601@GOTPAGEOFF]
Lloh13:
	adrp	x11, _yuv2rgb_601@GOTPAGE
Lloh14:
	ldr	x11, [x11, _yuv2rgb_601@GOTPAGEOFF]
LBB0_8:
	mov	w0, #0
Lloh15:
	adrp	x12, _IPUV3_COLORSPACE_YUV@GOTPAGE
Lloh16:
	ldr	x12, [x12, _IPUV3_COLORSPACE_YUV@GOTPAGEOFF]
Lloh17:
	ldr	x12, [x12]
	cmp	x9, x12
	csel	x9, x11, x10, eq
LBB0_9:
	ldr	x9, [x9]
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh18:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IPUV3_COLORSPACE_YUV,8,3       ; @IPUV3_COLORSPACE_YUV
	.comm	_yuv2yuv,8,3                    ; @yuv2yuv
	.comm	_rgb2rgb,8,3                    ; @rgb2rgb
	.comm	_yuv2rgb_601,8,3                ; @yuv2rgb_601
	.comm	_rgb2yuv_601,8,3                ; @rgb2yuv_601
	.comm	_yuv2rgb_709,8,3                ; @yuv2rgb_709
	.comm	_rgb2yuv_709,8,3                ; @rgb2yuv_709
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_calc_csc_coeffs
.subsections_via_symbols
