	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_atom_get_hpd_info_from_gpio
_radeon_atom_get_hpd_info_from_gpio:    ## @radeon_atom_get_hpd_info_from_gpio
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_ASIC_IS_DCE6
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_SI_DC_GPIO_HPD_A@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	callq	_ASIC_IS_DCE4
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	_AVIVO_DC_GPIO_HPD_A@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_EVERGREEN_DC_GPIO_HPD_A@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rcx
	movups	(%r15), %xmm0
	movups	%xmm0, 8(%r14)
	movq	_RADEON_HPD_NONE@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%r15)
	jne	LBB0_19
## %bb.6:
	movl	8(%r15), %ecx
	cmpl	$16777215, %ecx                 ## imm = 0xFFFFFF
	jg	LBB0_12
## %bb.7:
	cmpl	$1, %ecx
	je	LBB0_8
## %bb.9:
	cmpl	$256, %ecx                      ## imm = 0x100
	je	LBB0_16
## %bb.10:
	cmpl	$65536, %ecx                    ## imm = 0x10000
	jne	LBB0_19
## %bb.11:
	movq	_RADEON_HPD_3@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_12:
	cmpl	$16777216, %ecx                 ## imm = 0x1000000
	je	LBB0_17
## %bb.13:
	cmpl	$67108864, %ecx                 ## imm = 0x4000000
	je	LBB0_18
## %bb.14:
	cmpl	$268435456, %ecx                ## imm = 0x10000000
	jne	LBB0_19
## %bb.15:
	movq	_RADEON_HPD_6@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_8:
	movq	_RADEON_HPD_1@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_16:
	movq	_RADEON_HPD_2@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_17:
	movq	_RADEON_HPD_4@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_18:
	movq	_RADEON_HPD_5@GOTPCREL(%rip), %rax
LBB0_19:
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SI_DC_GPIO_HPD_A,8,3           ## @SI_DC_GPIO_HPD_A
	.comm	_EVERGREEN_DC_GPIO_HPD_A,8,3    ## @EVERGREEN_DC_GPIO_HPD_A
	.comm	_AVIVO_DC_GPIO_HPD_A,8,3        ## @AVIVO_DC_GPIO_HPD_A
	.comm	_RADEON_HPD_1,8,3               ## @RADEON_HPD_1
	.comm	_RADEON_HPD_2,8,3               ## @RADEON_HPD_2
	.comm	_RADEON_HPD_3,8,3               ## @RADEON_HPD_3
	.comm	_RADEON_HPD_4,8,3               ## @RADEON_HPD_4
	.comm	_RADEON_HPD_5,8,3               ## @RADEON_HPD_5
	.comm	_RADEON_HPD_6,8,3               ## @RADEON_HPD_6
	.comm	_RADEON_HPD_NONE,8,3            ## @RADEON_HPD_NONE
	.no_dead_strip	_radeon_atom_get_hpd_info_from_gpio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_atom_get_hpd_info_from_gpio
_radeon_atom_get_hpd_info_from_gpio:    ; @radeon_atom_get_hpd_info_from_gpio
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x21, x0
	mov	x19, x8
	mov	x0, x8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	x0, x21
	bl	_ASIC_IS_DCE6
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SI_DC_GPIO_HPD_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SI_DC_GPIO_HPD_A@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_ASIC_IS_DCE4
Lloh2:
	adrp	x8, _EVERGREEN_DC_GPIO_HPD_A@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EVERGREEN_DC_GPIO_HPD_A@GOTPAGEOFF]
Lloh4:
	adrp	x9, _AVIVO_DC_GPIO_HPD_A@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AVIVO_DC_GPIO_HPD_A@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
LBB0_3:
	ldr	x8, [x8]
	ldr	q0, [x20]
	stur	q0, [x19, #8]
	ldr	x9, [x20]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.4:
	ldr	w8, [x20, #8]
	mov	w9, #16777215
	cmp	w8, w9
	b.gt	LBB0_9
; %bb.5:
	cmp	w8, #1
	b.eq	LBB0_15
; %bb.6:
	cmp	w8, #256
	b.eq	LBB0_16
; %bb.7:
	cmp	w8, #16, lsl #12                ; =65536
	b.ne	LBB0_13
; %bb.8:
Lloh6:
	adrp	x8, _RADEON_HPD_3@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RADEON_HPD_3@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
	mov	w9, #16777216
	cmp	w8, w9
	b.eq	LBB0_17
; %bb.10:
	mov	w9, #67108864
	cmp	w8, w9
	b.eq	LBB0_18
; %bb.11:
	mov	w9, #268435456
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.12:
Lloh8:
	adrp	x8, _RADEON_HPD_6@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RADEON_HPD_6@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh10:
	adrp	x8, _RADEON_HPD_NONE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RADEON_HPD_NONE@GOTPAGEOFF]
LBB0_14:
	ldr	x8, [x8]
	str	x8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh12:
	adrp	x8, _RADEON_HPD_1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RADEON_HPD_1@GOTPAGEOFF]
	b	LBB0_14
LBB0_16:
Lloh14:
	adrp	x8, _RADEON_HPD_2@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RADEON_HPD_2@GOTPAGEOFF]
	b	LBB0_14
LBB0_17:
Lloh16:
	adrp	x8, _RADEON_HPD_4@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RADEON_HPD_4@GOTPAGEOFF]
	b	LBB0_14
LBB0_18:
Lloh18:
	adrp	x8, _RADEON_HPD_5@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RADEON_HPD_5@GOTPAGEOFF]
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SI_DC_GPIO_HPD_A,8,3           ; @SI_DC_GPIO_HPD_A
	.comm	_EVERGREEN_DC_GPIO_HPD_A,8,3    ; @EVERGREEN_DC_GPIO_HPD_A
	.comm	_AVIVO_DC_GPIO_HPD_A,8,3        ; @AVIVO_DC_GPIO_HPD_A
	.comm	_RADEON_HPD_1,8,3               ; @RADEON_HPD_1
	.comm	_RADEON_HPD_2,8,3               ; @RADEON_HPD_2
	.comm	_RADEON_HPD_3,8,3               ; @RADEON_HPD_3
	.comm	_RADEON_HPD_4,8,3               ; @RADEON_HPD_4
	.comm	_RADEON_HPD_5,8,3               ; @RADEON_HPD_5
	.comm	_RADEON_HPD_6,8,3               ; @RADEON_HPD_6
	.comm	_RADEON_HPD_NONE,8,3            ; @RADEON_HPD_NONE
	.no_dead_strip	_radeon_atom_get_hpd_info_from_gpio
.subsections_via_symbols
