	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dsi_host_transfer
_intel_dsi_host_transfer:               ## @intel_dsi_host_transfer
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_to_intel_dsi_host
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movq	(%rax), %rdi
	callq	_to_i915
	movq	%rax, %r14
	movl	(%rbx), %r12d
	leaq	-80(%rbp), %rdi
	movq	%r15, %rsi
	callq	_mipi_dsi_create_packet
	testq	%rax, %rax
	js	LBB0_17
## %bb.1:
	movq	-80(%rbp), %rbx
	movq	_MIPI_DSI_MSG_USE_LPM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.2:
	movl	%r12d, %edi
	callq	_MIPI_LP_GEN_DATA
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_LP_DATA_FIFO_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r12d, %edi
	callq	_MIPI_LP_GEN_CTRL
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_LP_CTRL_FIFO_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movl	%r12d, %edi
	callq	_MIPI_HS_GEN_DATA
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_HS_DATA_FIFO_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r12d, %edi
	callq	_MIPI_HS_GEN_CTRL
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_HS_CTRL_FIFO_FULL@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpq	$0, -64(%rbp)
	je	LBB0_8
## %bb.5:
	movl	%r12d, %edi
	callq	_MIPI_GEN_FIFO_STAT
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	movl	$50, %ecx
	callq	_intel_de_wait_for_clear
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_7:
	movq	-72(%rbp), %rdx
	movq	-64(%rbp), %rcx
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_write_data
LBB0_8:
	cmpl	$0, 4(%r15)
	je	LBB0_10
## %bb.9:
	movl	%r12d, %edi
	callq	_MIPI_INTR_STAT
	movq	_GEN_READ_DATA_AVAIL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_I915_WRITE
LBB0_10:
	movl	%r12d, %edi
	callq	_MIPI_GEN_FIFO_STAT
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	$50, %ecx
	callq	_intel_de_wait_for_clear
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
LBB0_12:
	movl	4(%rbx), %esi
	movl	8(%rbx), %eax
	shll	$16, %eax
	shll	$8, %esi
	orl	%eax, %esi
	orl	(%rbx), %esi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_I915_WRITE
	cmpl	$0, 4(%r15)
	je	LBB0_16
## %bb.13:
	movq	_GEN_READ_DATA_AVAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_MIPI_INTR_STAT
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	movl	$50, %ecx
	callq	_intel_de_wait_for_set
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_ERROR
LBB0_15:
	movl	4(%r15), %ecx
	movl	8(%r15), %edx
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_read_data
LBB0_16:
	movq	-64(%rbp), %rax
	addq	$4, %rax
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	_LP_DATA_FIFO_FULL,4,2          ## @LP_DATA_FIFO_FULL
	.comm	_LP_CTRL_FIFO_FULL,4,2          ## @LP_CTRL_FIFO_FULL
	.comm	_HS_DATA_FIFO_FULL,4,2          ## @HS_DATA_FIFO_FULL
	.comm	_HS_CTRL_FIFO_FULL,4,2          ## @HS_CTRL_FIFO_FULL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout waiting for HS/LP DATA FIFO !full\n"

	.comm	_GEN_READ_DATA_AVAIL,4,2        ## @GEN_READ_DATA_AVAIL
L_.str.1:                               ## @.str.1
	.asciz	"Timeout waiting for HS/LP CTRL FIFO !full\n"

L_.str.2:                               ## @.str.2
	.asciz	"Timeout waiting for read data.\n"

	.no_dead_strip	_intel_dsi_host_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dsi_host_transfer
_intel_dsi_host_transfer:               ; @intel_dsi_host_transfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	bl	_to_intel_dsi_host
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x0, [x8]
	bl	_to_i915
	mov	x20, x0
	ldr	w21, [x21]
	add	x0, sp, #8
	mov	x1, x19
	bl	_mipi_dsi_create_packet
	tbnz	x0, #63, LBB0_17
; %bb.1:
	ldr	x26, [sp, #8]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _MIPI_DSI_MSG_USE_LPM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MIPI_DSI_MSG_USE_LPM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	x0, x21
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	bl	_MIPI_LP_GEN_DATA
	mov	x22, x0
Lloh3:
	adrp	x8, _LP_DATA_FIFO_FULL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LP_DATA_FIFO_FULL@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	mov	x0, x21
	bl	_MIPI_LP_GEN_CTRL
	mov	x23, x0
Lloh6:
	adrp	x8, _LP_CTRL_FIFO_FULL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LP_CTRL_FIFO_FULL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	bl	_MIPI_HS_GEN_DATA
	mov	x22, x0
Lloh8:
	adrp	x8, _HS_DATA_FIFO_FULL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HS_DATA_FIFO_FULL@GOTPAGEOFF]
Lloh10:
	ldr	w25, [x8]
	mov	x0, x21
	bl	_MIPI_HS_GEN_CTRL
	mov	x23, x0
Lloh11:
	adrp	x8, _HS_CTRL_FIFO_FULL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HS_CTRL_FIFO_FULL@GOTPAGEOFF]
LBB0_4:
	ldr	w24, [x8]
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_8
; %bb.5:
	mov	x0, x21
	bl	_MIPI_GEN_FIFO_STAT
	mov	x1, x0
	mov	x0, x20
	mov	x2, x25
	mov	w3, #50
	bl	_intel_de_wait_for_clear
	cbz	x0, LBB0_7
; %bb.6:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_7:
	ldp	x2, x3, [sp, #16]
	mov	x0, x20
	mov	x1, x22
	bl	_write_data
LBB0_8:
	ldr	w8, [x19, #4]
Lloh15:
	adrp	x25, _GEN_READ_DATA_AVAIL@GOTPAGE
Lloh16:
	ldr	x25, [x25, _GEN_READ_DATA_AVAIL@GOTPAGEOFF]
	cbz	w8, LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_MIPI_INTR_STAT
	ldr	w1, [x25]
	bl	_I915_WRITE
LBB0_10:
	mov	x0, x21
	bl	_MIPI_GEN_FIFO_STAT
	mov	x1, x0
	mov	x0, x20
	mov	x2, x24
	mov	w3, #50
	bl	_intel_de_wait_for_clear
	cbz	x0, LBB0_12
; %bb.11:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
LBB0_12:
	ldp	w9, w8, [x26, #4]
	ldr	w10, [x26]
	lsl	w9, w9, #8
	orr	w8, w9, w8, lsl #16
	orr	w1, w8, w10
	mov	x0, x23
	bl	_I915_WRITE
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_16
; %bb.13:
	ldr	w23, [x25]
	mov	x0, x21
	bl	_MIPI_INTR_STAT
	mov	x1, x0
	mov	x0, x20
	mov	x2, x23
	mov	w3, #50
	bl	_intel_de_wait_for_set
	cbz	x0, LBB0_15
; %bb.14:
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
LBB0_15:
	ldp	w3, w2, [x19, #4]
	mov	x0, x20
	mov	x1, x22
	bl	_read_data
LBB0_16:
	ldr	x8, [sp, #24]
	add	x0, x8, #4
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MIPI_DSI_MSG_USE_LPM,4,2       ; @MIPI_DSI_MSG_USE_LPM
	.comm	_LP_DATA_FIFO_FULL,4,2          ; @LP_DATA_FIFO_FULL
	.comm	_LP_CTRL_FIFO_FULL,4,2          ; @LP_CTRL_FIFO_FULL
	.comm	_HS_DATA_FIFO_FULL,4,2          ; @HS_DATA_FIFO_FULL
	.comm	_HS_CTRL_FIFO_FULL,4,2          ; @HS_CTRL_FIFO_FULL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout waiting for HS/LP DATA FIFO !full\n"

	.comm	_GEN_READ_DATA_AVAIL,4,2        ; @GEN_READ_DATA_AVAIL
l_.str.1:                               ; @.str.1
	.asciz	"Timeout waiting for HS/LP CTRL FIFO !full\n"

l_.str.2:                               ; @.str.2
	.asciz	"Timeout waiting for read data.\n"

	.no_dead_strip	_intel_dsi_host_transfer
.subsections_via_symbols
