	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_add_display_info
_drm_add_display_info:                  ## @drm_add_display_info
	.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
	movl	(%rdi), %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, (%rsi)
	movl	4(%rdi), %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, 4(%rsi)
	movl	$0, 8(%rsi)
	movl	$0, 16(%rsi)
	cmpl	$3, 8(%rdi)
	jl	LBB0_14
## %bb.1:
	movq	%rdi, %rbx
	movq	_DRM_EDID_INPUT_DIGITAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%rdi)
	je	LBB0_14
## %bb.2:
	movq	%rsi, %r14
	movq	%rbx, %rdi
	callq	_drm_find_cea_extension
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movl	4(%rax), %ecx
	movl	%ecx, 12(%r14)
	movq	_DRM_COLOR_FORMAT_RGB444@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r14)
	movl	12(%rax), %edx
	movq	_EDID_CEA_YCRCB444@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_5
## %bb.4:
	movq	_DRM_COLOR_FORMAT_YCRCB444@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 16(%r14)
	movl	12(%rax), %edx
LBB0_5:
	movq	_EDID_CEA_YCRCB422@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_DRM_COLOR_FORMAT_YCRCB422@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 16(%r14)
LBB0_7:
	cmpl	$4, 8(%rbx)
	jl	LBB0_14
## %bb.8:
	movq	_DRM_EDID_DIGITAL_DEPTH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	12(%rbx), %eax
	addl	$-129, %eax
	xorl	%ecx, %ecx
	cmpl	$5, %eax
	ja	LBB0_10
## %bb.9:
	cltq
	leaq	l_switch.table.drm_add_display_info(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
LBB0_10:
	movl	%ecx, 8(%r14)
	movq	_DRM_COLOR_FORMAT_RGB444@GOTPCREL(%rip), %rcx
	movl	16(%r14), %eax
	orl	(%rcx), %eax
	movl	%eax, 16(%r14)
	movl	16(%rbx), %ecx
	movq	_DRM_EDID_FEATURE_RGB_YCRCB444@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_12
## %bb.11:
	movq	_DRM_COLOR_FORMAT_YCRCB444@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, 16(%r14)
LBB0_12:
	movq	_DRM_EDID_FEATURE_RGB_YCRCB422@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_14
## %bb.13:
	movq	_DRM_COLOR_FORMAT_YCRCB422@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 16(%r14)
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_EDID_INPUT_DIGITAL,4,2     ## @DRM_EDID_INPUT_DIGITAL
	.comm	_DRM_COLOR_FORMAT_RGB444,4,2    ## @DRM_COLOR_FORMAT_RGB444
	.comm	_EDID_CEA_YCRCB444,4,2          ## @EDID_CEA_YCRCB444
	.comm	_DRM_COLOR_FORMAT_YCRCB444,4,2  ## @DRM_COLOR_FORMAT_YCRCB444
	.comm	_EDID_CEA_YCRCB422,4,2          ## @EDID_CEA_YCRCB422
	.comm	_DRM_COLOR_FORMAT_YCRCB422,4,2  ## @DRM_COLOR_FORMAT_YCRCB422
	.comm	_DRM_EDID_DIGITAL_DEPTH_MASK,4,2 ## @DRM_EDID_DIGITAL_DEPTH_MASK
	.comm	_DRM_EDID_FEATURE_RGB_YCRCB444,4,2 ## @DRM_EDID_FEATURE_RGB_YCRCB444
	.comm	_DRM_EDID_FEATURE_RGB_YCRCB422,4,2 ## @DRM_EDID_FEATURE_RGB_YCRCB422
	.no_dead_strip	_drm_add_display_info
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.drm_add_display_info
l_switch.table.drm_add_display_info:
	.long	8                               ## 0x8
	.long	6                               ## 0x6
	.long	16                              ## 0x10
	.long	14                              ## 0xe
	.long	12                              ## 0xc
	.long	10                              ## 0xa

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_add_display_info
_drm_add_display_info:                  ; @drm_add_display_info
	.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
	ldr	d0, [x0]
	movi.2s	v1, #10
	mul.2s	v0, v0, v1
	str	d0, [x1]
	str	wzr, [x1, #8]
	str	wzr, [x1, #16]
	ldr	w8, [x0, #8]
	cmp	w8, #3
	b.lt	LBB0_15
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0, #12]
Lloh0:
	adrp	x9, _DRM_EDID_INPUT_DIGITAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_EDID_INPUT_DIGITAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.2:
	mov	x19, x1
	mov	x0, x20
	bl	_drm_find_cea_extension
Lloh3:
	adrp	x8, _DRM_COLOR_FORMAT_RGB444@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_COLOR_FORMAT_RGB444@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w10, [x0, #4]
	ldr	w9, [x8]
	stp	w10, w9, [x19, #12]
	ldr	w10, [x0, #12]
Lloh5:
	adrp	x11, _EDID_CEA_YCRCB444@GOTPAGE
Lloh6:
	ldr	x11, [x11, _EDID_CEA_YCRCB444@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_5
; %bb.4:
Lloh8:
	adrp	x10, _DRM_COLOR_FORMAT_YCRCB444@GOTPAGE
Lloh9:
	ldr	x10, [x10, _DRM_COLOR_FORMAT_YCRCB444@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x19, #16]
	ldr	w10, [x0, #12]
LBB0_5:
Lloh11:
	adrp	x11, _EDID_CEA_YCRCB422@GOTPAGE
Lloh12:
	ldr	x11, [x11, _EDID_CEA_YCRCB422@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_7
; %bb.6:
Lloh14:
	adrp	x10, _DRM_COLOR_FORMAT_YCRCB422@GOTPAGE
Lloh15:
	ldr	x10, [x10, _DRM_COLOR_FORMAT_YCRCB422@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x19, #16]
LBB0_7:
	ldr	w9, [x20, #8]
	cmp	w9, #4
	b.lt	LBB0_15
; %bb.8:
	ldr	w9, [x20, #12]
Lloh17:
	adrp	x10, _DRM_EDID_DIGITAL_DEPTH_MASK@GOTPAGE
Lloh18:
	ldr	x10, [x10, _DRM_EDID_DIGITAL_DEPTH_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	and	w9, w10, w9
	sub	w9, w9, #129
	cmp	w9, #5
	b.hi	LBB0_10
; %bb.9:
Lloh20:
	adrp	x10, l_switch.table.drm_add_display_info@PAGE
Lloh21:
	add	x10, x10, l_switch.table.drm_add_display_info@PAGEOFF
	ldr	w9, [x10, w9, sxtw #2]
	b	LBB0_11
LBB0_10:
	mov	w9, #0
LBB0_11:
	str	w9, [x19, #8]
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
	ldr	w9, [x20, #16]
Lloh22:
	adrp	x10, _DRM_EDID_FEATURE_RGB_YCRCB444@GOTPAGE
Lloh23:
	ldr	x10, [x10, _DRM_EDID_FEATURE_RGB_YCRCB444@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_13
; %bb.12:
Lloh25:
	adrp	x10, _DRM_COLOR_FORMAT_YCRCB444@GOTPAGE
Lloh26:
	ldr	x10, [x10, _DRM_COLOR_FORMAT_YCRCB444@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w8, [x19, #16]
LBB0_13:
Lloh28:
	adrp	x10, _DRM_EDID_FEATURE_RGB_YCRCB422@GOTPAGE
Lloh29:
	ldr	x10, [x10, _DRM_EDID_FEATURE_RGB_YCRCB422@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_15
; %bb.14:
Lloh31:
	adrp	x9, _DRM_COLOR_FORMAT_YCRCB422@GOTPAGE
Lloh32:
	ldr	x9, [x9, _DRM_COLOR_FORMAT_YCRCB422@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #16]
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_EDID_INPUT_DIGITAL,4,2     ; @DRM_EDID_INPUT_DIGITAL
	.comm	_DRM_COLOR_FORMAT_RGB444,4,2    ; @DRM_COLOR_FORMAT_RGB444
	.comm	_EDID_CEA_YCRCB444,4,2          ; @EDID_CEA_YCRCB444
	.comm	_DRM_COLOR_FORMAT_YCRCB444,4,2  ; @DRM_COLOR_FORMAT_YCRCB444
	.comm	_EDID_CEA_YCRCB422,4,2          ; @EDID_CEA_YCRCB422
	.comm	_DRM_COLOR_FORMAT_YCRCB422,4,2  ; @DRM_COLOR_FORMAT_YCRCB422
	.comm	_DRM_EDID_DIGITAL_DEPTH_MASK,4,2 ; @DRM_EDID_DIGITAL_DEPTH_MASK
	.comm	_DRM_EDID_FEATURE_RGB_YCRCB444,4,2 ; @DRM_EDID_FEATURE_RGB_YCRCB444
	.comm	_DRM_EDID_FEATURE_RGB_YCRCB422,4,2 ; @DRM_EDID_FEATURE_RGB_YCRCB422
	.no_dead_strip	_drm_add_display_info
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.drm_add_display_info
l_switch.table.drm_add_display_info:
	.long	8                               ; 0x8
	.long	6                               ; 0x6
	.long	16                              ; 0x10
	.long	14                              ; 0xe
	.long	12                              ; 0xc
	.long	10                              ; 0xa

.subsections_via_symbols
