	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_display_mode_from_vic_index
_drm_display_mode_from_vic_index:       ## @drm_display_mode_from_vic_index
	.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
	xorl	%eax, %eax
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	cmpq	%rdx, %rcx
	jae	LBB0_7
## %bb.2:
	movq	(%rdi), %r14
	movq	(%rsi,%rcx,8), %rdi
	callq	_svd_to_vic
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_drm_valid_cea_vic
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movq	_edid_cea_modes@GOTPCREL(%rip), %rax
	shlq	$2, %rbx
	addq	(%rax), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_drm_mode_duplicate
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	$0, (%rax)
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_edid_cea_modes,8,3             ## @edid_cea_modes
	.no_dead_strip	_drm_display_mode_from_vic_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_display_mode_from_vic_index
_drm_display_mode_from_vic_index:       ; @drm_display_mode_from_vic_index
	.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
	mov	x8, x0
	mov	x0, #0
	cbz	x1, LBB0_6
; %bb.1:
	cmp	x3, x2
	b.hs	LBB0_6
; %bb.2:
	ldr	x19, [x8]
	ldr	x0, [x1, x3, lsl #3]
	bl	_svd_to_vic
	mov	x20, x0
	bl	_drm_valid_cea_vic
	cbz	w0, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _edid_cea_modes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _edid_cea_modes@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, x20, lsl #2
	mov	x0, x19
	bl	_drm_mode_duplicate
	cbz	x0, LBB0_6
; %bb.4:
	str	xzr, [x0]
	b	LBB0_6
LBB0_5:
	mov	x0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_edid_cea_modes,8,3             ; @edid_cea_modes
	.no_dead_strip	_drm_display_mode_from_vic_index
.subsections_via_symbols
