	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_crt_mode_set
_intel_crt_mode_set:                    ## @intel_crt_mode_set
	.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
	movq	%rdx, %r13
	movq	(%rdi), %rbx
	movq	8(%rdi), %r12
	callq	_to_intel_encoder
	movl	%eax, %edi
	callq	_intel_encoder_to_crt
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_intel_crtc
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_HAS_PCH_SPLIT
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ADPA_HOTPLUG_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_2:
	movl	(%r13), %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_13
## %bb.7:
	movq	%r12, %rdi
	callq	_HAS_PCH_CPT
	movq	(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	callq	_PORT_TRANS_SEL_CPT
	orl	%eax, %ebx
	jmp	LBB0_13
LBB0_9:
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.11:
	movq	_ADPA_PIPE_B_SELECT@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_ADPA_PIPE_A_SELECT@GOTPCREL(%rip), %rax
LBB0_12:
	orl	(%rax), %ebx
LBB0_13:
	movq	%r12, %rdi
	callq	_HAS_PCH_SPLIT
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	(%r15), %rdi
	callq	_BCLRPAT
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_I915_WRITE
LBB0_15:
	movl	(%r14), %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
                                        ## -- 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_PIPE_A_SELECT,4,2         ## @ADPA_PIPE_A_SELECT
	.comm	_ADPA_PIPE_B_SELECT,4,2         ## @ADPA_PIPE_B_SELECT
	.no_dead_strip	_intel_crt_mode_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_crt_mode_set
_intel_crt_mode_set:                    ; @intel_crt_mode_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x2
	ldp	x21, x20, [x0]
	bl	_to_intel_encoder
	bl	_intel_encoder_to_crt
	mov	x19, x0
	mov	x0, x21
	bl	_to_intel_crtc
	mov	x21, x0
	mov	x0, x20
	bl	_HAS_PCH_SPLIT
Lloh0:
	adrp	x8, _ADPA_HOTPLUG_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADPA_HOTPLUG_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	ldr	w9, [x22]
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	w22, w8, w9
	mov	x0, x20
	bl	_HAS_PCH_LPT
	cbnz	x0, LBB0_7
; %bb.1:
	mov	x0, x20
	bl	_HAS_PCH_CPT
	mov	x8, x0
	ldr	x0, [x21]
	cbz	x8, LBB0_3
; %bb.2:
	bl	_PORT_TRANS_SEL_CPT
	orr	w22, w0, w22
	b	LBB0_7
LBB0_3:
	cbz	x0, LBB0_5
; %bb.4:
Lloh15:
	adrp	x8, _ADPA_PIPE_B_SELECT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ADPA_PIPE_B_SELECT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh17:
	adrp	x8, _ADPA_PIPE_A_SELECT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ADPA_PIPE_A_SELECT@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_7:
	mov	x0, x20
	bl	_HAS_PCH_SPLIT
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x21]
	bl	_BCLRPAT
	mov	w1, #0
	bl	_I915_WRITE
LBB0_9:
	ldr	w0, [x19]
	mov	x1, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 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 AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- 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_PIPE_A_SELECT,4,2         ; @ADPA_PIPE_A_SELECT
	.comm	_ADPA_PIPE_B_SELECT,4,2         ; @ADPA_PIPE_B_SELECT
	.no_dead_strip	_intel_crt_mode_set
.subsections_via_symbols
