	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcde_dsi_bridge_attach
_mcde_dsi_bridge_attach:                ## @mcde_dsi_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_bridge_to_mcde_dsi
	movq	%rax, %r15
	movq	8(%r14), %rbx
	movq	_mcde_dsi_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	callq	_drm_connector_helper_add
	movq	_DRIVER_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_drm_core_check_feature
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_DRM_MODE_CONNECTOR_DSI@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_mcde_dsi_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_drm_connector_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	8(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_7
LBB0_1:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movq	_DRM_CONNECTOR_POLL_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_drm_connector_attach_encoder
	movl	(%r14), %edi
	movl	12(%r15), %esi
	movq	%r14, %rdx
	callq	_drm_bridge_attach
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movl	8(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_7
LBB0_6:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mcde_dsi_connector_helper_funcs,4,2 ## @mcde_dsi_connector_helper_funcs
	.comm	_DRIVER_ATOMIC,4,2              ## @DRIVER_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"we need atomic updates\n"

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_mcde_dsi_connector_funcs,4,2   ## @mcde_dsi_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_DSI,4,2     ## @DRM_MODE_CONNECTOR_DSI
L_.str.1:                               ## @.str.1
	.asciz	"failed to initialize DSI bridge connector\n"

	.comm	_DRM_CONNECTOR_POLL_CONNECT,4,2 ## @DRM_CONNECTOR_POLL_CONNECT
L_.str.2:                               ## @.str.2
	.asciz	"failed to attach the DSI bridge\n"

	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.no_dead_strip	_mcde_dsi_bridge_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcde_dsi_bridge_attach
_mcde_dsi_bridge_attach:                ; @mcde_dsi_bridge_attach
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	bl	_bridge_to_mcde_dsi
	mov	x19, x0
	ldr	x21, [x20, #8]
Lloh0:
	adrp	x1, _mcde_dsi_connector_helper_funcs@GOTPAGE
Lloh1:
	ldr	x1, [x1, _mcde_dsi_connector_helper_funcs@GOTPAGEOFF]
	bl	_drm_connector_helper_add
Lloh2:
	adrp	x8, _DRIVER_ATOMIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRIVER_ATOMIC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_drm_core_check_feature
	cbz	w0, LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _DRM_MODE_CONNECTOR_DSI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_DSI@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x2, _mcde_dsi_connector_funcs@GOTPAGE
Lloh9:
	ldr	x2, [x2, _mcde_dsi_connector_funcs@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x19
	bl	_drm_connector_init
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
	ldr	w0, [x19, #8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_7
LBB0_3:
	ldr	w0, [x19, #8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh14:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_4:
Lloh17:
	adrp	x8, _DRM_CONNECTOR_POLL_CONNECT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DRM_CONNECTOR_POLL_CONNECT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_drm_connector_attach_encoder
	ldr	w0, [x20]
	ldr	w1, [x19, #12]
	mov	x2, x20
	bl	_drm_bridge_attach
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #8]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_7
LBB0_6:
Lloh22:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh23:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_mcde_dsi_connector_helper_funcs,4,2 ; @mcde_dsi_connector_helper_funcs
	.comm	_DRIVER_ATOMIC,4,2              ; @DRIVER_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"we need atomic updates\n"

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_mcde_dsi_connector_funcs,4,2   ; @mcde_dsi_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_DSI,4,2     ; @DRM_MODE_CONNECTOR_DSI
l_.str.1:                               ; @.str.1
	.asciz	"failed to initialize DSI bridge connector\n"

	.comm	_DRM_CONNECTOR_POLL_CONNECT,4,2 ; @DRM_CONNECTOR_POLL_CONNECT
l_.str.2:                               ; @.str.2
	.asciz	"failed to attach the DSI bridge\n"

	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.no_dead_strip	_mcde_dsi_bridge_attach
.subsections_via_symbols
