	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdfld_dsi_dpi_shut_down
_mdfld_dsi_dpi_shut_down:               ## @mdfld_dsi_dpi_shut_down
	.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
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	cmpq	$0, (%rbx)
	je	LBB0_3
LBB0_2:
	movq	$0, (%rbx)
	jmp	LBB0_8
LBB0_3:
	movl	%esi, %r14d
	movq	16(%rbx), %rdi
	callq	_mdfld_wait_for_DPI_CTRL_FIFO
	movl	%r14d, %edi
	callq	_MIPI_INTR_STAT_REG
	movl	%eax, %edi
	callq	_REG_READ
	movq	_DSI_INTR_STATE_SPL_PKG_SENT@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.4:
	movl	%r14d, %edi
	callq	_MIPI_INTR_STAT_REG
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_REG_WRITE
LBB0_5:
	movl	%r14d, %edi
	callq	_MIPI_DPI_CONTROL_REG
	movl	%eax, %edi
	callq	_REG_READ
	movq	_DSI_DPI_CTRL_HS_SHUTDOWN@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	je	LBB0_7
## %bb.6:
	movl	%r14d, %edi
	callq	_MIPI_DPI_CONTROL_REG
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_REG_WRITE
LBB0_7:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	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_SHUTDOWN,4,2   ## @DSI_DPI_CTRL_HS_SHUTDOWN
	.no_dead_strip	_mdfld_dsi_dpi_shut_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdfld_dsi_dpi_shut_down
_mdfld_dsi_dpi_shut_down:               ; @mdfld_dsi_dpi_shut_down
	.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, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	x8, [x19]
	cbnz	x8, LBB0_7
; %bb.2:
	mov	x20, x1
	ldr	x0, [x19, #16]
	bl	_mdfld_wait_for_DPI_CTRL_FIFO
	mov	x0, x20
	bl	_MIPI_INTR_STAT_REG
	bl	_REG_READ
Lloh0:
	adrp	x21, _DSI_INTR_STATE_SPL_PKG_SENT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DSI_INTR_STATE_SPL_PKG_SENT@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_MIPI_INTR_STAT_REG
	ldr	w1, [x21]
	bl	_REG_WRITE
LBB0_4:
	mov	x0, x20
	bl	_MIPI_DPI_CONTROL_REG
	bl	_REG_READ
Lloh2:
	adrp	x21, _DSI_DPI_CTRL_HS_SHUTDOWN@GOTPAGE
Lloh3:
	ldr	x21, [x21, _DSI_DPI_CTRL_HS_SHUTDOWN@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_MIPI_DPI_CONTROL_REG
	ldr	w1, [x21]
	bl	_REG_WRITE
LBB0_6:
	str	xzr, [x19, #8]
LBB0_7:
	str	xzr, [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 AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_DSI_INTR_STATE_SPL_PKG_SENT,4,2 ; @DSI_INTR_STATE_SPL_PKG_SENT
	.comm	_DSI_DPI_CTRL_HS_SHUTDOWN,4,2   ; @DSI_DPI_CTRL_HS_SHUTDOWN
	.no_dead_strip	_mdfld_dsi_dpi_shut_down
.subsections_via_symbols
