	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpi_display_disable
_dpi_display_disable:                   ## @dpi_display_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_dpi_get_data_from_dssdev
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mutex_lock
	leaq	32(%rbx), %rdi
	callq	_dss_mgr_disable
	cmpq	$0, 24(%rbx)
	je	LBB0_2
## %bb.1:
	movq	16(%rbx), %rdi
	movl	32(%rbx), %esi
	movq	_DSS_CLK_SRC_FCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_dss_select_lcd_clk_source
	movq	24(%rbx), %rdi
	callq	_dss_pll_disable
LBB0_2:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_dispc_runtime_put
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_regulator_disable
LBB0_4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DSS_CLK_SRC_FCK,4,2            ## @DSS_CLK_SRC_FCK
	.no_dead_strip	_dpi_display_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpi_display_disable
_dpi_display_disable:                   ; @dpi_display_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	_dpi_get_data_from_dssdev
	mov	x19, x0
	bl	_mutex_lock
	add	x0, x19, #32
	bl	_dss_mgr_disable
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x0, [x19, #16]
	ldr	w1, [x19, #32]
Lloh0:
	adrp	x8, _DSS_CLK_SRC_FCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSS_CLK_SRC_FCK@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_dss_select_lcd_clk_source
	ldr	x0, [x19, #24]
	bl	_dss_pll_disable
LBB0_2:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_dispc_runtime_put
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_regulator_disable
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DSS_CLK_SRC_FCK,4,2            ; @DSS_CLK_SRC_FCK
	.no_dead_strip	_dpi_display_disable
.subsections_via_symbols
