	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l2_get_color_space
_v4l2_get_color_space:                  ## @v4l2_get_color_space
	.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	8(%rdi), %edi
	callq	_V4L2_TYPE_IS_MULTIPLANAR
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	(%r14), %rax
	movl	(%rax,%rcx,8), %ebx
	movl	8(%r14), %edi
	callq	_V4L2_TYPE_IS_MULTIPLANAR
	addl	$-128, %ebx
	cmpl	$6, %ebx
	ja	LBB0_10
## %bb.1:
	movq	_AVCOL_SPC_RGB@GOTPCREL(%rip), %rcx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rbx,4), %rsi
	addq	%rdx, %rsi
	jmpq	*%rsi
LBB0_6:
	movq	_AVCOL_SPC_SMPTE240M@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_7:
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	(%r14), %rax
	movl	4(%rax,%rcx,8), %eax
	movq	_V4L2_YCBCR_ENC_BT2020_CONST_LUM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.9:
	movq	_AVCOL_SPC_BT2020_CL@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_10:
	movq	_AVCOL_SPC_UNSPECIFIED@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_5:
	movq	_AVCOL_SPC_SMPTE170M@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_2:
	movq	_AVCOL_SPC_BT709@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_3:
	movq	_AVCOL_SPC_FCC@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_4:
	movq	_AVCOL_SPC_BT470BG@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_8:
	movq	_AVCOL_SPC_BT2020_NCL@GOTPCREL(%rip), %rcx
LBB0_11:
	movl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_AVCOL_SPC_RGB,4,2              ## @AVCOL_SPC_RGB
	.comm	_AVCOL_SPC_BT709,4,2            ## @AVCOL_SPC_BT709
	.comm	_AVCOL_SPC_FCC,4,2              ## @AVCOL_SPC_FCC
	.comm	_AVCOL_SPC_BT470BG,4,2          ## @AVCOL_SPC_BT470BG
	.comm	_AVCOL_SPC_SMPTE170M,4,2        ## @AVCOL_SPC_SMPTE170M
	.comm	_AVCOL_SPC_SMPTE240M,4,2        ## @AVCOL_SPC_SMPTE240M
	.comm	_V4L2_YCBCR_ENC_BT2020_CONST_LUM,4,2 ## @V4L2_YCBCR_ENC_BT2020_CONST_LUM
	.comm	_AVCOL_SPC_BT2020_CL,4,2        ## @AVCOL_SPC_BT2020_CL
	.comm	_AVCOL_SPC_BT2020_NCL,4,2       ## @AVCOL_SPC_BT2020_NCL
	.comm	_AVCOL_SPC_UNSPECIFIED,4,2      ## @AVCOL_SPC_UNSPECIFIED
	.no_dead_strip	_v4l2_get_color_space
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v4l2_get_color_space
_v4l2_get_color_space:                  ; @v4l2_get_color_space
	.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, #8]
	bl	_V4L2_TYPE_IS_MULTIPLANAR
	cmp	x0, #0
	cset	w8, ne
	ldr	x9, [x19]
	lsl	x8, x8, #3
	ldr	w20, [x9, x8]
	ldr	w0, [x19, #8]
	bl	_V4L2_TYPE_IS_MULTIPLANAR
	sub	w9, w20, #128
	cmp	w9, #6
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _AVCOL_SPC_RGB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVCOL_SPC_RGB@GOTPAGEOFF]
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh4:
	adrp	x8, _AVCOL_SPC_SMPTE240M@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AVCOL_SPC_SMPTE240M@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
Lloh6:
	adrp	x8, _AVCOL_SPC_UNSPECIFIED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVCOL_SPC_UNSPECIFIED@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
Lloh8:
	adrp	x8, _AVCOL_SPC_SMPTE170M@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVCOL_SPC_SMPTE170M@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh10:
	adrp	x8, _AVCOL_SPC_BT709@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVCOL_SPC_BT709@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	ldr	x8, [x19]
	mov	w9, #12
	mov	w10, #4
	cmp	x0, #0
	csel	x9, x10, x9, eq
	ldr	w8, [x8, x9]
Lloh12:
	adrp	x9, _V4L2_YCBCR_ENC_BT2020_CONST_LUM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _V4L2_YCBCR_ENC_BT2020_CONST_LUM@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _AVCOL_SPC_BT2020_NCL@GOTPAGE
Lloh16:
	ldr	x10, [x10, _AVCOL_SPC_BT2020_NCL@GOTPAGEOFF]
Lloh17:
	adrp	x11, _AVCOL_SPC_BT2020_CL@GOTPAGE
Lloh18:
	ldr	x11, [x11, _AVCOL_SPC_BT2020_CL@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x11, x10, eq
	b	LBB0_9
LBB0_7:
Lloh19:
	adrp	x8, _AVCOL_SPC_FCC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AVCOL_SPC_FCC@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh21:
	adrp	x8, _AVCOL_SPC_BT470BG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AVCOL_SPC_BT470BG@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-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
                                        ; -- End function
	.comm	_AVCOL_SPC_RGB,4,2              ; @AVCOL_SPC_RGB
	.comm	_AVCOL_SPC_BT709,4,2            ; @AVCOL_SPC_BT709
	.comm	_AVCOL_SPC_FCC,4,2              ; @AVCOL_SPC_FCC
	.comm	_AVCOL_SPC_BT470BG,4,2          ; @AVCOL_SPC_BT470BG
	.comm	_AVCOL_SPC_SMPTE170M,4,2        ; @AVCOL_SPC_SMPTE170M
	.comm	_AVCOL_SPC_SMPTE240M,4,2        ; @AVCOL_SPC_SMPTE240M
	.comm	_V4L2_YCBCR_ENC_BT2020_CONST_LUM,4,2 ; @V4L2_YCBCR_ENC_BT2020_CONST_LUM
	.comm	_AVCOL_SPC_BT2020_CL,4,2        ; @AVCOL_SPC_BT2020_CL
	.comm	_AVCOL_SPC_BT2020_NCL,4,2       ; @AVCOL_SPC_BT2020_NCL
	.comm	_AVCOL_SPC_UNSPECIFIED,4,2      ; @AVCOL_SPC_UNSPECIFIED
	.no_dead_strip	_v4l2_get_color_space
.subsections_via_symbols
