	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rk3128_set_to_rmii
_rk3128_set_to_rmii:                    ## @rk3128_set_to_rmii
	.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, %rbx
	movq	8(%rdi), %r14
	movl	(%rdi), %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_2:
	movl	(%rbx), %edi
	movq	_RK3128_GRF_MAC_CON1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RK3128_GMAC_PHY_INTF_SEL_RMII@GOTPCREL(%rip), %rax
	movq	_RK3128_GMAC_RMII_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	popq	%rbx
	popq	%r14
	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	_RK3128_GRF_MAC_CON1,4,2        ## @RK3128_GRF_MAC_CON1
	.comm	_RK3128_GMAC_PHY_INTF_SEL_RMII,4,2 ## @RK3128_GMAC_PHY_INTF_SEL_RMII
	.comm	_RK3128_GMAC_RMII_MODE,4,2      ## @RK3128_GMAC_RMII_MODE
	.no_dead_strip	_rk3128_set_to_rmii
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rk3128_set_to_rmii
_rk3128_set_to_rmii:                    ; @rk3128_set_to_rmii
	.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
	ldr	x20, [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, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err
LBB0_2:
Lloh2:
	adrp	x8, _RK3128_GRF_MAC_CON1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RK3128_GRF_MAC_CON1@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _RK3128_GMAC_PHY_INTF_SEL_RMII@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RK3128_GMAC_PHY_INTF_SEL_RMII@GOTPAGEOFF]
Lloh7:
	adrp	x9, _RK3128_GMAC_RMII_MODE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _RK3128_GMAC_RMII_MODE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_regmap_write
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Missing rockchip,grf property\n"

	.comm	_RK3128_GRF_MAC_CON1,4,2        ; @RK3128_GRF_MAC_CON1
	.comm	_RK3128_GMAC_PHY_INTF_SEL_RMII,4,2 ; @RK3128_GMAC_PHY_INTF_SEL_RMII
	.comm	_RK3128_GMAC_RMII_MODE,4,2      ; @RK3128_GMAC_RMII_MODE
	.no_dead_strip	_rk3128_set_to_rmii
.subsections_via_symbols
