	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stid127_fix_retime_src
_stid127_fix_retime_src:                ## @stid127_fix_retime_src
	.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, %rbx
	movq	(%rdi), %r14
	movq	8(%rdi), %rdi
	movq	_PHY_INTERFACE_MODE_MII@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_2
## %bb.1:
	movq	_STID127_ETH_SEL_INTERNAL_NOTEXT_TXCLK@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_16
LBB0_2:
	movq	_PHY_INTERFACE_MODE_RMII@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_5
## %bb.3:
	cmpl	$0, 24(%rbx)
	jne	LBB0_4
## %bb.8:
	movq	_STID127_ETH_SEL_INTERNAL_NOTEXT_PHYCLK@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_DWMAC_50MHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_5:
	movq	%rsi, %r12
	callq	_IS_PHY_IF_MODE_RGMII
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	_STID127_ETH_SEL_INTERNAL_NOTEXT_TXCLK@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_10
## %bb.7:
	movq	_DWMAC_125MHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_4:
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_10:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_12
## %bb.11:
	movq	_DWMAC_25MHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_SPEED_10@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_16
## %bb.13:
	movq	_DWMAC_2_5MHZ@GOTPCREL(%rip), %rax
LBB0_14:
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.15:
	movl	20(%rbx), %edi
	callq	_clk_set_rate
LBB0_16:
	movl	16(%rbx), %edi
	movq	_STID127_RETIME_SRC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	movq	%r15, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_INTERFACE_MODE_MII,8,3     ## @PHY_INTERFACE_MODE_MII
	.comm	_STID127_ETH_SEL_INTERNAL_NOTEXT_TXCLK,8,3 ## @STID127_ETH_SEL_INTERNAL_NOTEXT_TXCLK
	.comm	_PHY_INTERFACE_MODE_RMII,8,3    ## @PHY_INTERFACE_MODE_RMII
	.comm	_STID127_ETH_SEL_INTERNAL_NOTEXT_PHYCLK,8,3 ## @STID127_ETH_SEL_INTERNAL_NOTEXT_PHYCLK
	.comm	_DWMAC_50MHZ,8,3                ## @DWMAC_50MHZ
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_DWMAC_125MHZ,8,3               ## @DWMAC_125MHZ
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_DWMAC_25MHZ,8,3                ## @DWMAC_25MHZ
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_DWMAC_2_5MHZ,8,3               ## @DWMAC_2_5MHZ
	.comm	_STID127_RETIME_SRC_MASK,4,2    ## @STID127_RETIME_SRC_MASK
	.no_dead_strip	_stid127_fix_retime_src
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stid127_fix_retime_src
_stid127_fix_retime_src:                ; @stid127_fix_retime_src
	.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	x20, x0
	ldp	x19, x0, [x0]
Lloh0:
	adrp	x8, _PHY_INTERFACE_MODE_MII@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_MII@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _STID127_ETH_SEL_INTERNAL_NOTEXT_TXCLK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STID127_ETH_SEL_INTERNAL_NOTEXT_TXCLK@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	b	LBB0_14
LBB0_2:
Lloh6:
	adrp	x8, _PHY_INTERFACE_MODE_RMII@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_RMII@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_8
; %bb.4:
Lloh9:
	adrp	x8, _STID127_ETH_SEL_INTERNAL_NOTEXT_PHYCLK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STID127_ETH_SEL_INTERNAL_NOTEXT_PHYCLK@GOTPAGEOFF]
Lloh11:
	ldr	x21, [x8]
Lloh12:
	adrp	x8, _DWMAC_50MHZ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DWMAC_50MHZ@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	cbnz	x1, LBB0_13
	b	LBB0_14
LBB0_5:
	mov	x22, x1
	bl	_IS_PHY_IF_MODE_RGMII
	cbz	x0, LBB0_8
; %bb.6:
Lloh15:
	adrp	x8, _STID127_ETH_SEL_INTERNAL_NOTEXT_TXCLK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _STID127_ETH_SEL_INTERNAL_NOTEXT_TXCLK@GOTPAGEOFF]
Lloh17:
	ldr	x21, [x8]
Lloh18:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_9
; %bb.7:
Lloh21:
	adrp	x8, _DWMAC_125MHZ@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DWMAC_125MHZ@GOTPAGEOFF]
Lloh23:
	ldr	x1, [x8]
	cbnz	x1, LBB0_13
	b	LBB0_14
LBB0_8:
	mov	x21, #0
	b	LBB0_14
LBB0_9:
Lloh24:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_11
; %bb.10:
Lloh27:
	adrp	x8, _DWMAC_25MHZ@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DWMAC_25MHZ@GOTPAGEOFF]
Lloh29:
	ldr	x1, [x8]
	cbnz	x1, LBB0_13
	b	LBB0_14
LBB0_11:
Lloh30:
	adrp	x8, _SPEED_10@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SPEED_10@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_14
; %bb.12:
Lloh33:
	adrp	x8, _DWMAC_2_5MHZ@GOTPAGE
Lloh34:
	ldr	x8, [x8, _DWMAC_2_5MHZ@GOTPAGEOFF]
Lloh35:
	ldr	x1, [x8]
	cbz	x1, LBB0_14
LBB0_13:
	ldr	w0, [x20, #20]
	bl	_clk_set_rate
LBB0_14:
Lloh36:
	adrp	x8, _STID127_RETIME_SRC_MASK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _STID127_RETIME_SRC_MASK@GOTPAGEOFF]
	ldr	w0, [x20, #16]
Lloh38:
	ldr	w2, [x8]
	mov	x1, x19
	mov	x3, x21
	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
	b	_regmap_update_bits
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_INTERFACE_MODE_MII,8,3     ; @PHY_INTERFACE_MODE_MII
	.comm	_STID127_ETH_SEL_INTERNAL_NOTEXT_TXCLK,8,3 ; @STID127_ETH_SEL_INTERNAL_NOTEXT_TXCLK
	.comm	_PHY_INTERFACE_MODE_RMII,8,3    ; @PHY_INTERFACE_MODE_RMII
	.comm	_STID127_ETH_SEL_INTERNAL_NOTEXT_PHYCLK,8,3 ; @STID127_ETH_SEL_INTERNAL_NOTEXT_PHYCLK
	.comm	_DWMAC_50MHZ,8,3                ; @DWMAC_50MHZ
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_DWMAC_125MHZ,8,3               ; @DWMAC_125MHZ
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_DWMAC_25MHZ,8,3                ; @DWMAC_25MHZ
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_DWMAC_2_5MHZ,8,3               ; @DWMAC_2_5MHZ
	.comm	_STID127_RETIME_SRC_MASK,4,2    ; @STID127_RETIME_SRC_MASK
	.no_dead_strip	_stid127_fix_retime_src
.subsections_via_symbols
