	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdfld_dsi_configure_up
_mdfld_dsi_configure_up:                ## @mdfld_dsi_configure_up
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_MDFLD_DSI_DPI_OUTPUT
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_mdfld_dsi_encoder_get_config
	movq	(%rax), %rbx
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_2:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_mdfld_dsi_dpi_shut_down
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_dsi_set_device_ready_state
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%r15d, %edx
	callq	_dsi_set_device_ready_state
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_tc35876x_set_bridge_reset_state
	movq	%rbx, %rdi
	callq	_tc35876x_configure_lvds_bridge
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_mdfld_dsi_dpi_turn_on
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dsi_set_pipe_plane_enable_state ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPI panel is already on\n"

	.no_dead_strip	_mdfld_dsi_configure_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdfld_dsi_configure_up
_mdfld_dsi_configure_up:                ; @mdfld_dsi_configure_up
	.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	x19, x1
	mov	x21, x0
	bl	_MDFLD_DSI_DPI_OUTPUT
	mov	x20, x0
	mov	x0, x21
	bl	_mdfld_dsi_encoder_get_config
	ldr	x21, [x0]
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, w19, sxtw #3]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_dev_err
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_mdfld_dsi_dpi_shut_down
	mov	x0, x21
	mov	w1, #0
	mov	x2, x19
	bl	_dsi_set_device_ready_state
	mov	x0, x21
	mov	w1, #1
	mov	x2, x19
	bl	_dsi_set_device_ready_state
	mov	x0, x21
	mov	w1, #0
	bl	_tc35876x_set_bridge_reset_state
	mov	x0, x21
	bl	_tc35876x_configure_lvds_bridge
	mov	x0, x20
	mov	x1, x19
	bl	_mdfld_dsi_dpi_turn_on
	mov	x0, x21
	mov	w1, #1
	mov	x2, x19
	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
	b	_dsi_set_pipe_plane_enable_state
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPI panel is already on\n"

	.no_dead_strip	_mdfld_dsi_configure_up
.subsections_via_symbols
