	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_analogix_dp_init_aux           ## -- Begin function analogix_dp_init_aux
	.p2align	4, 0x90
_analogix_dp_init_aux:                  ## @analogix_dp_init_aux
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_RPLY_RECEIV@GOTPCREL(%rip), %rax
	movq	_AUX_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_ANALOGIX_DP_INT_STA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel
	movq	_AUX_BLOCK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_analogix_dp_set_analog_power_down
	movl	$10, %edi
	movl	$11, %esi
	callq	_usleep_range
	movl	(%rbx), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_analogix_dp_set_analog_power_down
	movq	%r14, %rdi
	callq	_analogix_dp_reset_aux
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rax), %edi
	callq	_is_rockchip
	testq	%rax, %rax
	jne	LBB0_3
LBB0_2:
	movl	$3, %edi
	callq	_AUX_BIT_PERIOD_EXPECTED_DELAY
	movl	%eax, %ebx
LBB0_3:
	xorl	%edi, %edi
	callq	_AUX_HW_RETRY_COUNT_SEL
	movq	_AUX_HW_RETRY_INTERVAL_600_MICROSECONDS@GOTPCREL(%rip), %rcx
	orl	%eax, %ebx
	orl	(%rcx), %ebx
	movq	_ANALOGIX_DP_AUX_HW_RETRY_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_DEFER_CTRL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$1, %edi
	callq	_DEFER_COUNT
	orl	%eax, %ebx
	movq	_ANALOGIX_DP_AUX_CH_DEFER_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_ANALOGIX_DP_FUNC_EN_2@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_AUX_FUNC_EN_N@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RPLY_RECEIV,4,2                ## @RPLY_RECEIV
	.comm	_AUX_ERR,4,2                    ## @AUX_ERR
	.comm	_ANALOGIX_DP_INT_STA,8,3        ## @ANALOGIX_DP_INT_STA
	.comm	_AUX_BLOCK,4,2                  ## @AUX_BLOCK
	.comm	_AUX_HW_RETRY_INTERVAL_600_MICROSECONDS,4,2 ## @AUX_HW_RETRY_INTERVAL_600_MICROSECONDS
	.comm	_ANALOGIX_DP_AUX_HW_RETRY_CTL,8,3 ## @ANALOGIX_DP_AUX_HW_RETRY_CTL
	.comm	_DEFER_CTRL_EN,4,2              ## @DEFER_CTRL_EN
	.comm	_ANALOGIX_DP_AUX_CH_DEFER_CTL,8,3 ## @ANALOGIX_DP_AUX_CH_DEFER_CTL
	.comm	_ANALOGIX_DP_FUNC_EN_2,8,3      ## @ANALOGIX_DP_FUNC_EN_2
	.comm	_AUX_FUNC_EN_N,4,2              ## @AUX_FUNC_EN_N
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_analogix_dp_init_aux           ; -- Begin function analogix_dp_init_aux
	.p2align	2
_analogix_dp_init_aux:                  ; @analogix_dp_init_aux
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _RPLY_RECEIV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RPLY_RECEIV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AUX_ERR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AUX_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _ANALOGIX_DP_INT_STA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ANALOGIX_DP_INT_STA@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh9:
	adrp	x20, _AUX_BLOCK@GOTPAGE
Lloh10:
	ldr	x20, [x20, _AUX_BLOCK@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	bl	_analogix_dp_set_analog_power_down
	mov	w0, #10
	mov	w1, #11
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_analogix_dp_set_analog_power_down
	mov	x0, x19
	bl	_analogix_dp_reset_aux
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w0, [x8]
	bl	_is_rockchip
	cbz	x0, LBB0_3
; %bb.2:
	mov	w20, #0
	b	LBB0_4
LBB0_3:
	mov	w0, #3
	bl	_AUX_BIT_PERIOD_EXPECTED_DELAY
	mov	x20, x0
LBB0_4:
	mov	w0, #0
	bl	_AUX_HW_RETRY_COUNT_SEL
Lloh11:
	adrp	x8, _AUX_HW_RETRY_INTERVAL_600_MICROSECONDS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AUX_HW_RETRY_INTERVAL_600_MICROSECONDS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w9, w0, w20
	orr	w0, w9, w8
	ldr	x8, [x19]
Lloh14:
	adrp	x9, _ANALOGIX_DP_AUX_HW_RETRY_CTL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ANALOGIX_DP_AUX_HW_RETRY_CTL@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh17:
	adrp	x8, _DEFER_CTRL_EN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DEFER_CTRL_EN@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	mov	w0, #1
	bl	_DEFER_COUNT
	orr	w0, w0, w20
	ldr	x8, [x19]
Lloh20:
	adrp	x9, _ANALOGIX_DP_AUX_CH_DEFER_CTL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ANALOGIX_DP_AUX_CH_DEFER_CTL@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
Lloh23:
	adrp	x20, _ANALOGIX_DP_FUNC_EN_2@GOTPAGE
Lloh24:
	ldr	x20, [x20, _ANALOGIX_DP_FUNC_EN_2@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh25:
	adrp	x8, _AUX_FUNC_EN_N@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AUX_FUNC_EN_N@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_RPLY_RECEIV,4,2                ; @RPLY_RECEIV
	.comm	_AUX_ERR,4,2                    ; @AUX_ERR
	.comm	_ANALOGIX_DP_INT_STA,8,3        ; @ANALOGIX_DP_INT_STA
	.comm	_AUX_BLOCK,4,2                  ; @AUX_BLOCK
	.comm	_AUX_HW_RETRY_INTERVAL_600_MICROSECONDS,4,2 ; @AUX_HW_RETRY_INTERVAL_600_MICROSECONDS
	.comm	_ANALOGIX_DP_AUX_HW_RETRY_CTL,8,3 ; @ANALOGIX_DP_AUX_HW_RETRY_CTL
	.comm	_DEFER_CTRL_EN,4,2              ; @DEFER_CTRL_EN
	.comm	_ANALOGIX_DP_AUX_CH_DEFER_CTL,8,3 ; @ANALOGIX_DP_AUX_CH_DEFER_CTL
	.comm	_ANALOGIX_DP_FUNC_EN_2,8,3      ; @ANALOGIX_DP_FUNC_EN_2
	.comm	_AUX_FUNC_EN_N,4,2              ; @AUX_FUNC_EN_N
.subsections_via_symbols
