	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_dsi_host_xfer_prepare      ## -- Begin function msm_dsi_host_xfer_prepare
	.p2align	4, 0x90
_msm_dsi_host_xfer_prepare:             ## @msm_dsi_host_xfer_prepare
	.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	%rsi, %r14
	callq	_to_msm_dsi_host
	movq	%rax, %rbx
	movq	8(%rax), %rdi
	movq	16(%rax), %r15
	callq	_pm_runtime_get_sync
	movq	(%r15), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	_MIPI_DSI_MSG_USE_LPM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_dsi_set_tx_power_mode
LBB0_2:
	movq	_REG_DSI_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_dsi_read
	movl	%eax, (%rbx)
	movq	_DSI_CTRL_CMD_MODE_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %esi
	movq	_DSI_CTRL_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dsi_write
	movq	_DSI_IRQ_MASK_CMD_DMA_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_dsi_intr_ctrl
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIPI_DSI_MSG_USE_LPM,4,2       ## @MIPI_DSI_MSG_USE_LPM
	.comm	_REG_DSI_CTRL,4,2               ## @REG_DSI_CTRL
	.comm	_DSI_CTRL_CMD_MODE_EN,4,2       ## @DSI_CTRL_CMD_MODE_EN
	.comm	_DSI_CTRL_ENABLE,4,2            ## @DSI_CTRL_ENABLE
	.comm	_DSI_IRQ_MASK_CMD_DMA_DONE,4,2  ## @DSI_IRQ_MASK_CMD_DMA_DONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_dsi_host_xfer_prepare      ; -- Begin function msm_dsi_host_xfer_prepare
	.p2align	2
_msm_dsi_host_xfer_prepare:             ; @msm_dsi_host_xfer_prepare
	.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
	bl	_to_msm_dsi_host
	mov	x19, x0
	ldp	x0, x21, [x0, #8]
	bl	_pm_runtime_get_sync
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _MIPI_DSI_MSG_USE_LPM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MIPI_DSI_MSG_USE_LPM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	mov	x1, x19
	bl	_dsi_set_tx_power_mode
LBB0_2:
Lloh3:
	adrp	x20, _REG_DSI_CTRL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _REG_DSI_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_dsi_read
	str	w0, [x19]
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _DSI_CTRL_CMD_MODE_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DSI_CTRL_CMD_MODE_EN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh8:
	adrp	x9, _DSI_CTRL_ENABLE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DSI_CTRL_ENABLE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_dsi_write
Lloh11:
	adrp	x8, _DSI_IRQ_MASK_CMD_DMA_DONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DSI_IRQ_MASK_CMD_DMA_DONE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_dsi_intr_ctrl
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MIPI_DSI_MSG_USE_LPM,4,2       ; @MIPI_DSI_MSG_USE_LPM
	.comm	_REG_DSI_CTRL,4,2               ; @REG_DSI_CTRL
	.comm	_DSI_CTRL_CMD_MODE_EN,4,2       ; @DSI_CTRL_CMD_MODE_EN
	.comm	_DSI_CTRL_ENABLE,4,2            ; @DSI_CTRL_ENABLE
	.comm	_DSI_IRQ_MASK_CMD_DMA_DONE,4,2  ; @DSI_IRQ_MASK_CMD_DMA_DONE
.subsections_via_symbols
