	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rbx
	movl	(%rdi), %r12d
	movq	%rbx, %rdi
	callq	_intel_ddi_get_encoder_port
	movl	%eax, %r14d
	movl	$0, -36(%rbp)
	leaq	-36(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*(%rbx)
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	_PORT_A@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_3
## %bb.2:
	movq	_TRANSCODER_EDP@GOTPCREL(%rip), %r15
LBB0_3:
	movl	(%r15), %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	$4, %eax
	ja	LBB0_7
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	_DRM_MODE_CONNECTOR_HDMIA@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_8:
	movq	_DRM_MODE_CONNECTOR_VGA@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_DRM_MODE_CONNECTOR_eDP@GOTPCREL(%rip), %rcx
	movb	$1, %al
	cmpl	(%rcx), %r12d
	je	LBB0_12
LBB0_10:
	movq	_DRM_MODE_CONNECTOR_DisplayPort@GOTPCREL(%rip), %rax
LBB0_11:
	cmpl	(%rax), %r12d
	sete	%al
LBB0_12:
	movzbl	%al, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_10
	.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, #64
	.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
	ldr	x20, [x0, #16]
	ldr	w21, [x0]
	mov	x0, x20
	bl	_intel_ddi_get_encoder_port
	mov	x19, x0
	str	wzr, [sp, #12]
	ldr	x8, [x20]
	add	x22, sp, #12
	add	x1, sp, #12
	mov	x0, x20
	blr	x8
	cbz	w0, LBB0_10
; %bb.1:
Lloh0:
	adrp	x8, _PORT_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_A@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TRANSCODER_EDP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TRANSCODER_EDP@GOTPAGEOFF]
	cmp	w19, w8
	csel	x8, x9, x22, eq
	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, #4
	b.hi	LBB0_4
; %bb.2:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh10:
	adrp	x8, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	mov	w0, #0
	b	LBB0_10
LBB0_5:
Lloh12:
	adrp	x8, _DRM_MODE_CONNECTOR_VGA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_VGA@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh14:
	adrp	x8, _DRM_MODE_CONNECTOR_eDP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_eDP@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #1
	b	LBB0_10
LBB0_8:
Lloh17:
	adrp	x8, _DRM_MODE_CONNECTOR_DisplayPort@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_DisplayPort@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	cmp	w21, w8
	cset	w0, eq
LBB0_10:
	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
	add	sp, sp, #64
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>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
