	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_dsi_host_transfer
_vc4_dsi_host_transfer:                 ## @vc4_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	callq	_host_to_dsi
	movq	%rax, %r14
	movl	16(%r12), %edi
	callq	_mipi_dsi_packet_format_is_long
	movl	%eax, %r13d
	leaq	-96(%rbp), %rdi
	movq	%r12, %rsi
	callq	_mipi_dsi_create_packet
	movq	-96(%rbp), %rax
	movl	(%rax), %edi
	movq	_DSI_TXPKT1H_BC_DT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	movl	%eax, %r15d
	movq	-96(%rbp), %rax
	movl	8(%rax), %edi
	shll	$8, %edi
	orl	4(%rax), %edi
	movq	_DSI_TXPKT1H_BC_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	testl	%r13d, %r13d
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movl	-88(%rbp), %r14d
	xorl	%r15d, %r15d
	cmpl	$17, %r14d
	jl	LBB0_4
## %bb.3:
	movq	_DSI_PIX_FIFO_WIDTH@GOTPCREL(%rip), %rcx
	movl	%r14d, %eax
	cltd
	idivl	(%rcx)
	movl	%eax, %r15d
	movl	%edx, %r14d
LBB0_4:
	movq	_DSI_PIX_FIFO_DEPTH@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r15d
	setge	%dil
	callq	_WARN_ON_ONCE
	movq	_DSI_TXPKT1H_BC_CMDFIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_VC4_SET_FIELD
	orl	%eax, %ebx
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
LBB0_5:
	cmpl	$0, (%r12)
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	jne	LBB0_6
## %bb.7:
	movq	_DSI_TXPKT1C_CMD_CTRL_TX@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_DSI_TXPKT1C_CMD_CTRL_RX@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edi
	movq	_DSI_TXPKT1C_CMD_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.9:
	movl	%r14d, %r12d
	xorl	%ebx, %ebx
	movq	_TXPKT_CMD_FIFO@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	-80(%rbp), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_DSI_PORT_WRITE
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_10
LBB0_11:
	testl	%r15d, %r15d
	jle	LBB0_14
## %bb.12:
	movslq	%r14d, %rbx
	movl	%r15d, %r14d
	shlq	$2, %rbx
	movq	_TXPKT_PIX_FIFO@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax
	movl	(%r12), %edi
	movl	4(%rax,%rbx), %ecx
	movl	8(%rax,%rbx), %edx
	shll	$8, %ecx
	orl	(%rax,%rbx), %ecx
	shll	$16, %edx
	movl	12(%rax,%rbx), %esi
	shll	$24, %esi
	orl	%edx, %esi
	orl	%ecx, %esi
	callq	_DSI_PORT_WRITE
	addq	$16, %rbx
	decq	%r14
	jne	LBB0_13
LBB0_14:
	movq	_MIPI_DSI_MSG_USE_LPM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	andl	4(%rax), %r14d
	je	LBB0_16
## %bb.15:
	movq	_DSI_TXPKT1C_CMD_MODE_LP@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_16:
	orl	-52(%rbp), %r14d                ## 4-byte Folded Reload
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	je	LBB0_18
## %bb.17:
	movq	_DSI_TXPKT1C_CMD_TYPE_LONG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_18:
	movq	_DSI_TXPKT1C_CMD_REPEAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	callq	_VC4_SET_FIELD
	orl	%ebx, %eax
	orl	%eax, %r14d
	movq	_DSI_TXPKT1C_CMD_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	testl	%r15d, %r15d
	jne	LBB0_19
## %bb.20:
	movq	_DSI_TXPKT1C_DISPLAY_NO_SHORT@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_19:
	movq	_DSI_TXPKT1C_DISPLAY_NO_SECONDARY@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %edi
	movq	_DSI_TXPKT1C_DISPLAY_NO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	orl	%eax, %r14d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	$0, (%r12)
	movq	%r12, %r13
	addq	$16, %r13
	movq	%r13, %rdi
	callq	_reinit_completion
	movq	_INT_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DSI1_INT_TXPKT1_DONE@GOTPCREL(%rip), %r15
	movq	_DSI1_INT_PHY_DIR_RTF@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	orl	(%r15), %esi
	callq	_DSI_PORT_WRITE
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	movq	_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmoveq	%r15, %rbx
	movq	_DSI1_INTERRUPTS_ALWAYS_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rbx), %esi
	movq	%rax, %rbx
	orl	(%rax), %esi
	callq	_DSI_PORT_WRITE
	movq	_TXPKT1H@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_DSI_PORT_WRITE
	movq	_TXPKT1C@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_DSI_PORT_WRITE
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msecs_to_jiffies
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	testl	%eax, %eax
	je	LBB0_22
## %bb.23:
	movl	(%r12), %r15d
	jmp	LBB0_24
LBB0_22:
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_err
	movq	%rbx, %r14
	movq	8(%r12), %rbx
	movq	_INT_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DSI_PORT_READ
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rbx
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_24:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	_INT_EN@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%rbx), %esi
	callq	_DSI_PORT_WRITE
	testl	%r15d, %r15d
	je	LBB0_25
LBB0_34:
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_TXPKT1C@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movl	%ebx, %edi
	callq	_DSI_PORT_READ
	movq	_DSI_TXPKT1C_CMD_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	callq	_DSI_PORT_WRITE
	movl	$1, %edi
	callq	_udelay
	movq	_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_DSI_PORT_READ
	movl	%eax, %ebx
	movq	_CTRL_RESET_FIFOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DSI_PORT_BIT
	orl	%eax, %ebx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_DSI_PORT_WRITE
	movl	(%r13), %edi
	xorl	%esi, %esi
	callq	_DSI_PORT_WRITE
	movl	(%r12), %edi
	movq	_DSI1_INTERRUPTS_ALWAYS_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DSI_PORT_WRITE
LBB0_35:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	xorl	%r15d, %r15d
	cmpl	$0, (%r13)
	je	LBB0_35
## %bb.26:
	movq	_RXPKT1H@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DSI_PORT_READ
	movl	%eax, %r14d
	movq	8(%r13), %r12
	movq	_DSI_RXPKT1H_PKT_TYPE_LONG@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_31
## %bb.27:
	movq	_DSI_RXPKT1H_BC_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_VC4_GET_FIELD
	movl	(%r13), %edx
	cmpl	%edx, %eax
	jne	LBB0_33
## %bb.28:
	testl	%eax, %eax
	jle	LBB0_35
## %bb.29:
	xorl	%r15d, %r15d
	movq	_DSI1_RXPKT_FIFO@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_DSI_READ
	movl	%eax, (%r12,%rbx,4)
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_30
	jmp	LBB0_35
LBB0_31:
	movq	_DSI_RXPKT1H_SHORT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_VC4_GET_FIELD
	movl	%eax, (%r12)
	cmpl	$2, (%r13)
	jl	LBB0_35
## %bb.32:
	movq	_DSI_RXPKT1H_SHORT_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_VC4_GET_FIELD
	movl	%eax, 4(%r12)
	jmp	LBB0_35
LBB0_33:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movq	_INT_EN@GOTPCREL(%rip), %r12
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_DSI_TXPKT1H_BC_DT,4,2          ## @DSI_TXPKT1H_BC_DT
	.comm	_DSI_TXPKT1H_BC_PARAM,4,2       ## @DSI_TXPKT1H_BC_PARAM
	.comm	_DSI_PIX_FIFO_WIDTH,4,2         ## @DSI_PIX_FIFO_WIDTH
	.comm	_DSI_PIX_FIFO_DEPTH,4,2         ## @DSI_PIX_FIFO_DEPTH
	.comm	_DSI_TXPKT1H_BC_CMDFIFO,4,2     ## @DSI_TXPKT1H_BC_CMDFIFO
	.comm	_DSI_TXPKT1C_CMD_CTRL_RX,4,2    ## @DSI_TXPKT1C_CMD_CTRL_RX
	.comm	_DSI_TXPKT1C_CMD_CTRL,4,2       ## @DSI_TXPKT1C_CMD_CTRL
	.comm	_DSI_TXPKT1C_CMD_CTRL_TX,4,2    ## @DSI_TXPKT1C_CMD_CTRL_TX
	.comm	_TXPKT_CMD_FIFO,4,2             ## @TXPKT_CMD_FIFO
	.comm	_TXPKT_PIX_FIFO,4,2             ## @TXPKT_PIX_FIFO
	.comm	_MIPI_DSI_MSG_USE_LPM,4,2       ## @MIPI_DSI_MSG_USE_LPM
	.comm	_DSI_TXPKT1C_CMD_MODE_LP,4,2    ## @DSI_TXPKT1C_CMD_MODE_LP
	.comm	_DSI_TXPKT1C_CMD_TYPE_LONG,4,2  ## @DSI_TXPKT1C_CMD_TYPE_LONG
	.comm	_DSI_TXPKT1C_CMD_REPEAT,4,2     ## @DSI_TXPKT1C_CMD_REPEAT
	.comm	_DSI_TXPKT1C_CMD_EN,4,2         ## @DSI_TXPKT1C_CMD_EN
	.comm	_DSI_TXPKT1C_DISPLAY_NO_SECONDARY,4,2 ## @DSI_TXPKT1C_DISPLAY_NO_SECONDARY
	.comm	_DSI_TXPKT1C_DISPLAY_NO,4,2     ## @DSI_TXPKT1C_DISPLAY_NO
	.comm	_DSI_TXPKT1C_DISPLAY_NO_SHORT,4,2 ## @DSI_TXPKT1C_DISPLAY_NO_SHORT
	.comm	_INT_STAT,4,2                   ## @INT_STAT
	.comm	_DSI1_INT_TXPKT1_DONE,4,2       ## @DSI1_INT_TXPKT1_DONE
	.comm	_DSI1_INT_PHY_DIR_RTF,4,2       ## @DSI1_INT_PHY_DIR_RTF
	.comm	_INT_EN,4,2                     ## @INT_EN
	.comm	_DSI1_INTERRUPTS_ALWAYS_ENABLED,4,2 ## @DSI1_INTERRUPTS_ALWAYS_ENABLED
	.comm	_TXPKT1H,4,2                    ## @TXPKT1H
	.comm	_TXPKT1C,4,2                    ## @TXPKT1C
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"transfer interrupt wait timeout"

L_.str.1:                               ## @.str.1
	.asciz	"instat: 0x%08x\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_RXPKT1H,4,2                    ## @RXPKT1H
	.comm	_DSI_RXPKT1H_PKT_TYPE_LONG,4,2  ## @DSI_RXPKT1H_PKT_TYPE_LONG
	.comm	_DSI_RXPKT1H_BC_PARAM,4,2       ## @DSI_RXPKT1H_BC_PARAM
L_.str.2:                               ## @.str.2
	.asciz	"DSI returned %db, expecting %db\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_DSI1_RXPKT_FIFO,4,2            ## @DSI1_RXPKT_FIFO
	.comm	_DSI_RXPKT1H_SHORT_0,4,2        ## @DSI_RXPKT1H_SHORT_0
	.comm	_DSI_RXPKT1H_SHORT_1,4,2        ## @DSI_RXPKT1H_SHORT_1
L_.str.3:                               ## @.str.3
	.asciz	"DSI transfer failed, resetting: %d\n"

	.comm	_CTRL,4,2                       ## @CTRL
	.comm	_CTRL_RESET_FIFOS,4,2           ## @CTRL_RESET_FIFOS
	.no_dead_strip	_vc4_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 vc4_dsi_host_transfer
_vc4_dsi_host_transfer:                 ; @vc4_dsi_host_transfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	bl	_host_to_dsi
	mov	x20, x0
	ldr	w0, [x19, #16]
	bl	_mipi_dsi_packet_format_is_long
	mov	x22, x0
	add	x0, sp, #8
	mov	x1, x19
	bl	_mipi_dsi_create_packet
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _DSI_TXPKT1H_BC_DT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSI_TXPKT1H_BC_DT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	mov	x21, x0
	ldr	x8, [sp, #8]
	ldp	w9, w8, [x8, #4]
	orr	w0, w9, w8, lsl #8
Lloh3:
	adrp	x8, _DSI_TXPKT1H_BC_PARAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DSI_TXPKT1H_BC_PARAM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	orr	w21, w0, w21
	cbz	w22, LBB0_3
; %bb.1:
	ldr	w23, [sp, #16]
	cmp	w23, #17
	b.ge	LBB0_4
; %bb.2:
	mov	w25, #0
	b	LBB0_5
LBB0_3:
	mov	w23, #0
	mov	w25, #0
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _DSI_PIX_FIFO_WIDTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DSI_PIX_FIFO_WIDTH@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	sdiv	w25, w23, w8
	msub	w23, w25, w8, w23
LBB0_5:
Lloh9:
	adrp	x8, _DSI_PIX_FIFO_DEPTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DSI_PIX_FIFO_DEPTH@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w25, w8
	cset	w0, ge
	bl	_WARN_ON_ONCE
Lloh12:
	adrp	x8, _DSI_TXPKT1H_BC_CMDFIFO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DSI_TXPKT1H_BC_CMDFIFO@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_VC4_SET_FIELD
	orr	w21, w0, w21
LBB0_6:
	ldr	w8, [x19]
Lloh15:
	adrp	x9, _DSI_TXPKT1C_CMD_CTRL_TX@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DSI_TXPKT1C_CMD_CTRL_TX@GOTPAGEOFF]
Lloh17:
	adrp	x10, _DSI_TXPKT1C_CMD_CTRL_RX@GOTPAGE
Lloh18:
	ldr	x10, [x10, _DSI_TXPKT1C_CMD_CTRL_RX@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _DSI_TXPKT1C_CMD_CTRL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DSI_TXPKT1C_CMD_CTRL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	mov	x24, x0
	cmp	w23, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x26, #0
	mov	w8, w23
	lsl	x27, x8, #2
Lloh22:
	adrp	x28, _TXPKT_CMD_FIFO@GOTPAGE
Lloh23:
	ldr	x28, [x28, _TXPKT_CMD_FIFO@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x28]
	ldr	x8, [sp, #24]
	ldr	w1, [x8, x26]
	bl	_DSI_PORT_WRITE
	add	x26, x26, #4
	cmp	x27, x26
	b.ne	LBB0_8
LBB0_9:
	cmp	w25, #1
	b.lt	LBB0_12
; %bb.10:
	sbfiz	x23, x23, #2, #32
Lloh24:
	adrp	x26, _TXPKT_PIX_FIFO@GOTPAGE
Lloh25:
	ldr	x26, [x26, _TXPKT_PIX_FIFO@GOTPAGEOFF]
	mov	w27, w25
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	add	x8, x8, x23
	ldr	w0, [x26]
	ldp	w9, w10, [x8]
	orr	w9, w9, w10, lsl #8
	ldp	w10, w8, [x8, #8]
	orr	w9, w9, w10, lsl #16
	orr	w1, w9, w8, lsl #24
	bl	_DSI_PORT_WRITE
	add	x23, x23, #16
	subs	x27, x27, #1
	b.ne	LBB0_11
LBB0_12:
	ldr	w8, [x19, #4]
Lloh26:
	adrp	x9, _MIPI_DSI_MSG_USE_LPM@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MIPI_DSI_MSG_USE_LPM@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	adrp	x10, _DSI_TXPKT1C_CMD_MODE_LP@GOTPAGE
Lloh30:
	ldr	x10, [x10, _DSI_TXPKT1C_CMD_MODE_LP@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w8, wzr, w10, eq
	orr	w8, w8, w24
Lloh32:
	adrp	x9, _DSI_TXPKT1C_CMD_TYPE_LONG@GOTPAGE
Lloh33:
	ldr	x9, [x9, _DSI_TXPKT1C_CMD_TYPE_LONG@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	cmp	w22, #0
	csel	w9, wzr, w9, eq
	orr	w22, w8, w9
Lloh35:
	adrp	x8, _DSI_TXPKT1C_CMD_REPEAT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _DSI_TXPKT1C_CMD_REPEAT@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	w0, #1
	bl	_VC4_SET_FIELD
	orr	w8, w22, w0
Lloh38:
	adrp	x9, _DSI_TXPKT1C_CMD_EN@GOTPAGE
Lloh39:
	ldr	x9, [x9, _DSI_TXPKT1C_CMD_EN@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w22, w8, w9
Lloh41:
	adrp	x8, _DSI_TXPKT1C_DISPLAY_NO_SHORT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _DSI_TXPKT1C_DISPLAY_NO_SHORT@GOTPAGEOFF]
Lloh43:
	adrp	x9, _DSI_TXPKT1C_DISPLAY_NO_SECONDARY@GOTPAGE
Lloh44:
	ldr	x9, [x9, _DSI_TXPKT1C_DISPLAY_NO_SECONDARY@GOTPAGEOFF]
	cmp	w25, #0
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
Lloh45:
	adrp	x8, _DSI_TXPKT1C_DISPLAY_NO@GOTPAGE
Lloh46:
	ldr	x8, [x8, _DSI_TXPKT1C_DISPLAY_NO@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	orr	w22, w22, w0
	mov	x23, x20
	str	wzr, [x23], #16
	mov	x0, x23
	bl	_reinit_completion
Lloh48:
	adrp	x28, _INT_STAT@GOTPAGE
Lloh49:
	ldr	x28, [x28, _INT_STAT@GOTPAGEOFF]
Lloh50:
	adrp	x27, _DSI1_INT_TXPKT1_DONE@GOTPAGE
Lloh51:
	ldr	x27, [x27, _DSI1_INT_TXPKT1_DONE@GOTPAGEOFF]
	ldr	w0, [x28]
	ldr	w8, [x27]
Lloh52:
	adrp	x26, _DSI1_INT_PHY_DIR_RTF@GOTPAGE
Lloh53:
	ldr	x26, [x26, _DSI1_INT_PHY_DIR_RTF@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w1, w9, w8
	bl	_DSI_PORT_WRITE
	ldr	w8, [x19]
Lloh54:
	adrp	x24, _INT_EN@GOTPAGE
Lloh55:
	ldr	x24, [x24, _INT_EN@GOTPAGEOFF]
Lloh56:
	adrp	x25, _DSI1_INTERRUPTS_ALWAYS_ENABLED@GOTPAGE
Lloh57:
	ldr	x25, [x25, _DSI1_INTERRUPTS_ALWAYS_ENABLED@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	w9, [x25]
	cmp	w8, #0
	csel	x8, x27, x26, eq
	ldr	w8, [x8]
	orr	w1, w8, w9
	bl	_DSI_PORT_WRITE
Lloh58:
	adrp	x8, _TXPKT1H@GOTPAGE
Lloh59:
	ldr	x8, [x8, _TXPKT1H@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_DSI_PORT_WRITE
Lloh61:
	adrp	x27, _TXPKT1C@GOTPAGE
Lloh62:
	ldr	x27, [x27, _TXPKT1C@GOTPAGEOFF]
	ldr	w0, [x27]
	mov	x1, x22
	bl	_DSI_PORT_WRITE
	mov	w0, #1000
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x23
	bl	_wait_for_completion_timeout
	cbz	w0, LBB0_14
; %bb.13:
	ldr	w20, [x20]
	b	LBB0_15
LBB0_14:
	ldr	x0, [x20, #8]
Lloh63:
	adrp	x1, l_.str@PAGE
Lloh64:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	x20, [x20, #8]
	ldr	w0, [x28]
	bl	_DSI_PORT_READ
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh65:
	adrp	x1, l_.str.1@PAGE
Lloh66:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh67:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh68:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_15:
	ldr	w0, [x24]
	ldr	w1, [x25]
	bl	_DSI_PORT_WRITE
	cbz	w20, LBB0_17
LBB0_16:
Lloh70:
	adrp	x0, l_.str.3@PAGE
Lloh71:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_DRM_ERROR
	ldr	w19, [x27]
	mov	x0, x19
	bl	_DSI_PORT_READ
Lloh72:
	adrp	x8, _DSI_TXPKT1C_CMD_EN@GOTPAGE
Lloh73:
	ldr	x8, [x8, _DSI_TXPKT1C_CMD_EN@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
	bic	w1, w0, w8
	mov	x0, x19
	bl	_DSI_PORT_WRITE
	mov	w0, #1
	bl	_udelay
Lloh75:
	adrp	x8, _CTRL@GOTPAGE
Lloh76:
	ldr	x8, [x8, _CTRL@GOTPAGEOFF]
Lloh77:
	ldr	w19, [x8]
	mov	x0, x19
	bl	_DSI_PORT_READ
	mov	x21, x0
Lloh78:
	adrp	x8, _CTRL_RESET_FIFOS@GOTPAGE
Lloh79:
	ldr	x8, [x8, _CTRL_RESET_FIFOS@GOTPAGEOFF]
Lloh80:
	ldr	w0, [x8]
	bl	_DSI_PORT_BIT
	orr	w1, w0, w21
	mov	x0, x19
	bl	_DSI_PORT_WRITE
	ldr	w0, [x27]
	mov	w1, #0
	bl	_DSI_PORT_WRITE
	ldr	w0, [x24]
	ldr	w1, [x25]
	bl	_DSI_PORT_WRITE
	b	LBB0_26
LBB0_17:
	ldr	w8, [x19]
	cbz	w8, LBB0_25
; %bb.18:
Lloh81:
	adrp	x8, _RXPKT1H@GOTPAGE
Lloh82:
	ldr	x8, [x8, _RXPKT1H@GOTPAGEOFF]
Lloh83:
	ldr	w0, [x8]
	bl	_DSI_PORT_READ
	mov	x20, x0
	ldr	x21, [x19, #8]
Lloh84:
	adrp	x8, _DSI_RXPKT1H_PKT_TYPE_LONG@GOTPAGE
Lloh85:
	ldr	x8, [x8, _DSI_RXPKT1H_PKT_TYPE_LONG@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_23
; %bb.19:
Lloh87:
	adrp	x8, _DSI_RXPKT1H_BC_PARAM@GOTPAGE
Lloh88:
	ldr	x8, [x8, _DSI_RXPKT1H_BC_PARAM@GOTPAGEOFF]
Lloh89:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_VC4_GET_FIELD
	mov	x1, x0
	ldr	w8, [x19]
	cmp	w0, w8
	b.ne	LBB0_27
; %bb.20:
	cmp	w1, #1
	b.lt	LBB0_25
; %bb.21:
	mov	x20, #0
Lloh90:
	adrp	x22, _DSI1_RXPKT_FIFO@GOTPAGE
Lloh91:
	ldr	x22, [x22, _DSI1_RXPKT_FIFO@GOTPAGEOFF]
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_DSI_READ
	str	w0, [x21, x20, lsl #2]
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_22
	b	LBB0_25
LBB0_23:
Lloh92:
	adrp	x8, _DSI_RXPKT1H_SHORT_0@GOTPAGE
Lloh93:
	ldr	x8, [x8, _DSI_RXPKT1H_SHORT_0@GOTPAGEOFF]
Lloh94:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_VC4_GET_FIELD
	str	w0, [x21]
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_25
; %bb.24:
Lloh95:
	adrp	x8, _DSI_RXPKT1H_SHORT_1@GOTPAGE
Lloh96:
	ldr	x8, [x8, _DSI_RXPKT1H_SHORT_1@GOTPAGEOFF]
Lloh97:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_VC4_GET_FIELD
	mov	w20, #0
	str	w0, [x21, #4]
	b	LBB0_26
LBB0_25:
	mov	w20, #0
LBB0_26:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_27:
	str	x8, [sp]
Lloh98:
	adrp	x0, l_.str.2@PAGE
Lloh99:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
Lloh100:
	adrp	x8, _ENXIO@GOTPAGE
Lloh101:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh102:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpAdd	Lloh98, Lloh99
	.cfi_endproc
                                        ; -- End function
	.comm	_DSI_TXPKT1H_BC_DT,4,2          ; @DSI_TXPKT1H_BC_DT
	.comm	_DSI_TXPKT1H_BC_PARAM,4,2       ; @DSI_TXPKT1H_BC_PARAM
	.comm	_DSI_PIX_FIFO_WIDTH,4,2         ; @DSI_PIX_FIFO_WIDTH
	.comm	_DSI_PIX_FIFO_DEPTH,4,2         ; @DSI_PIX_FIFO_DEPTH
	.comm	_DSI_TXPKT1H_BC_CMDFIFO,4,2     ; @DSI_TXPKT1H_BC_CMDFIFO
	.comm	_DSI_TXPKT1C_CMD_CTRL_RX,4,2    ; @DSI_TXPKT1C_CMD_CTRL_RX
	.comm	_DSI_TXPKT1C_CMD_CTRL,4,2       ; @DSI_TXPKT1C_CMD_CTRL
	.comm	_DSI_TXPKT1C_CMD_CTRL_TX,4,2    ; @DSI_TXPKT1C_CMD_CTRL_TX
	.comm	_TXPKT_CMD_FIFO,4,2             ; @TXPKT_CMD_FIFO
	.comm	_TXPKT_PIX_FIFO,4,2             ; @TXPKT_PIX_FIFO
	.comm	_MIPI_DSI_MSG_USE_LPM,4,2       ; @MIPI_DSI_MSG_USE_LPM
	.comm	_DSI_TXPKT1C_CMD_MODE_LP,4,2    ; @DSI_TXPKT1C_CMD_MODE_LP
	.comm	_DSI_TXPKT1C_CMD_TYPE_LONG,4,2  ; @DSI_TXPKT1C_CMD_TYPE_LONG
	.comm	_DSI_TXPKT1C_CMD_REPEAT,4,2     ; @DSI_TXPKT1C_CMD_REPEAT
	.comm	_DSI_TXPKT1C_CMD_EN,4,2         ; @DSI_TXPKT1C_CMD_EN
	.comm	_DSI_TXPKT1C_DISPLAY_NO_SECONDARY,4,2 ; @DSI_TXPKT1C_DISPLAY_NO_SECONDARY
	.comm	_DSI_TXPKT1C_DISPLAY_NO,4,2     ; @DSI_TXPKT1C_DISPLAY_NO
	.comm	_DSI_TXPKT1C_DISPLAY_NO_SHORT,4,2 ; @DSI_TXPKT1C_DISPLAY_NO_SHORT
	.comm	_INT_STAT,4,2                   ; @INT_STAT
	.comm	_DSI1_INT_TXPKT1_DONE,4,2       ; @DSI1_INT_TXPKT1_DONE
	.comm	_DSI1_INT_PHY_DIR_RTF,4,2       ; @DSI1_INT_PHY_DIR_RTF
	.comm	_INT_EN,4,2                     ; @INT_EN
	.comm	_DSI1_INTERRUPTS_ALWAYS_ENABLED,4,2 ; @DSI1_INTERRUPTS_ALWAYS_ENABLED
	.comm	_TXPKT1H,4,2                    ; @TXPKT1H
	.comm	_TXPKT1C,4,2                    ; @TXPKT1C
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"transfer interrupt wait timeout"

l_.str.1:                               ; @.str.1
	.asciz	"instat: 0x%08x\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_RXPKT1H,4,2                    ; @RXPKT1H
	.comm	_DSI_RXPKT1H_PKT_TYPE_LONG,4,2  ; @DSI_RXPKT1H_PKT_TYPE_LONG
	.comm	_DSI_RXPKT1H_BC_PARAM,4,2       ; @DSI_RXPKT1H_BC_PARAM
l_.str.2:                               ; @.str.2
	.asciz	"DSI returned %db, expecting %db\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_DSI1_RXPKT_FIFO,4,2            ; @DSI1_RXPKT_FIFO
	.comm	_DSI_RXPKT1H_SHORT_0,4,2        ; @DSI_RXPKT1H_SHORT_0
	.comm	_DSI_RXPKT1H_SHORT_1,4,2        ; @DSI_RXPKT1H_SHORT_1
l_.str.3:                               ; @.str.3
	.asciz	"DSI transfer failed, resetting: %d\n"

	.comm	_CTRL,4,2                       ; @CTRL
	.comm	_CTRL_RESET_FIFOS,4,2           ; @CTRL_RESET_FIFOS
	.no_dead_strip	_vc4_dsi_host_transfer
.subsections_via_symbols
