	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dvo_get_current_mode
_intel_dvo_get_current_mode:            ## @intel_dvo_get_current_mode
	.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
	movq	(%rdi), %r14
	callq	_intel_attached_dvo
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	_DVO_ENABLE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.1:
	movq	_DVO_PIPE_B_SELECT@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	movl	(%rax), %eax
	andl	%ebx, %eax
	setne	%sil
	movq	%r14, %rdi
	callq	_intel_get_crtc_for_pipe
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_intel_crtc_mode_get
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	_DRM_MODE_TYPE_PREFERRED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 4(%rax)
	movq	_DVO_HSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_DRM_MODE_FLAG_PHSYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
LBB0_5:
	movq	_DVO_VSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_10
## %bb.6:
	movq	_DRM_MODE_FLAG_PVSYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DVO_ENABLE,4,2                 ## @DVO_ENABLE
	.comm	_DVO_PIPE_B_SELECT,4,2          ## @DVO_PIPE_B_SELECT
	.comm	_DRM_MODE_TYPE_PREFERRED,4,2    ## @DRM_MODE_TYPE_PREFERRED
	.comm	_DVO_HSYNC_ACTIVE_HIGH,4,2      ## @DVO_HSYNC_ACTIVE_HIGH
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ## @DRM_MODE_FLAG_PHSYNC
	.comm	_DVO_VSYNC_ACTIVE_HIGH,4,2      ## @DVO_VSYNC_ACTIVE_HIGH
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ## @DRM_MODE_FLAG_PVSYNC
	.no_dead_strip	_intel_dvo_get_current_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dvo_get_current_mode
_intel_dvo_get_current_mode:            ; @intel_dvo_get_current_mode
	.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	x20, [x0]
	bl	_intel_attached_dvo
	ldr	w0, [x0]
	bl	_I915_READ
Lloh0:
	adrp	x8, _DVO_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DVO_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _DVO_PIPE_B_SELECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DVO_PIPE_B_SELECT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w1, ne
	mov	x0, x20
	bl	_intel_get_crtc_for_pipe
	cbz	x0, LBB0_8
; %bb.2:
	mov	x1, x0
	mov	x0, x20
	bl	_intel_crtc_mode_get
	cbz	x0, LBB0_8
; %bb.3:
Lloh6:
	adrp	x8, _DRM_MODE_TYPE_PREFERRED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_MODE_TYPE_PREFERRED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x0, #4]
	orr	w8, w9, w8
	str	w8, [x0, #4]
Lloh9:
	adrp	x8, _DVO_HSYNC_ACTIVE_HIGH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DVO_HSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _DRM_MODE_FLAG_PHSYNC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DRM_MODE_FLAG_PHSYNC@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
LBB0_5:
Lloh15:
	adrp	x8, _DVO_VSYNC_ACTIVE_HIGH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DVO_VSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_8
; %bb.6:
Lloh18:
	adrp	x8, _DRM_MODE_FLAG_PVSYNC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DRM_MODE_FLAG_PVSYNC@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	b	LBB0_8
LBB0_7:
	mov	x0, #0
LBB0_8:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_DVO_ENABLE,4,2                 ; @DVO_ENABLE
	.comm	_DVO_PIPE_B_SELECT,4,2          ; @DVO_PIPE_B_SELECT
	.comm	_DRM_MODE_TYPE_PREFERRED,4,2    ; @DRM_MODE_TYPE_PREFERRED
	.comm	_DVO_HSYNC_ACTIVE_HIGH,4,2      ; @DVO_HSYNC_ACTIVE_HIGH
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ; @DRM_MODE_FLAG_PHSYNC
	.comm	_DVO_VSYNC_ACTIVE_HIGH,4,2      ; @DVO_VSYNC_ACTIVE_HIGH
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ; @DRM_MODE_FLAG_PVSYNC
	.no_dead_strip	_intel_dvo_get_current_mode
.subsections_via_symbols
