	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_rockchip_probe
_emac_rockchip_probe:                   ## @emac_rockchip_probe
	.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
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r13
	movl	$64, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r15, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
	movq	_DRV_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r14)
	movq	_emac_rockchip_set_mac_speed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movl	(%r13), %edi
	callq	_of_get_phy_mode
	movl	%eax, %r12d
	movq	_PHY_INTERFACE_MODE_RMII@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_6
## %bb.7:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, 32(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	32(%r14), %rdi
	callq	_PTR_ERR
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	32(%r14), %rdi
	jmp	LBB0_13
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_43
LBB0_6:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_42
LBB0_9:
	movq	_emac_rockchip_dt_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_of_match_node
	movq	(%rax), %rax
	movq	%rax, 24(%r14)
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_clk_get
	movq	%rax, 40(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	40(%r14), %rdi
	callq	_PTR_ERR
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	40(%r14), %rdi
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_clk_get
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	callq	_PTR_ERR
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	(%r14), %rdi
LBB0_13:
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_42:
	movq	%r15, %rdi
	callq	_free_netdev
LBB0_43:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_42
LBB0_16:
	leaq	L_.str.8(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_regulator_get_optional
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	8(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_22
## %bb.17:
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_41
## %bb.18:
	leaq	L_.str.9(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	$0, 8(%r14)
	jmp	LBB0_19
LBB0_22:
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.23:
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_19
## %bb.24:
	movl	%eax, %ebx
	leaq	L_.str.10(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_41
LBB0_19:
	movq	24(%r14), %rax
	movq	32(%r14), %rdi
	movb	(%rax), %sil
	movb	4(%rax), %bl
	leal	16(%rsi), %ecx
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	btsl	%esi, %edx
	addb	$16, %bl
	btsl	%ebx, %edx
	movl	16(%rax), %esi
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_25
## %bb.20:
	movl	%eax, %ebx
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_21
LBB0_25:
	movq	(%r14), %rdi
	movl	$50000000, %esi                 ## imm = 0x2FAF080
	callq	_clk_set_rate
	testl	%eax, %eax
	je	LBB0_27
## %bb.26:
	movl	%eax, %ebx
	leaq	L_.str.12(%rip), %rsi
LBB0_21:
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_39:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_41
## %bb.40:
	callq	_regulator_disable
LBB0_41:
	movq	(%r14), %rdi
	callq	_clk_disable_unprepare
	jmp	LBB0_42
LBB0_27:
	movq	24(%r14), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_34
## %bb.28:
	leaq	L_.str.13(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_clk_get
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	16(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	callq	_PTR_ERR
	leaq	L_.str.14(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	16(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_39
LBB0_30:
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_32
## %bb.31:
	movl	%eax, %ebx
	leaq	L_.str.15(%rip), %rsi
	jmp	LBB0_21
LBB0_32:
	movq	16(%r14), %rdi
	movl	$25000000, %esi                 ## imm = 0x17D7840
	callq	_clk_set_rate
	testl	%eax, %eax
	je	LBB0_34
## %bb.33:
	movl	%eax, %ebx
	leaq	L_.str.16(%rip), %rsi
	jmp	LBB0_37
LBB0_34:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_arc_emac_probe
	testl	%eax, %eax
	je	LBB0_35
## %bb.36:
	movl	%eax, %ebx
	leaq	L_.str.17(%rip), %rsi
LBB0_37:
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	24(%r14), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_39
## %bb.38:
	movq	16(%r14), %rdi
	callq	_clk_disable_unprepare
	jmp	LBB0_39
LBB0_35:
	xorl	%ebx, %ebx
	jmp	LBB0_43
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DRV_NAME,4,2                   ## @DRV_NAME
	.comm	_DRV_VERSION,4,2                ## @DRV_VERSION
	.comm	_emac_rockchip_set_mac_speed,4,2 ## @emac_rockchip_set_mac_speed
	.comm	_PHY_INTERFACE_MODE_RMII,4,2    ## @PHY_INTERFACE_MODE_RMII
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported phy interface mode %d\n"

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"rockchip,grf"

L_.str.2:                               ## @.str.2
	.asciz	"failed to retrieve global register file (%ld)\n"

	.comm	_emac_rockchip_dt_ids,4,2       ## @emac_rockchip_dt_ids
L_.str.3:                               ## @.str.3
	.asciz	"hclk"

L_.str.4:                               ## @.str.4
	.asciz	"failed to retrieve host clock (%ld)\n"

L_.str.5:                               ## @.str.5
	.asciz	"macref"

L_.str.6:                               ## @.str.6
	.asciz	"failed to retrieve reference clock (%ld)\n"

L_.str.7:                               ## @.str.7
	.asciz	"failed to enable reference clock (%d)\n"

L_.str.8:                               ## @.str.8
	.asciz	"phy"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.9:                               ## @.str.9
	.asciz	"no regulator found\n"

L_.str.10:                              ## @.str.10
	.asciz	"failed to enable phy-supply (%d)\n"

L_.str.11:                              ## @.str.11
	.asciz	"unable to apply initial settings to grf (%d)\n"

L_.str.12:                              ## @.str.12
	.asciz	"failed to change reference clock rate (%d)\n"

L_.str.13:                              ## @.str.13
	.asciz	"macclk"

L_.str.14:                              ## @.str.14
	.asciz	"failed to retrieve mac clock (%ld)\n"

L_.str.15:                              ## @.str.15
	.asciz	"failed to enable mac clock (%d)\n"

L_.str.16:                              ## @.str.16
	.asciz	"failed to change mac clock rate (%d)\n"

L_.str.17:                              ## @.str.17
	.asciz	"failed to probe arc emac (%d)\n"

	.no_dead_strip	_emac_rockchip_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_rockchip_probe
_emac_rockchip_probe:                   ; @emac_rockchip_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x21, x0
	mov	w0, #64
	bl	_alloc_etherdev
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x19
	mov	x1, x21
	bl	_SET_NETDEV_DEV
	mov	x0, x19
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _DRV_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRV_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #56]
Lloh3:
	adrp	x8, _DRV_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRV_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _emac_rockchip_set_mac_speed@GOTPAGE
Lloh7:
	ldr	x9, [x9, _emac_rockchip_set_mac_speed@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #48]
	ldr	w0, [x21]
	bl	_of_get_phy_mode
	mov	x22, x0
Lloh9:
	adrp	x8, _PHY_INTERFACE_MODE_RMII@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_RMII@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.3:
	ldr	w0, [x21]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_syscon_regmap_lookup_by_phandle
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.4:
	ldr	x0, [x20, #32]
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	x0, [x20, #32]
	b	LBB0_13
LBB0_5:
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_15
LBB0_8:
	str	x22, [sp]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh22:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_9:
Lloh25:
	adrp	x8, _emac_rockchip_dt_ids@GOTPAGE
Lloh26:
	ldr	x8, [x8, _emac_rockchip_dt_ids@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_of_match_node
	ldr	x8, [x0]
	str	x8, [x20, #24]
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_devm_clk_get
	str	x0, [x20, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x0, [x20, #40]
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	x0, [x20, #40]
	b	LBB0_13
LBB0_11:
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_devm_clk_get
	str	x0, [x20]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20]
	cbz	x8, LBB0_16
; %bb.12:
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh34:
	adrp	x1, l_.str.6@PAGE
Lloh35:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	x0, [x20]
LBB0_13:
	bl	_PTR_ERR
	mov	x23, x0
LBB0_14:
	mov	x0, x19
	bl	_free_netdev
LBB0_15:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_16:
	bl	_clk_prepare_enable
	cbz	w0, LBB0_18
; %bb.17:
	mov	x23, x0
	str	x23, [sp]
Lloh36:
	adrp	x1, l_.str.7@PAGE
Lloh37:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_14
LBB0_18:
Lloh38:
	adrp	x1, l_.str.8@PAGE
Lloh39:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_devm_regulator_get_optional
	str	x0, [x20, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20, #8]
	cbz	x8, LBB0_21
; %bb.19:
	bl	_PTR_ERR
	mov	x23, x0
Lloh40:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_31
; %bb.20:
Lloh43:
	adrp	x1, l_.str.9@PAGE
Lloh44:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	str	xzr, [x20, #8]
	b	LBB0_24
LBB0_21:
	cbz	x0, LBB0_24
; %bb.22:
	bl	_regulator_enable
	cbz	w0, LBB0_24
; %bb.23:
	mov	x23, x0
	str	x23, [sp]
Lloh45:
	adrp	x1, l_.str.10@PAGE
Lloh46:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	bl	_dev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_31
LBB0_24:
	ldp	x8, x0, [x20, #24]
	ldp	w9, w10, [x8]
	add	w11, w9, #16
	mov	w12, #1
	lsl	w11, w12, w11
	lsl	w9, w12, w9
	orr	w9, w11, w9
	add	w10, w10, #16
	lsl	w10, w12, w10
	orr	w2, w9, w10
	ldr	w1, [x8, #16]
	bl	_regmap_write
	cbz	w0, LBB0_26
; %bb.25:
	mov	x23, x0
	str	x23, [sp]
Lloh47:
	adrp	x1, l_.str.11@PAGE
Lloh48:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_28
LBB0_26:
	ldr	x0, [x20]
	mov	w1, #61568
	movk	w1, #762, lsl #16
	bl	_clk_set_rate
	cbz	w0, LBB0_32
; %bb.27:
	mov	x23, x0
	str	x23, [sp]
Lloh49:
	adrp	x1, l_.str.12@PAGE
Lloh50:
	add	x1, x1, l_.str.12@PAGEOFF
LBB0_28:
	mov	x0, x21
	bl	_dev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
LBB0_29:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_31
; %bb.30:
	bl	_regulator_disable
LBB0_31:
	ldr	x0, [x20]
	bl	_clk_disable_unprepare
	b	LBB0_14
LBB0_32:
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_39
; %bb.33:
Lloh51:
	adrp	x1, l_.str.13@PAGE
Lloh52:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x21
	bl	_devm_clk_get
	str	x0, [x20, #16]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20, #16]
	cbz	x8, LBB0_35
; %bb.34:
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh53:
	adrp	x1, l_.str.14@PAGE
Lloh54:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	x0, [x20, #16]
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_29
LBB0_35:
	bl	_clk_prepare_enable
	cbz	w0, LBB0_37
; %bb.36:
	mov	x23, x0
	str	x23, [sp]
Lloh55:
	adrp	x1, l_.str.15@PAGE
Lloh56:
	add	x1, x1, l_.str.15@PAGEOFF
	b	LBB0_28
LBB0_37:
	ldr	x0, [x20, #16]
	mov	w1, #30784
	movk	w1, #381, lsl #16
	bl	_clk_set_rate
	cbz	w0, LBB0_39
; %bb.38:
	mov	x23, x0
	str	x23, [sp]
Lloh57:
	adrp	x1, l_.str.16@PAGE
Lloh58:
	add	x1, x1, l_.str.16@PAGEOFF
	b	LBB0_41
LBB0_39:
	mov	x0, x19
	mov	x1, x22
	bl	_arc_emac_probe
	mov	x23, x0
	cbz	w0, LBB0_15
; %bb.40:
	str	x23, [sp]
Lloh59:
	adrp	x1, l_.str.17@PAGE
Lloh60:
	add	x1, x1, l_.str.17@PAGEOFF
LBB0_41:
	mov	x0, x21
	bl	_dev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_29
; %bb.42:
	ldr	x0, [x20, #16]
	bl	_clk_disable_unprepare
	b	LBB0_29
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DRV_NAME,4,2                   ; @DRV_NAME
	.comm	_DRV_VERSION,4,2                ; @DRV_VERSION
	.comm	_emac_rockchip_set_mac_speed,4,2 ; @emac_rockchip_set_mac_speed
	.comm	_PHY_INTERFACE_MODE_RMII,4,2    ; @PHY_INTERFACE_MODE_RMII
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported phy interface mode %d\n"

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"rockchip,grf"

l_.str.2:                               ; @.str.2
	.asciz	"failed to retrieve global register file (%ld)\n"

	.comm	_emac_rockchip_dt_ids,4,2       ; @emac_rockchip_dt_ids
l_.str.3:                               ; @.str.3
	.asciz	"hclk"

l_.str.4:                               ; @.str.4
	.asciz	"failed to retrieve host clock (%ld)\n"

l_.str.5:                               ; @.str.5
	.asciz	"macref"

l_.str.6:                               ; @.str.6
	.asciz	"failed to retrieve reference clock (%ld)\n"

l_.str.7:                               ; @.str.7
	.asciz	"failed to enable reference clock (%d)\n"

l_.str.8:                               ; @.str.8
	.asciz	"phy"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.9:                               ; @.str.9
	.asciz	"no regulator found\n"

l_.str.10:                              ; @.str.10
	.asciz	"failed to enable phy-supply (%d)\n"

l_.str.11:                              ; @.str.11
	.asciz	"unable to apply initial settings to grf (%d)\n"

l_.str.12:                              ; @.str.12
	.asciz	"failed to change reference clock rate (%d)\n"

l_.str.13:                              ; @.str.13
	.asciz	"macclk"

l_.str.14:                              ; @.str.14
	.asciz	"failed to retrieve mac clock (%ld)\n"

l_.str.15:                              ; @.str.15
	.asciz	"failed to enable mac clock (%d)\n"

l_.str.16:                              ; @.str.16
	.asciz	"failed to change mac clock rate (%d)\n"

l_.str.17:                              ; @.str.17
	.asciz	"failed to probe arc emac (%d)\n"

	.no_dead_strip	_emac_rockchip_probe
.subsections_via_symbols
