	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_hpd_sense                 ## -- Begin function r600_hpd_sense
	.p2align	4, 0x90
_r600_hpd_sense:                        ## @r600_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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	callq	_ASIC_IS_DCE3
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	addl	$-128, %ebx
	xorl	%eax, %eax
	cmpl	$6, %ebx
	jae	LBB0_6
## %bb.2:
	movslq	%ebx, %rax
	leaq	l_switch.table.r600_hpd_sense(%rip), %rcx
	leaq	(%rcx,%rax,8), %rax
	movq	_DC_HPDx_SENSE@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
LBB0_3:
	addl	$-131, %ebx
	xorl	%eax, %eax
	cmpl	$3, %ebx
	jae	LBB0_6
## %bb.4:
	movslq	%ebx, %rax
	leaq	l_switch.table.r600_hpd_sense.1(%rip), %rcx
	leaq	(%rcx,%rax,8), %rax
	movq	_DC_HOT_PLUG_DETECTx_SENSE@GOTPCREL(%rip), %rbx
LBB0_5:
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rbx)
	setne	%al
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DC_HPD1_INT_STATUS,4,2         ## @DC_HPD1_INT_STATUS
	.comm	_DC_HPDx_SENSE,4,2              ## @DC_HPDx_SENSE
	.comm	_DC_HPD2_INT_STATUS,4,2         ## @DC_HPD2_INT_STATUS
	.comm	_DC_HPD3_INT_STATUS,4,2         ## @DC_HPD3_INT_STATUS
	.comm	_DC_HPD4_INT_STATUS,4,2         ## @DC_HPD4_INT_STATUS
	.comm	_DC_HPD5_INT_STATUS,4,2         ## @DC_HPD5_INT_STATUS
	.comm	_DC_HPD6_INT_STATUS,4,2         ## @DC_HPD6_INT_STATUS
	.comm	_DC_HOT_PLUG_DETECT1_INT_STATUS,4,2 ## @DC_HOT_PLUG_DETECT1_INT_STATUS
	.comm	_DC_HOT_PLUG_DETECTx_SENSE,4,2  ## @DC_HOT_PLUG_DETECTx_SENSE
	.comm	_DC_HOT_PLUG_DETECT2_INT_STATUS,4,2 ## @DC_HOT_PLUG_DETECT2_INT_STATUS
	.comm	_DC_HOT_PLUG_DETECT3_INT_STATUS,4,2 ## @DC_HOT_PLUG_DETECT3_INT_STATUS
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.r600_hpd_sense
l_switch.table.r600_hpd_sense:
	.quad	_DC_HPD6_INT_STATUS
	.quad	_DC_HPD5_INT_STATUS
	.quad	_DC_HPD4_INT_STATUS
	.quad	_DC_HPD3_INT_STATUS
	.quad	_DC_HPD2_INT_STATUS
	.quad	_DC_HPD1_INT_STATUS

	.p2align	3                               ## @switch.table.r600_hpd_sense.1
l_switch.table.r600_hpd_sense.1:
	.quad	_DC_HOT_PLUG_DETECT3_INT_STATUS
	.quad	_DC_HOT_PLUG_DETECT2_INT_STATUS
	.quad	_DC_HOT_PLUG_DETECT1_INT_STATUS

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_hpd_sense                 ; -- Begin function r600_hpd_sense
	.p2align	2
_r600_hpd_sense:                        ; @r600_hpd_sense
	.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, x1
	bl	_ASIC_IS_DCE3
	cbz	x0, LBB0_3
; %bb.1:
	sub	w8, w19, #128
	cmp	w8, #6
	b.hs	LBB0_6
; %bb.2:
Lloh0:
	adrp	x9, l_switch.table.r600_hpd_sense@PAGE
Lloh1:
	add	x9, x9, l_switch.table.r600_hpd_sense@PAGEOFF
	add	x8, x9, w8, sxtw #3
Lloh2:
	adrp	x19, _DC_HPDx_SENSE@GOTPAGE
Lloh3:
	ldr	x19, [x19, _DC_HPDx_SENSE@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	sub	w8, w19, #131
	cmp	w8, #3
	b.hs	LBB0_6
; %bb.4:
Lloh4:
	adrp	x9, l_switch.table.r600_hpd_sense.1@PAGE
Lloh5:
	add	x9, x9, l_switch.table.r600_hpd_sense.1@PAGEOFF
	add	x8, x9, w8, sxtw #3
Lloh6:
	adrp	x19, _DC_HOT_PLUG_DETECTx_SENSE@GOTPAGE
Lloh7:
	ldr	x19, [x19, _DC_HOT_PLUG_DETECTx_SENSE@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_RREG32
	ldr	w8, [x19]
	tst	w8, w0
	cset	w0, ne
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DC_HPD1_INT_STATUS,4,2         ; @DC_HPD1_INT_STATUS
	.comm	_DC_HPDx_SENSE,4,2              ; @DC_HPDx_SENSE
	.comm	_DC_HPD2_INT_STATUS,4,2         ; @DC_HPD2_INT_STATUS
	.comm	_DC_HPD3_INT_STATUS,4,2         ; @DC_HPD3_INT_STATUS
	.comm	_DC_HPD4_INT_STATUS,4,2         ; @DC_HPD4_INT_STATUS
	.comm	_DC_HPD5_INT_STATUS,4,2         ; @DC_HPD5_INT_STATUS
	.comm	_DC_HPD6_INT_STATUS,4,2         ; @DC_HPD6_INT_STATUS
	.comm	_DC_HOT_PLUG_DETECT1_INT_STATUS,4,2 ; @DC_HOT_PLUG_DETECT1_INT_STATUS
	.comm	_DC_HOT_PLUG_DETECTx_SENSE,4,2  ; @DC_HOT_PLUG_DETECTx_SENSE
	.comm	_DC_HOT_PLUG_DETECT2_INT_STATUS,4,2 ; @DC_HOT_PLUG_DETECT2_INT_STATUS
	.comm	_DC_HOT_PLUG_DETECT3_INT_STATUS,4,2 ; @DC_HOT_PLUG_DETECT3_INT_STATUS
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.r600_hpd_sense
l_switch.table.r600_hpd_sense:
	.quad	_DC_HPD6_INT_STATUS
	.quad	_DC_HPD5_INT_STATUS
	.quad	_DC_HPD4_INT_STATUS
	.quad	_DC_HPD3_INT_STATUS
	.quad	_DC_HPD2_INT_STATUS
	.quad	_DC_HPD1_INT_STATUS

	.p2align	3                               ; @switch.table.r600_hpd_sense.1
l_switch.table.r600_hpd_sense.1:
	.quad	_DC_HOT_PLUG_DETECT3_INT_STATUS
	.quad	_DC_HOT_PLUG_DETECT2_INT_STATUS
	.quad	_DC_HOT_PLUG_DETECT1_INT_STATUS

.subsections_via_symbols
