	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_crt_get_flags
_intel_crt_get_flags:                   ## @intel_crt_get_flags
	.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	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_i915
	movq	%rbx, %rdi
	callq	_intel_encoder_to_crt
	movl	(%rax), %edi
	callq	_I915_READ
	movq	_ADPA_HSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_1
## %bb.2:
	movq	_DRM_MODE_FLAG_NHSYNC@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_DRM_MODE_FLAG_PHSYNC@GOTPCREL(%rip), %rcx
LBB0_3:
	movq	_ADPA_VSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	jne	LBB0_4
## %bb.5:
	movq	_DRM_MODE_FLAG_NVSYNC@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_DRM_MODE_FLAG_PVSYNC@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	orl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADPA_HSYNC_ACTIVE_HIGH,4,2     ## @ADPA_HSYNC_ACTIVE_HIGH
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ## @DRM_MODE_FLAG_PHSYNC
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ## @DRM_MODE_FLAG_NHSYNC
	.comm	_ADPA_VSYNC_ACTIVE_HIGH,4,2     ## @ADPA_VSYNC_ACTIVE_HIGH
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ## @DRM_MODE_FLAG_PVSYNC
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ## @DRM_MODE_FLAG_NVSYNC
	.no_dead_strip	_intel_crt_get_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_crt_get_flags
_intel_crt_get_flags:                   ; @intel_crt_get_flags
	.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, x0
	ldr	w0, [x0]
	bl	_to_i915
	mov	x0, x19
	bl	_intel_encoder_to_crt
	ldr	w0, [x0]
	bl	_I915_READ
Lloh0:
	adrp	x8, _ADPA_HSYNC_ACTIVE_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADPA_HSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DRM_MODE_FLAG_NHSYNC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DRM_MODE_FLAG_NHSYNC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x10, _DRM_MODE_FLAG_PHSYNC@GOTPAGE
Lloh6:
	ldr	x10, [x10, _DRM_MODE_FLAG_PHSYNC@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _ADPA_VSYNC_ACTIVE_HIGH@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ADPA_VSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh9:
	adrp	x10, _DRM_MODE_FLAG_NVSYNC@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DRM_MODE_FLAG_NVSYNC@GOTPAGEOFF]
Lloh11:
	adrp	x11, _DRM_MODE_FLAG_PVSYNC@GOTPAGE
Lloh12:
	ldr	x11, [x11, _DRM_MODE_FLAG_PVSYNC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w0
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh13
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ADPA_HSYNC_ACTIVE_HIGH,4,2     ; @ADPA_HSYNC_ACTIVE_HIGH
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ; @DRM_MODE_FLAG_PHSYNC
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ; @DRM_MODE_FLAG_NHSYNC
	.comm	_ADPA_VSYNC_ACTIVE_HIGH,4,2     ; @ADPA_VSYNC_ACTIVE_HIGH
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ; @DRM_MODE_FLAG_PVSYNC
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ; @DRM_MODE_FLAG_NVSYNC
	.no_dead_strip	_intel_crt_get_flags
.subsections_via_symbols
