	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc_connector_detect
_tc_connector_detect:                   ## @tc_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_connector_to_tc
	movq	%rax, %rbx
	cmpq	$0, (%rax)
	js	LBB0_3
## %bb.1:
	movl	8(%rbx), %edi
	movq	_GPIOI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	movl	-20(%rbp), %r14d
	movq	(%rbx), %rdi
	callq	_BIT
	testl	%r14d, %eax
	jne	LBB0_8
## %bb.6:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	cmpq	$0, 16(%rbx)
	jne	LBB0_8
LBB0_4:
	movq	_connector_status_unknown@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.comm	_connector_status_unknown,4,2   ## @connector_status_unknown
	.comm	_GPIOI,4,2                      ## @GPIOI
	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
	.no_dead_strip	_tc_connector_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc_connector_detect
_tc_connector_detect:                   ; @tc_connector_detect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	bl	_connector_to_tc
	mov	x19, x0
	ldr	x8, [x0]
	tbnz	x8, #63, LBB0_3
; %bb.1:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x8, _GPIOI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIOI@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _connector_status_unknown@GOTPAGE
Lloh4:
	ldr	x8, [x8, _connector_status_unknown@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	ldr	x8, [x19, #16]
Lloh5:
	adrp	x9, _connector_status_connected@GOTPAGE
Lloh6:
	ldr	x9, [x9, _connector_status_connected@GOTPAGEOFF]
Lloh7:
	adrp	x10, _connector_status_unknown@GOTPAGE
Lloh8:
	ldr	x10, [x10, _connector_status_unknown@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	b	LBB0_5
LBB0_4:
	ldr	w20, [sp, #12]
	ldr	x0, [x19]
	bl	_BIT
Lloh9:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh10:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
Lloh11:
	adrp	x9, _connector_status_disconnected@GOTPAGE
Lloh12:
	ldr	x9, [x9, _connector_status_disconnected@GOTPAGEOFF]
	tst	w0, w20
	csel	x8, x9, x8, eq
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.comm	_connector_status_unknown,4,2   ; @connector_status_unknown
	.comm	_GPIOI,4,2                      ; @GPIOI
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.no_dead_strip	_tc_connector_detect
.subsections_via_symbols
