	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evergreen_hpd_sense            ## -- Begin function evergreen_hpd_sense
	.p2align	4, 0x90
_evergreen_hpd_sense:                   ## @evergreen_hpd_sense
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_RADEON_HPD_NONE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%esi, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	%esi, %edi
	callq	_DC_HPDx_INT_STATUS_REG
	movl	%eax, %edi
	callq	_RREG32
	movl	%eax, %ecx
	movq	_DC_HPDx_SENSE@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	setne	%al
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_HPD_NONE,4,2            ## @RADEON_HPD_NONE
	.comm	_DC_HPDx_SENSE,4,2              ## @DC_HPDx_SENSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evergreen_hpd_sense            ; -- Begin function evergreen_hpd_sense
	.p2align	2
_evergreen_hpd_sense:                   ; @evergreen_hpd_sense
	.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, _RADEON_HPD_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RADEON_HPD_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x1
	bl	_DC_HPDx_INT_STATUS_REG
	bl	_RREG32
Lloh3:
	adrp	x8, _DC_HPDx_SENSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DC_HPDx_SENSE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, ne
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_HPD_NONE,4,2            ; @RADEON_HPD_NONE
	.comm	_DC_HPDx_SENSE,4,2              ; @DC_HPDx_SENSE
.subsections_via_symbols
