	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_display_uninit_dsi
_dsi_display_uninit_dsi:                ## @dsi_display_uninit_dsi
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	cmpl	$0, 20(%rbx)
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_dsi_enter_ulps
LBB0_3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_dsi_if_enable
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_dsi_vc_enable
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_dsi_vc_enable
	movq	%rbx, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	callq	_dsi_vc_enable
	movq	%rbx, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	callq	_dsi_vc_enable
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	movq	_DSS_CLK_SRC_FCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_dss_select_dsi_clk_source
	movq	%rbx, %rdi
	callq	_dsi_cio_uninit
	leaq	8(%rbx), %rdi
	callq	_dss_pll_disable
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:
	movl	4(%rbx), %edi
	callq	_regulator_disable
	movl	$0, (%rbx)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSS_CLK_SRC_FCK,4,2            ## @DSS_CLK_SRC_FCK
	.no_dead_strip	_dsi_display_uninit_dsi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_display_uninit_dsi
_dsi_display_uninit_dsi:                ; @dsi_display_uninit_dsi
	.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
	mov	x20, x1
	mov	x19, x0
	cbz	w2, LBB0_3
; %bb.1:
	ldr	w8, [x19, #20]
	cbnz	w8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_dsi_enter_ulps
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	bl	_dsi_if_enable
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_dsi_vc_enable
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_dsi_vc_enable
	mov	x0, x19
	mov	w1, #2
	mov	w2, #0
	bl	_dsi_vc_enable
	mov	x0, x19
	mov	w1, #3
	mov	w2, #0
	bl	_dsi_vc_enable
	ldp	w1, w0, [x19, #12]
Lloh0:
	adrp	x8, _DSS_CLK_SRC_FCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSS_CLK_SRC_FCK@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_dss_select_dsi_clk_source
	mov	x0, x19
	bl	_dsi_cio_uninit
	add	x0, x19, #8
	bl	_dss_pll_disable
	cbz	w20, LBB0_5
; %bb.4:
	ldr	w0, [x19, #4]
	bl	_regulator_disable
	str	wzr, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DSS_CLK_SRC_FCK,4,2            ; @DSS_CLK_SRC_FCK
	.no_dead_strip	_dsi_display_uninit_dsi
.subsections_via_symbols
