	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_vc_read_rx_fifo
_dsi_vc_read_rx_fifo:                   ## @dsi_vc_read_rx_fifo
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r13
	movl	%esi, %edi
	callq	_DSI_VC_CTRL
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	$20, %edx
	movl	$20, %ecx
	callq	_REG_GET
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_DSI_VC_SHORT_PACKET_HEADER
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_dsi_read_reg
	movl	%eax, %ebx
	cmpq	$0, (%r13)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DSSDBG
LBB0_4:
	movl	%ebx, %edi
	movl	$5, %esi
	xorl	%edx, %edx
	callq	_FLD_GET
	movq	_MIPI_DSI_RX_ACKNOWLEDGE_AND_ERROR_REPORT@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %edi
	movl	$23, %esi
	movl	$8, %edx
	callq	_FLD_GET
	movl	%eax, %edi
	callq	_dsi_show_rx_ack_with_err
	jmp	LBB0_43
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DSSERR
LBB0_43:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	_DSS_DSI_CONTENT_GENERIC@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.9(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_DSSERR
LBB0_44:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_DSS_DSI_CONTENT_GENERIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%r12d, %ecx
	jne	LBB0_7
## %bb.8:
	movq	_MIPI_DSI_RX_GENERIC_SHORT_READ_RESPONSE_1BYTE@GOTPCREL(%rip), %rdx
	cmpq	%rax, (%rdx)
	je	LBB0_10
LBB0_14:
	cmpl	%r12d, %ecx
	jne	LBB0_15
## %bb.16:
	movq	_MIPI_DSI_RX_GENERIC_SHORT_READ_RESPONSE_2BYTE@GOTPCREL(%rip), %rdx
	cmpq	%rax, (%rdx)
	je	LBB0_18
LBB0_22:
	cmpl	%r12d, %ecx
	jne	LBB0_23
## %bb.24:
	movq	_MIPI_DSI_RX_GENERIC_LONG_READ_RESPONSE@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_26
LBB0_42:
	leaq	L_.str.8(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_DSSERR
	jmp	LBB0_43
LBB0_7:
	movq	_MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_1BYTE@GOTPCREL(%rip), %rdx
	cmpq	%rax, (%rdx)
	jne	LBB0_14
LBB0_10:
	movl	%ebx, %edi
	movl	$15, %esi
	movl	$8, %edx
	callq	_FLD_GET
	movq	%rax, %rbx
	cmpq	$0, (%r13)
	je	LBB0_12
## %bb.11:
	movq	_DSS_DSI_CONTENT_GENERIC@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_DSSDBG
LBB0_12:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_43
## %bb.13:
	movq	%rbx, (%r14)
	movl	$1, %r14d
	jmp	LBB0_44
LBB0_15:
	movq	_MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_2BYTE@GOTPCREL(%rip), %rdx
	cmpq	%rax, (%rdx)
	jne	LBB0_22
LBB0_18:
	movl	%ebx, %edi
	movl	$23, %esi
	movl	$8, %edx
	callq	_FLD_GET
	movq	%rax, %rbx
	cmpq	$0, (%r13)
	je	LBB0_20
## %bb.19:
	movq	_DSS_DSI_CONTENT_GENERIC@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.5(%rip), %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DSSDBG
LBB0_20:
	cmpl	$2, -44(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_43
## %bb.21:
	movzbl	%bl, %eax
	movq	%rax, (%r14)
	movzbl	%bh, %eax
	movq	%rax, 8(%r14)
	movl	$2, %r14d
	jmp	LBB0_44
LBB0_23:
	movq	_MIPI_DSI_RX_DCS_LONG_READ_RESPONSE@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_42
LBB0_26:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	movl	$23, %esi
	movl	$8, %edx
	callq	_FLD_GET
	movq	%rax, %r14
	cmpq	$0, (%r13)
	je	LBB0_28
## %bb.27:
	movq	_DSS_DSI_CONTENT_GENERIC@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.6(%rip), %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_DSSDBG
LBB0_28:
	cmpl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	jg	LBB0_43
## %bb.29:
	cmpl	$-1, %r14d
	jl	LBB0_44
## %bb.30:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movslq	%r14d, %r12
	xorl	%r15d, %r15d
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_31 Depth=1
	addq	$4, %r15
	cmpl	%r14d, %eax
	jg	LBB0_44
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_DSI_VC_SHORT_PACKET_HEADER
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_dsi_read_reg
	movl	%eax, %ebx
	cmpq	$0, (%r13)
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	movzbl	%bl, %esi
	movzbl	%bh, %edx
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %ecx
	movl	%ebx, %eax
	shrl	$24, %eax
	leaq	L_.str.7(%rip), %rdi
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_DSSDBG
LBB0_33:                                ##   in Loop: Header=BB0_31 Depth=1
	movslq	%r15d, %r15
	cmpq	%r12, %r15
	jge	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_31 Depth=1
	movzbl	%bl, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r15,8)
LBB0_35:                                ##   in Loop: Header=BB0_31 Depth=1
	leaq	1(%r15), %rax
	cmpq	%r12, %rax
	jge	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_31 Depth=1
	movzbl	%bh, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx,%r15,8)
LBB0_37:                                ##   in Loop: Header=BB0_31 Depth=1
	leaq	2(%r15), %rax
	cmpq	%r12, %rax
	jge	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_31 Depth=1
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 16(%rcx,%r15,8)
LBB0_39:                                ##   in Loop: Header=BB0_31 Depth=1
	leaq	3(%r15), %rax
	cmpq	%r12, %rax
	jge	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_31 Depth=1
	shrl	$24, %ebx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, 24(%rcx,%r15,8)
	jmp	LBB0_41
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RX fifo empty when trying to read.\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"\theader: %08x\n"

	.comm	_MIPI_DSI_RX_ACKNOWLEDGE_AND_ERROR_REPORT,8,3 ## @MIPI_DSI_RX_ACKNOWLEDGE_AND_ERROR_REPORT
	.comm	_DSS_DSI_CONTENT_GENERIC,4,2    ## @DSS_DSI_CONTENT_GENERIC
	.comm	_MIPI_DSI_RX_GENERIC_SHORT_READ_RESPONSE_1BYTE,8,3 ## @MIPI_DSI_RX_GENERIC_SHORT_READ_RESPONSE_1BYTE
	.comm	_MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_1BYTE,8,3 ## @MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_1BYTE
L_.str.2:                               ## @.str.2
	.asciz	"\t%s short response, 1 byte: %02x\n"

L_.str.3:                               ## @.str.3
	.asciz	"GENERIC"

L_.str.4:                               ## @.str.4
	.asciz	"DCS"

	.comm	_MIPI_DSI_RX_GENERIC_SHORT_READ_RESPONSE_2BYTE,8,3 ## @MIPI_DSI_RX_GENERIC_SHORT_READ_RESPONSE_2BYTE
	.comm	_MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_2BYTE,8,3 ## @MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_2BYTE
L_.str.5:                               ## @.str.5
	.asciz	"\t%s short response, 2 byte: %04x\n"

	.comm	_MIPI_DSI_RX_GENERIC_LONG_READ_RESPONSE,8,3 ## @MIPI_DSI_RX_GENERIC_LONG_READ_RESPONSE
	.comm	_MIPI_DSI_RX_DCS_LONG_READ_RESPONSE,8,3 ## @MIPI_DSI_RX_DCS_LONG_READ_RESPONSE
L_.str.6:                               ## @.str.6
	.asciz	"\t%s long response, len %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"\t\t%02x %02x %02x %02x\n"

L_.str.8:                               ## @.str.8
	.asciz	"\tunknown datatype 0x%02x\n"

L_.str.9:                               ## @.str.9
	.asciz	"dsi_vc_read_rx_fifo(ch %d type %s) failed\n"

	.no_dead_strip	_dsi_vc_read_rx_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_vc_read_rx_fifo
_dsi_vc_read_rx_fifo:                   ; @dsi_vc_read_rx_fifo
	.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	x21, x4
	mov	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x1
	bl	_DSI_VC_CTRL
	mov	x1, x0
	mov	x0, x22
	mov	w2, #20
	mov	w3, #20
	bl	_REG_GET
Lloh0:
	adrp	x25, _DSS_DSI_CONTENT_GENERIC@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DSS_DSI_CONTENT_GENERIC@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_DSI_VC_SHORT_PACKET_HEADER
	mov	x1, x0
	mov	x0, x22
	bl	_dsi_read_reg
	mov	x24, x0
	ldr	x8, [x22]
	cbz	x8, LBB0_3
; %bb.2:
	str	x24, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DSSDBG
LBB0_3:
	mov	x0, x24
	mov	w1, #5
	mov	w2, #0
	bl	_FLD_GET
Lloh4:
	adrp	x8, _MIPI_DSI_RX_ACKNOWLEDGE_AND_ERROR_REPORT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MIPI_DSI_RX_ACKNOWLEDGE_AND_ERROR_REPORT@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_9
; %bb.4:
	mov	x0, x24
	mov	w1, #23
	mov	w2, #8
	bl	_FLD_GET
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_dsi_show_rx_ack_with_err
	b	LBB0_7
LBB0_5:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
LBB0_6:
	bl	_DSSERR
LBB0_7:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w24, w8
	ldr	w8, [x25]
Lloh12:
	adrp	x9, l_.str.4@PAGE
Lloh13:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh14:
	adrp	x10, l_.str.3@PAGE
Lloh15:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	w8, w21
	csel	x8, x10, x9, eq
	stp	x19, x8, [sp]
Lloh16:
	adrp	x0, l_.str.9@PAGE
Lloh17:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_DSSERR
LBB0_8:
	mov	x0, x24
	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_9:
	ldr	w8, [x25]
Lloh18:
	adrp	x9, _MIPI_DSI_RX_GENERIC_SHORT_READ_RESPONSE_1BYTE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MIPI_DSI_RX_GENERIC_SHORT_READ_RESPONSE_1BYTE@GOTPAGEOFF]
Lloh20:
	adrp	x10, _MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_1BYTE@GOTPAGE
Lloh21:
	ldr	x10, [x10, _MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_1BYTE@GOTPAGEOFF]
	cmp	w8, w21
	csel	x9, x9, x10, eq
	ldr	x9, [x9]
	cmp	x9, x0
	b.ne	LBB0_14
; %bb.10:
	mov	x0, x24
	mov	w1, #15
	mov	w2, #8
	bl	_FLD_GET
	mov	x24, x0
	ldr	x8, [x22]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	w8, [x25]
Lloh22:
	adrp	x9, l_.str.4@PAGE
Lloh23:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh24:
	adrp	x10, l_.str.3@PAGE
Lloh25:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	w8, w21
	csel	x8, x10, x9, eq
	stp	x8, x24, [sp]
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DSSDBG
LBB0_12:
	cmp	w23, #1
	b.lt	LBB0_7
; %bb.13:
	str	x24, [x20]
	mov	w24, #1
	b	LBB0_8
LBB0_14:
Lloh28:
	adrp	x9, _MIPI_DSI_RX_GENERIC_SHORT_READ_RESPONSE_2BYTE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MIPI_DSI_RX_GENERIC_SHORT_READ_RESPONSE_2BYTE@GOTPAGEOFF]
Lloh30:
	adrp	x10, _MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_2BYTE@GOTPAGE
Lloh31:
	ldr	x10, [x10, _MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_2BYTE@GOTPAGEOFF]
	cmp	w8, w21
	csel	x9, x9, x10, eq
	ldr	x9, [x9]
	cmp	x9, x0
	b.ne	LBB0_19
; %bb.15:
	mov	x0, x24
	mov	w1, #23
	mov	w2, #8
	bl	_FLD_GET
	mov	x24, x0
	ldr	x8, [x22]
	cbz	x8, LBB0_17
; %bb.16:
	ldr	w8, [x25]
Lloh32:
	adrp	x9, l_.str.4@PAGE
Lloh33:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh34:
	adrp	x10, l_.str.3@PAGE
Lloh35:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	w8, w21
	csel	x8, x10, x9, eq
	stp	x8, x24, [sp]
Lloh36:
	adrp	x0, l_.str.5@PAGE
Lloh37:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DSSDBG
LBB0_17:
	cmp	w23, #2
	b.lt	LBB0_7
; %bb.18:
	and	x8, x24, #0xff
	ubfx	x9, x24, #8, #8
	stp	x8, x9, [x20]
	mov	w24, #2
	b	LBB0_8
LBB0_19:
Lloh38:
	adrp	x9, _MIPI_DSI_RX_GENERIC_LONG_READ_RESPONSE@GOTPAGE
Lloh39:
	ldr	x9, [x9, _MIPI_DSI_RX_GENERIC_LONG_READ_RESPONSE@GOTPAGEOFF]
Lloh40:
	adrp	x10, _MIPI_DSI_RX_DCS_LONG_READ_RESPONSE@GOTPAGE
Lloh41:
	ldr	x10, [x10, _MIPI_DSI_RX_DCS_LONG_READ_RESPONSE@GOTPAGEOFF]
	cmp	w8, w21
	csel	x8, x9, x10, eq
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_36
; %bb.20:
	mov	x0, x24
	mov	w1, #23
	mov	w2, #8
	bl	_FLD_GET
	mov	x24, x0
	ldr	x8, [x22]
	cbz	x8, LBB0_22
; %bb.21:
Lloh42:
	adrp	x8, l_.str.4@PAGE
Lloh43:
	add	x8, x8, l_.str.4@PAGEOFF
	ldr	w9, [x25]
Lloh44:
	adrp	x10, l_.str.3@PAGE
Lloh45:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	w9, w21
	csel	x8, x10, x8, eq
	mov	x9, x24
	stp	x8, x9, [sp]
Lloh46:
	adrp	x0, l_.str.6@PAGE
Lloh47:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DSSDBG
LBB0_22:
	cmp	w24, w23
	b.gt	LBB0_7
; %bb.23:
	cmn	w24, #1
	b.lt	LBB0_8
; %bb.24:
	mov	x27, #0
	sxtw	x25, w24
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	add	x27, x8, #4
	cmp	w9, w24
	b.gt	LBB0_8
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_DSI_VC_SHORT_PACKET_HEADER
	mov	x1, x0
	mov	x0, x22
	bl	_dsi_read_reg
	mov	x23, x0
	lsr	w26, w0, #24
	ldr	x8, [x22]
	ubfx	w28, w0, #16, #8
	ubfx	w21, w0, #8, #8
	cbz	x8, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	and	w8, w23, #0xff
	mov	x9, x26
	mov	x10, x28
	stp	x10, x9, [sp, #16]
	mov	x9, x21
	stp	x8, x9, [sp]
Lloh48:
	adrp	x0, l_.str.7@PAGE
Lloh49:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_DSSDBG
LBB0_28:                                ;   in Loop: Header=BB0_26 Depth=1
	sxtw	x8, w27
	cmp	x8, x25
	b.ge	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_26 Depth=1
	and	w9, w23, #0xff
	str	x9, [x20, x8, lsl #3]
LBB0_30:                                ;   in Loop: Header=BB0_26 Depth=1
	add	x9, x8, #1
	cmp	x9, x25
	b.ge	LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_26 Depth=1
	str	x21, [x20, x9, lsl #3]
LBB0_32:                                ;   in Loop: Header=BB0_26 Depth=1
	add	x9, x8, #2
	cmp	x9, x25
	b.ge	LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_26 Depth=1
	str	x28, [x20, x9, lsl #3]
LBB0_34:                                ;   in Loop: Header=BB0_26 Depth=1
	add	x9, x8, #3
	cmp	x9, x25
	b.ge	LBB0_25
; %bb.35:                               ;   in Loop: Header=BB0_26 Depth=1
	str	x26, [x20, x9, lsl #3]
	b	LBB0_25
LBB0_36:
	str	x0, [sp]
Lloh50:
	adrp	x0, l_.str.8@PAGE
Lloh51:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RX fifo empty when trying to read.\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"\theader: %08x\n"

	.comm	_MIPI_DSI_RX_ACKNOWLEDGE_AND_ERROR_REPORT,8,3 ; @MIPI_DSI_RX_ACKNOWLEDGE_AND_ERROR_REPORT
	.comm	_DSS_DSI_CONTENT_GENERIC,4,2    ; @DSS_DSI_CONTENT_GENERIC
	.comm	_MIPI_DSI_RX_GENERIC_SHORT_READ_RESPONSE_1BYTE,8,3 ; @MIPI_DSI_RX_GENERIC_SHORT_READ_RESPONSE_1BYTE
	.comm	_MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_1BYTE,8,3 ; @MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_1BYTE
l_.str.2:                               ; @.str.2
	.asciz	"\t%s short response, 1 byte: %02x\n"

l_.str.3:                               ; @.str.3
	.asciz	"GENERIC"

l_.str.4:                               ; @.str.4
	.asciz	"DCS"

	.comm	_MIPI_DSI_RX_GENERIC_SHORT_READ_RESPONSE_2BYTE,8,3 ; @MIPI_DSI_RX_GENERIC_SHORT_READ_RESPONSE_2BYTE
	.comm	_MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_2BYTE,8,3 ; @MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_2BYTE
l_.str.5:                               ; @.str.5
	.asciz	"\t%s short response, 2 byte: %04x\n"

	.comm	_MIPI_DSI_RX_GENERIC_LONG_READ_RESPONSE,8,3 ; @MIPI_DSI_RX_GENERIC_LONG_READ_RESPONSE
	.comm	_MIPI_DSI_RX_DCS_LONG_READ_RESPONSE,8,3 ; @MIPI_DSI_RX_DCS_LONG_READ_RESPONSE
l_.str.6:                               ; @.str.6
	.asciz	"\t%s long response, len %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"\t\t%02x %02x %02x %02x\n"

l_.str.8:                               ; @.str.8
	.asciz	"\tunknown datatype 0x%02x\n"

l_.str.9:                               ; @.str.9
	.asciz	"dsi_vc_read_rx_fifo(ch %d type %s) failed\n"

	.no_dead_strip	_dsi_vc_read_rx_fifo
.subsections_via_symbols
