	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ycbcr_to_color
_ycbcr_to_color:                        ## @ycbcr_to_color
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, %r9
                                        ## kill: def $ecx killed $ecx def $rcx
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $esi killed $esi def $rsi
	movq	16(%rbp), %r15
	movq	(%rdi), %rbx
	movq	_V4L2_QUANTIZATION_FULL_RANGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r8d, %r8d
	cmpq	%rax, %rbx
	setne	%r8b
	shll	$4, %r8d
	movl	8(%rdi), %edi
	addl	$-128, %edi
	cmpl	$6, %edi
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %r10
	movslq	(%r10,%rdi,4), %rdi
	addq	%r10, %rdi
	jmpq	*%rdi
LBB0_2:
	leaq	_ycbcr_to_color.rec709(%rip), %rdi
	jmp	LBB0_4
LBB0_3:
	leaq	_ycbcr_to_color.bt601(%rip), %rdi
LBB0_4:
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	$16, %r8d
	jmp	LBB0_11
LBB0_5:
	cmpq	%rax, %rbx
	leaq	_ycbcr_to_color.smpte240m_full(%rip), %rax
	leaq	_ycbcr_to_color.smpte240m(%rip), %rdi
	jmp	LBB0_10
LBB0_6:
	xorl	%r14d, %r14d
	cmpq	%rax, %rbx
	movl	$4080, %eax                     ## imm = 0xFF0
	movl	$4751, %r10d                    ## imm = 0x128F
	cmovel	%eax, %r10d
	movl	$6453, %eax                     ## imm = 0x1935
	movl	$7346, %r11d                    ## imm = 0x1CB2
	cmovel	%eax, %r11d
	movl	$7917, %eax                     ## imm = 0x1EED
	movl	$9012, %ebx                     ## imm = 0x2334
	cmovel	%eax, %ebx
	movl	$4054, %eax                     ## imm = 0xFD6
	movl	$4615, %r8d                     ## imm = 0x1207
	cmovel	%eax, %r8d
	movl	$7011, %eax                     ## imm = 0x1B63
	movl	$7981, %edi                     ## imm = 0x1F2D
	cmovel	%eax, %edi
	movl	$255, %eax
	movl	$219, %r12d
	cmovel	%eax, %r12d
	sete	%r14b
	shll	$8, %r14d
	addl	%esi, %r14d
	addl	$-256, %r14d
	leal	-2048(%rdx), %eax
	imull	%r14d, %r10d
	cmpl	$2049, %edx                     ## imm = 0x801
	cmovgel	%r11d, %ebx
	leal	-2048(%rcx), %edx
	imull	%eax, %ebx
	addl	%r10d, %ebx
	sarl	$12, %ebx
	movl	%ebx, (%r15)
	cmpl	$2049, %ecx                     ## imm = 0x801
	cmovgel	%r8d, %edi
	imull	%edx, %edi
	addl	%r10d, %edi
	sarl	$12, %edi
	movl	%edi, (%r9)
	callq	_rec709_to_linear
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_rec709_to_linear
	movl	%eax, %r15d
	movl	%r14d, %eax
	shll	$8, %eax
	subl	%r14d, %eax
	cltd
	idivl	%r12d
	movl	%eax, %edi
	callq	_rec709_to_linear
	imull	$6018, %eax, %eax               ## imm = 0x1782
	imull	$-1581, %ebx, %ecx              ## imm = 0xF9D3
	imull	$-357, %r15d, %edi              ## imm = 0xFE9B
	addl	%ecx, %edi
	addl	%eax, %edi
	sarl	$12, %edi
	callq	_linear_to_rec709
	movl	%eax, (%r13)
	addq	$8, %rsp
	jmp	LBB0_12
LBB0_7:
	cmpq	%rax, %rbx
	leaq	_ycbcr_to_color.bt2020_full(%rip), %rax
	leaq	_ycbcr_to_color.bt2020(%rip), %rdi
	jmp	LBB0_10
LBB0_8:
	cmpq	%rax, %rbx
	leaq	_ycbcr_to_color.rec709_full(%rip), %rax
	leaq	_ycbcr_to_color.rec709(%rip), %rdi
	jmp	LBB0_10
LBB0_9:
	cmpq	%rax, %rbx
	leaq	_ycbcr_to_color.bt601_full(%rip), %rax
	leaq	_ycbcr_to_color.bt601(%rip), %rdi
LBB0_10:
	cmoveq	%rax, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
LBB0_11:
	pushq	%r15
	pushq	%r13
	callq	_ycbcr2rgb
	addq	$24, %rsp
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @ycbcr_to_color.bt601
_ycbcr_to_color.bt601:
	.long	4751                            ## 0x128f
	.long	0                               ## 0x0
	.long	6512                            ## 0x1970
	.long	4751                            ## 0x128f
	.long	4294965699                      ## 0xfffff9c3
	.long	4294963980                      ## 0xfffff30c
	.long	4751                            ## 0x128f
	.long	8230                            ## 0x2026
	.long	0                               ## 0x0

	.p2align	4                               ## @ycbcr_to_color.bt601_full
_ycbcr_to_color.bt601_full:
	.long	4080                            ## 0xff0
	.long	0                               ## 0x0
	.long	5720                            ## 0x1658
	.long	4080                            ## 0xff0
	.long	4294965893                      ## 0xfffffa85
	.long	4294964383                      ## 0xfffff49f
	.long	4080                            ## 0xff0
	.long	7230                            ## 0x1c3e
	.long	0                               ## 0x0

	.p2align	4                               ## @ycbcr_to_color.rec709
_ycbcr_to_color.rec709:
	.long	4751                            ## 0x128f
	.long	0                               ## 0x0
	.long	7314                            ## 0x1c92
	.long	4751                            ## 0x128f
	.long	4294966427                      ## 0xfffffc9b
	.long	4294965123                      ## 0xfffff783
	.long	4751                            ## 0x128f
	.long	8619                            ## 0x21ab
	.long	0                               ## 0x0

	.p2align	4                               ## @ycbcr_to_color.rec709_full
_ycbcr_to_color.rec709_full:
	.long	4080                            ## 0xff0
	.long	0                               ## 0x0
	.long	6425                            ## 0x1919
	.long	4080                            ## 0xff0
	.long	4294966533                      ## 0xfffffd05
	.long	4294965387                      ## 0xfffff88b
	.long	4080                            ## 0xff0
	.long	7571                            ## 0x1d93
	.long	0                               ## 0x0

	.p2align	4                               ## @ycbcr_to_color.smpte240m
_ycbcr_to_color.smpte240m:
	.long	4751                            ## 0x128f
	.long	0                               ## 0x0
	.long	7318                            ## 0x1c96
	.long	4751                            ## 0x128f
	.long	4294966251                      ## 0xfffffbeb
	.long	4294965083                      ## 0xfffff75b
	.long	4751                            ## 0x128f
	.long	8486                            ## 0x2126
	.long	0                               ## 0x0

	.p2align	4                               ## @ycbcr_to_color.smpte240m_full
_ycbcr_to_color.smpte240m_full:
	.long	4080                            ## 0xff0
	.long	0                               ## 0x0
	.long	6428                            ## 0x191c
	.long	4080                            ## 0xff0
	.long	4294966378                      ## 0xfffffc6a
	.long	4294965352                      ## 0xfffff868
	.long	4080                            ## 0xff0
	.long	7454                            ## 0x1d1e
	.long	0                               ## 0x0

	.p2align	4                               ## @ycbcr_to_color.bt2020
_ycbcr_to_color.bt2020:
	.long	4751                            ## 0x128f
	.long	0                               ## 0x0
	.long	6849                            ## 0x1ac1
	.long	4751                            ## 0x128f
	.long	4294966532                      ## 0xfffffd04
	.long	4294964643                      ## 0xfffff5a3
	.long	4751                            ## 0x128f
	.long	8738                            ## 0x2222
	.long	0                               ## 0x0

	.p2align	4                               ## @ycbcr_to_color.bt2020_full
_ycbcr_to_color.bt2020_full:
	.long	4080                            ## 0xff0
	.long	0                               ## 0x0
	.long	6016                            ## 0x1780
	.long	4080                            ## 0xff0
	.long	4294966625                      ## 0xfffffd61
	.long	4294964966                      ## 0xfffff6e6
	.long	4080                            ## 0xff0
	.long	7676                            ## 0x1dfc
	.long	0                               ## 0x0

	.comm	_V4L2_QUANTIZATION_FULL_RANGE,8,3 ## @V4L2_QUANTIZATION_FULL_RANGE
	.no_dead_strip	_ycbcr_to_color
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ycbcr_to_color
_ycbcr_to_color:                        ; @ycbcr_to_color
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x6
	mov	x19, x5
	mov	x5, x4
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _V4L2_QUANTIZATION_FULL_RANGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_QUANTIZATION_FULL_RANGE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w10, ne
	lsl	w4, w10, #4
	ldr	w10, [x0, #8]
	sub	w10, w10, #128
	cmp	w10, #6
	b.hi	LBB0_8
; %bb.1:
Lloh3:
	adrp	x11, lJTI0_0@PAGE
Lloh4:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
Lloh5:
	adrp	x0, _ycbcr_to_color.rec709@PAGE
Lloh6:
	add	x0, x0, _ycbcr_to_color.rec709@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x0, _ycbcr_to_color.bt601@PAGE
Lloh8:
	add	x0, x0, _ycbcr_to_color.bt601@PAGEOFF
LBB0_4:
	mov	w4, #16
	b	LBB0_11
LBB0_5:
Lloh9:
	adrp	x10, _ycbcr_to_color.smpte240m@PAGE
Lloh10:
	add	x10, x10, _ycbcr_to_color.smpte240m@PAGEOFF
Lloh11:
	adrp	x11, _ycbcr_to_color.smpte240m_full@PAGE
Lloh12:
	add	x11, x11, _ycbcr_to_color.smpte240m_full@PAGEOFF
	b	LBB0_10
LBB0_6:
	sub	w10, w2, #2048
	sub	w11, w3, #2048
	cmp	x8, x9
	mov	w8, #4751
	mov	w9, #4080
	csel	w8, w9, w8, eq
	mov	w9, #-256
	csel	w9, wzr, w9, eq
	add	w22, w9, w1
	mul	w8, w22, w8
	mov	w9, #7346
	mov	w12, #6453
	csel	w9, w12, w9, eq
	mov	w12, #9012
	mov	w13, #7917
	csel	w12, w13, w12, eq
	mov	w13, #4615
	mov	w14, #4054
	csel	w13, w14, w13, eq
	mov	w14, #7981
	mov	w15, #7011
	csel	w14, w15, w14, eq
	mov	w15, #219
	mov	w16, #255
	csel	w23, w16, w15, eq
	cmp	w2, #2049
	csel	w9, w12, w9, lt
	madd	w9, w9, w10, w8
	asr	w9, w9, #12
	str	w9, [x20]
	cmp	w3, #2049
	csel	w9, w14, w13, lt
	madd	w8, w9, w11, w8
	asr	w0, w8, #12
	str	w0, [x5]
	bl	_rec709_to_linear
	mov	x21, x0
	ldr	w0, [x20]
	lsl	w24, w22, #8
	bl	_rec709_to_linear
	mov	x20, x0
	sub	w8, w24, w22
	sdiv	w0, w8, w23
	bl	_rec709_to_linear
	mov	w8, #6018
	mov	w9, #-1581
	mul	w9, w21, w9
	mov	w10, #-357
	madd	w9, w20, w10, w9
	madd	w8, w0, w8, w9
	asr	w0, w8, #12
	bl	_linear_to_rec709
	str	w0, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh13:
	adrp	x10, _ycbcr_to_color.bt2020@PAGE
Lloh14:
	add	x10, x10, _ycbcr_to_color.bt2020@PAGEOFF
Lloh15:
	adrp	x11, _ycbcr_to_color.bt2020_full@PAGE
Lloh16:
	add	x11, x11, _ycbcr_to_color.bt2020_full@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh17:
	adrp	x10, _ycbcr_to_color.rec709@PAGE
Lloh18:
	add	x10, x10, _ycbcr_to_color.rec709@PAGEOFF
Lloh19:
	adrp	x11, _ycbcr_to_color.rec709_full@PAGE
Lloh20:
	add	x11, x11, _ycbcr_to_color.rec709_full@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh21:
	adrp	x10, _ycbcr_to_color.bt601@PAGE
Lloh22:
	add	x10, x10, _ycbcr_to_color.bt601@PAGEOFF
Lloh23:
	adrp	x11, _ycbcr_to_color.bt601_full@PAGE
Lloh24:
	add	x11, x11, _ycbcr_to_color.bt601_full@PAGEOFF
LBB0_10:
	cmp	x8, x9
	csel	x0, x11, x10, eq
LBB0_11:
	mov	x6, x19
	mov	x7, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ycbcr2rgb
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.p2align	2                               ; @ycbcr_to_color.bt601
_ycbcr_to_color.bt601:
	.long	4751                            ; 0x128f
	.long	0                               ; 0x0
	.long	6512                            ; 0x1970
	.long	4751                            ; 0x128f
	.long	4294965699                      ; 0xfffff9c3
	.long	4294963980                      ; 0xfffff30c
	.long	4751                            ; 0x128f
	.long	8230                            ; 0x2026
	.long	0                               ; 0x0

	.p2align	2                               ; @ycbcr_to_color.bt601_full
_ycbcr_to_color.bt601_full:
	.long	4080                            ; 0xff0
	.long	0                               ; 0x0
	.long	5720                            ; 0x1658
	.long	4080                            ; 0xff0
	.long	4294965893                      ; 0xfffffa85
	.long	4294964383                      ; 0xfffff49f
	.long	4080                            ; 0xff0
	.long	7230                            ; 0x1c3e
	.long	0                               ; 0x0

	.p2align	2                               ; @ycbcr_to_color.rec709
_ycbcr_to_color.rec709:
	.long	4751                            ; 0x128f
	.long	0                               ; 0x0
	.long	7314                            ; 0x1c92
	.long	4751                            ; 0x128f
	.long	4294966427                      ; 0xfffffc9b
	.long	4294965123                      ; 0xfffff783
	.long	4751                            ; 0x128f
	.long	8619                            ; 0x21ab
	.long	0                               ; 0x0

	.p2align	2                               ; @ycbcr_to_color.rec709_full
_ycbcr_to_color.rec709_full:
	.long	4080                            ; 0xff0
	.long	0                               ; 0x0
	.long	6425                            ; 0x1919
	.long	4080                            ; 0xff0
	.long	4294966533                      ; 0xfffffd05
	.long	4294965387                      ; 0xfffff88b
	.long	4080                            ; 0xff0
	.long	7571                            ; 0x1d93
	.long	0                               ; 0x0

	.p2align	2                               ; @ycbcr_to_color.smpte240m
_ycbcr_to_color.smpte240m:
	.long	4751                            ; 0x128f
	.long	0                               ; 0x0
	.long	7318                            ; 0x1c96
	.long	4751                            ; 0x128f
	.long	4294966251                      ; 0xfffffbeb
	.long	4294965083                      ; 0xfffff75b
	.long	4751                            ; 0x128f
	.long	8486                            ; 0x2126
	.long	0                               ; 0x0

	.p2align	2                               ; @ycbcr_to_color.smpte240m_full
_ycbcr_to_color.smpte240m_full:
	.long	4080                            ; 0xff0
	.long	0                               ; 0x0
	.long	6428                            ; 0x191c
	.long	4080                            ; 0xff0
	.long	4294966378                      ; 0xfffffc6a
	.long	4294965352                      ; 0xfffff868
	.long	4080                            ; 0xff0
	.long	7454                            ; 0x1d1e
	.long	0                               ; 0x0

	.p2align	2                               ; @ycbcr_to_color.bt2020
_ycbcr_to_color.bt2020:
	.long	4751                            ; 0x128f
	.long	0                               ; 0x0
	.long	6849                            ; 0x1ac1
	.long	4751                            ; 0x128f
	.long	4294966532                      ; 0xfffffd04
	.long	4294964643                      ; 0xfffff5a3
	.long	4751                            ; 0x128f
	.long	8738                            ; 0x2222
	.long	0                               ; 0x0

	.p2align	2                               ; @ycbcr_to_color.bt2020_full
_ycbcr_to_color.bt2020_full:
	.long	4080                            ; 0xff0
	.long	0                               ; 0x0
	.long	6016                            ; 0x1780
	.long	4080                            ; 0xff0
	.long	4294966625                      ; 0xfffffd61
	.long	4294964966                      ; 0xfffff6e6
	.long	4080                            ; 0xff0
	.long	7676                            ; 0x1dfc
	.long	0                               ; 0x0

	.comm	_V4L2_QUANTIZATION_FULL_RANGE,8,3 ; @V4L2_QUANTIZATION_FULL_RANGE
	.no_dead_strip	_ycbcr_to_color
.subsections_via_symbols
