	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpi_display_enable
_dpi_display_enable:                    ## @dpi_display_enable
	.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	_dpi_get_data_from_dssdev
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_regulator_enable
	testl	%eax, %eax
	jne	LBB0_13
LBB0_2:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_dispc_runtime_get
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movq	16(%rbx), %rdi
	movl	36(%rbx), %esi
	movl	32(%rbx), %edx
	callq	_dss_dpi_select_source
	testl	%eax, %eax
	je	LBB0_4
LBB0_10:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_dispc_runtime_put
LBB0_11:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_regulator_disable
LBB0_13:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_4:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_dss_pll_enable
	testl	%eax, %eax
	jne	LBB0_10
LBB0_6:
	movq	%rbx, %rdi
	callq	_dpi_set_mode
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %r14
	addq	$32, %r14
	movq	%rbx, %rdi
	callq	_dpi_config_lcd_manager
	movl	$2, %edi
	callq	_mdelay
	movq	%r14, %rdi
	callq	_dss_mgr_enable
	testl	%eax, %eax
	je	LBB0_13
LBB0_8:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_dss_pll_disable
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dpi_display_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpi_display_enable
_dpi_display_enable:                    ; @dpi_display_enable
	.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
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_regulator_enable
	cbnz	w0, LBB0_7
LBB0_2:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_dispc_runtime_get
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	x0, [x19, #16]
	ldp	w2, w1, [x19, #32]
	bl	_dss_dpi_select_source
	cbz	w0, LBB0_8
LBB0_4:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_dispc_runtime_put
LBB0_5:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_regulator_disable
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
LBB0_8:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_dss_pll_enable
	cbnz	w0, LBB0_4
LBB0_10:
	mov	x0, x19
	bl	_dpi_set_mode
	cbnz	w0, LBB0_12
; %bb.11:
	add	x20, x19, #32
	mov	x0, x19
	bl	_dpi_config_lcd_manager
	mov	w0, #2
	bl	_mdelay
	mov	x0, x20
	bl	_dss_mgr_enable
	cbz	w0, LBB0_7
LBB0_12:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_4
; %bb.13:
	bl	_dss_pll_disable
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dpi_display_enable
.subsections_via_symbols
