	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcde_dsi_bridge_disable
_mcde_dsi_bridge_disable:               ## @mcde_dsi_bridge_disable
	.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	_bridge_to_mcde_dsi
	movq	%rax, %rbx
	movq	_DSI_VID_MODE_STS_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	16(%rbx), %rax
	movq	_MIPI_DSI_MODE_VIDEO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_DSI_MCTL_MAIN_DATA_CTL@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_DSI_MCTL_MAIN_DATA_CTL_VID_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	%rbx, %rdi
	callq	_mcde_dsi_wait_for_video_mode_stop
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_mcde_dsi_wait_for_command_mode_stop
LBB0_3:
	movl	4(%rbx), %edi
	callq	_clk_disable_unprepare
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_clk_disable_unprepare          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DSI_VID_MODE_STS_CTL,8,3       ## @DSI_VID_MODE_STS_CTL
	.comm	_MIPI_DSI_MODE_VIDEO,4,2        ## @MIPI_DSI_MODE_VIDEO
	.comm	_DSI_MCTL_MAIN_DATA_CTL,8,3     ## @DSI_MCTL_MAIN_DATA_CTL
	.comm	_DSI_MCTL_MAIN_DATA_CTL_VID_EN,4,2 ## @DSI_MCTL_MAIN_DATA_CTL_VID_EN
	.no_dead_strip	_mcde_dsi_bridge_disable
.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_disable
_mcde_dsi_bridge_disable:               ; @mcde_dsi_bridge_disable
	.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_mcde_dsi
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _DSI_VID_MODE_STS_CTL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DSI_VID_MODE_STS_CTL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MIPI_DSI_MODE_VIDEO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MIPI_DSI_MODE_VIDEO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x20, _DSI_MCTL_MAIN_DATA_CTL@GOTPAGE
Lloh7:
	ldr	x20, [x20, _DSI_MCTL_MAIN_DATA_CTL@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh8:
	adrp	x8, _DSI_MCTL_MAIN_DATA_CTL_VID_EN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DSI_MCTL_MAIN_DATA_CTL_VID_EN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	bl	_mcde_dsi_wait_for_video_mode_stop
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_mcde_dsi_wait_for_command_mode_stop
LBB0_3:
	ldr	w0, [x19, #4]
	bl	_clk_disable_unprepare
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_clk_disable_unprepare
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DSI_VID_MODE_STS_CTL,8,3       ; @DSI_VID_MODE_STS_CTL
	.comm	_MIPI_DSI_MODE_VIDEO,4,2        ; @MIPI_DSI_MODE_VIDEO
	.comm	_DSI_MCTL_MAIN_DATA_CTL,8,3     ; @DSI_MCTL_MAIN_DATA_CTL
	.comm	_DSI_MCTL_MAIN_DATA_CTL_VID_EN,4,2 ; @DSI_MCTL_MAIN_DATA_CTL_VID_EN
	.no_dead_strip	_mcde_dsi_bridge_disable
.subsections_via_symbols
