	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_ddi_connector_get_hw_state ## -- Begin function intel_ddi_connector_get_hw_state
	.p2align	4, 0x90
_intel_ddi_connector_get_hw_state:      ## @intel_ddi_connector_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	%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	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_to_i915
	movq	%rax, %r14
	movq	16(%rbx), %r12
	movl	(%rbx), %ebx
	movl	(%r12), %r13d
	movl	$0, -48(%rbp)
	movl	4(%r12), %esi
	movq	%rax, %rdi
	callq	_intel_display_power_get_if_enabled
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movl	%eax, %r15d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	leaq	-48(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	*8(%r12)
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	movq	%r14, %rdi
	callq	_HAS_TRANSCODER_EDP
	movq	_PORT_A@GOTPCREL(%rip), %rdx
	movq	%rbx, %rcx
	cmpl	(%rdx), %r13d
	jne	LBB0_4
## %bb.3:
	movq	_TRANSCODER_EDP@GOTPCREL(%rip), %rcx
LBB0_4:
	testq	%rax, %rax
	cmovneq	%rcx, %rbx
	movl	(%rbx), %edi
	callq	_TRANS_DDI_FUNC_CTL
	movl	%eax, %edi
	callq	_I915_READ
                                        ## kill: def $eax killed $eax def $rax
	movq	_TRANS_DDI_MODE_SELECT_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_9
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movq	_DRM_MODE_CONNECTOR_HDMIA@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_10:
	movq	_DRM_MODE_CONNECTOR_VGA@GOTPCREL(%rip), %rax
LBB0_11:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	sete	%al
	jmp	LBB0_13
LBB0_12:
	movq	_DRM_MODE_CONNECTOR_eDP@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	(%rax), %edx
	sete	%cl
	movq	_DRM_MODE_CONNECTOR_DisplayPort@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	sete	%al
	orb	%cl, %al
LBB0_13:
	movzbl	%al, %ebx
	movl	4(%r12), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_intel_display_power_put
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_6
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_PORT_A,4,2                     ## @PORT_A
	.comm	_TRANSCODER_EDP,4,2             ## @TRANSCODER_EDP
	.comm	_TRANS_DDI_MODE_SELECT_MASK,4,2 ## @TRANS_DDI_MODE_SELECT_MASK
	.comm	_DRM_MODE_CONNECTOR_HDMIA,4,2   ## @DRM_MODE_CONNECTOR_HDMIA
	.comm	_DRM_MODE_CONNECTOR_eDP,4,2     ## @DRM_MODE_CONNECTOR_eDP
	.comm	_DRM_MODE_CONNECTOR_DisplayPort,4,2 ## @DRM_MODE_CONNECTOR_DisplayPort
	.comm	_DRM_MODE_CONNECTOR_VGA,4,2     ## @DRM_MODE_CONNECTOR_VGA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_ddi_connector_get_hw_state ; -- Begin function intel_ddi_connector_get_hw_state
	.p2align	2
_intel_ddi_connector_get_hw_state:      ; @intel_ddi_connector_get_hw_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	ldr	x0, [x0, #8]
	bl	_to_i915
	mov	x19, x0
	ldr	x20, [x21, #16]
	ldr	w22, [x21]
	ldp	w23, w1, [x20]
	str	wzr, [sp, #12]
	bl	_intel_display_power_get_if_enabled
	cbz	w0, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	x8, [x20, #8]
	add	x24, sp, #12
	add	x1, sp, #12
	mov	x0, x20
	blr	x8
	cbz	w0, LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_HAS_TRANSCODER_EDP
Lloh0:
	adrp	x8, _PORT_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_A@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w23, w8
	ccmp	x0, #0, #4, eq
Lloh3:
	adrp	x8, _TRANSCODER_EDP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRANSCODER_EDP@GOTPAGEOFF]
	csel	x8, x8, x24, ne
	ldr	w0, [x8]
	bl	_TRANS_DDI_FUNC_CTL
	bl	_I915_READ
Lloh5:
	adrp	x8, _TRANS_DDI_MODE_SELECT_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRANS_DDI_MODE_SELECT_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w0
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_6
; %bb.3:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh10:
	adrp	x8, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	mov	w22, #0
	b	LBB0_12
LBB0_6:
	mov	w22, #0
	b	LBB0_11
LBB0_7:
Lloh12:
	adrp	x8, _DRM_MODE_CONNECTOR_VGA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_VGA@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	cmp	w22, w8
	b	LBB0_10
LBB0_9:
Lloh14:
	adrp	x8, _DRM_MODE_CONNECTOR_eDP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_eDP@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w22, w8
Lloh17:
	adrp	x8, _DRM_MODE_CONNECTOR_DisplayPort@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_DisplayPort@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ccmp	w22, w8, #4, ne
LBB0_10:
	cset	w22, eq
LBB0_11:
	ldr	w1, [x20, #4]
	mov	x0, x19
	mov	x2, x21
	bl	_intel_display_power_put
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
                                        ; -- End function
	.comm	_PORT_A,4,2                     ; @PORT_A
	.comm	_TRANSCODER_EDP,4,2             ; @TRANSCODER_EDP
	.comm	_TRANS_DDI_MODE_SELECT_MASK,4,2 ; @TRANS_DDI_MODE_SELECT_MASK
	.comm	_DRM_MODE_CONNECTOR_HDMIA,4,2   ; @DRM_MODE_CONNECTOR_HDMIA
	.comm	_DRM_MODE_CONNECTOR_eDP,4,2     ; @DRM_MODE_CONNECTOR_eDP
	.comm	_DRM_MODE_CONNECTOR_DisplayPort,4,2 ; @DRM_MODE_CONNECTOR_DisplayPort
	.comm	_DRM_MODE_CONNECTOR_VGA,4,2     ; @DRM_MODE_CONNECTOR_VGA
.subsections_via_symbols
