	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdfld_dsi_dpi_turn_on          ## -- Begin function mdfld_dsi_dpi_turn_on
	.p2align	4, 0x90
_mdfld_dsi_dpi_turn_on:                 ## @mdfld_dsi_dpi_turn_on
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movl	%esi, %edi
	callq	_MIPI_INTR_STAT_REG
	movl	%eax, %edi
	callq	_REG_READ
	movq	_DSI_INTR_STATE_SPL_PKG_SENT@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_MIPI_INTR_STAT_REG
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_REG_WRITE
LBB0_2:
	movl	%ebx, %edi
	callq	_MIPI_DPI_CONTROL_REG
	movq	_DSI_DPI_CTRL_HS_TURN_ON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_REG_WRITE
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_mdfld_wait_for_SPL_PKG_SENT
	movl	%ebx, %edi
	callq	_MIPI_INTR_STAT_REG
	movl	%eax, %edi
	callq	_REG_READ
	testl	%eax, (%r12)
	je	LBB0_4
## %bb.3:
	movl	%ebx, %edi
	callq	_MIPI_INTR_STAT_REG
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_REG_WRITE
LBB0_4:
	movl	$1, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSI_INTR_STATE_SPL_PKG_SENT,4,2 ## @DSI_INTR_STATE_SPL_PKG_SENT
	.comm	_DSI_DPI_CTRL_HS_TURN_ON,4,2    ## @DSI_DPI_CTRL_HS_TURN_ON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdfld_dsi_dpi_turn_on          ; -- Begin function mdfld_dsi_dpi_turn_on
	.p2align	2
_mdfld_dsi_dpi_turn_on:                 ; @mdfld_dsi_dpi_turn_on
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	mov	x0, x1
	bl	_MIPI_INTR_STAT_REG
	bl	_REG_READ
Lloh0:
	adrp	x22, _DSI_INTR_STATE_SPL_PKG_SENT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DSI_INTR_STATE_SPL_PKG_SENT@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_MIPI_INTR_STAT_REG
	ldr	w1, [x22]
	bl	_REG_WRITE
LBB0_2:
	mov	x0, x20
	bl	_MIPI_DPI_CONTROL_REG
Lloh2:
	adrp	x8, _DSI_DPI_CTRL_HS_TURN_ON@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DSI_DPI_CTRL_HS_TURN_ON@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_REG_WRITE
	mov	x0, x21
	mov	x1, x20
	bl	_mdfld_wait_for_SPL_PKG_SENT
	mov	x0, x20
	bl	_MIPI_INTR_STAT_REG
	bl	_REG_READ
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_MIPI_INTR_STAT_REG
	ldr	w1, [x22]
	bl	_REG_WRITE
LBB0_4:
	mov	w8, #1
	str	w8, [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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DSI_INTR_STATE_SPL_PKG_SENT,4,2 ; @DSI_INTR_STATE_SPL_PKG_SENT
	.comm	_DSI_DPI_CTRL_HS_TURN_ON,4,2    ; @DSI_DPI_CTRL_HS_TURN_ON
.subsections_via_symbols
