	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rk3128_set_rgmii_speed
_rk3128_set_rgmii_speed:                ## @rk3128_set_rgmii_speed
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	(%rdi), %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_1:
	cmpl	$1000, %r15d                    ## imm = 0x3E8
	je	LBB0_7
## %bb.2:
	cmpl	$100, %r15d
	je	LBB0_6
## %bb.3:
	cmpl	$10, %r15d
	jne	LBB0_8
## %bb.4:
	movl	(%rbx), %edi
	movq	_RK3128_GRF_MAC_CON1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RK3128_GMAC_CLK_2_5M@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movl	(%rbx), %edi
	movq	_RK3128_GRF_MAC_CON1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RK3128_GMAC_CLK_125M@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movl	(%rbx), %edi
	movq	_RK3128_GRF_MAC_CON1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RK3128_GMAC_CLK_25M@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## 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_CLK_2_5M,4,2       ## @RK3128_GMAC_CLK_2_5M
	.comm	_RK3128_GMAC_CLK_25M,4,2        ## @RK3128_GMAC_CLK_25M
	.comm	_RK3128_GMAC_CLK_125M,4,2       ## @RK3128_GMAC_CLK_125M
L_.str.1:                               ## @.str.1
	.asciz	"unknown speed value for RGMII! speed=%d"

	.no_dead_strip	_rk3128_set_rgmii_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rk3128_set_rgmii_speed
_rk3128_set_rgmii_speed:                ; @rk3128_set_rgmii_speed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x21, x0
	ldr	x19, [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, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_dev_err
LBB0_2:
	cmp	w20, #1000
	b.eq	LBB0_6
; %bb.3:
	cmp	w20, #100
	b.eq	LBB0_7
; %bb.4:
	cmp	w20, #10
	b.ne	LBB0_9
; %bb.5:
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _RK3128_GRF_MAC_CON1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RK3128_GRF_MAC_CON1@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _RK3128_GMAC_CLK_2_5M@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RK3128_GMAC_CLK_2_5M@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	ldr	w0, [x21]
Lloh7:
	adrp	x8, _RK3128_GRF_MAC_CON1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RK3128_GRF_MAC_CON1@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _RK3128_GMAC_CLK_125M@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RK3128_GMAC_CLK_125M@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	ldr	w0, [x21]
Lloh12:
	adrp	x8, _RK3128_GRF_MAC_CON1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RK3128_GRF_MAC_CON1@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _RK3128_GMAC_CLK_25M@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RK3128_GMAC_CLK_25M@GOTPAGEOFF]
LBB0_8:
	ldr	w2, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_regmap_write
LBB0_9:
	str	x20, [sp]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.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_CLK_2_5M,4,2       ; @RK3128_GMAC_CLK_2_5M
	.comm	_RK3128_GMAC_CLK_25M,4,2        ; @RK3128_GMAC_CLK_25M
	.comm	_RK3128_GMAC_CLK_125M,4,2       ; @RK3128_GMAC_CLK_125M
l_.str.1:                               ; @.str.1
	.asciz	"unknown speed value for RGMII! speed=%d"

	.no_dead_strip	_rk3128_set_rgmii_speed
.subsections_via_symbols
