	.file	"extr_analogix_dp_reg.c_analogix_dp_init_aux.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	analogix_dp_init_aux
	.type	analogix_dp_init_aux, @function
analogix_dp_init_aux:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rsi, QWORD PTR ANALOGIX_DP_INT_STA[rip]
	add	rsi, QWORD PTR [rdi]
	mov	edi, DWORD PTR RPLY_RECEIV[rip]
	or	edi, DWORD PTR AUX_ERR[rip]
	call	writel@PLT
	mov	esi, DWORD PTR AUX_BLOCK[rip]
	mov	edx, 1
	mov	rdi, rbx
	call	analogix_dp_set_analog_power_down@PLT
	mov	esi, 11
	mov	edi, 10
	call	usleep_range@PLT
	mov	esi, DWORD PTR AUX_BLOCK[rip]
	xor	edx, edx
	mov	rdi, rbx
	call	analogix_dp_set_analog_power_down@PLT
	mov	rdi, rbx
	call	analogix_dp_reset_aux@PLT
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	je	.L4
	mov	edi, DWORD PTR [rax]
	call	is_rockchip@PLT
	test	rax, rax
	jne	.L10
.L4:
	mov	edi, 3
	call	AUX_BIT_PERIOD_EXPECTED_DELAY@PLT
	mov	ebp, eax
.L3:
	xor	edi, edi
	call	AUX_HW_RETRY_COUNT_SEL@PLT
	mov	rsi, QWORD PTR ANALOGIX_DP_AUX_HW_RETRY_CTL[rip]
	add	rsi, QWORD PTR [rbx]
	or	eax, ebp
	mov	edi, eax
	or	edi, DWORD PTR AUX_HW_RETRY_INTERVAL_600_MICROSECONDS[rip]
	call	writel@PLT
	mov	edi, 1
	call	DEFER_COUNT@PLT
	or	eax, DWORD PTR DEFER_CTRL_EN[rip]
	mov	rsi, QWORD PTR ANALOGIX_DP_AUX_CH_DEFER_CTL[rip]
	mov	edi, eax
	add	rsi, QWORD PTR [rbx]
	call	writel@PLT
	mov	rdi, QWORD PTR ANALOGIX_DP_FUNC_EN_2[rip]
	add	rdi, QWORD PTR [rbx]
	call	readl@PLT
	mov	edi, DWORD PTR AUX_FUNC_EN_N[rip]
	mov	rsi, QWORD PTR ANALOGIX_DP_FUNC_EN_2[rip]
	add	rsi, QWORD PTR [rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	not	edi
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	and	edi, eax
	jmp	writel@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	xor	ebp, ebp
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	analogix_dp_init_aux, .-analogix_dp_init_aux
	.comm	RPLY_RECEIV,4,4
	.comm	DEFER_CTRL_EN,4,4
	.comm	AUX_HW_RETRY_INTERVAL_600_MICROSECONDS,4,4
	.comm	AUX_FUNC_EN_N,4,4
	.comm	AUX_ERR,4,4
	.comm	AUX_BLOCK,4,4
	.comm	ANALOGIX_DP_INT_STA,8,8
	.comm	ANALOGIX_DP_FUNC_EN_2,8,8
	.comm	ANALOGIX_DP_AUX_HW_RETRY_CTL,8,8
	.comm	ANALOGIX_DP_AUX_CH_DEFER_CTL,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_analogix_dp_reg.c_analogix_dp_init_aux.c"
	.text
	.align	2
	.global	analogix_dp_init_aux
	.syntax unified
	.arm
	.fpu softvfp
	.type	analogix_dp_init_aux, %function
analogix_dp_init_aux:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r2, .L11
	ldr	r0, .L11+4
	ldr	r3, .L11+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r4]
	ldr	r0, [r0]
	ldr	r5, .L11+12
	orr	r0, r0, r3
	add	r1, r1, r2
	bl	writel
	mov	r2, #1
	ldr	r1, [r5]
	mov	r0, r4
	bl	analogix_dp_set_analog_power_down
	mov	r1, #11
	mov	r0, #10
	bl	usleep_range
	mov	r2, #0
	ldr	r1, [r5]
	mov	r0, r4
	bl	analogix_dp_set_analog_power_down
	mov	r0, r4
	bl	analogix_dp_reset_aux
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L4
	ldr	r0, [r3]
	bl	is_rockchip
	cmp	r0, #0
	bne	.L10
.L4:
	mov	r0, #3
	bl	AUX_BIT_PERIOD_EXPECTED_DELAY
	mov	r5, r0
.L3:
	mov	r0, #0
	bl	AUX_HW_RETRY_COUNT_SEL
	ldr	r2, .L11+16
	ldr	r3, .L11+20
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r4]
	orr	r0, r0, r5
	add	r1, r1, r3
	orr	r0, r0, r2
	bl	writel
	mov	r0, #1
	bl	DEFER_COUNT
	ldr	r2, .L11+24
	ldr	r3, .L11+28
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r4]
	ldr	r5, .L11+32
	add	r1, r1, r3
	orr	r0, r0, r2
	bl	writel
	ldr	r3, [r5]
	ldr	r0, [r4]
	add	r0, r0, r3
	bl	readl
	ldr	r3, .L11+36
	ldr	r2, [r5]
	ldr	r1, [r4]
	ldr	r3, [r3]
	add	r1, r1, r2
	bic	r0, r0, r3
	pop	{r4, r5, r6, lr}
	b	writel
.L10:
	mov	r5, #0
	b	.L3
.L12:
	.align	2
.L11:
	.word	ANALOGIX_DP_INT_STA
	.word	RPLY_RECEIV
	.word	AUX_ERR
	.word	AUX_BLOCK
	.word	AUX_HW_RETRY_INTERVAL_600_MICROSECONDS
	.word	ANALOGIX_DP_AUX_HW_RETRY_CTL
	.word	DEFER_CTRL_EN
	.word	ANALOGIX_DP_AUX_CH_DEFER_CTL
	.word	ANALOGIX_DP_FUNC_EN_2
	.word	AUX_FUNC_EN_N
	.size	analogix_dp_init_aux, .-analogix_dp_init_aux
	.comm	RPLY_RECEIV,4,4
	.comm	DEFER_CTRL_EN,4,4
	.comm	AUX_HW_RETRY_INTERVAL_600_MICROSECONDS,4,4
	.comm	AUX_FUNC_EN_N,4,4
	.comm	AUX_ERR,4,4
	.comm	AUX_BLOCK,4,4
	.comm	ANALOGIX_DP_INT_STA,4,4
	.comm	ANALOGIX_DP_FUNC_EN_2,4,4
	.comm	ANALOGIX_DP_AUX_HW_RETRY_CTL,4,4
	.comm	ANALOGIX_DP_AUX_CH_DEFER_CTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
