	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_sdvo_mode_valid
_intel_sdvo_mode_valid:                 ## @intel_sdvo_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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_intel_attached_sdvo
	movq	_DRM_MODE_FLAG_DBLSCAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_MODE_NO_DBLESCAN@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movq	8(%rbx), %rcx
	cmpq	%rcx, (%rax)
	jle	LBB0_4
## %bb.3:
	movq	_MODE_CLOCK_LOW@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_4:
	cmpq	%rcx, 8(%rax)
	jge	LBB0_6
## %bb.5:
	movq	_MODE_CLOCK_HIGH@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	cmpq	$0, 24(%rax)
	je	LBB0_9
## %bb.7:
	movq	16(%rbx), %rdx
	movq	16(%rax), %rcx
	movq	_MODE_PANEL@GOTPCREL(%rip), %rax
	cmpq	(%rcx), %rdx
	jg	LBB0_10
## %bb.8:
	movq	24(%rbx), %rdx
	cmpq	8(%rcx), %rdx
	jg	LBB0_10
LBB0_9:
	movq	_MODE_OK@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	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	_MODE_CLOCK_LOW,4,2             ## @MODE_CLOCK_LOW
	.comm	_MODE_CLOCK_HIGH,4,2            ## @MODE_CLOCK_HIGH
	.comm	_MODE_PANEL,4,2                 ## @MODE_PANEL
	.comm	_MODE_OK,4,2                    ## @MODE_OK
	.no_dead_strip	_intel_sdvo_mode_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_sdvo_mode_valid
_intel_sdvo_mode_valid:                 ; @intel_sdvo_mode_valid
	.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	x19, x1
	bl	_intel_attached_sdvo
	ldr	w8, [x19]
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]
	b	LBB0_11
LBB0_2:
	ldr	x9, [x0]
	ldr	x8, [x19, #8]
	cmp	x9, x8
	b.le	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _MODE_CLOCK_LOW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MODE_CLOCK_LOW@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
	ldr	x9, [x0, #8]
	cmp	x9, x8
	b.ge	LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _MODE_CLOCK_HIGH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MODE_CLOCK_HIGH@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_10
; %bb.7:
	ldr	x9, [x19, #16]
	ldr	x8, [x0, #16]
	ldr	x10, [x8]
	cmp	x9, x10
	b.gt	LBB0_9
; %bb.8:
	ldr	x9, [x19, #24]
	ldr	x8, [x8, #8]
	cmp	x9, x8
	b.le	LBB0_10
LBB0_9:
Lloh9:
	adrp	x8, _MODE_PANEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MODE_PANEL@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh11:
	adrp	x8, _MODE_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MODE_OK@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.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	_MODE_CLOCK_LOW,4,2             ; @MODE_CLOCK_LOW
	.comm	_MODE_CLOCK_HIGH,4,2            ; @MODE_CLOCK_HIGH
	.comm	_MODE_PANEL,4,2                 ; @MODE_PANEL
	.comm	_MODE_OK,4,2                    ; @MODE_OK
	.no_dead_strip	_intel_sdvo_mode_valid
.subsections_via_symbols
