	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_plane_color_attributes
_fill_plane_color_attributes:           ## @fill_plane_color_attributes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_COLOR_SPACE_SRGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movq	_SURFACE_PIXEL_FORMAT_VIDEO_BEGIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%esi, (%rcx)
	ja	LBB0_14
## %bb.1:
	movq	(%rdi), %rcx
	movq	_DRM_COLOR_YCBCR_FULL_RANGE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	8(%rdi), %edi
	cmpl	$128, %edi
	je	LBB0_8
## %bb.2:
	cmpl	$130, %edi
	je	LBB0_11
## %bb.3:
	cmpl	$129, %edi
	jne	LBB0_13
## %bb.4:
	cmpq	%rsi, %rcx
	jne	LBB0_7
## %bb.5:
	movq	_COLOR_SPACE_YCBCR601@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_8:
	cmpq	%rsi, %rcx
	jne	LBB0_10
## %bb.9:
	movq	_COLOR_SPACE_YCBCR709@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_11:
	cmpq	%rsi, %rcx
	jne	LBB0_13
## %bb.12:
	movq	_COLOR_SPACE_2020_YCBCR@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	popq	%rbp
	retq
LBB0_7:
	movq	_COLOR_SPACE_YCBCR601_LIMITED@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_10:
	movq	_COLOR_SPACE_YCBCR709_LIMITED@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %ecx
	movl	%ecx, (%rdx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COLOR_SPACE_SRGB,4,2           ## @COLOR_SPACE_SRGB
	.comm	_SURFACE_PIXEL_FORMAT_VIDEO_BEGIN,4,2 ## @SURFACE_PIXEL_FORMAT_VIDEO_BEGIN
	.comm	_DRM_COLOR_YCBCR_FULL_RANGE,8,3 ## @DRM_COLOR_YCBCR_FULL_RANGE
	.comm	_COLOR_SPACE_YCBCR601,4,2       ## @COLOR_SPACE_YCBCR601
	.comm	_COLOR_SPACE_YCBCR601_LIMITED,4,2 ## @COLOR_SPACE_YCBCR601_LIMITED
	.comm	_COLOR_SPACE_YCBCR709,4,2       ## @COLOR_SPACE_YCBCR709
	.comm	_COLOR_SPACE_YCBCR709_LIMITED,4,2 ## @COLOR_SPACE_YCBCR709_LIMITED
	.comm	_COLOR_SPACE_2020_YCBCR,4,2     ## @COLOR_SPACE_2020_YCBCR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_fill_plane_color_attributes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_plane_color_attributes
_fill_plane_color_attributes:           ; @fill_plane_color_attributes
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _COLOR_SPACE_SRGB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COLOR_SPACE_SRGB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x2]
Lloh3:
	adrp	x8, _SURFACE_PIXEL_FORMAT_VIDEO_BEGIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SURFACE_PIXEL_FORMAT_VIDEO_BEGIN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ls	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _DRM_COLOR_YCBCR_FULL_RANGE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRM_COLOR_YCBCR_FULL_RANGE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w10, [x0, #8]
	cmp	w10, #128
	b.eq	LBB0_7
; %bb.3:
	cmp	w10, #130
	b.eq	LBB0_9
; %bb.4:
	cmp	w10, #129
	b.ne	LBB0_11
; %bb.5:
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.6:
	mov	w0, #0
Lloh9:
	adrp	x8, _COLOR_SPACE_YCBCR601@GOTPAGE
Lloh10:
	ldr	x8, [x8, _COLOR_SPACE_YCBCR601@GOTPAGEOFF]
	b	LBB0_14
LBB0_7:
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.8:
	mov	w0, #0
Lloh11:
	adrp	x8, _COLOR_SPACE_YCBCR709@GOTPAGE
Lloh12:
	ldr	x8, [x8, _COLOR_SPACE_YCBCR709@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	mov	w0, #0
Lloh13:
	adrp	x8, _COLOR_SPACE_2020_YCBCR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _COLOR_SPACE_2020_YCBCR@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_12:
	mov	w0, #0
Lloh18:
	adrp	x8, _COLOR_SPACE_YCBCR601_LIMITED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _COLOR_SPACE_YCBCR601_LIMITED@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
	mov	w0, #0
Lloh20:
	adrp	x8, _COLOR_SPACE_YCBCR709_LIMITED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _COLOR_SPACE_YCBCR709_LIMITED@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	str	w8, [x2]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_COLOR_SPACE_SRGB,4,2           ; @COLOR_SPACE_SRGB
	.comm	_SURFACE_PIXEL_FORMAT_VIDEO_BEGIN,4,2 ; @SURFACE_PIXEL_FORMAT_VIDEO_BEGIN
	.comm	_DRM_COLOR_YCBCR_FULL_RANGE,8,3 ; @DRM_COLOR_YCBCR_FULL_RANGE
	.comm	_COLOR_SPACE_YCBCR601,4,2       ; @COLOR_SPACE_YCBCR601
	.comm	_COLOR_SPACE_YCBCR601_LIMITED,4,2 ; @COLOR_SPACE_YCBCR601_LIMITED
	.comm	_COLOR_SPACE_YCBCR709,4,2       ; @COLOR_SPACE_YCBCR709
	.comm	_COLOR_SPACE_YCBCR709_LIMITED,4,2 ; @COLOR_SPACE_YCBCR709_LIMITED
	.comm	_COLOR_SPACE_2020_YCBCR,4,2     ; @COLOR_SPACE_2020_YCBCR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_fill_plane_color_attributes
.subsections_via_symbols
