	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_analogix_dp_init_analog_func   ## -- Begin function analogix_dp_init_analog_func
	.p2align	4, 0x90
_analogix_dp_init_analog_func:          ## @analogix_dp_init_analog_func
	.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	%rdi, %r12
	movq	_POWER_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_analogix_dp_set_analog_power_down
	movq	_PLL_LOCK_CHG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ANALOGIX_DP_COMMON_INT_STA_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	callq	_writel
	movq	_ANALOGIX_DP_DEBUG_CTL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r12), %rdi
	callq	_readl
	movq	_F_PLL_LOCK@GOTPCREL(%rip), %rcx
	movq	_PLL_LOCK_CTRL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%rbx), %rsi
	addq	(%r12), %rsi
	callq	_writel
	movq	%r12, %rdi
	callq	_analogix_dp_get_pll_lock_status
	movq	_PLL_UNLOCKED@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_6
## %bb.1:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_analogix_dp_set_pll_power_down
	movq	%r12, %rdi
	callq	_analogix_dp_get_pll_lock_status
	cmpq	(%r15), %rax
	jne	LBB0_6
## %bb.2:
	movl	$-1, %ebx
	movq	_DP_TIMEOUT_LOOP_COUNT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	cmpl	%ebx, (%r13)
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movq	%r12, %rdi
	callq	_analogix_dp_get_pll_lock_status
	cmpq	(%r15), %rax
	je	LBB0_3
LBB0_6:
	movq	_ANALOGIX_DP_FUNC_EN_2@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r12), %rdi
	callq	_readl
	movq	_SERDES_FIFO_FUNC_EN_N@GOTPCREL(%rip), %rcx
	movq	_LS_CLK_DOMAIN_FUNC_EN_N@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	movq	_AUX_FUNC_EN_N@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%rbx), %rsi
	addq	(%r12), %rsi
	callq	_writel
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	8(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_POWER_ALL,4,2                  ## @POWER_ALL
	.comm	_PLL_LOCK_CHG,4,2               ## @PLL_LOCK_CHG
	.comm	_ANALOGIX_DP_COMMON_INT_STA_1,8,3 ## @ANALOGIX_DP_COMMON_INT_STA_1
	.comm	_ANALOGIX_DP_DEBUG_CTL,8,3      ## @ANALOGIX_DP_DEBUG_CTL
	.comm	_F_PLL_LOCK,4,2                 ## @F_PLL_LOCK
	.comm	_PLL_LOCK_CTRL,4,2              ## @PLL_LOCK_CTRL
	.comm	_PLL_UNLOCKED,8,3               ## @PLL_UNLOCKED
	.comm	_DP_TIMEOUT_LOOP_COUNT,4,2      ## @DP_TIMEOUT_LOOP_COUNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get pll lock status\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_ANALOGIX_DP_FUNC_EN_2,8,3      ## @ANALOGIX_DP_FUNC_EN_2
	.comm	_SERDES_FIFO_FUNC_EN_N,4,2      ## @SERDES_FIFO_FUNC_EN_N
	.comm	_LS_CLK_DOMAIN_FUNC_EN_N,4,2    ## @LS_CLK_DOMAIN_FUNC_EN_N
	.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_analog_func   ; -- Begin function analogix_dp_init_analog_func
	.p2align	2
_analogix_dp_init_analog_func:          ; @analogix_dp_init_analog_func
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _POWER_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POWER_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_analogix_dp_set_analog_power_down
Lloh3:
	adrp	x8, _PLL_LOCK_CHG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PLL_LOCK_CHG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _ANALOGIX_DP_COMMON_INT_STA_1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ANALOGIX_DP_COMMON_INT_STA_1@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
Lloh9:
	adrp	x20, _ANALOGIX_DP_DEBUG_CTL@GOTPAGE
Lloh10:
	ldr	x20, [x20, _ANALOGIX_DP_DEBUG_CTL@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh11:
	adrp	x8, _F_PLL_LOCK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _F_PLL_LOCK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _PLL_LOCK_CTRL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PLL_LOCK_CTRL@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w0, w0, w8
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	bl	_analogix_dp_get_pll_lock_status
Lloh17:
	adrp	x20, _PLL_UNLOCKED@GOTPAGE
Lloh18:
	ldr	x20, [x20, _PLL_UNLOCKED@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_analogix_dp_set_pll_power_down
	mov	x0, x19
	bl	_analogix_dp_get_pll_lock_status
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	mov	w21, #-1
Lloh19:
	adrp	x22, _DP_TIMEOUT_LOOP_COUNT@GOTPAGE
Lloh20:
	ldr	x22, [x22, _DP_TIMEOUT_LOOP_COUNT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	add	w21, w21, #1
	cmp	w8, w21
	b.le	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	mov	x0, x19
	bl	_analogix_dp_get_pll_lock_status
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_3
LBB0_5:
	ldr	x8, [x19]
Lloh21:
	adrp	x20, _ANALOGIX_DP_FUNC_EN_2@GOTPAGE
Lloh22:
	ldr	x20, [x20, _ANALOGIX_DP_FUNC_EN_2@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh23:
	adrp	x8, _SERDES_FIFO_FUNC_EN_N@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SERDES_FIFO_FUNC_EN_N@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _LS_CLK_DOMAIN_FUNC_EN_N@GOTPAGE
Lloh27:
	ldr	x9, [x9, _LS_CLK_DOMAIN_FUNC_EN_N@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh29:
	adrp	x9, _AUX_FUNC_EN_N@GOTPAGE
Lloh30:
	ldr	x9, [x9, _AUX_FUNC_EN_N@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w0, w0, w8
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w0, [x19, #8]
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh34:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_POWER_ALL,4,2                  ; @POWER_ALL
	.comm	_PLL_LOCK_CHG,4,2               ; @PLL_LOCK_CHG
	.comm	_ANALOGIX_DP_COMMON_INT_STA_1,8,3 ; @ANALOGIX_DP_COMMON_INT_STA_1
	.comm	_ANALOGIX_DP_DEBUG_CTL,8,3      ; @ANALOGIX_DP_DEBUG_CTL
	.comm	_F_PLL_LOCK,4,2                 ; @F_PLL_LOCK
	.comm	_PLL_LOCK_CTRL,4,2              ; @PLL_LOCK_CTRL
	.comm	_PLL_UNLOCKED,8,3               ; @PLL_UNLOCKED
	.comm	_DP_TIMEOUT_LOOP_COUNT,4,2      ; @DP_TIMEOUT_LOOP_COUNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get pll lock status\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_ANALOGIX_DP_FUNC_EN_2,8,3      ; @ANALOGIX_DP_FUNC_EN_2
	.comm	_SERDES_FIFO_FUNC_EN_N,4,2      ; @SERDES_FIFO_FUNC_EN_N
	.comm	_LS_CLK_DOMAIN_FUNC_EN_N,4,2    ; @LS_CLK_DOMAIN_FUNC_EN_N
	.comm	_AUX_FUNC_EN_N,4,2              ; @AUX_FUNC_EN_N
.subsections_via_symbols
