	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_hdmi_connector_detect
_vc4_hdmi_connector_detect:             ## @vc4_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rdi
	callq	_to_vc4_dev
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	16(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	callq	_gpio_get_value_cansleep
	movq	(%rbx), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
LBB0_6:
	movl	4(%rcx), %edi
	callq	_cec_phys_addr_invalidate
	movq	_connector_status_disconnected@GOTPCREL(%rip), %r14
	jmp	LBB0_7
LBB0_3:
	movl	8(%rax), %edi
	callq	_drm_probe_ddc
	movq	_connector_status_connected@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movq	_VC4_HDMI_HOTPLUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_HDMI_READ
	movq	_VC4_HDMI_HOTPLUG_CONNECTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.5:
	movq	(%rbx), %rcx
	jmp	LBB0_6
LBB0_2:
	movq	_connector_status_connected@GOTPCREL(%rip), %r14
LBB0_7:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
	.comm	_VC4_HDMI_HOTPLUG,4,2           ## @VC4_HDMI_HOTPLUG
	.comm	_VC4_HDMI_HOTPLUG_CONNECTED,4,2 ## @VC4_HDMI_HOTPLUG_CONNECTED
	.no_dead_strip	_vc4_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 vc4_hdmi_connector_detect
_vc4_hdmi_connector_detect:             ; @vc4_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
	ldr	x0, [x0]
	bl	_to_vc4_dev
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x0, [x8, #16]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_gpio_get_value_cansleep
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	w0, w9
	b.ne	LBB0_5
LBB0_2:
	ldr	w0, [x8, #4]
	bl	_cec_phys_addr_invalidate
Lloh0:
	adrp	x8, _connector_status_disconnected@GOTPAGE
Lloh1:
	ldr	x8, [x8, _connector_status_disconnected@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	ldr	w0, [x8, #8]
	bl	_drm_probe_ddc
	cbnz	x0, LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _VC4_HDMI_HOTPLUG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VC4_HDMI_HOTPLUG@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_HDMI_READ
Lloh5:
	adrp	x8, _VC4_HDMI_HOTPLUG_CONNECTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VC4_HDMI_HOTPLUG_CONNECTED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh9:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x19]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.comm	_VC4_HDMI_HOTPLUG,4,2           ; @VC4_HDMI_HOTPLUG
	.comm	_VC4_HDMI_HOTPLUG_CONNECTED,4,2 ; @VC4_HDMI_HOTPLUG_CONNECTED
	.no_dead_strip	_vc4_hdmi_connector_detect
.subsections_via_symbols
