	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l2_get_color_trc
_v4l2_get_color_trc:                    ## @v4l2_get_color_trc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_V4L2_TYPE_IS_MULTIPLANAR
	testq	%rax, %rax
	movq	(%rbx), %rcx
	movl	$12, %edx
	cmoveq	%rax, %rdx
	movl	(%rcx,%rdx), %r14d
	movl	8(%rbx), %edi
	callq	_V4L2_TYPE_IS_MULTIPLANAR
	testq	%rax, %rax
	movq	(%rbx), %rax
	movl	$4, %ecx
	movl	$16, %edx
	cmoveq	%rcx, %rdx
	movl	(%rax,%rdx), %r15d
	movl	8(%rbx), %edi
	callq	_V4L2_TYPE_IS_MULTIPLANAR
	testq	%rax, %rax
	movq	(%rbx), %rax
	movl	$8, %ecx
	movl	$20, %edx
	cmoveq	%rcx, %rdx
	movl	(%rax,%rdx), %eax
	cmpl	$131, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_4
## %bb.3:
	movq	_AVCOL_TRC_IEC61966_2_1@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	movq	_AVCOL_TRC_BT709@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	addl	$-132, %r14d
	cmpl	$4, %r14d
	jae	LBB0_5
## %bb.8:
	movslq	%r14d, %rax
	leaq	l_switch.table.v4l2_get_color_trc(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_9
LBB0_5:
	andl	$-2, %r15d
	cmpl	$128, %r15d
	jne	LBB0_6
## %bb.7:
	movq	_AVCOL_TRC_BT1361_ECG@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_AVCOL_TRC_UNSPECIFIED@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVCOL_TRC_BT709,4,2            ## @AVCOL_TRC_BT709
	.comm	_AVCOL_TRC_IEC61966_2_1,4,2     ## @AVCOL_TRC_IEC61966_2_1
	.comm	_AVCOL_TRC_GAMMA22,4,2          ## @AVCOL_TRC_GAMMA22
	.comm	_AVCOL_TRC_GAMMA28,4,2          ## @AVCOL_TRC_GAMMA28
	.comm	_AVCOL_TRC_SMPTE170M,4,2        ## @AVCOL_TRC_SMPTE170M
	.comm	_AVCOL_TRC_SMPTE240M,4,2        ## @AVCOL_TRC_SMPTE240M
	.comm	_AVCOL_TRC_BT1361_ECG,4,2       ## @AVCOL_TRC_BT1361_ECG
	.comm	_AVCOL_TRC_UNSPECIFIED,4,2      ## @AVCOL_TRC_UNSPECIFIED
	.no_dead_strip	_v4l2_get_color_trc
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.v4l2_get_color_trc
l_switch.table.v4l2_get_color_trc:
	.quad	_AVCOL_TRC_SMPTE240M
	.quad	_AVCOL_TRC_SMPTE170M
	.quad	_AVCOL_TRC_GAMMA22
	.quad	_AVCOL_TRC_GAMMA28

.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_trc
_v4l2_get_color_trc:                    ; @v4l2_get_color_trc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	w0, [x0, #8]
	bl	_V4L2_TYPE_IS_MULTIPLANAR
	ldr	x8, [x19]
	mov	w9, #12
	cmp	x0, #0
	csel	x9, xzr, x9, eq
	ldr	w20, [x8, x9]
	ldr	w0, [x19, #8]
	bl	_V4L2_TYPE_IS_MULTIPLANAR
	ldr	x8, [x19]
	mov	w9, #16
	mov	w10, #4
	cmp	x0, #0
	csel	x9, x10, x9, eq
	ldr	w21, [x8, x9]
	ldr	w0, [x19, #8]
	bl	_V4L2_TYPE_IS_MULTIPLANAR
	ldr	x8, [x19]
	mov	w9, #20
	mov	w10, #8
	cmp	x0, #0
	csel	x9, x10, x9, eq
	ldr	w8, [x8, x9]
	cmp	w8, #131
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #130
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _AVCOL_TRC_IEC61966_2_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVCOL_TRC_IEC61966_2_1@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh2:
	adrp	x8, _AVCOL_TRC_BT709@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVCOL_TRC_BT709@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	sub	w8, w20, #132
	cmp	w8, #4
	b.hs	LBB0_6
; %bb.5:
Lloh4:
	adrp	x9, l_switch.table.v4l2_get_color_trc@PAGE
Lloh5:
	add	x9, x9, l_switch.table.v4l2_get_color_trc@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_7
LBB0_6:
	and	w8, w21, #0xfffffffe
Lloh6:
	adrp	x9, _AVCOL_TRC_UNSPECIFIED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AVCOL_TRC_UNSPECIFIED@GOTPAGEOFF]
Lloh8:
	adrp	x10, _AVCOL_TRC_BT1361_ECG@GOTPAGE
Lloh9:
	ldr	x10, [x10, _AVCOL_TRC_BT1361_ECG@GOTPAGEOFF]
	cmp	w8, #128
	csel	x8, x10, x9, eq
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AVCOL_TRC_BT709,4,2            ; @AVCOL_TRC_BT709
	.comm	_AVCOL_TRC_IEC61966_2_1,4,2     ; @AVCOL_TRC_IEC61966_2_1
	.comm	_AVCOL_TRC_GAMMA22,4,2          ; @AVCOL_TRC_GAMMA22
	.comm	_AVCOL_TRC_GAMMA28,4,2          ; @AVCOL_TRC_GAMMA28
	.comm	_AVCOL_TRC_SMPTE170M,4,2        ; @AVCOL_TRC_SMPTE170M
	.comm	_AVCOL_TRC_SMPTE240M,4,2        ; @AVCOL_TRC_SMPTE240M
	.comm	_AVCOL_TRC_BT1361_ECG,4,2       ; @AVCOL_TRC_BT1361_ECG
	.comm	_AVCOL_TRC_UNSPECIFIED,4,2      ; @AVCOL_TRC_UNSPECIFIED
	.no_dead_strip	_v4l2_get_color_trc
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.v4l2_get_color_trc
l_switch.table.v4l2_get_color_trc:
	.quad	_AVCOL_TRC_SMPTE240M
	.quad	_AVCOL_TRC_SMPTE170M
	.quad	_AVCOL_TRC_GAMMA22
	.quad	_AVCOL_TRC_GAMMA28

.subsections_via_symbols
