	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdns_dsi_transfer
_cdns_dsi_transfer:                     ## @cdns_dsi_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, %r14
	movq	%rdi, %r15
	callq	_to_cdns_dsi
	movq	%rax, %r12
	movq	_WRITE_COMPLETED@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%r15), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	%r12, %rdi
	callq	_cdns_dsi_init_link
	leaq	-72(%rbp), %rdi
	movq	%r14, %rsi
	callq	_mipi_dsi_create_packet
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.2:
	xorl	%eax, %eax
	cmpq	$0, (%r14)
	movl	$0, %edi
	je	LBB0_4
## %bb.3:
	movl	8(%r14), %edi
LBB0_4:
	cmpq	$0, 16(%r14)
	je	LBB0_9
## %bb.5:
	movl	24(%r14), %eax
	testl	%eax, %eax
	setne	%cl
	je	LBB0_7
## %bb.6:
	cmpl	$3, %edi
	jge	LBB0_11
LBB0_7:
	cmpl	(%r12), %edi
	jle	LBB0_10
	jmp	LBB0_11
LBB0_8:
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_9:
	xorl	%ecx, %ecx
	cmpl	(%r12), %edi
	jg	LBB0_11
LBB0_10:
	cmpl	4(%r12), %eax
	jle	LBB0_16
LBB0_11:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	subl	(%rax), %ebx
LBB0_14:
	movl	(%r15), %edi
	callq	_pm_runtime_put
LBB0_15:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	callq	_CMD_SIZE
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	36(%r14), %edi
	callq	_CMD_VCHAN_ID
	movl	%eax, %ebx
	orl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	32(%r14), %edi
	callq	_CMD_DATATYPE
	movq	_MIPI_DSI_MSG_USE_LPM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	28(%r14), %ecx
	je	LBB0_18
## %bb.17:
	movq	_CMD_LP_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_18:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	orl	%eax, %ebx
	movl	32(%r14), %edi
	callq	_mipi_dsi_packet_format_is_long
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	_CMD_LONG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_20:
	orl	%ecx, %ebx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	orl	%ebx, %ecx
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_22
## %bb.21:
	movq	_READ_CMD@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_READ_COMPLETED_WITH_ERR@GOTPCREL(%rip), %rax
	movq	_READ_COMPLETED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	_READ_EN@GOTPCREL(%rip), %rax
	movq	_BTA_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	jmp	LBB0_25
LBB0_22:
	movq	_MIPI_DSI_MSG_REQ_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 28(%r14)
	je	LBB0_24
## %bb.23:
	movq	_BTA_REQ@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_ACK_WITH_ERR_RCVD@GOTPCREL(%rip), %rax
	movq	_ACK_RCVD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	_BTA_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_25
LBB0_24:
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
LBB0_25:
	movq	_MCTL_MAIN_DATA_CTL@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	8(%r12), %rdi
	callq	_readl
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	orl	%ebx, %eax
	movq	(%r13), %rsi
	addq	8(%r12), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_DIRECT_CMD_MAIN_SETTINGS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_writel
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_33
## %bb.26:
	movl	%eax, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_28 Depth=1
	movq	_DIRECT_CMD_WRDATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	callq	_writel
	addq	$4, %r13
	cmpl	%r13d, -56(%rbp)                ## 4-byte Folded Reload
	jle	LBB0_33
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, %edi
	cmpq	%rbx, %r13
	jge	LBB0_27
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	(%r14), %rax
	movl	(%rax,%r13,4), %edi
	leaq	1(%r13), %rcx
	cmpq	%rbx, %rcx
	jge	LBB0_27
## %bb.30:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	4(%rax,%r13,4), %ecx
	shll	$8, %ecx
	orl	%ecx, %edi
	leaq	2(%r13), %rcx
	cmpq	%rbx, %rcx
	jge	LBB0_27
## %bb.31:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	8(%rax,%r13,4), %ecx
	shll	$16, %ecx
	orl	%ecx, %edi
	leaq	3(%r13), %rcx
	cmpq	%rbx, %rcx
	jge	LBB0_27
## %bb.32:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	12(%rax,%r13,4), %eax
	shll	$24, %eax
	orl	%eax, %edi
	jmp	LBB0_27
LBB0_33:
	movq	_DIRECT_CMD_STS_CLR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_writel
	movq	_DIRECT_CMD_STS_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	%r12, %r13
	addq	$16, %r13
	movq	%r13, %rdi
	callq	_reinit_completion
	movq	_DIRECT_CMD_SEND@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_writel
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msecs_to_jiffies
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	movq	_DIRECT_CMD_STS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r12), %rdi
	callq	_readl
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_DIRECT_CMD_STS_CLR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	callq	_writel
	movq	_DIRECT_CMD_STS_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_MCTL_MAIN_DATA_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r12), %rdi
	callq	_readl
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	notl	%edi
	andl	%eax, %edi
	movq	_MCTL_MAIN_DATA_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	callq	_writel
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	testl	%r13d, %edx
	je	LBB0_36
## %bb.34:
	movq	_READ_COMPLETED_WITH_ERR@GOTPCREL(%rip), %rax
	movq	_ACK_WITH_ERR_RCVD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%edx, %ecx
	je	LBB0_37
## %bb.35:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_36:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_37:
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_45
## %bb.38:
	movl	%eax, %edx
	xorl	%r13d, %r13d
	jmp	LBB0_40
LBB0_39:                                ##   in Loop: Header=BB0_40 Depth=1
	addq	$4, %r13
	xorl	%ebx, %ebx
	cmpl	%r13d, -60(%rbp)                ## 4-byte Folded Reload
	jle	LBB0_14
LBB0_40:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_DIRECT_CMD_RDDATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r12), %rdi
	movq	%rdx, %rbx
	callq	_readl
	movq	%rbx, %rdx
	cmpq	%rbx, %r13
	jge	LBB0_39
## %bb.41:                              ##   in Loop: Header=BB0_40 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r13,4)
	leaq	1(%r13), %rcx
	cmpq	%rdx, %rcx
	jge	LBB0_39
## %bb.42:                              ##   in Loop: Header=BB0_40 Depth=1
	movl	%eax, %ecx
	sarl	$8, %ecx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%ecx, 4(%rsi,%r13,4)
	leaq	2(%r13), %rcx
	cmpq	%rdx, %rcx
	jge	LBB0_39
## %bb.43:                              ##   in Loop: Header=BB0_40 Depth=1
	movl	%eax, %ecx
	sarl	$16, %ecx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%ecx, 8(%rsi,%r13,4)
	leaq	3(%r13), %rcx
	cmpq	%rdx, %rcx
	jge	LBB0_39
## %bb.44:                              ##   in Loop: Header=BB0_40 Depth=1
	sarl	$24, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 12(%rcx,%r13,4)
	jmp	LBB0_39
LBB0_45:
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_WRITE_COMPLETED,4,2            ## @WRITE_COMPLETED
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_MIPI_DSI_MSG_USE_LPM,4,2       ## @MIPI_DSI_MSG_USE_LPM
	.comm	_CMD_LP_EN,4,2                  ## @CMD_LP_EN
	.comm	_CMD_LONG,4,2                   ## @CMD_LONG
	.comm	_READ_CMD,4,2                   ## @READ_CMD
	.comm	_READ_COMPLETED_WITH_ERR,4,2    ## @READ_COMPLETED_WITH_ERR
	.comm	_READ_COMPLETED,4,2             ## @READ_COMPLETED
	.comm	_READ_EN,4,2                    ## @READ_EN
	.comm	_BTA_EN,4,2                     ## @BTA_EN
	.comm	_MIPI_DSI_MSG_REQ_ACK,4,2       ## @MIPI_DSI_MSG_REQ_ACK
	.comm	_BTA_REQ,4,2                    ## @BTA_REQ
	.comm	_ACK_WITH_ERR_RCVD,4,2          ## @ACK_WITH_ERR_RCVD
	.comm	_ACK_RCVD,4,2                   ## @ACK_RCVD
	.comm	_MCTL_MAIN_DATA_CTL,8,3         ## @MCTL_MAIN_DATA_CTL
	.comm	_DIRECT_CMD_MAIN_SETTINGS,8,3   ## @DIRECT_CMD_MAIN_SETTINGS
	.comm	_DIRECT_CMD_WRDATA,8,3          ## @DIRECT_CMD_WRDATA
	.comm	_DIRECT_CMD_STS_CLR,8,3         ## @DIRECT_CMD_STS_CLR
	.comm	_DIRECT_CMD_STS_CTL,8,3         ## @DIRECT_CMD_STS_CTL
	.comm	_DIRECT_CMD_SEND,8,3            ## @DIRECT_CMD_SEND
	.comm	_DIRECT_CMD_STS,8,3             ## @DIRECT_CMD_STS
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_EIO,4,2                        ## @EIO
	.comm	_DIRECT_CMD_RDDATA,8,3          ## @DIRECT_CMD_RDDATA
	.no_dead_strip	_cdns_dsi_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdns_dsi_transfer
_cdns_dsi_transfer:                     ; @cdns_dsi_transfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	bl	_to_cdns_dsi
	mov	x21, x0
Lloh0:
	adrp	x8, _WRITE_COMPLETED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WRITE_COMPLETED@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	w0, [x19]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x0, x21
	bl	_cdns_dsi_init_link
	add	x0, sp, #8
	mov	x1, x20
	bl	_mipi_dsi_create_packet
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.2:
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	w23, [x20, #8]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_8
LBB0_4:
	ldr	w25, [x20, #24]
	cmp	w25, #0
	cset	w26, ne
	cbz	w25, LBB0_9
; %bb.5:
	cmp	w23, #3
	b.ge	LBB0_11
	b	LBB0_9
LBB0_6:
	mov	x23, x0
	b	LBB0_14
LBB0_7:
	mov	w23, #0
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_4
LBB0_8:
	mov	w26, #0
	mov	w25, #0
LBB0_9:
	ldr	w8, [x21]
	cmp	w23, w8
	b.gt	LBB0_11
; %bb.10:
	ldr	w8, [x21, #4]
	cmp	w25, w8
	b.le	LBB0_15
LBB0_11:
Lloh3:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_13:
	ldr	w0, [x19]
	bl	_pm_runtime_put
LBB0_14:
	mov	x0, x23
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
	mov	x0, x23
	bl	_CMD_SIZE
	mov	x24, x0
	ldr	w0, [x20, #36]
	bl	_CMD_VCHAN_ID
	orr	w24, w0, w24
	ldr	w0, [x20, #32]
	bl	_CMD_DATATYPE
	orr	w8, w24, w0
Lloh5:
	adrp	x9, _MIPI_DSI_MSG_USE_LPM@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MIPI_DSI_MSG_USE_LPM@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _CMD_LP_EN@GOTPAGE
Lloh9:
	ldr	x10, [x10, _CMD_LP_EN@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	ldp	w11, w0, [x20, #28]
	tst	w9, w11
	csel	w9, wzr, w10, eq
	orr	w24, w8, w9
	bl	_mipi_dsi_packet_format_is_long
Lloh11:
	adrp	x8, _CMD_LONG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CMD_LONG@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w24, w24, w8
Lloh14:
	adrp	x9, _READ_COMPLETED_WITH_ERR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _READ_COMPLETED_WITH_ERR@GOTPAGEOFF]
	cbz	w26, LBB0_17
; %bb.16:
Lloh16:
	adrp	x8, _READ_CMD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _READ_CMD@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	orr	w24, w8, w24
	ldr	w8, [x9]
Lloh19:
	adrp	x9, _READ_COMPLETED@GOTPAGE
Lloh20:
	ldr	x9, [x9, _READ_COMPLETED@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _READ_EN@GOTPAGE
Lloh23:
	ldr	x10, [x10, _READ_EN@GOTPAGEOFF]
	orr	w22, w9, w8
Lloh24:
	ldr	w8, [x10]
Lloh25:
	adrp	x9, _BTA_EN@GOTPAGE
Lloh26:
	ldr	x9, [x9, _BTA_EN@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w26, w9, w8
	b	LBB0_20
LBB0_17:
	ldr	w8, [x20, #28]
Lloh28:
	adrp	x9, _MIPI_DSI_MSG_REQ_ACK@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MIPI_DSI_MSG_REQ_ACK@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.18:
Lloh31:
	adrp	x8, _BTA_REQ@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BTA_REQ@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	orr	w24, w8, w24
Lloh34:
	adrp	x8, _ACK_WITH_ERR_RCVD@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ACK_WITH_ERR_RCVD@GOTPAGEOFF]
Lloh36:
	adrp	x9, _ACK_RCVD@GOTPAGE
Lloh37:
	ldr	x9, [x9, _ACK_RCVD@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	ldr	w9, [x9]
	orr	w22, w9, w8
Lloh40:
	adrp	x8, _BTA_EN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _BTA_EN@GOTPAGEOFF]
Lloh42:
	ldr	w26, [x8]
	b	LBB0_20
LBB0_19:
	mov	w26, #0
LBB0_20:
	ldr	x8, [x21, #8]
Lloh43:
	adrp	x27, _MCTL_MAIN_DATA_CTL@GOTPAGE
Lloh44:
	ldr	x27, [x27, _MCTL_MAIN_DATA_CTL@GOTPAGEOFF]
	ldr	x9, [x27]
	add	x0, x9, x8
	bl	_readl
	str	w26, [sp, #4]                   ; 4-byte Folded Spill
	orr	w0, w0, w26
	ldr	x8, [x21, #8]
	ldr	x9, [x27]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x21, #8]
Lloh45:
	adrp	x9, _DIRECT_CMD_MAIN_SETTINGS@GOTPAGE
Lloh46:
	ldr	x9, [x9, _DIRECT_CMD_MAIN_SETTINGS@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x24
	bl	_writel
	cmp	w23, #1
	b.lt	LBB0_29
; %bb.21:
	mov	x24, #0
	mov	w26, #12
Lloh48:
	adrp	x28, _DIRECT_CMD_WRDATA@GOTPAGE
Lloh49:
	ldr	x28, [x28, _DIRECT_CMD_WRDATA@GOTPAGEOFF]
	mov	w27, w23
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	w0, #0
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [x28]
	add	x1, x9, x8
	bl	_writel
	add	x24, x24, #4
	add	x26, x26, #16
	cmp	w23, w24
	b.le	LBB0_29
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	cmp	x24, x27
	b.ge	LBB0_22
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x8, [x20]
	add	x9, x8, x26
	ldur	w0, [x9, #-12]
	add	x9, x24, #1
	cmp	x9, x27
	b.ge	LBB0_23
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x9, x8, x24, lsl #2
	ldr	w10, [x9, #4]
	orr	w0, w0, w10, lsl #8
	add	x10, x24, #2
	cmp	x10, x27
	b.ge	LBB0_23
; %bb.27:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	w9, [x9, #8]
	orr	w0, w0, w9, lsl #16
	add	x9, x24, #3
	cmp	x9, x27
	b.ge	LBB0_23
; %bb.28:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	w8, [x8, x26]
	orr	w0, w0, w8, lsl #24
	b	LBB0_23
LBB0_29:
	ldr	x8, [x21, #8]
Lloh50:
	adrp	x24, _DIRECT_CMD_STS_CLR@GOTPAGE
Lloh51:
	ldr	x24, [x24, _DIRECT_CMD_STS_CLR@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x1, x9, x8
	mov	x0, x22
	bl	_writel
	ldr	x8, [x21, #8]
Lloh52:
	adrp	x26, _DIRECT_CMD_STS_CTL@GOTPAGE
Lloh53:
	ldr	x26, [x26, _DIRECT_CMD_STS_CTL@GOTPAGEOFF]
	ldr	x9, [x26]
	add	x1, x9, x8
	mov	x0, x22
	bl	_writel
	add	x23, x21, #16
	mov	x0, x23
	bl	_reinit_completion
	ldr	x8, [x21, #8]
Lloh54:
	adrp	x9, _DIRECT_CMD_SEND@GOTPAGE
Lloh55:
	ldr	x9, [x9, _DIRECT_CMD_SEND@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	mov	w0, #1000
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x23
	bl	_wait_for_completion_timeout
	ldr	x8, [x21, #8]
Lloh57:
	adrp	x9, _DIRECT_CMD_STS@GOTPAGE
Lloh58:
	ldr	x9, [x9, _DIRECT_CMD_STS@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x23, x0
	ldr	x8, [x21, #8]
	ldr	x9, [x24]
	add	x1, x9, x8
	mov	x0, x22
	bl	_writel
	ldr	x8, [x21, #8]
	ldr	x9, [x26]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x21, #8]
Lloh60:
	adrp	x24, _MCTL_MAIN_DATA_CTL@GOTPAGE
Lloh61:
	ldr	x24, [x24, _MCTL_MAIN_DATA_CTL@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	bic	w0, w0, w8
	ldr	x8, [x21, #8]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	tst	w23, w22
	b.eq	LBB0_32
; %bb.30:
Lloh62:
	adrp	x8, _READ_COMPLETED_WITH_ERR@GOTPAGE
Lloh63:
	ldr	x8, [x8, _READ_COMPLETED_WITH_ERR@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
Lloh65:
	adrp	x9, _ACK_WITH_ERR_RCVD@GOTPAGE
Lloh66:
	ldr	x9, [x9, _ACK_WITH_ERR_RCVD@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w23
	b.eq	LBB0_33
; %bb.31:
Lloh68:
	adrp	x8, _EIO@GOTPAGE
Lloh69:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_12
LBB0_32:
Lloh70:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh71:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_12
LBB0_33:
	cmp	w25, #1
	b.lt	LBB0_41
; %bb.34:
	mov	x22, #0
	mov	w24, #12
Lloh72:
	adrp	x26, _DIRECT_CMD_RDDATA@GOTPAGE
Lloh73:
	ldr	x26, [x26, _DIRECT_CMD_RDDATA@GOTPAGEOFF]
	mov	w27, w25
	b	LBB0_36
LBB0_35:                                ;   in Loop: Header=BB0_36 Depth=1
	mov	w23, #0
	add	x22, x22, #4
	add	x24, x24, #16
	cmp	w25, w22
	b.le	LBB0_13
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x20, #16]
	ldr	x8, [x21, #8]
	ldr	x9, [x26]
	add	x0, x9, x8
	bl	_readl
	cmp	x22, x27
	b.ge	LBB0_35
; %bb.37:                               ;   in Loop: Header=BB0_36 Depth=1
	add	x8, x23, x24
	stur	w0, [x8, #-12]
	add	x8, x22, #1
	cmp	x8, x27
	b.ge	LBB0_35
; %bb.38:                               ;   in Loop: Header=BB0_36 Depth=1
	asr	w9, w0, #8
	add	x8, x23, x22, lsl #2
	str	w9, [x8, #4]
	add	x9, x22, #2
	cmp	x9, x27
	b.ge	LBB0_35
; %bb.39:                               ;   in Loop: Header=BB0_36 Depth=1
	asr	w9, w0, #16
	str	w9, [x8, #8]
	add	x8, x22, #3
	cmp	x8, x27
	b.ge	LBB0_35
; %bb.40:                               ;   in Loop: Header=BB0_36 Depth=1
	asr	w8, w0, #24
	str	w8, [x23, x24]
	b	LBB0_35
LBB0_41:
	mov	w23, #0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh38
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh72, Lloh73
	.cfi_endproc
                                        ; -- End function
	.comm	_WRITE_COMPLETED,4,2            ; @WRITE_COMPLETED
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_MIPI_DSI_MSG_USE_LPM,4,2       ; @MIPI_DSI_MSG_USE_LPM
	.comm	_CMD_LP_EN,4,2                  ; @CMD_LP_EN
	.comm	_CMD_LONG,4,2                   ; @CMD_LONG
	.comm	_READ_CMD,4,2                   ; @READ_CMD
	.comm	_READ_COMPLETED_WITH_ERR,4,2    ; @READ_COMPLETED_WITH_ERR
	.comm	_READ_COMPLETED,4,2             ; @READ_COMPLETED
	.comm	_READ_EN,4,2                    ; @READ_EN
	.comm	_BTA_EN,4,2                     ; @BTA_EN
	.comm	_MIPI_DSI_MSG_REQ_ACK,4,2       ; @MIPI_DSI_MSG_REQ_ACK
	.comm	_BTA_REQ,4,2                    ; @BTA_REQ
	.comm	_ACK_WITH_ERR_RCVD,4,2          ; @ACK_WITH_ERR_RCVD
	.comm	_ACK_RCVD,4,2                   ; @ACK_RCVD
	.comm	_MCTL_MAIN_DATA_CTL,8,3         ; @MCTL_MAIN_DATA_CTL
	.comm	_DIRECT_CMD_MAIN_SETTINGS,8,3   ; @DIRECT_CMD_MAIN_SETTINGS
	.comm	_DIRECT_CMD_WRDATA,8,3          ; @DIRECT_CMD_WRDATA
	.comm	_DIRECT_CMD_STS_CLR,8,3         ; @DIRECT_CMD_STS_CLR
	.comm	_DIRECT_CMD_STS_CTL,8,3         ; @DIRECT_CMD_STS_CTL
	.comm	_DIRECT_CMD_SEND,8,3            ; @DIRECT_CMD_SEND
	.comm	_DIRECT_CMD_STS,8,3             ; @DIRECT_CMD_STS
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_EIO,4,2                        ; @EIO
	.comm	_DIRECT_CMD_RDDATA,8,3          ; @DIRECT_CMD_RDDATA
	.no_dead_strip	_cdns_dsi_transfer
.subsections_via_symbols
