	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_connector_check_state
_intel_connector_check_state:           ## @intel_connector_check_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	%rdi, %rbx
	callq	*32(%rdi)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	24(%rbx), %r14
	movl	16(%rbx), %r15d
	movq	%rbx, %rdi
	callq	_drm_get_connector_name
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_DRM_DEBUG_KMS
	movq	(%rbx), %rax
	movq	_DRM_MODE_DPMS_OFF@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	leaq	L_.str.1(%rip), %rsi
	callq	_WARN
	leaq	8(%r14), %r15
	xorl	%edi, %edi
	cmpq	%r15, 8(%rbx)
	setne	%dil
	leaq	L_.str.2(%rip), %rsi
	callq	_WARN
	xorl	%edi, %edi
	cmpl	$0, 16(%r14)
	sete	%dil
	leaq	L_.str.3(%rip), %rsi
	callq	_WARN
	leaq	-28(%rbp), %rsi
	movq	%r14, %rdi
	callq	*(%r14)
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.4(%rip), %rsi
	callq	_WARN
	xorl	%edi, %edi
	cmpq	$0, 8(%r14)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	(%r15), %rbx
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	sete	%dil
	leaq	L_.str.5(%rip), %rsi
	callq	_WARN
	movq	%rbx, %rdi
	callq	_to_intel_crtc
	xorl	%edi, %edi
	cmpl	$0, 4(%rax)
	sete	%dil
	leaq	L_.str.6(%rip), %rsi
	callq	_WARN
	movl	-28(%rbp), %r14d
	movq	%rbx, %rdi
	callq	_to_intel_crtc
	xorl	%edi, %edi
	cmpl	(%rax), %r14d
	setne	%dil
	leaq	L_.str.7(%rip), %rsi
	callq	_WARN
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[CONNECTOR:%d:%s]\n"

	.comm	_DRM_MODE_DPMS_OFF,8,3          ## @DRM_MODE_DPMS_OFF
L_.str.1:                               ## @.str.1
	.asciz	"wrong connector dpms state\n"

L_.str.2:                               ## @.str.2
	.asciz	"active connector not linked to encoder\n"

L_.str.3:                               ## @.str.3
	.asciz	"encoder->connectors_active not set\n"

L_.str.4:                               ## @.str.4
	.asciz	"encoder not enabled\n"

L_.str.5:                               ## @.str.5
	.asciz	"crtc not enabled\n"

L_.str.6:                               ## @.str.6
	.asciz	"crtc not active\n"

L_.str.7:                               ## @.str.7
	.asciz	"encoder active on the wrong pipe\n"

	.no_dead_strip	_intel_connector_check_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_connector_check_state
_intel_connector_check_state:           ; @intel_connector_check_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
	mov	x20, x0
	ldr	x8, [x0, #32]
	blr	x8
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x19, [x20, #24]
	ldr	w21, [x20, #16]
	mov	x0, x20
	bl	_drm_get_connector_name
	mov	x2, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_DRM_DEBUG_KMS
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _DRM_MODE_DPMS_OFF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DRM_MODE_DPMS_OFF@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_WARN
	ldr	x8, [x20, #8]
	add	x20, x19, #8
	cmp	x8, x20
	cset	w0, ne
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_WARN
	ldr	w8, [x19, #16]
	cmp	w8, #0
	cset	w0, eq
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_WARN
	ldr	x8, [x19]
	add	x1, sp, #12
	mov	x0, x19
	blr	x8
	cmp	w0, #0
	cset	w0, eq
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_WARN
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x19, [x20]
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, eq
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_WARN
	mov	x0, x19
	bl	_to_intel_crtc
	ldr	w8, [x0, #4]
	cmp	w8, #0
	cset	w0, eq
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_WARN
	ldr	w20, [sp, #12]
	mov	x0, x19
	bl	_to_intel_crtc
	ldr	w8, [x0]
	cmp	w20, w8
	cset	w0, ne
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_WARN
LBB0_3:
	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 AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[CONNECTOR:%d:%s]\n"

	.comm	_DRM_MODE_DPMS_OFF,8,3          ; @DRM_MODE_DPMS_OFF
l_.str.1:                               ; @.str.1
	.asciz	"wrong connector dpms state\n"

l_.str.2:                               ; @.str.2
	.asciz	"active connector not linked to encoder\n"

l_.str.3:                               ; @.str.3
	.asciz	"encoder->connectors_active not set\n"

l_.str.4:                               ; @.str.4
	.asciz	"encoder not enabled\n"

l_.str.5:                               ; @.str.5
	.asciz	"crtc not enabled\n"

l_.str.6:                               ; @.str.6
	.asciz	"crtc not active\n"

l_.str.7:                               ; @.str.7
	.asciz	"encoder active on the wrong pipe\n"

	.no_dead_strip	_intel_connector_check_state
.subsections_via_symbols
