	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rk3328_set_to_rgmii
_rk3328_set_to_rgmii:                   ## @rk3328_set_to_rgmii
	.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
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movl	(%rdi), %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_2:
	movl	(%rbx), %edi
	movq	_RK3328_GMAC_PHY_INTF_SEL_RGMII@GOTPCREL(%rip), %rax
	movq	_RK3328_GMAC_RMII_MODE_CLR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_RK3328_GRF_MAC_CON1@GOTPCREL(%rip), %rax
	movq	_RK3328_GMAC_RXCLK_DLY_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_RK3328_GMAC_TXCLK_DLY_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	callq	_regmap_write
	movl	(%rbx), %r12d
	movq	_RK3328_GRF_MAC_CON0@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r15d, %edi
	callq	_RK3328_GMAC_CLK_RX_DL_CFG
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_RK3328_GMAC_CLK_TX_DL_CFG
	orl	%eax, %ebx
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Missing rockchip,grf property\n"

	.comm	_RK3328_GRF_MAC_CON1,4,2        ## @RK3328_GRF_MAC_CON1
	.comm	_RK3328_GMAC_PHY_INTF_SEL_RGMII,4,2 ## @RK3328_GMAC_PHY_INTF_SEL_RGMII
	.comm	_RK3328_GMAC_RMII_MODE_CLR,4,2  ## @RK3328_GMAC_RMII_MODE_CLR
	.comm	_RK3328_GMAC_RXCLK_DLY_ENABLE,4,2 ## @RK3328_GMAC_RXCLK_DLY_ENABLE
	.comm	_RK3328_GMAC_TXCLK_DLY_ENABLE,4,2 ## @RK3328_GMAC_TXCLK_DLY_ENABLE
	.comm	_RK3328_GRF_MAC_CON0,4,2        ## @RK3328_GRF_MAC_CON0
	.no_dead_strip	_rk3328_set_to_rgmii
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rk3328_set_to_rgmii
_rk3328_set_to_rgmii:                   ; @rk3328_set_to_rgmii
	.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, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x22, [x0, #8]
	ldr	w0, [x0]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	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	_dev_err
LBB0_2:
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _RK3328_GRF_MAC_CON1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RK3328_GRF_MAC_CON1@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _RK3328_GMAC_PHY_INTF_SEL_RGMII@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RK3328_GMAC_PHY_INTF_SEL_RGMII@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _RK3328_GMAC_RMII_MODE_CLR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RK3328_GMAC_RMII_MODE_CLR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _RK3328_GMAC_RXCLK_DLY_ENABLE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RK3328_GMAC_RXCLK_DLY_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _RK3328_GMAC_TXCLK_DLY_ENABLE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RK3328_GMAC_TXCLK_DLY_ENABLE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w2, w8, w9
	bl	_regmap_write
	ldr	w21, [x21]
Lloh17:
	adrp	x8, _RK3328_GRF_MAC_CON0@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RK3328_GRF_MAC_CON0@GOTPAGEOFF]
Lloh19:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_RK3328_GMAC_CLK_RX_DL_CFG
	mov	x20, x0
	mov	x0, x19
	bl	_RK3328_GMAC_CLK_TX_DL_CFG
	orr	w2, w0, w20
	mov	x0, x21
	mov	x1, x22
	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_write
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Missing rockchip,grf property\n"

	.comm	_RK3328_GRF_MAC_CON1,4,2        ; @RK3328_GRF_MAC_CON1
	.comm	_RK3328_GMAC_PHY_INTF_SEL_RGMII,4,2 ; @RK3328_GMAC_PHY_INTF_SEL_RGMII
	.comm	_RK3328_GMAC_RMII_MODE_CLR,4,2  ; @RK3328_GMAC_RMII_MODE_CLR
	.comm	_RK3328_GMAC_RXCLK_DLY_ENABLE,4,2 ; @RK3328_GMAC_RXCLK_DLY_ENABLE
	.comm	_RK3328_GMAC_TXCLK_DLY_ENABLE,4,2 ; @RK3328_GMAC_TXCLK_DLY_ENABLE
	.comm	_RK3328_GRF_MAC_CON0,4,2        ; @RK3328_GRF_MAC_CON0
	.no_dead_strip	_rk3328_set_to_rgmii
.subsections_via_symbols
