	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_analogix_dp_transfer           ## -- Begin function analogix_dp_transfer
	.p2align	4, 0x90
_analogix_dp_transfer:                  ## @analogix_dp_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rsi), %r15
	xorl	%edi, %edi
	cmpl	$17, 8(%rsi)
	setge	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_E2BIG@GOTPCREL(%rip), %rcx
	jmp	LBB0_25
LBB0_2:
	movq	_BUF_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ANALOGIX_DP_BUFFER_DATA_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel
	movl	12(%r12), %eax
	movq	_DP_AUX_I2C_MOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	notl	%edx
	andl	%eax, %edx
	addl	$-128, %edx
	cmpl	$3, %edx
	ja	LBB0_14
## %bb.3:
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_11:
	movq	_AUX_TX_COMM_WRITE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_25
LBB0_13:
	movq	_AUX_TX_COMM_READ@GOTPCREL(%rip), %rax
LBB0_12:
	movq	_AUX_TX_COMM_DP_TRANSACTION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	jmp	LBB0_7
LBB0_4:
	movq	_AUX_TX_COMM_WRITE@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_10:
	movq	_AUX_TX_COMM_READ@GOTPCREL(%rip), %rdx
LBB0_5:
	movq	_AUX_TX_COMM_I2C_TRANSACTION@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	orl	(%rdx), %ebx
	testl	%eax, %ecx
	je	LBB0_8
## %bb.6:
	movq	_AUX_TX_COMM_MOT@GOTPCREL(%rip), %rax
LBB0_7:
	orl	(%rax), %ebx
LBB0_8:
	movl	8(%r12), %edi
	callq	_AUX_LENGTH
	orl	%eax, %ebx
	movq	_ANALOGIX_DP_AUX_CH_CTL_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movl	20(%r12), %edi
	callq	_AUX_ADDR_7_0
	movq	_ANALOGIX_DP_AUX_ADDR_7_0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r14), %rsi
	movl	%eax, %edi
	callq	_writel
	movl	20(%r12), %edi
	callq	_AUX_ADDR_15_8
	movq	_ANALOGIX_DP_AUX_ADDR_15_8@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r14), %rsi
	movl	%eax, %edi
	callq	_writel
	movl	20(%r12), %edi
	callq	_AUX_ADDR_19_16
	movq	_ANALOGIX_DP_AUX_ADDR_19_16@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r14), %rsi
	movl	%eax, %edi
	callq	_writel
	xorl	%edi, %edi
	testb	$-125, 12(%r12)
	movl	8(%r12), %eax
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_15
## %bb.9:
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jle	LBB0_20
	jmp	LBB0_21
LBB0_15:
	testl	%eax, %eax
	je	LBB0_45
## %bb.16:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	movq	%r12, %r15
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx), %edi
	movl	%ebx, %esi
	andl	$-4, %esi
	addq	(%r14), %rsi
	movq	_ANALOGIX_DP_BUF_DATA_0@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	callq	_writel
	incq	%r13
	movl	8(%r15), %eax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jb	LBB0_17
## %bb.18:
	movq	%r15, %r12
	xorl	%edi, %edi
	testl	%eax, %eax
	jg	LBB0_21
LBB0_20:
	movq	_ADDR_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_21
LBB0_45:
	movq	_ADDR_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r13d, %r13d
LBB0_21:
	movq	_AUX_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_ANALOGIX_DP_AUX_CH_CTL_2@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	movl	%edi, %r15d
	callq	_writel
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	xorl	%ecx, %ecx
	movq	_AUX_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	sete	%cl
	movq	_readl@GOTPCREL(%rip), %rdi
	movl	%r15d, %edx
	movl	$25, %r8d
	movl	$500000, %r9d                   ## imm = 0x7A120
	callq	_readx_poll_timeout
	testl	%eax, %eax
	je	LBB0_26
## %bb.22:
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_23
LBB0_26:
	movq	_ANALOGIX_DP_INT_STA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movq	_RPLY_RECEIV@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	andl	%r15d, %ecx
	movq	_readl@GOTPCREL(%rip), %rdi
	movl	%r15d, %edx
	movl	$10, %r8d
	movl	$20000, %r9d                    ## imm = 0x4E20
	callq	_readx_poll_timeout
	testl	%eax, %eax
	je	LBB0_28
## %bb.27:
	movl	8(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_23:
	callq	_dev_err
LBB0_24:
	movq	%r14, %rdi
	callq	_analogix_dp_init_aux
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
LBB0_25:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_44:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movl	(%rbx), %edi
	movq	_ANALOGIX_DP_INT_STA@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	callq	_writel
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movl	%eax, %ebx
	movq	_ANALOGIX_DP_AUX_CH_STA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movl	%eax, %r15d
	movq	_AUX_ERR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	testl	%ebx, %edi
	jne	LBB0_30
## %bb.29:
	movq	_AUX_STATUS_MASK@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_31
LBB0_30:
	movq	_ANALOGIX_DP_INT_STA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movq	%rdx, %r12
	callq	_writel
	movl	8(%r14), %edi
	movq	_AUX_STATUS_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	xorl	%ecx, %ecx
	andl	(%r12), %ebx
	setne	%cl
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_warn
	jmp	LBB0_24
LBB0_31:
	testb	$-125, 12(%r12)
	je	LBB0_36
## %bb.32:
	cmpl	$0, 8(%r12)
	je	LBB0_36
## %bb.33:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	andl	$-4, %edi
	addq	(%r14), %rdi
	movq	_ANALOGIX_DP_BUF_DATA_0@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_readl
	movzbl	%al, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r15)
	incq	%rbx
	movl	8(%r12), %eax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jb	LBB0_34
## %bb.35:
	addl	%ebx, %r13d
LBB0_36:
	movq	_ANALOGIX_DP_AUX_RX_COMM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_AUX_RX_COMM_AUX_DEFER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_38
## %bb.37:
	movq	_DP_AUX_NATIVE_REPLY_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_42
LBB0_38:
	movq	_AUX_RX_COMM_I2C_DEFER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_40
## %bb.39:
	movq	_DP_AUX_I2C_REPLY_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_42
LBB0_40:
	movq	_DP_AUX_I2C_MOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	12(%r12), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_43
## %bb.41:
	cltq
	leaq	l_switch.table.analogix_dp_transfer(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
LBB0_42:
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
LBB0_43:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	testl	%r13d, %r13d
	cmovgl	%r13d, %eax
	jmp	LBB0_44
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_4
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_E2BIG,4,2                      ## @E2BIG
	.comm	_BUF_CLR,4,2                    ## @BUF_CLR
	.comm	_ANALOGIX_DP_BUFFER_DATA_CTL,8,3 ## @ANALOGIX_DP_BUFFER_DATA_CTL
	.comm	_DP_AUX_I2C_MOT,4,2             ## @DP_AUX_I2C_MOT
	.comm	_AUX_TX_COMM_WRITE,4,2          ## @AUX_TX_COMM_WRITE
	.comm	_AUX_TX_COMM_I2C_TRANSACTION,4,2 ## @AUX_TX_COMM_I2C_TRANSACTION
	.comm	_AUX_TX_COMM_MOT,4,2            ## @AUX_TX_COMM_MOT
	.comm	_AUX_TX_COMM_READ,4,2           ## @AUX_TX_COMM_READ
	.comm	_AUX_TX_COMM_DP_TRANSACTION,4,2 ## @AUX_TX_COMM_DP_TRANSACTION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ANALOGIX_DP_AUX_CH_CTL_1,8,3   ## @ANALOGIX_DP_AUX_CH_CTL_1
	.comm	_ANALOGIX_DP_AUX_ADDR_7_0,8,3   ## @ANALOGIX_DP_AUX_ADDR_7_0
	.comm	_ANALOGIX_DP_AUX_ADDR_15_8,8,3  ## @ANALOGIX_DP_AUX_ADDR_15_8
	.comm	_ANALOGIX_DP_AUX_ADDR_19_16,8,3 ## @ANALOGIX_DP_AUX_ADDR_19_16
	.comm	_ANALOGIX_DP_BUF_DATA_0,8,3     ## @ANALOGIX_DP_BUF_DATA_0
	.comm	_AUX_EN,4,2                     ## @AUX_EN
	.comm	_ADDR_ONLY,4,2                  ## @ADDR_ONLY
	.comm	_ANALOGIX_DP_AUX_CH_CTL_2,8,3   ## @ANALOGIX_DP_AUX_CH_CTL_2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AUX CH enable timeout!\n"

	.comm	_ANALOGIX_DP_INT_STA,8,3        ## @ANALOGIX_DP_INT_STA
	.comm	_RPLY_RECEIV,4,2                ## @RPLY_RECEIV
L_.str.1:                               ## @.str.1
	.asciz	"AUX CH cmd reply timeout!\n"

	.comm	_ANALOGIX_DP_AUX_CH_STA,8,3     ## @ANALOGIX_DP_AUX_CH_STA
	.comm	_AUX_ERR,4,2                    ## @AUX_ERR
	.comm	_AUX_STATUS_MASK,4,2            ## @AUX_STATUS_MASK
L_.str.2:                               ## @.str.2
	.asciz	"AUX CH error happened: %#x (%d)\n"

	.comm	_ANALOGIX_DP_AUX_RX_COMM,8,3    ## @ANALOGIX_DP_AUX_RX_COMM
	.comm	_AUX_RX_COMM_AUX_DEFER,4,2      ## @AUX_RX_COMM_AUX_DEFER
	.comm	_DP_AUX_NATIVE_REPLY_DEFER,4,2  ## @DP_AUX_NATIVE_REPLY_DEFER
	.comm	_AUX_RX_COMM_I2C_DEFER,4,2      ## @AUX_RX_COMM_I2C_DEFER
	.comm	_DP_AUX_I2C_REPLY_DEFER,4,2     ## @DP_AUX_I2C_REPLY_DEFER
	.comm	_DP_AUX_I2C_REPLY_ACK,4,2       ## @DP_AUX_I2C_REPLY_ACK
	.comm	_DP_AUX_NATIVE_REPLY_ACK,4,2    ## @DP_AUX_NATIVE_REPLY_ACK
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.analogix_dp_transfer
l_switch.table.analogix_dp_transfer:
	.quad	_DP_AUX_NATIVE_REPLY_ACK
	.quad	_DP_AUX_NATIVE_REPLY_ACK
	.quad	_DP_AUX_I2C_REPLY_ACK
	.quad	_DP_AUX_I2C_REPLY_ACK

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_analogix_dp_transfer           ; -- Begin function analogix_dp_transfer
	.p2align	2
_analogix_dp_transfer:                  ; @analogix_dp_transfer
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	ldr	x24, [x1]
	ldr	w8, [x1, #8]
	cmp	w8, #16
	cset	w0, gt
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _E2BIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
	b	LBB0_24
LBB0_2:
Lloh2:
	adrp	x8, _BUF_CLR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BUF_CLR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _ANALOGIX_DP_BUFFER_DATA_CTL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ANALOGIX_DP_BUFFER_DATA_CTL@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w8, [x20, #12]
Lloh8:
	adrp	x23, _DP_AUX_I2C_MOT@GOTPAGE
Lloh9:
	ldr	x23, [x23, _DP_AUX_I2C_MOT@GOTPAGEOFF]
	ldr	w9, [x23]
	bic	w10, w8, w9
	sub	w10, w10, #128
	cmp	w10, #3
	b.hi	LBB0_5
; %bb.3:
Lloh10:
	adrp	x11, lJTI0_0@PAGE
Lloh11:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_4
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_4:
Lloh12:
	adrp	x8, _AUX_TX_COMM_WRITE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AUX_TX_COMM_WRITE@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_24
LBB0_6:
Lloh16:
	adrp	x8, _AUX_TX_COMM_READ@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AUX_TX_COMM_READ@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _AUX_TX_COMM_DP_TRANSACTION@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AUX_TX_COMM_DP_TRANSACTION@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w21, w9, w8
	b	LBB0_12
LBB0_8:
Lloh21:
	adrp	x10, _AUX_TX_COMM_WRITE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _AUX_TX_COMM_WRITE@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh23:
	adrp	x10, _AUX_TX_COMM_READ@GOTPAGE
Lloh24:
	ldr	x10, [x10, _AUX_TX_COMM_READ@GOTPAGEOFF]
LBB0_10:
	ldr	w10, [x10]
Lloh25:
	adrp	x11, _AUX_TX_COMM_I2C_TRANSACTION@GOTPAGE
Lloh26:
	ldr	x11, [x11, _AUX_TX_COMM_I2C_TRANSACTION@GOTPAGEOFF]
Lloh27:
	ldr	w11, [x11]
	orr	w21, w11, w10
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
Lloh28:
	adrp	x8, _AUX_TX_COMM_MOT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AUX_TX_COMM_MOT@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_12:
	ldr	w0, [x20, #8]
	bl	_AUX_LENGTH
	orr	w0, w0, w21
	ldr	x8, [x19]
Lloh31:
	adrp	x9, _ANALOGIX_DP_AUX_CH_CTL_1@GOTPAGE
Lloh32:
	ldr	x9, [x9, _ANALOGIX_DP_AUX_CH_CTL_1@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x20, #20]
	bl	_AUX_ADDR_7_0
	ldr	x8, [x19]
Lloh34:
	adrp	x9, _ANALOGIX_DP_AUX_ADDR_7_0@GOTPAGE
Lloh35:
	ldr	x9, [x9, _ANALOGIX_DP_AUX_ADDR_7_0@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x20, #20]
	bl	_AUX_ADDR_15_8
	ldr	x8, [x19]
Lloh37:
	adrp	x9, _ANALOGIX_DP_AUX_ADDR_15_8@GOTPAGE
Lloh38:
	ldr	x9, [x9, _ANALOGIX_DP_AUX_ADDR_15_8@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x20, #20]
	bl	_AUX_ADDR_19_16
	ldr	x8, [x19]
Lloh40:
	adrp	x9, _ANALOGIX_DP_AUX_ADDR_19_16@GOTPAGE
Lloh41:
	ldr	x9, [x9, _ANALOGIX_DP_AUX_ADDR_19_16@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w8, [x20, #8]
	ldrb	w9, [x20, #12]
	tst	w9, #0xffffff83
	b.eq	LBB0_14
; %bb.13:
	mov	w25, #0
	b	LBB0_17
LBB0_14:
	cbz	w8, LBB0_26
; %bb.15:
	mov	x21, #0
	mov	x25, #0
Lloh43:
	adrp	x22, _ANALOGIX_DP_BUF_DATA_0@GOTPAGE
Lloh44:
	ldr	x22, [x22, _ANALOGIX_DP_BUF_DATA_0@GOTPAGEOFF]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24, x21]
	ldr	x8, [x19]
	ldr	x9, [x22]
	and	x10, x21, #0xfffffffc
	add	x8, x8, x10
	add	x1, x8, x9
	bl	_writel
	add	x25, x25, #1
	ldr	w8, [x20, #8]
	add	x21, x21, #4
	cmp	x25, x8
	b.lo	LBB0_16
LBB0_17:
Lloh45:
	adrp	x9, _ADDR_ONLY@GOTPAGE
Lloh46:
	ldr	x9, [x9, _ADDR_ONLY@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w8, wzr, w9, gt
LBB0_18:
Lloh48:
	adrp	x22, _AUX_EN@GOTPAGE
Lloh49:
	ldr	x22, [x22, _AUX_EN@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w21, w8, w9
	ldr	x8, [x19]
Lloh50:
	adrp	x26, _ANALOGIX_DP_AUX_CH_CTL_2@GOTPAGE
Lloh51:
	ldr	x26, [x26, _ANALOGIX_DP_AUX_CH_CTL_2@GOTPAGEOFF]
	ldr	x9, [x26]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x26]
	add	x1, x9, x8
	ldr	w8, [x22]
	tst	w8, w21
	cset	w3, eq
Lloh52:
	adrp	x0, _readl@GOTPAGE
Lloh53:
	ldr	x0, [x0, _readl@GOTPAGEOFF]
	mov	x2, x21
	mov	w4, #25
	mov	w5, #41248
	movk	w5, #7, lsl #16
	bl	_readx_poll_timeout
	cbz	w0, LBB0_20
; %bb.19:
	ldr	w0, [x19, #8]
Lloh54:
	adrp	x1, l_.str@PAGE
Lloh55:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_22
LBB0_20:
	ldr	x8, [x19]
Lloh56:
	adrp	x26, _ANALOGIX_DP_INT_STA@GOTPAGE
Lloh57:
	ldr	x26, [x26, _ANALOGIX_DP_INT_STA@GOTPAGEOFF]
	ldr	x9, [x26]
	add	x1, x9, x8
Lloh58:
	adrp	x22, _RPLY_RECEIV@GOTPAGE
Lloh59:
	ldr	x22, [x22, _RPLY_RECEIV@GOTPAGEOFF]
	ldr	w8, [x22]
	and	w3, w8, w21
Lloh60:
	adrp	x0, _readl@GOTPAGE
Lloh61:
	ldr	x0, [x0, _readl@GOTPAGEOFF]
	mov	x2, x21
	mov	w4, #10
	mov	w5, #20000
	bl	_readx_poll_timeout
	cbz	w0, LBB0_27
; %bb.21:
	ldr	w0, [x19, #8]
Lloh62:
	adrp	x1, l_.str.1@PAGE
Lloh63:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_22:
	bl	_dev_err
LBB0_23:
	mov	x0, x19
	bl	_analogix_dp_init_aux
Lloh64:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh65:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
LBB0_24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_25:
	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	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_26:
	mov	w25, #0
Lloh66:
	adrp	x8, _ADDR_ONLY@GOTPAGE
Lloh67:
	ldr	x8, [x8, _ADDR_ONLY@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
	b	LBB0_18
LBB0_27:
	ldr	w0, [x22]
	ldr	x8, [x19]
	ldr	x9, [x26]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x26]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
	ldr	x8, [x19]
Lloh69:
	adrp	x9, _ANALOGIX_DP_AUX_CH_STA@GOTPAGE
Lloh70:
	ldr	x9, [x9, _ANALOGIX_DP_AUX_CH_STA@GOTPAGEOFF]
Lloh71:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x22, x0
Lloh72:
	adrp	x27, _AUX_ERR@GOTPAGE
Lloh73:
	ldr	x27, [x27, _AUX_ERR@GOTPAGEOFF]
	ldr	w0, [x27]
Lloh74:
	adrp	x28, _AUX_STATUS_MASK@GOTPAGE
Lloh75:
	ldr	x28, [x28, _AUX_STATUS_MASK@GOTPAGEOFF]
	tst	w0, w21
	b.ne	LBB0_29
; %bb.28:
	ldr	w8, [x28]
	tst	w8, w22
	b.eq	LBB0_30
LBB0_29:
	ldr	x8, [x19]
	ldr	x9, [x26]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x19, #8]
	ldr	w8, [x28]
	and	w2, w8, w22
	ldr	w8, [x27]
	tst	w8, w21
	cset	w3, ne
Lloh76:
	adrp	x1, l_.str.2@PAGE
Lloh77:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
	b	LBB0_23
LBB0_30:
	ldrb	w8, [x20, #12]
	tst	w8, #0xffffff83
	b.eq	LBB0_35
; %bb.31:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_35
; %bb.32:
	mov	x22, #0
	mov	x21, #0
Lloh78:
	adrp	x26, _ANALOGIX_DP_BUF_DATA_0@GOTPAGE
Lloh79:
	ldr	x26, [x26, _ANALOGIX_DP_BUF_DATA_0@GOTPAGEOFF]
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x26]
	and	x10, x22, #0xfffffffc
	add	x8, x8, x10
	add	x0, x8, x9
	bl	_readl
	and	w8, w0, #0xff
	str	w8, [x24, x22]
	add	x21, x21, #1
	ldr	w8, [x20, #8]
	add	x22, x22, #4
	cmp	x21, x8
	b.lo	LBB0_33
; %bb.34:
	add	w25, w25, w21
LBB0_35:
	ldr	x8, [x19]
Lloh80:
	adrp	x9, _ANALOGIX_DP_AUX_RX_COMM@GOTPAGE
Lloh81:
	ldr	x9, [x9, _ANALOGIX_DP_AUX_RX_COMM@GOTPAGEOFF]
Lloh82:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh83:
	adrp	x8, _AUX_RX_COMM_AUX_DEFER@GOTPAGE
Lloh84:
	ldr	x8, [x8, _AUX_RX_COMM_AUX_DEFER@GOTPAGEOFF]
Lloh85:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_37
; %bb.36:
Lloh86:
	adrp	x8, _DP_AUX_NATIVE_REPLY_DEFER@GOTPAGE
Lloh87:
	ldr	x8, [x8, _DP_AUX_NATIVE_REPLY_DEFER@GOTPAGEOFF]
	b	LBB0_41
LBB0_37:
Lloh88:
	adrp	x8, _AUX_RX_COMM_I2C_DEFER@GOTPAGE
Lloh89:
	ldr	x8, [x8, _AUX_RX_COMM_I2C_DEFER@GOTPAGEOFF]
Lloh90:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_39
; %bb.38:
Lloh91:
	adrp	x8, _DP_AUX_I2C_REPLY_DEFER@GOTPAGE
Lloh92:
	ldr	x8, [x8, _DP_AUX_I2C_REPLY_DEFER@GOTPAGEOFF]
	b	LBB0_41
LBB0_39:
	ldr	w8, [x20, #12]
	ldr	w9, [x23]
	bic	w8, w8, w9
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_42
; %bb.40:
Lloh93:
	adrp	x9, l_switch.table.analogix_dp_transfer@PAGE
Lloh94:
	add	x9, x9, l_switch.table.analogix_dp_transfer@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
LBB0_41:
	ldr	w8, [x8]
	str	w8, [x20, #16]
LBB0_42:
Lloh95:
	adrp	x8, _EBUSY@GOTPAGE
Lloh96:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh97:
	ldr	w8, [x8]
	cmp	w25, #0
	csneg	w0, w25, w8, gt
	b	LBB0_25
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGot	Lloh91, Lloh92
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
                                        ; -- End function
	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_BUF_CLR,4,2                    ; @BUF_CLR
	.comm	_ANALOGIX_DP_BUFFER_DATA_CTL,8,3 ; @ANALOGIX_DP_BUFFER_DATA_CTL
	.comm	_DP_AUX_I2C_MOT,4,2             ; @DP_AUX_I2C_MOT
	.comm	_AUX_TX_COMM_WRITE,4,2          ; @AUX_TX_COMM_WRITE
	.comm	_AUX_TX_COMM_I2C_TRANSACTION,4,2 ; @AUX_TX_COMM_I2C_TRANSACTION
	.comm	_AUX_TX_COMM_MOT,4,2            ; @AUX_TX_COMM_MOT
	.comm	_AUX_TX_COMM_READ,4,2           ; @AUX_TX_COMM_READ
	.comm	_AUX_TX_COMM_DP_TRANSACTION,4,2 ; @AUX_TX_COMM_DP_TRANSACTION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ANALOGIX_DP_AUX_CH_CTL_1,8,3   ; @ANALOGIX_DP_AUX_CH_CTL_1
	.comm	_ANALOGIX_DP_AUX_ADDR_7_0,8,3   ; @ANALOGIX_DP_AUX_ADDR_7_0
	.comm	_ANALOGIX_DP_AUX_ADDR_15_8,8,3  ; @ANALOGIX_DP_AUX_ADDR_15_8
	.comm	_ANALOGIX_DP_AUX_ADDR_19_16,8,3 ; @ANALOGIX_DP_AUX_ADDR_19_16
	.comm	_ANALOGIX_DP_BUF_DATA_0,8,3     ; @ANALOGIX_DP_BUF_DATA_0
	.comm	_AUX_EN,4,2                     ; @AUX_EN
	.comm	_ADDR_ONLY,4,2                  ; @ADDR_ONLY
	.comm	_ANALOGIX_DP_AUX_CH_CTL_2,8,3   ; @ANALOGIX_DP_AUX_CH_CTL_2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AUX CH enable timeout!\n"

	.comm	_ANALOGIX_DP_INT_STA,8,3        ; @ANALOGIX_DP_INT_STA
	.comm	_RPLY_RECEIV,4,2                ; @RPLY_RECEIV
l_.str.1:                               ; @.str.1
	.asciz	"AUX CH cmd reply timeout!\n"

	.comm	_ANALOGIX_DP_AUX_CH_STA,8,3     ; @ANALOGIX_DP_AUX_CH_STA
	.comm	_AUX_ERR,4,2                    ; @AUX_ERR
	.comm	_AUX_STATUS_MASK,4,2            ; @AUX_STATUS_MASK
l_.str.2:                               ; @.str.2
	.asciz	"AUX CH error happened: %#x (%d)\n"

	.comm	_ANALOGIX_DP_AUX_RX_COMM,8,3    ; @ANALOGIX_DP_AUX_RX_COMM
	.comm	_AUX_RX_COMM_AUX_DEFER,4,2      ; @AUX_RX_COMM_AUX_DEFER
	.comm	_DP_AUX_NATIVE_REPLY_DEFER,4,2  ; @DP_AUX_NATIVE_REPLY_DEFER
	.comm	_AUX_RX_COMM_I2C_DEFER,4,2      ; @AUX_RX_COMM_I2C_DEFER
	.comm	_DP_AUX_I2C_REPLY_DEFER,4,2     ; @DP_AUX_I2C_REPLY_DEFER
	.comm	_DP_AUX_I2C_REPLY_ACK,4,2       ; @DP_AUX_I2C_REPLY_ACK
	.comm	_DP_AUX_NATIVE_REPLY_ACK,4,2    ; @DP_AUX_NATIVE_REPLY_ACK
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.analogix_dp_transfer
l_switch.table.analogix_dp_transfer:
	.quad	_DP_AUX_NATIVE_REPLY_ACK
	.quad	_DP_AUX_NATIVE_REPLY_ACK
	.quad	_DP_AUX_I2C_REPLY_ACK
	.quad	_DP_AUX_I2C_REPLY_ACK

.subsections_via_symbols
