	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_add_edid_modes             ## -- Begin function drm_add_edid_modes
	.p2align	4, 0x90
_drm_add_edid_modes:                    ## @drm_add_edid_modes
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r12d, %r12d
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_drm_edid_is_valid
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_edid_get_quirks
	movl	%eax, %r15d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_add_detailed_modes
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_add_cvt_modes
	movq	%rax, %r13
	addq	%r12, %r13
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_add_standard_modes
	movq	%rax, %r12
	addq	%r13, %r12
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_add_established_modes
	movq	%rax, %r13
	addq	%r12, %r13
	movq	_DRM_EDID_FEATURE_DEFAULT_GTF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_add_inferred_modes
	movslq	%r13d, %r13
	addq	%rax, %r13
LBB0_5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_add_cea_modes
	movq	%rax, %r12
	movq	_EDID_QUIRK_PREFER_LARGE_60@GOTPCREL(%rip), %rax
	movq	_EDID_QUIRK_PREFER_LARGE_75@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r15d, %ecx
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_edid_fixup_preferred
LBB0_7:
	addl	%r13d, %r12d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_drm_add_display_info
	jmp	LBB0_8
LBB0_2:
	movq	8(%r14), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_drm_get_connector_name
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_dev_warn
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: EDID invalid.\n"

	.comm	_DRM_EDID_FEATURE_DEFAULT_GTF,4,2 ## @DRM_EDID_FEATURE_DEFAULT_GTF
	.comm	_EDID_QUIRK_PREFER_LARGE_60,4,2 ## @EDID_QUIRK_PREFER_LARGE_60
	.comm	_EDID_QUIRK_PREFER_LARGE_75,4,2 ## @EDID_QUIRK_PREFER_LARGE_75
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_add_edid_modes             ; -- Begin function drm_add_edid_modes
	.p2align	2
_drm_add_edid_modes:                    ; @drm_add_edid_modes
	.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
	cbz	x1, LBB0_8
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_drm_edid_is_valid
	cbz	w0, LBB0_7
; %bb.2:
	mov	x0, x20
	bl	_edid_get_quirks
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_add_detailed_modes
	mov	x22, x0
	mov	x0, x19
	mov	x1, x20
	bl	_add_cvt_modes
	add	x22, x0, x22
	mov	x0, x19
	mov	x1, x20
	bl	_add_standard_modes
	add	x22, x22, x0
	mov	x0, x19
	mov	x1, x20
	bl	_add_established_modes
	add	x22, x22, x0
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _DRM_EDID_FEATURE_DEFAULT_GTF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_EDID_FEATURE_DEFAULT_GTF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_add_inferred_modes
	add	x22, x0, w22, sxtw
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_add_cea_modes
	add	w22, w0, w22
Lloh3:
	adrp	x8, _EDID_QUIRK_PREFER_LARGE_60@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EDID_QUIRK_PREFER_LARGE_60@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _EDID_QUIRK_PREFER_LARGE_75@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EDID_QUIRK_PREFER_LARGE_75@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x21
	bl	_edid_fixup_preferred
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_drm_add_display_info
	b	LBB0_9
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	w20, [x8]
	mov	x0, x19
	bl	_drm_get_connector_name
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_8:
	mov	w22, #0
LBB0_9:
	mov	x0, x22
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: EDID invalid.\n"

	.comm	_DRM_EDID_FEATURE_DEFAULT_GTF,4,2 ; @DRM_EDID_FEATURE_DEFAULT_GTF
	.comm	_EDID_QUIRK_PREFER_LARGE_60,4,2 ; @EDID_QUIRK_PREFER_LARGE_60
	.comm	_EDID_QUIRK_PREFER_LARGE_75,4,2 ; @EDID_QUIRK_PREFER_LARGE_75
.subsections_via_symbols
