	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_atombios_get_hpd_info_from_gpio
_amdgpu_atombios_get_hpd_info_from_gpio: ## @amdgpu_atombios_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, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%r15, %rdi
	callq	_amdgpu_display_hpd_get_gpio_reg
	movups	(%rbx), %xmm0
	movups	%xmm0, 8(%r14)
	movq	_AMDGPU_HPD_NONE@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rbx)
	jne	LBB0_14
## %bb.1:
	movl	8(%rbx), %eax
	cmpl	$16777215, %eax                 ## imm = 0xFFFFFF
	jg	LBB0_7
## %bb.2:
	cmpl	$1, %eax
	je	LBB0_3
## %bb.4:
	cmpl	$256, %eax                      ## imm = 0x100
	je	LBB0_11
## %bb.5:
	cmpl	$65536, %eax                    ## imm = 0x10000
	jne	LBB0_14
## %bb.6:
	movq	_AMDGPU_HPD_3@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_7:
	cmpl	$16777216, %eax                 ## imm = 0x1000000
	je	LBB0_12
## %bb.8:
	cmpl	$67108864, %eax                 ## imm = 0x4000000
	je	LBB0_13
## %bb.9:
	cmpl	$268435456, %eax                ## imm = 0x10000000
	jne	LBB0_14
## %bb.10:
	movq	_AMDGPU_HPD_6@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_3:
	movq	_AMDGPU_HPD_1@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_11:
	movq	_AMDGPU_HPD_2@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_12:
	movq	_AMDGPU_HPD_4@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_13:
	movq	_AMDGPU_HPD_5@GOTPCREL(%rip), %rcx
LBB0_14:
	movq	(%rcx), %rax
	movq	%rax, (%r14)
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMDGPU_HPD_1,8,3               ## @AMDGPU_HPD_1
	.comm	_AMDGPU_HPD_2,8,3               ## @AMDGPU_HPD_2
	.comm	_AMDGPU_HPD_3,8,3               ## @AMDGPU_HPD_3
	.comm	_AMDGPU_HPD_4,8,3               ## @AMDGPU_HPD_4
	.comm	_AMDGPU_HPD_5,8,3               ## @AMDGPU_HPD_5
	.comm	_AMDGPU_HPD_6,8,3               ## @AMDGPU_HPD_6
	.comm	_AMDGPU_HPD_NONE,8,3            ## @AMDGPU_HPD_NONE
	.no_dead_strip	_amdgpu_atombios_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 amdgpu_atombios_get_hpd_info_from_gpio
_amdgpu_atombios_get_hpd_info_from_gpio: ; @amdgpu_atombios_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	_amdgpu_display_hpd_get_gpio_reg
	ldr	q0, [x20]
	stur	q0, [x19, #8]
	ldr	x8, [x20]
	cmp	x8, x0
	b.ne	LBB0_10
; %bb.1:
	ldr	w8, [x20, #8]
	mov	w9, #16777215
	cmp	w8, w9
	b.gt	LBB0_6
; %bb.2:
	cmp	w8, #1
	b.eq	LBB0_12
; %bb.3:
	cmp	w8, #256
	b.eq	LBB0_13
; %bb.4:
	cmp	w8, #16, lsl #12                ; =65536
	b.ne	LBB0_10
; %bb.5:
Lloh0:
	adrp	x8, _AMDGPU_HPD_3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMDGPU_HPD_3@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	mov	w9, #16777216
	cmp	w8, w9
	b.eq	LBB0_14
; %bb.7:
	mov	w9, #67108864
	cmp	w8, w9
	b.eq	LBB0_15
; %bb.8:
	mov	w9, #268435456
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.9:
Lloh2:
	adrp	x8, _AMDGPU_HPD_6@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AMDGPU_HPD_6@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh4:
	adrp	x8, _AMDGPU_HPD_NONE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AMDGPU_HPD_NONE@GOTPAGEOFF]
LBB0_11:
	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_12:
Lloh6:
	adrp	x8, _AMDGPU_HPD_1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AMDGPU_HPD_1@GOTPAGEOFF]
	b	LBB0_11
LBB0_13:
Lloh8:
	adrp	x8, _AMDGPU_HPD_2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AMDGPU_HPD_2@GOTPAGEOFF]
	b	LBB0_11
LBB0_14:
Lloh10:
	adrp	x8, _AMDGPU_HPD_4@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AMDGPU_HPD_4@GOTPAGEOFF]
	b	LBB0_11
LBB0_15:
Lloh12:
	adrp	x8, _AMDGPU_HPD_5@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AMDGPU_HPD_5@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AMDGPU_HPD_1,8,3               ; @AMDGPU_HPD_1
	.comm	_AMDGPU_HPD_2,8,3               ; @AMDGPU_HPD_2
	.comm	_AMDGPU_HPD_3,8,3               ; @AMDGPU_HPD_3
	.comm	_AMDGPU_HPD_4,8,3               ; @AMDGPU_HPD_4
	.comm	_AMDGPU_HPD_5,8,3               ; @AMDGPU_HPD_5
	.comm	_AMDGPU_HPD_6,8,3               ; @AMDGPU_HPD_6
	.comm	_AMDGPU_HPD_NONE,8,3            ; @AMDGPU_HPD_NONE
	.no_dead_strip	_amdgpu_atombios_get_hpd_info_from_gpio
.subsections_via_symbols
