	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_crt_set_dpms
_intel_crt_set_dpms:                    ## @intel_crt_set_dpms
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_intel_encoder_to_crt
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %edi
	callq	_to_intel_crtc
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_INTEL_GEN
	xorl	%ecx, %ecx
	cmpl	$5, %eax
	jl	LBB0_2
## %bb.1:
	movq	_ADPA_HOTPLUG_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_2:
	movl	(%r14), %eax
	movq	_DRM_MODE_FLAG_PHSYNC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	andl	%eax, %ebx
	je	LBB0_4
## %bb.3:
	movq	_ADPA_HSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
LBB0_4:
	orl	%ecx, %ebx
	movq	_DRM_MODE_FLAG_PVSYNC@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_6
## %bb.5:
	movq	_ADPA_VSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	orl	%eax, %ebx
	movq	%r12, %rdi
	callq	_HAS_PCH_LPT
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:
	movq	%r12, %rdi
	callq	_HAS_PCH_CPT
	movl	(%r13), %edi
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	callq	_ADPA_PIPE_SEL_CPT
	jmp	LBB0_10
LBB0_9:
	callq	_ADPA_PIPE_SEL
LBB0_10:
	orl	%eax, %ebx
LBB0_11:
	movq	%r12, %rdi
	callq	_HAS_PCH_SPLIT
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movl	(%r13), %edi
	callq	_BCLRPAT
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_I915_WRITE
LBB0_13:
	addl	$-128, %r15d
	cmpl	$3, %r15d
	ja	LBB0_21
## %bb.14:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r15,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_17:
	movq	_ADPA_DAC_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_16:
	movq	_ADPA_DAC_ENABLE@GOTPCREL(%rip), %rax
	movq	_ADPA_HSYNC_CNTL_DISABLE@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_15:
	movq	_ADPA_DAC_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_21
LBB0_18:
	movq	_ADPA_HSYNC_CNTL_DISABLE@GOTPCREL(%rip), %rax
LBB0_19:
	movq	_ADPA_VSYNC_CNTL_DISABLE@GOTPCREL(%rip), %rcx
LBB0_20:
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
LBB0_21:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_16
	.long	L0_0_set_15
	.long	L0_0_set_18
	.end_data_region
                                        ## -- End function
	.comm	_ADPA_HOTPLUG_BITS,4,2          ## @ADPA_HOTPLUG_BITS
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ## @DRM_MODE_FLAG_PHSYNC
	.comm	_ADPA_HSYNC_ACTIVE_HIGH,4,2     ## @ADPA_HSYNC_ACTIVE_HIGH
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ## @DRM_MODE_FLAG_PVSYNC
	.comm	_ADPA_VSYNC_ACTIVE_HIGH,4,2     ## @ADPA_VSYNC_ACTIVE_HIGH
	.comm	_ADPA_DAC_ENABLE,4,2            ## @ADPA_DAC_ENABLE
	.comm	_ADPA_HSYNC_CNTL_DISABLE,4,2    ## @ADPA_HSYNC_CNTL_DISABLE
	.comm	_ADPA_VSYNC_CNTL_DISABLE,4,2    ## @ADPA_VSYNC_CNTL_DISABLE
	.no_dead_strip	_intel_crt_set_dpms
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_crt_set_dpms
_intel_crt_set_dpms:                    ; @intel_crt_set_dpms
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_to_i915
	mov	x22, x0
	mov	x0, x19
	bl	_intel_encoder_to_crt
	mov	x19, x0
	ldr	w0, [x20, #4]
	bl	_to_intel_crtc
	mov	x23, x0
	mov	x0, x22
	bl	_INTEL_GEN
Lloh0:
	adrp	x8, _ADPA_HOTPLUG_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADPA_HOTPLUG_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #4
	csel	w8, w8, wzr, gt
	ldr	w9, [x20]
Lloh3:
	adrp	x10, _DRM_MODE_FLAG_PHSYNC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DRM_MODE_FLAG_PHSYNC@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _ADPA_HSYNC_ACTIVE_HIGH@GOTPAGE
Lloh7:
	ldr	x11, [x11, _ADPA_HSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w10, wzr, w11, eq
	orr	w8, w10, w8
Lloh9:
	adrp	x10, _DRM_MODE_FLAG_PVSYNC@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DRM_MODE_FLAG_PVSYNC@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _ADPA_VSYNC_ACTIVE_HIGH@GOTPAGE
Lloh13:
	ldr	x11, [x11, _ADPA_VSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w20, w8, w9
	mov	x0, x22
	bl	_HAS_PCH_LPT
	cbnz	x0, LBB0_5
; %bb.1:
	mov	x0, x22
	bl	_HAS_PCH_CPT
	mov	x8, x0
	ldr	w0, [x23]
	cbz	x8, LBB0_3
; %bb.2:
	bl	_ADPA_PIPE_SEL_CPT
	b	LBB0_4
LBB0_3:
	bl	_ADPA_PIPE_SEL
LBB0_4:
	orr	w20, w0, w20
LBB0_5:
	mov	x0, x22
	bl	_HAS_PCH_SPLIT
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	w0, [x23]
	bl	_BCLRPAT
	mov	w1, #0
	bl	_I915_WRITE
LBB0_7:
	sub	w8, w21, #128
	cmp	w8, #3
	b.hi	LBB0_15
; %bb.8:
Lloh15:
	adrp	x9, lJTI0_0@PAGE
Lloh16:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_9
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_9:
Lloh17:
	adrp	x8, _ADPA_DAC_ENABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ADPA_DAC_ENABLE@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
Lloh19:
	adrp	x8, _ADPA_DAC_ENABLE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ADPA_DAC_ENABLE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _ADPA_HSYNC_CNTL_DISABLE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ADPA_HSYNC_CNTL_DISABLE@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
Lloh24:
	adrp	x8, _ADPA_DAC_ENABLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ADPA_DAC_ENABLE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	orr	w20, w8, w20
	b	LBB0_15
LBB0_12:
Lloh27:
	adrp	x8, _ADPA_HSYNC_CNTL_DISABLE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ADPA_HSYNC_CNTL_DISABLE@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _ADPA_VSYNC_CNTL_DISABLE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _ADPA_VSYNC_CNTL_DISABLE@GOTPAGEOFF]
LBB0_14:
	ldr	w9, [x9]
	orr	w8, w8, w20
	orr	w20, w8, w9
LBB0_15:
	ldr	w0, [x19]
	mov	x1, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_I915_WRITE
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_10-LBB0_9)>>2
	.byte	(LBB0_11-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
                                        ; -- End function
	.comm	_ADPA_HOTPLUG_BITS,4,2          ; @ADPA_HOTPLUG_BITS
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ; @DRM_MODE_FLAG_PHSYNC
	.comm	_ADPA_HSYNC_ACTIVE_HIGH,4,2     ; @ADPA_HSYNC_ACTIVE_HIGH
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ; @DRM_MODE_FLAG_PVSYNC
	.comm	_ADPA_VSYNC_ACTIVE_HIGH,4,2     ; @ADPA_VSYNC_ACTIVE_HIGH
	.comm	_ADPA_DAC_ENABLE,4,2            ; @ADPA_DAC_ENABLE
	.comm	_ADPA_HSYNC_CNTL_DISABLE,4,2    ; @ADPA_HSYNC_CNTL_DISABLE
	.comm	_ADPA_VSYNC_CNTL_DISABLE,4,2    ; @ADPA_VSYNC_CNTL_DISABLE
	.no_dead_strip	_intel_crt_set_dpms
.subsections_via_symbols
