	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_hdmi_connector_detect
_sun4i_hdmi_connector_detect:           ## @sun4i_hdmi_connector_detect
	.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
	callq	_drm_connector_to_sun4i_hdmi
	movq	%rax, %rbx
	movq	_SUN4I_HDMI_HPD_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$500000, %r8d                   ## imm = 0x7A120
	callq	_readl_poll_timeout
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	callq	_cec_phys_addr_invalidate
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUN4I_HDMI_HPD_REG,8,3         ## @SUN4I_HDMI_HPD_REG
	.comm	_SUN4I_HDMI_HPD_HIGH,8,3        ## @SUN4I_HDMI_HPD_HIGH
	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.no_dead_strip	_sun4i_hdmi_connector_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_hdmi_connector_detect
_sun4i_hdmi_connector_detect:           ; @sun4i_hdmi_connector_detect
	.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
	bl	_drm_connector_to_sun4i_hdmi
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _SUN4I_HDMI_HPD_REG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SUN4I_HDMI_HPD_REG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	x2, #0
	mov	w3, #0
	mov	w4, #41248
	movk	w4, #7, lsl #16
	bl	_readl_poll_timeout
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_cec_phys_addr_invalidate
Lloh3:
	adrp	x8, _connector_status_disconnected@GOTPAGE
Lloh4:
	ldr	x8, [x8, _connector_status_disconnected@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh6:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SUN4I_HDMI_HPD_REG,8,3         ; @SUN4I_HDMI_HPD_REG
	.comm	_SUN4I_HDMI_HPD_HIGH,8,3        ; @SUN4I_HDMI_HPD_HIGH
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.no_dead_strip	_sun4i_hdmi_connector_detect
.subsections_via_symbols
