	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos_dsi_read_from_fifo
_exynos_dsi_read_from_fifo:             ## @exynos_dsi_read_from_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movslq	8(%rsi), %rax
	leaq	(,%rax,4), %rbx
	addq	(%rsi), %rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	(%r12), %r15
	movq	_DSIM_RXFIFO_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_exynos_dsi_read
	shrl	$8, %eax
	movzwl	%ax, %ecx
	movl	12(%r14), %edx
	cmpl	%edx, %ecx
	jle	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_5
LBB0_3:
	jge	LBB0_5
## %bb.4:
	movl	%ecx, 12(%r14)
LBB0_5:
	movl	12(%r14), %eax
	movl	%eax, %r15d
	subl	8(%r14), %r15d
	movl	%eax, 8(%r14)
	cmpl	$4, %r15d
	jl	LBB0_9
## %bb.6:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_DSIM_RXFIFO_REG@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %r14d
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_exynos_dsi_read
	movzbl	%al, %ecx
	movl	%ecx, (%rbx)
	movzbl	%ah, %ecx
	movl	%ecx, 4(%rbx)
	movl	%eax, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, 8(%rbx)
	shrl	$24, %eax
	movl	%eax, 12(%rbx)
	addq	$16, %rbx
	leal	-4(%r14), %r15d
	cmpl	$7, %r14d
	ja	LBB0_7
## %bb.8:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_9:
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.10:
	movq	_DSIM_RXFIFO_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_exynos_dsi_read
	cmpl	$1, %r15d
	je	LBB0_15
## %bb.11:
	cmpl	$2, %r15d
	je	LBB0_14
## %bb.12:
	cmpl	$3, %r15d
	jne	LBB0_16
## %bb.13:
	movl	%eax, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, 8(%rbx)
LBB0_14:
	movzbl	%ah, %ecx
	movl	%ecx, 4(%rbx)
LBB0_15:
	movzbl	%al, %eax
	movl	%eax, (%rbx)
LBB0_16:
	movl	8(%r14), %eax
	cmpl	12(%r14), %eax
	jne	LBB0_18
## %bb.17:
	movq	$0, 16(%r14)
LBB0_18:
	movq	_DSI_RX_FIFO_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	3(%rax), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$2, %ebx
	decl	%ebx
	movq	_DSIM_RXFIFO_REG@GOTPCREL(%rip), %r14
	movq	_DSI_RX_FIFO_EMPTY@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_exynos_dsi_read
	subl	$1, %ebx
	setb	%cl
	cmpl	(%r15), %eax
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	testb	%cl, %cl
	je	LBB0_19
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSIM_RXFIFO_REG,4,2            ## @DSIM_RXFIFO_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"response too long (%u > %u bytes), stripping\n"

	.comm	_DSI_RX_FIFO_SIZE,4,2           ## @DSI_RX_FIFO_SIZE
	.comm	_DSI_RX_FIFO_EMPTY,4,2          ## @DSI_RX_FIFO_EMPTY
	.no_dead_strip	_exynos_dsi_read_from_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function exynos_dsi_read_from_fifo
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_exynos_dsi_read_from_fifo:             ; @exynos_dsi_read_from_fifo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 b8, -72
	.cfi_offset b9, -80
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1]
	ldrsw	x9, [x1, #8]
	add	x23, x8, x9, lsl #2
Lloh0:
	adrp	x22, _DSIM_RXFIFO_REG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DSIM_RXFIFO_REG@GOTPAGEOFF]
	cbnz	w9, LBB0_5
; %bb.1:
	ldr	x21, [x19]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_exynos_dsi_read
	ubfx	w8, w0, #8, #16
	ldr	w2, [x20, #12]
	cmp	w8, w2
	b.le	LBB0_3
; %bb.2:
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_5
LBB0_3:
	b.ge	LBB0_5
; %bb.4:
	str	w8, [x20, #12]
LBB0_5:
	ldp	w9, w8, [x20, #8]
	sub	w21, w8, w9
	str	w8, [x20, #8]
	cmp	w21, #4
	b.lt	LBB0_8
; %bb.6:
Lloh4:
	adrp	x8, lCPI0_0@PAGE
Lloh5:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	movi	d9, #0x0000ff000000ff
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x21
	ldr	w1, [x22]
	mov	x0, x19
	bl	_exynos_dsi_read
	and	w8, w0, #0xff
	str	w8, [x23]
	dup.2s	v0, w0
	ushl.2s	v0, v0, v8
	and.8b	v0, v0, v9
	stur	d0, [x23, #4]
	lsr	w8, w0, #24
	str	w8, [x23, #12]
	add	x23, x23, #16
	sub	w21, w21, #4
	cmp	w24, #7
	b.hi	LBB0_7
LBB0_8:
	cbz	w21, LBB0_15
; %bb.9:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_exynos_dsi_read
	cmp	w21, #1
	b.eq	LBB0_14
; %bb.10:
	cmp	w21, #2
	b.eq	LBB0_13
; %bb.11:
	cmp	w21, #3
	b.ne	LBB0_15
; %bb.12:
	ubfx	w8, w0, #16, #8
	str	w8, [x23, #8]
LBB0_13:
	ubfx	w8, w0, #8, #8
	str	w8, [x23, #4]
LBB0_14:
	and	w8, w0, #0xff
	str	w8, [x23]
LBB0_15:
	ldp	w8, w9, [x20, #8]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.16:
	str	xzr, [x20, #16]
LBB0_17:
Lloh6:
	adrp	x8, _DSI_RX_FIFO_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DSI_RX_FIFO_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	sub	w20, w8, #1
Lloh9:
	adrp	x21, _DSI_RX_FIFO_EMPTY@GOTPAGE
Lloh10:
	ldr	x21, [x21, _DSI_RX_FIFO_EMPTY@GOTPAGEOFF]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_exynos_dsi_read
	ldr	w8, [x21]
	cmp	w0, w8
	ccmp	w20, #0, #4, ne
	sub	w20, w20, #1
	b.ne	LBB0_18
; %bb.19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DSIM_RXFIFO_REG,4,2            ; @DSIM_RXFIFO_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"response too long (%u > %u bytes), stripping\n"

	.comm	_DSI_RX_FIFO_SIZE,4,2           ; @DSI_RX_FIFO_SIZE
	.comm	_DSI_RX_FIFO_EMPTY,4,2          ; @DSI_RX_FIFO_EMPTY
	.no_dead_strip	_exynos_dsi_read_from_fifo
.subsections_via_symbols
