	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ethqos_dll_configure
_ethqos_dll_configure:                  ## @ethqos_dll_configure
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_SDCC_DLL_CONFIG_CDR_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SDCC_HC_REG_DLL_CONFIG@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movl	%edx, %esi
	callq	_rgmii_updatel
	movq	_SDCC_DLL_CONFIG_CDR_EXT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	movq	%r12, %rdi
	movl	%edx, %esi
	callq	_rgmii_updatel
	movq	_SDCC_DLL_CONFIG_CK_OUT_EN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	(%r14), %ecx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_rgmii_updatel
	movq	_SDCC_DLL_CONFIG_DLL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	movq	%r12, %rdi
	movl	%edx, %esi
	callq	_rgmii_updatel
	movq	_SDCC_DLL_MCLK_GATING_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_rgmii_updatel
	movq	_SDCC_DLL_CDR_FINE_PHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_rgmii_updatel
	movl	$1001, %ebx                     ## imm = 0x3E9
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_rgmii_readl
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_mdelay
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_1
## %bb.3:
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_4:
	movl	(%r15), %edx
	movl	(%r14), %ecx
	movq	%r12, %rdi
	movl	%edx, %esi
	callq	_rgmii_updatel
	movl	$1001, %ebx                     ## imm = 0x3E9
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_rgmii_readl
	testl	%eax, (%r15)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %edi
	callq	_mdelay
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_5
## %bb.7:
	movq	(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_8:
	movq	_SDCC_DLL_CONFIG2_DDR_CAL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SDCC_HC_REG_DLL_CONFIG2@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%r12, %rdi
	movl	%edx, %esi
	callq	_rgmii_updatel
	movq	_SDCC_DLL_CONFIG2_DLL_CLOCK_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_rgmii_updatel
	movq	_SDCC_DLL_CONFIG2_MCLK_FREQ_CALC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	movq	%r12, %rdi
	movl	$26624, %edx                    ## imm = 0x6800
	callq	_rgmii_updatel
	movq	_SDCC_DLL_CONFIG2_DDR_TRAFFIC_INIT_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$2, %edi
	callq	_BIT
	movl	(%r15), %ecx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_rgmii_updatel
	movq	_SDCC_DLL_CONFIG2_DDR_TRAFFIC_INIT_SW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movq	%r12, %rdi
	movl	%edx, %esi
	callq	_rgmii_updatel
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDCC_DLL_CONFIG_CDR_EN,4,2     ## @SDCC_DLL_CONFIG_CDR_EN
	.comm	_SDCC_HC_REG_DLL_CONFIG,4,2     ## @SDCC_HC_REG_DLL_CONFIG
	.comm	_SDCC_DLL_CONFIG_CDR_EXT_EN,4,2 ## @SDCC_DLL_CONFIG_CDR_EXT_EN
	.comm	_SDCC_DLL_CONFIG_CK_OUT_EN,4,2  ## @SDCC_DLL_CONFIG_CK_OUT_EN
	.comm	_SDCC_DLL_CONFIG_DLL_EN,4,2     ## @SDCC_DLL_CONFIG_DLL_EN
	.comm	_SDCC_DLL_MCLK_GATING_EN,4,2    ## @SDCC_DLL_MCLK_GATING_EN
	.comm	_SDCC_DLL_CDR_FINE_PHASE,4,2    ## @SDCC_DLL_CDR_FINE_PHASE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Clear CK_OUT_EN timedout\n"

L_.str.1:                               ## @.str.1
	.asciz	"Set CK_OUT_EN timedout\n"

	.comm	_SDCC_DLL_CONFIG2_DDR_CAL_EN,4,2 ## @SDCC_DLL_CONFIG2_DDR_CAL_EN
	.comm	_SDCC_HC_REG_DLL_CONFIG2,4,2    ## @SDCC_HC_REG_DLL_CONFIG2
	.comm	_SDCC_DLL_CONFIG2_DLL_CLOCK_DIS,4,2 ## @SDCC_DLL_CONFIG2_DLL_CLOCK_DIS
	.comm	_SDCC_DLL_CONFIG2_MCLK_FREQ_CALC,4,2 ## @SDCC_DLL_CONFIG2_MCLK_FREQ_CALC
	.comm	_SDCC_DLL_CONFIG2_DDR_TRAFFIC_INIT_SEL,4,2 ## @SDCC_DLL_CONFIG2_DDR_TRAFFIC_INIT_SEL
	.comm	_SDCC_DLL_CONFIG2_DDR_TRAFFIC_INIT_SW,4,2 ## @SDCC_DLL_CONFIG2_DDR_TRAFFIC_INIT_SW
	.no_dead_strip	_ethqos_dll_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ethqos_dll_configure
_ethqos_dll_configure:                  ; @ethqos_dll_configure
	.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, _SDCC_DLL_CONFIG_CDR_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDCC_DLL_CONFIG_CDR_EN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x20, _SDCC_HC_REG_DLL_CONFIG@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SDCC_HC_REG_DLL_CONFIG@GOTPAGEOFF]
	ldr	w3, [x20]
	mov	x2, x1
	bl	_rgmii_updatel
Lloh5:
	adrp	x8, _SDCC_DLL_CONFIG_CDR_EXT_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SDCC_DLL_CONFIG_CDR_EXT_EN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w3, [x20]
	mov	x0, x19
	mov	x2, x1
	bl	_rgmii_updatel
Lloh8:
	adrp	x21, _SDCC_DLL_CONFIG_CK_OUT_EN@GOTPAGE
Lloh9:
	ldr	x21, [x21, _SDCC_DLL_CONFIG_CK_OUT_EN@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w3, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_rgmii_updatel
Lloh10:
	adrp	x8, _SDCC_DLL_CONFIG_DLL_EN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SDCC_DLL_CONFIG_DLL_EN@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w3, [x20]
	mov	x0, x19
	mov	x2, x1
	bl	_rgmii_updatel
Lloh13:
	adrp	x8, _SDCC_DLL_MCLK_GATING_EN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SDCC_DLL_MCLK_GATING_EN@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w3, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_rgmii_updatel
Lloh16:
	adrp	x8, _SDCC_DLL_CDR_FINE_PHASE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SDCC_DLL_CDR_FINE_PHASE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w3, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_rgmii_updatel
	mov	w22, #1001
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rgmii_readl
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_mdelay
	sub	w22, w22, #1
	cmp	w22, #1
	b.hi	LBB0_1
; %bb.3:
	ldr	x0, [x19]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_4:
	ldr	w1, [x21]
	ldr	w3, [x20]
	mov	x0, x19
	mov	x2, x1
	bl	_rgmii_updatel
	mov	w22, #1001
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rgmii_readl
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1
	bl	_mdelay
	sub	w22, w22, #1
	cmp	w22, #1
	b.hi	LBB0_5
; %bb.7:
	ldr	x0, [x19]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_8:
Lloh23:
	adrp	x8, _SDCC_DLL_CONFIG2_DDR_CAL_EN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SDCC_DLL_CONFIG2_DDR_CAL_EN@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x21, _SDCC_HC_REG_DLL_CONFIG2@GOTPAGE
Lloh27:
	ldr	x21, [x21, _SDCC_HC_REG_DLL_CONFIG2@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	x0, x19
	mov	x2, x1
	bl	_rgmii_updatel
Lloh28:
	adrp	x8, _SDCC_DLL_CONFIG2_DLL_CLOCK_DIS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SDCC_DLL_CONFIG2_DLL_CLOCK_DIS@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	ldr	w3, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_rgmii_updatel
Lloh31:
	adrp	x8, _SDCC_DLL_CONFIG2_MCLK_FREQ_CALC@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SDCC_DLL_CONFIG2_MCLK_FREQ_CALC@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	ldr	w3, [x21]
	mov	x0, x19
	mov	w2, #26624
	bl	_rgmii_updatel
Lloh34:
	adrp	x8, _SDCC_DLL_CONFIG2_DDR_TRAFFIC_INIT_SEL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SDCC_DLL_CONFIG2_DDR_TRAFFIC_INIT_SEL@GOTPAGEOFF]
Lloh36:
	ldr	w20, [x8]
	mov	w0, #2
	bl	_BIT
	mov	x2, x0
	ldr	w3, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_rgmii_updatel
Lloh37:
	adrp	x8, _SDCC_DLL_CONFIG2_DDR_TRAFFIC_INIT_SW@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SDCC_DLL_CONFIG2_DDR_TRAFFIC_INIT_SW@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	ldr	w3, [x21]
	mov	x0, x19
	mov	x2, x1
	bl	_rgmii_updatel
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_SDCC_DLL_CONFIG_CDR_EN,4,2     ; @SDCC_DLL_CONFIG_CDR_EN
	.comm	_SDCC_HC_REG_DLL_CONFIG,4,2     ; @SDCC_HC_REG_DLL_CONFIG
	.comm	_SDCC_DLL_CONFIG_CDR_EXT_EN,4,2 ; @SDCC_DLL_CONFIG_CDR_EXT_EN
	.comm	_SDCC_DLL_CONFIG_CK_OUT_EN,4,2  ; @SDCC_DLL_CONFIG_CK_OUT_EN
	.comm	_SDCC_DLL_CONFIG_DLL_EN,4,2     ; @SDCC_DLL_CONFIG_DLL_EN
	.comm	_SDCC_DLL_MCLK_GATING_EN,4,2    ; @SDCC_DLL_MCLK_GATING_EN
	.comm	_SDCC_DLL_CDR_FINE_PHASE,4,2    ; @SDCC_DLL_CDR_FINE_PHASE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Clear CK_OUT_EN timedout\n"

l_.str.1:                               ; @.str.1
	.asciz	"Set CK_OUT_EN timedout\n"

	.comm	_SDCC_DLL_CONFIG2_DDR_CAL_EN,4,2 ; @SDCC_DLL_CONFIG2_DDR_CAL_EN
	.comm	_SDCC_HC_REG_DLL_CONFIG2,4,2    ; @SDCC_HC_REG_DLL_CONFIG2
	.comm	_SDCC_DLL_CONFIG2_DLL_CLOCK_DIS,4,2 ; @SDCC_DLL_CONFIG2_DLL_CLOCK_DIS
	.comm	_SDCC_DLL_CONFIG2_MCLK_FREQ_CALC,4,2 ; @SDCC_DLL_CONFIG2_MCLK_FREQ_CALC
	.comm	_SDCC_DLL_CONFIG2_DDR_TRAFFIC_INIT_SEL,4,2 ; @SDCC_DLL_CONFIG2_DDR_TRAFFIC_INIT_SEL
	.comm	_SDCC_DLL_CONFIG2_DDR_TRAFFIC_INIT_SW,4,2 ; @SDCC_DLL_CONFIG2_DDR_TRAFFIC_INIT_SW
	.no_dead_strip	_ethqos_dll_configure
.subsections_via_symbols
