	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l2_get_color_primaries
_v4l2_get_color_primaries:              ## @v4l2_get_color_primaries
	.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, %rbx
	movl	8(%rdi), %edi
	callq	_V4L2_TYPE_IS_MULTIPLANAR
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	(%rbx), %rax
	movl	(%rax,%rcx,8), %r14d
	movl	8(%rbx), %edi
	callq	_V4L2_TYPE_IS_MULTIPLANAR
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	(%rbx), %rax
	movl	4(%rax,%rcx,8), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	jae	LBB0_1
## %bb.3:
	cltq
	leaq	l_switch.table.v4l2_get_color_primaries(%rip), %rcx
	jmp	LBB0_5
LBB0_1:
	addl	$-132, %r14d
	cmpl	$4, %r14d
	jae	LBB0_2
## %bb.4:
	movslq	%r14d, %rax
	leaq	l_switch.table.v4l2_get_color_primaries.1(%rip), %rcx
LBB0_5:
	leaq	(%rcx,%rax,8), %rax
	movq	(%rax), %rax
	jmp	LBB0_6
LBB0_2:
	movq	_AVCOL_PRI_UNSPECIFIED@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVCOL_PRI_BT709,4,2            ## @AVCOL_PRI_BT709
	.comm	_AVCOL_PRI_BT470M,4,2           ## @AVCOL_PRI_BT470M
	.comm	_AVCOL_PRI_BT470BG,4,2          ## @AVCOL_PRI_BT470BG
	.comm	_AVCOL_PRI_SMPTE170M,4,2        ## @AVCOL_PRI_SMPTE170M
	.comm	_AVCOL_PRI_SMPTE240M,4,2        ## @AVCOL_PRI_SMPTE240M
	.comm	_AVCOL_PRI_BT2020,4,2           ## @AVCOL_PRI_BT2020
	.comm	_AVCOL_PRI_UNSPECIFIED,4,2      ## @AVCOL_PRI_UNSPECIFIED
	.no_dead_strip	_v4l2_get_color_primaries
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.v4l2_get_color_primaries
l_switch.table.v4l2_get_color_primaries:
	.quad	_AVCOL_PRI_BT709
	.quad	_AVCOL_PRI_BT470M
	.quad	_AVCOL_PRI_BT709
	.quad	_AVCOL_PRI_BT470M

	.p2align	3                               ## @switch.table.v4l2_get_color_primaries.1
l_switch.table.v4l2_get_color_primaries.1:
	.quad	_AVCOL_PRI_SMPTE240M
	.quad	_AVCOL_PRI_SMPTE170M
	.quad	_AVCOL_PRI_BT2020
	.quad	_AVCOL_PRI_BT470BG

.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_primaries
_v4l2_get_color_primaries:              ; @v4l2_get_color_primaries
	.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
	ldr	x8, [x19]
	mov	w9, #12
	mov	w10, #4
	cmp	x0, #0
	csel	x9, x10, x9, eq
	ldr	w8, [x8, x9]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.v4l2_get_color_primaries@PAGE
Lloh1:
	add	x9, x9, l_switch.table.v4l2_get_color_primaries@PAGEOFF
	b	LBB0_4
LBB0_2:
	sub	w8, w20, #132
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.3:
Lloh2:
	adrp	x9, l_switch.table.v4l2_get_color_primaries.1@PAGE
Lloh3:
	add	x9, x9, l_switch.table.v4l2_get_color_primaries.1@PAGEOFF
LBB0_4:
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _AVCOL_PRI_UNSPECIFIED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AVCOL_PRI_UNSPECIFIED@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVCOL_PRI_BT709,4,2            ; @AVCOL_PRI_BT709
	.comm	_AVCOL_PRI_BT470M,4,2           ; @AVCOL_PRI_BT470M
	.comm	_AVCOL_PRI_BT470BG,4,2          ; @AVCOL_PRI_BT470BG
	.comm	_AVCOL_PRI_SMPTE170M,4,2        ; @AVCOL_PRI_SMPTE170M
	.comm	_AVCOL_PRI_SMPTE240M,4,2        ; @AVCOL_PRI_SMPTE240M
	.comm	_AVCOL_PRI_BT2020,4,2           ; @AVCOL_PRI_BT2020
	.comm	_AVCOL_PRI_UNSPECIFIED,4,2      ; @AVCOL_PRI_UNSPECIFIED
	.no_dead_strip	_v4l2_get_color_primaries
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.v4l2_get_color_primaries
l_switch.table.v4l2_get_color_primaries:
	.quad	_AVCOL_PRI_BT709
	.quad	_AVCOL_PRI_BT470M
	.quad	_AVCOL_PRI_BT709
	.quad	_AVCOL_PRI_BT470M

	.p2align	3                               ; @switch.table.v4l2_get_color_primaries.1
l_switch.table.v4l2_get_color_primaries.1:
	.quad	_AVCOL_PRI_SMPTE240M
	.quad	_AVCOL_PRI_SMPTE170M
	.quad	_AVCOL_PRI_BT2020
	.quad	_AVCOL_PRI_BT470BG

.subsections_via_symbols
