	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function downstream_hpd_needs_d0
_downstream_hpd_needs_d0:               ## @downstream_hpd_needs_d0
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movq	_DP_DPCD_REV@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%eax, %eax
	cmpl	$17, (%rcx,%rdx,4)
	jne	LBB0_3
## %bb.1:
	movq	_DP_DOWNSTREAMPORT_PRESENT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_DP_DWN_STRM_PORT_PRESENT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rcx,%rdx,4)
	je	LBB0_3
## %bb.2:
	movq	8(%rdi), %rcx
	movq	_DP_DS_PORT_HPD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, (%rcx)
	setne	%al
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_DPCD_REV,8,3                ## @DP_DPCD_REV
	.comm	_DP_DOWNSTREAMPORT_PRESENT,8,3  ## @DP_DOWNSTREAMPORT_PRESENT
	.comm	_DP_DWN_STRM_PORT_PRESENT,4,2   ## @DP_DWN_STRM_PORT_PRESENT
	.comm	_DP_DS_PORT_HPD,4,2             ## @DP_DS_PORT_HPD
	.no_dead_strip	_downstream_hpd_needs_d0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function downstream_hpd_needs_d0
_downstream_hpd_needs_d0:               ; @downstream_hpd_needs_d0
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _DP_DPCD_REV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DP_DPCD_REV@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	cmp	w9, #17
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _DP_DOWNSTREAMPORT_PRESENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DP_DOWNSTREAMPORT_PRESENT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh6:
	adrp	x9, _DP_DWN_STRM_PORT_PRESENT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DP_DWN_STRM_PORT_PRESENT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _DP_DS_PORT_HPD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DP_DS_PORT_HPD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
	ret
LBB0_3:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_DPCD_REV,8,3                ; @DP_DPCD_REV
	.comm	_DP_DOWNSTREAMPORT_PRESENT,8,3  ; @DP_DOWNSTREAMPORT_PRESENT
	.comm	_DP_DWN_STRM_PORT_PRESENT,4,2   ; @DP_DWN_STRM_PORT_PRESENT
	.comm	_DP_DS_PORT_HPD,4,2             ; @DP_DS_PORT_HPD
	.no_dead_strip	_downstream_hpd_needs_d0
.subsections_via_symbols
