	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tegra_output_connector_detect  ## -- Begin function tegra_output_connector_detect
	.p2align	4, 0x90
_tegra_output_connector_detect:         ## @tegra_output_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
	callq	_connector_to_output
	movq	%rax, %r14
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_gpiod_get_value
	testq	%rax, %rax
	jmp	LBB0_3
LBB0_2:
	cmpl	$0, 4(%r14)
LBB0_3:
	sete	%al
	movq	_connector_status_connected@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %ebx
	testb	%al, %al
	je	LBB0_5
## %bb.4:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	cmpl	%ecx, %ebx
	je	LBB0_7
## %bb.6:
	movl	(%r14), %edi
	callq	_cec_notifier_phys_addr_invalidate
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_connector_status_unknown,4,2   ## @connector_status_unknown
	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tegra_output_connector_detect  ; -- Begin function tegra_output_connector_detect
	.p2align	2
_tegra_output_connector_detect:         ; @tegra_output_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	_connector_to_output
	mov	x19, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_gpiod_get_value
	cmp	x0, #0
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19, #4]
	cmp	w8, #0
LBB0_3:
	cset	w8, eq
Lloh0:
	adrp	x9, _connector_status_disconnected@GOTPAGE
Lloh1:
	ldr	x9, [x9, _connector_status_disconnected@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _connector_status_connected@GOTPAGE
Lloh4:
	ldr	x10, [x10, _connector_status_connected@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, #0
	csel	w20, w9, w10, ne
	cmp	w20, w10
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x19]
	bl	_cec_notifier_phys_addr_invalidate
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_connector_status_unknown,4,2   ; @connector_status_unknown
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.comm	_connector_status_connected,4,2 ; @connector_status_connected
.subsections_via_symbols
