	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc_bridge_enable
_tc_bridge_enable:                      ## @tc_bridge_enable
	.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	_bridge_to_tc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_tc_get_display_props
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	callq	_tc_main_link_enable
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	_tc_stream_enable
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_drm_panel_enable               ## TAILCALL
LBB0_1:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_6:
	movl	4(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_tc_main_link_disable           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read display props: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"main link enable error: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"main link stream start error: %d\n"

	.no_dead_strip	_tc_bridge_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc_bridge_enable
_tc_bridge_enable:                      ; @tc_bridge_enable
	.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	_bridge_to_tc
	mov	x19, x0
	bl	_tc_get_display_props
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_tc_main_link_enable
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_tc_stream_enable
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_drm_panel_enable
LBB0_4:
	mov	x2, x0
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	mov	x2, x0
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err
LBB0_7:
	mov	x2, x0
	ldr	w0, [x19, #4]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tc_main_link_disable
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read display props: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"main link enable error: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"main link stream start error: %d\n"

	.no_dead_strip	_tc_bridge_enable
.subsections_via_symbols
