	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_panel_detect             ## -- Begin function intel_panel_detect
	.p2align	4, 0x90
_intel_panel_detect:                    ## @intel_panel_detect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_i915_panel_ignore_lid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$-2, %eax
	je	LBB0_9
## %bb.1:
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.2:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	callq	_ioread32
	testb	$1, %al
	jne	LBB0_9
LBB0_5:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	_connector_status_unknown@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i915_panel_ignore_lid,4,2      ## @i915_panel_ignore_lid
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
	.comm	_connector_status_unknown,4,2   ## @connector_status_unknown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_panel_detect             ; -- Begin function intel_panel_detect
	.p2align	2
_intel_panel_detect:                    ; @intel_panel_detect
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _i915_panel_ignore_lid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _i915_panel_ignore_lid@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w8, #2
	b.eq	LBB0_6
; %bb.1:
	cmn	w8, #1
	b.eq	LBB0_7
; %bb.2:
	cbnz	w8, LBB0_5
; %bb.3:
	ldr	x8, [x0]
	ldr	x0, [x8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_ioread32
Lloh3:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh4:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
Lloh5:
	adrp	x9, _connector_status_disconnected@GOTPAGE
Lloh6:
	ldr	x9, [x9, _connector_status_disconnected@GOTPAGEOFF]
	tst	w0, #0x1
	csel	x8, x9, x8, eq
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x8, _connector_status_unknown@GOTPAGE
Lloh8:
	ldr	x8, [x8, _connector_status_unknown@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh10:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _connector_status_disconnected@GOTPAGE
Lloh12:
	ldr	x8, [x8, _connector_status_disconnected@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_i915_panel_ignore_lid,4,2      ; @i915_panel_ignore_lid
	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.comm	_connector_status_unknown,4,2   ; @connector_status_unknown
.subsections_via_symbols
