	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc_bridge_attach
_tc_bridge_attach:                      ## @tc_bridge_attach
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_MEDIA_BUS_FMT_RGB888_1X24@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	callq	_bridge_to_tc
	movq	%rax, %r12
	movq	(%rbx), %r15
	leaq	12(%rax), %r14
	movq	_tc_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_drm_connector_helper_add
	cmpq	$0, 24(%r12)
	jne	LBB0_1
## %bb.2:
	movq	_DRM_MODE_CONNECTOR_DisplayPort@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_DRM_MODE_CONNECTOR_eDP@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	movq	_tc_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_drm_connector_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.4:
	cmpq	$0, (%r12)
	js	LBB0_9
## %bb.5:
	cmpq	$0, 32(%r12)
	je	LBB0_6
## %bb.7:
	movq	_DRM_CONNECTOR_POLL_HPD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_6:
	movq	_DRM_CONNECTOR_POLL_CONNECT@GOTPCREL(%rip), %rcx
	movq	_DRM_CONNECTOR_POLL_DISCONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
LBB0_8:
	movl	%eax, 12(%r12)
LBB0_9:
	movq	24(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	movq	%r14, %rsi
	callq	_drm_panel_attach
LBB0_11:
	movq	%r12, %rdi
	addq	$16, %rdi
	leaq	-36(%rbp), %rsi
	movl	$1, %edx
	callq	_drm_display_info_set_bus_formats
	movq	_DRM_BUS_FLAG_DE_HIGH@GOTPCREL(%rip), %rax
	movq	_DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 16(%r12)
	movl	8(%r12), %esi
	movq	%r14, %rdi
	callq	_drm_connector_attach_encoder
LBB0_12:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEDIA_BUS_FMT_RGB888_1X24,4,2  ## @MEDIA_BUS_FMT_RGB888_1X24
	.comm	_tc_connector_helper_funcs,4,2  ## @tc_connector_helper_funcs
	.comm	_tc_connector_funcs,4,2         ## @tc_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_eDP,4,2     ## @DRM_MODE_CONNECTOR_eDP
	.comm	_DRM_MODE_CONNECTOR_DisplayPort,4,2 ## @DRM_MODE_CONNECTOR_DisplayPort
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ## @DRM_CONNECTOR_POLL_HPD
	.comm	_DRM_CONNECTOR_POLL_CONNECT,4,2 ## @DRM_CONNECTOR_POLL_CONNECT
	.comm	_DRM_CONNECTOR_POLL_DISCONNECT,4,2 ## @DRM_CONNECTOR_POLL_DISCONNECT
	.comm	_DRM_BUS_FLAG_DE_HIGH,4,2       ## @DRM_BUS_FLAG_DE_HIGH
	.comm	_DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,4,2 ## @DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE
	.comm	_DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE,4,2 ## @DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE
	.no_dead_strip	_tc_bridge_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc_bridge_attach
_tc_bridge_attach:                      ; @tc_bridge_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
Lloh0:
	adrp	x8, _MEDIA_BUS_FMT_RGB888_1X24@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEDIA_BUS_FMT_RGB888_1X24@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	bl	_bridge_to_tc
	mov	x19, x0
	ldr	x21, [x20]
	add	x20, x0, #12
Lloh3:
	adrp	x1, _tc_connector_helper_funcs@GOTPAGE
Lloh4:
	ldr	x1, [x1, _tc_connector_helper_funcs@GOTPAGEOFF]
	mov	x0, x20
	bl	_drm_connector_helper_add
Lloh5:
	adrp	x8, _DRM_MODE_CONNECTOR_eDP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_eDP@GOTPAGEOFF]
	ldr	x9, [x19, #24]
Lloh7:
	adrp	x10, _DRM_MODE_CONNECTOR_DisplayPort@GOTPAGE
Lloh8:
	ldr	x10, [x10, _DRM_MODE_CONNECTOR_DisplayPort@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w3, [x8]
Lloh9:
	adrp	x2, _tc_connector_funcs@GOTPAGE
Lloh10:
	ldr	x2, [x2, _tc_connector_funcs@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x20
	bl	_drm_connector_init
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGEOFF]
	ldr	x9, [x19, #32]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x10, _DRM_CONNECTOR_POLL_CONNECT@GOTPAGE
Lloh15:
	ldr	x10, [x10, _DRM_CONNECTOR_POLL_CONNECT@GOTPAGEOFF]
Lloh16:
	adrp	x11, _DRM_CONNECTOR_POLL_DISCONNECT@GOTPAGE
Lloh17:
	ldr	x11, [x11, _DRM_CONNECTOR_POLL_DISCONNECT@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
Lloh19:
	ldr	w11, [x11]
	orr	w10, w11, w10
	cmp	x9, #0
	csel	w8, w10, w8, eq
	str	w8, [x19, #12]
LBB0_3:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_5
; %bb.4:
	mov	x1, x20
	bl	_drm_panel_attach
LBB0_5:
	add	x0, x19, #16
	add	x1, sp, #12
	mov	w2, #1
	bl	_drm_display_info_set_bus_formats
Lloh20:
	adrp	x8, _DRM_BUS_FLAG_DE_HIGH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DRM_BUS_FLAG_DE_HIGH@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh26:
	adrp	x9, _DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #16]
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_drm_connector_attach_encoder
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MEDIA_BUS_FMT_RGB888_1X24,4,2  ; @MEDIA_BUS_FMT_RGB888_1X24
	.comm	_tc_connector_helper_funcs,4,2  ; @tc_connector_helper_funcs
	.comm	_tc_connector_funcs,4,2         ; @tc_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_eDP,4,2     ; @DRM_MODE_CONNECTOR_eDP
	.comm	_DRM_MODE_CONNECTOR_DisplayPort,4,2 ; @DRM_MODE_CONNECTOR_DisplayPort
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ; @DRM_CONNECTOR_POLL_HPD
	.comm	_DRM_CONNECTOR_POLL_CONNECT,4,2 ; @DRM_CONNECTOR_POLL_CONNECT
	.comm	_DRM_CONNECTOR_POLL_DISCONNECT,4,2 ; @DRM_CONNECTOR_POLL_DISCONNECT
	.comm	_DRM_BUS_FLAG_DE_HIGH,4,2       ; @DRM_BUS_FLAG_DE_HIGH
	.comm	_DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,4,2 ; @DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE
	.comm	_DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE,4,2 ; @DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE
	.no_dead_strip	_tc_bridge_attach
.subsections_via_symbols
