	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_crt_get_hw_state
_intel_crt_get_hw_state:                ## @intel_crt_get_hw_state
	.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	%rsi, %r14
	movq	(%rdi), %r15
	callq	_intel_encoder_to_crt
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	_ADPA_DAC_ENABLE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_HAS_PCH_CPT
	movl	%ebx, %edi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_PORT_TO_PIPE_CPT
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	callq	_PORT_TO_PIPE
LBB0_5:
	movl	%eax, (%r14)
	movl	$1, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADPA_DAC_ENABLE,4,2            ## @ADPA_DAC_ENABLE
	.no_dead_strip	_intel_crt_get_hw_state
.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_hw_state
_intel_crt_get_hw_state:                ; @intel_crt_get_hw_state
	.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	x19, x1
	ldr	x20, [x0]
	bl	_intel_encoder_to_crt
	ldr	w0, [x0]
	bl	_I915_READ
Lloh0:
	adrp	x8, _ADPA_DAC_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADPA_DAC_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	bl	_HAS_PCH_CPT
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_PORT_TO_PIPE_CPT
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	mov	x0, x21
	bl	_PORT_TO_PIPE
LBB0_5:
	str	w0, [x19]
	mov	w0, #1
LBB0_6:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ADPA_DAC_ENABLE,4,2            ; @ADPA_DAC_ENABLE
	.no_dead_strip	_intel_crt_get_hw_state
.subsections_via_symbols
