	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g4x_dp_detect
_g4x_dp_detect:                         ## @g4x_dp_detect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_intel_dp_to_dev
	movq	%rbx, %rdi
	callq	_dp_to_dig_port
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.g4x_dp_detect(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %r14d
	movq	_PORT_HOTPLUG_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	testl	%r14d, %eax
	je	LBB0_3
## %bb.5:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_intel_dp_detect_dpcd           ## TAILCALL
LBB0_1:
	movq	_connector_status_unknown@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORTB_HOTPLUG_LIVE_STATUS,4,2  ## @PORTB_HOTPLUG_LIVE_STATUS
	.comm	_PORTC_HOTPLUG_LIVE_STATUS,4,2  ## @PORTC_HOTPLUG_LIVE_STATUS
	.comm	_PORTD_HOTPLUG_LIVE_STATUS,4,2  ## @PORTD_HOTPLUG_LIVE_STATUS
	.comm	_connector_status_unknown,4,2   ## @connector_status_unknown
	.comm	_PORT_HOTPLUG_STAT,4,2          ## @PORT_HOTPLUG_STAT
	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
	.no_dead_strip	_g4x_dp_detect
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.g4x_dp_detect
l_switch.table.g4x_dp_detect:
	.quad	_PORTD_HOTPLUG_LIVE_STATUS
	.quad	_PORTC_HOTPLUG_LIVE_STATUS
	.quad	_PORTB_HOTPLUG_LIVE_STATUS

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g4x_dp_detect
_g4x_dp_detect:                         ; @g4x_dp_detect
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_intel_dp_to_dev
	mov	x0, x19
	bl	_dp_to_dig_port
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.g4x_dp_detect@PAGE
Lloh1:
	add	x9, x9, l_switch.table.g4x_dp_detect@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w20, [x8]
Lloh2:
	adrp	x8, _PORT_HOTPLUG_STAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PORT_HOTPLUG_STAT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_I915_READ
	tst	w0, w20
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_intel_dp_detect_dpcd
LBB0_3:
Lloh5:
	adrp	x8, _connector_status_unknown@GOTPAGE
Lloh6:
	ldr	x8, [x8, _connector_status_unknown@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _connector_status_disconnected@GOTPAGE
Lloh8:
	ldr	x8, [x8, _connector_status_disconnected@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PORTB_HOTPLUG_LIVE_STATUS,4,2  ; @PORTB_HOTPLUG_LIVE_STATUS
	.comm	_PORTC_HOTPLUG_LIVE_STATUS,4,2  ; @PORTC_HOTPLUG_LIVE_STATUS
	.comm	_PORTD_HOTPLUG_LIVE_STATUS,4,2  ; @PORTD_HOTPLUG_LIVE_STATUS
	.comm	_connector_status_unknown,4,2   ; @connector_status_unknown
	.comm	_PORT_HOTPLUG_STAT,4,2          ; @PORT_HOTPLUG_STAT
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.no_dead_strip	_g4x_dp_detect
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.g4x_dp_detect
l_switch.table.g4x_dp_detect:
	.quad	_PORTD_HOTPLUG_LIVE_STATUS
	.quad	_PORTC_HOTPLUG_LIVE_STATUS
	.quad	_PORTB_HOTPLUG_LIVE_STATUS

.subsections_via_symbols
