	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_crt_reset                ## -- Begin function intel_crt_reset
	.p2align	4, 0x90
_intel_crt_reset:                       ## @intel_crt_reset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_intel_encoder
	movl	%eax, %edi
	callq	_intel_encoder_to_crt
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_INTEL_GEN
	cmpl	$5, %eax
	jl	LBB0_2
## %bb.1:
	movl	4(%r15), %edi
	callq	_I915_READ
	movq	_ADPA_CRT_HOTPLUG_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	_ADPA_HOTPLUG_BITS@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	4(%r15), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	4(%r15), %edi
	callq	_POSTING_READ
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_DRM_DEBUG_KMS
	movl	$1, (%r15)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADPA_CRT_HOTPLUG_MASK,4,2      ## @ADPA_CRT_HOTPLUG_MASK
	.comm	_ADPA_HOTPLUG_BITS,4,2          ## @ADPA_HOTPLUG_BITS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"crt adpa set to 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_crt_reset                ; -- Begin function intel_crt_reset
	.p2align	2
_intel_crt_reset:                       ; @intel_crt_reset
	.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	x20, x0
	mov	x0, x19
	bl	_to_intel_encoder
	bl	_intel_encoder_to_crt
	mov	x19, x0
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #5
	b.lt	LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_I915_READ
Lloh0:
	adrp	x8, _ADPA_CRT_HOTPLUG_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADPA_CRT_HOTPLUG_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh3:
	adrp	x9, _ADPA_HOTPLUG_BITS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ADPA_HOTPLUG_BITS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w20, w8, w9
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_I915_WRITE
	ldr	w0, [x19, #4]
	bl	_POSTING_READ
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DRM_DEBUG_KMS
	mov	w8, #1
	str	w8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ADPA_CRT_HOTPLUG_MASK,4,2      ; @ADPA_CRT_HOTPLUG_MASK
	.comm	_ADPA_HOTPLUG_BITS,4,2          ; @ADPA_HOTPLUG_BITS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"crt adpa set to 0x%x\n"

.subsections_via_symbols
