	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fs_enet_mdio_probe
_fs_enet_mdio_probe:                    ## @fs_enet_mdio_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	subl	(%r13), %r15d
	movq	_fs_enet_mdio_fec_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rbx
	xorl	%eax, %eax
	callq	_mdiobus_alloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.3:
	movq	%rax, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, 40(%r12)
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r12)
	movq	_fs_enet_fec_mii_read@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r12)
	movq	_fs_enet_fec_mii_write@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r12)
	movq	(%r14), %rdi
	leaq	-48(%rbp), %rdx
	xorl	%esi, %esi
	callq	_of_address_to_resource
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_5
LBB0_18:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_19:
	movq	%r12, %rdi
	callq	_mdiobus_free
	jmp	LBB0_20
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %r15d
LBB0_20:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	20(%r12), %edi
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %ecx
	leaq	L_.str.1(%rip), %rdx
	callq	_snprintf
	movl	-48(%rbp), %r15d
	leaq	-48(%rbp), %rdi
	callq	_resource_size
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ioremap
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	(%r14), %rdi
	callq	*%rax
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	jmp	LBB0_14
LBB0_6:
	xorl	%r15d, %r15d
	subl	(%r13), %r15d
	jmp	LBB0_18
LBB0_10:
	movq	_ppc_proc_freq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	cmpl	$315000001, %eax                ## imm = 0x12C684C1
	jl	LBB0_12
## %bb.13:
	movl	%eax, %ecx
	imulq	$68174085, %rcx, %rcx           ## imm = 0x4104105
	shrq	$32, %rcx
	subl	%ecx, %eax
	shrl	%eax
	addl	%ecx, %eax
	shrl	$5, %eax
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_14:
	movl	$63, %eax
	jmp	LBB0_15
LBB0_12:
	addl	$4999999, %eax                  ## imm = 0x4C4B3F
	cltq
	imulq	$1801439851, %rax, %rax         ## imm = 0x6B5FCA6B
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$53, %rax
	addl	%ecx, %eax
LBB0_15:
	addl	%eax, %eax
	movl	%eax, (%rbx)
	movq	8(%rbx), %rdi
	addq	$12, %rdi
	movq	_FEC_RCNTRL_MII_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_setbits32
	movq	8(%rbx), %rdi
	addq	$8, %rdi
	movq	_FEC_ECNTRL_PINMUX@GOTPCREL(%rip), %rax
	movq	_FEC_ECNTRL_ETHER_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_setbits32
	movq	8(%rbx), %rdi
	addq	$4, %rdi
	movq	_FEC_ENET_MII@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_out_be32
	movq	8(%rbx), %rdi
	movl	(%rbx), %edx
	movl	$126, %esi
	callq	_clrsetbits_be32
	movl	$-1, 16(%r12)
	movq	%r14, 8(%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movq	(%r14), %rsi
	movq	%r12, %rdi
	callq	_of_mdiobus_register
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movl	%eax, %r15d
	movq	8(%rbx), %rdi
	callq	_iounmap
	jmp	LBB0_18
LBB0_16:
	xorl	%r15d, %r15d
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_fs_enet_mdio_fec_match,4,2     ## @fs_enet_mdio_fec_match
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FEC MII Bus"

	.comm	_fs_enet_fec_mii_read,4,2       ## @fs_enet_fec_mii_read
	.comm	_fs_enet_fec_mii_write,4,2      ## @fs_enet_fec_mii_write
	.comm	_MII_BUS_ID_SIZE,4,2            ## @MII_BUS_ID_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"%x"

L_.str.2:                               ## @.str.2
	.asciz	"could not determine IPS clock\n"

	.comm	_ppc_proc_freq,4,2              ## @ppc_proc_freq
L_.str.3:                               ## @.str.3
	.asciz	"MII clock (%d Hz) exceeds max (2.5 MHz)\n"

	.comm	_FEC_RCNTRL_MII_MODE,4,2        ## @FEC_RCNTRL_MII_MODE
	.comm	_FEC_ECNTRL_PINMUX,4,2          ## @FEC_ECNTRL_PINMUX
	.comm	_FEC_ECNTRL_ETHER_EN,4,2        ## @FEC_ECNTRL_ETHER_EN
	.comm	_FEC_ENET_MII,4,2               ## @FEC_ENET_MII
	.no_dead_strip	_fs_enet_mdio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fs_enet_mdio_probe
_fs_enet_mdio_probe:                    ; @fs_enet_mdio_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
	mov	x20, x0
Lloh0:
	adrp	x23, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ENOMEM@GOTPAGEOFF]
	ldr	w19, [x23]
Lloh2:
	adrp	x8, _fs_enet_mdio_fec_match@GOTPAGE
Lloh3:
	ldr	x8, [x8, _fs_enet_mdio_fec_match@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_of_match_device
	cbz	x0, LBB0_6
; %bb.1:
	neg	w22, w19
	ldr	x24, [x0]
	bl	_mdiobus_alloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x19, x0
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	str	x0, [x19, #40]
Lloh8:
	adrp	x8, l_.str@PAGE
Lloh9:
	add	x8, x8, l_.str@PAGEOFF
Lloh10:
	adrp	x9, _fs_enet_fec_mii_read@GOTPAGE
Lloh11:
	ldr	x9, [x9, _fs_enet_fec_mii_read@GOTPAGEOFF]
	str	x8, [x19]
Lloh12:
	adrp	x8, _fs_enet_fec_mii_write@GOTPAGE
Lloh13:
	ldr	x8, [x8, _fs_enet_fec_mii_write@GOTPAGEOFF]
	stp	x8, x9, [x19, #24]
	ldr	x0, [x20]
	add	x2, sp, #8
	mov	w1, #0
	bl	_of_address_to_resource
	mov	x22, x0
	cbz	w0, LBB0_8
LBB0_4:
	mov	x0, x21
	bl	_kfree
LBB0_5:
	mov	x0, x19
	bl	_mdiobus_free
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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_8:
	ldr	w0, [x19, #20]
Lloh17:
	adrp	x8, _MII_BUS_ID_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MII_BUS_ID_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w3, [sp, #8]
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_snprintf
	ldr	w22, [sp, #8]
	add	x0, sp, #8
	bl	_resource_size
	mov	x1, x0
	mov	x0, x22
	bl	_ioremap
	str	x0, [x21, #8]
	cbz	x0, LBB0_12
; %bb.9:
	cbz	x24, LBB0_13
; %bb.10:
	ldr	x0, [x20]
	blr	x24
	cbnz	w0, LBB0_14
; %bb.11:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
	b	LBB0_16
LBB0_12:
	ldr	w8, [x23]
	neg	w22, w8
	b	LBB0_4
LBB0_13:
Lloh24:
	adrp	x8, _ppc_proc_freq@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ppc_proc_freq@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
LBB0_14:
	mov	w8, #33985
	movk	w8, #4806, lsl #16
	cmp	w0, w8
	b.lt	LBB0_17
; %bb.15:
	mov	w8, #16645
	movk	w8, #1040, lsl #16
	umull	x8, w0, w8
	lsr	x8, x8, #32
	sub	w9, w0, w8
	add	w8, w8, w9, lsr #1
	lsr	w2, w8, #5
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_16:
	mov	w8, #63
	b	LBB0_18
LBB0_17:
	mov	w8, #19263
	movk	w8, #76, lsl #16
	add	w9, w0, w8
	add	w8, w8, #1
	sdiv	w8, w9, w8
LBB0_18:
	lsl	w8, w8, #1
	str	w8, [x21]
	ldr	x8, [x21, #8]
	add	x0, x8, #12
Lloh29:
	adrp	x8, _FEC_RCNTRL_MII_MODE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FEC_RCNTRL_MII_MODE@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_setbits32
	ldr	x8, [x21, #8]
Lloh32:
	adrp	x9, _FEC_ECNTRL_PINMUX@GOTPAGE
Lloh33:
	ldr	x9, [x9, _FEC_ECNTRL_PINMUX@GOTPAGEOFF]
	add	x0, x8, #8
Lloh34:
	ldr	w8, [x9]
Lloh35:
	adrp	x9, _FEC_ECNTRL_ETHER_EN@GOTPAGE
Lloh36:
	ldr	x9, [x9, _FEC_ECNTRL_ETHER_EN@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_setbits32
	ldr	x8, [x21, #8]
	add	x0, x8, #4
Lloh38:
	adrp	x8, _FEC_ENET_MII@GOTPAGE
Lloh39:
	ldr	x8, [x8, _FEC_ENET_MII@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	bl	_out_be32
	ldr	x0, [x21, #8]
	ldr	w2, [x21]
	mov	w1, #126
	bl	_clrsetbits_be32
	mov	w8, #-1
	str	w8, [x19, #16]
	str	x20, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	ldr	x1, [x20]
	mov	x0, x19
	bl	_of_mdiobus_register
	mov	x22, x0
	cbz	w0, LBB0_7
; %bb.19:
	ldr	x0, [x21, #8]
	bl	_iounmap
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_fs_enet_mdio_fec_match,4,2     ; @fs_enet_mdio_fec_match
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FEC MII Bus"

	.comm	_fs_enet_fec_mii_read,4,2       ; @fs_enet_fec_mii_read
	.comm	_fs_enet_fec_mii_write,4,2      ; @fs_enet_fec_mii_write
	.comm	_MII_BUS_ID_SIZE,4,2            ; @MII_BUS_ID_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"%x"

l_.str.2:                               ; @.str.2
	.asciz	"could not determine IPS clock\n"

	.comm	_ppc_proc_freq,4,2              ; @ppc_proc_freq
l_.str.3:                               ; @.str.3
	.asciz	"MII clock (%d Hz) exceeds max (2.5 MHz)\n"

	.comm	_FEC_RCNTRL_MII_MODE,4,2        ; @FEC_RCNTRL_MII_MODE
	.comm	_FEC_ECNTRL_PINMUX,4,2          ; @FEC_ECNTRL_PINMUX
	.comm	_FEC_ECNTRL_ETHER_EN,4,2        ; @FEC_ECNTRL_ETHER_EN
	.comm	_FEC_ENET_MII,4,2               ; @FEC_ENET_MII
	.no_dead_strip	_fs_enet_mdio_probe
.subsections_via_symbols
