	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_cv_color_primaries
_get_cv_color_primaries:                ## @get_cv_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	xorl	%eax, %eax
	cmpl	$128, %edi
	je	LBB0_6
## %bb.1:
	cmpl	$130, %edi
	je	LBB0_4
## %bb.2:
	cmpl	$129, %edi
	jne	LBB0_5
## %bb.3:
	movq	_kCVImageBufferColorPrimaries_ITU_R_709_2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_7
LBB0_4:
	movq	_compat_keys@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	callq	_av_color_primaries_name
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %ecx
	callq	_av_log
	movl	$-1, %eax
LBB0_6:
	xorl	%ecx, %ecx
LBB0_7:
	movq	%rcx, (%r14)
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kCVImageBufferColorPrimaries_ITU_R_709_2,8,3 ## @kCVImageBufferColorPrimaries_ITU_R_709_2
	.comm	_compat_keys,8,3                ## @compat_keys
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Color primaries %s is not supported.\n"

	.no_dead_strip	_get_cv_color_primaries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_cv_color_primaries
_get_cv_color_primaries:                ; @get_cv_color_primaries
	.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, x1
	mov	x20, x0
	ldr	w0, [x0]
	cmp	w0, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w0, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	w0, #129
	b.ne	LBB0_6
; %bb.3:
	mov	w0, #0
Lloh0:
	adrp	x8, _kCVImageBufferColorPrimaries_ITU_R_709_2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kCVImageBufferColorPrimaries_ITU_R_709_2@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	b	LBB0_7
LBB0_4:
	mov	x8, #0
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	mov	w0, #0
Lloh3:
	adrp	x8, _compat_keys@GOTPAGE
Lloh4:
	ldr	x8, [x8, _compat_keys@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	bl	_av_color_primaries_name
	mov	x3, x0
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_av_log
	mov	x8, #0
	mov	w0, #-1
LBB0_7:
	str	x8, [x19]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_kCVImageBufferColorPrimaries_ITU_R_709_2,8,3 ; @kCVImageBufferColorPrimaries_ITU_R_709_2
	.comm	_compat_keys,8,3                ; @compat_keys
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Color primaries %s is not supported.\n"

	.no_dead_strip	_get_cv_color_primaries
.subsections_via_symbols
