	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdv_intel_lvds_mode_valid
_cdv_intel_lvds_mode_valid:             ## @cdv_intel_lvds_mode_valid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %eax
	movq	_DRM_MODE_FLAG_DBLSCAN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_MODE_NO_DBLESCAN@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_MODE_NO_INTERLACE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.5:
	movq	8(%rsi), %rdx
	movq	_MODE_PANEL@GOTPCREL(%rip), %rax
	cmpq	8(%rcx), %rdx
	jg	LBB0_8
## %bb.6:
	movq	16(%rsi), %rdx
	cmpq	16(%rcx), %rdx
	jg	LBB0_8
LBB0_7:
	movq	_MODE_OK@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ## @DRM_MODE_FLAG_DBLSCAN
	.comm	_MODE_NO_DBLESCAN,4,2           ## @MODE_NO_DBLESCAN
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ## @DRM_MODE_FLAG_INTERLACE
	.comm	_MODE_NO_INTERLACE,4,2          ## @MODE_NO_INTERLACE
	.comm	_MODE_PANEL,4,2                 ## @MODE_PANEL
	.comm	_MODE_OK,4,2                    ## @MODE_OK
	.no_dead_strip	_cdv_intel_lvds_mode_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdv_intel_lvds_mode_valid
_cdv_intel_lvds_mode_valid:             ; @cdv_intel_lvds_mode_valid
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MODE_NO_DBLESCAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MODE_NO_DBLESCAN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
LBB0_2:
Lloh6:
	adrp	x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _MODE_NO_INTERLACE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MODE_NO_INTERLACE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ret
LBB0_4:
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	x9, [x1, #8]
	ldr	x10, [x8, #8]
	cmp	x9, x10
	b.gt	LBB0_7
; %bb.6:
	ldr	x9, [x1, #16]
	ldr	x8, [x8, #16]
	cmp	x9, x8
	b.le	LBB0_8
LBB0_7:
Lloh12:
	adrp	x8, _MODE_PANEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MODE_PANEL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ret
LBB0_8:
Lloh15:
	adrp	x8, _MODE_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MODE_OK@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ; @DRM_MODE_FLAG_DBLSCAN
	.comm	_MODE_NO_DBLESCAN,4,2           ; @MODE_NO_DBLESCAN
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.comm	_MODE_NO_INTERLACE,4,2          ; @MODE_NO_INTERLACE
	.comm	_MODE_PANEL,4,2                 ; @MODE_PANEL
	.comm	_MODE_OK,4,2                    ; @MODE_OK
	.no_dead_strip	_cdv_intel_lvds_mode_valid
.subsections_via_symbols
