	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e100_phy_init
_e100_phy_init:                         ## @e100_phy_init
	.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
	movq	%rdi, %r15
	movq	56(%rdi), %r14
	movq	_MII_BMSR@GOTPCREL(%rip), %rbx
	xorl	%r13d, %r13d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r13d
	cmpl	$32, %r13d
	je	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$1, %r13d
	movl	%r13d, %esi
	movl	$0, %eax
	cmovel	%eax, %esi
	testl	%r13d, %r13d
	movl	$1, %eax
	cmovel	%eax, %esi
	movl	%esi, 32(%r15)
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mdio_read
	movl	%eax, %r12d
	movl	32(%r15), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_mdio_read
	movl	32(%r15), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_mdio_read
	cmpl	$65535, %r12d                   ## imm = 0xFFFF
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	orl	%r12d, %eax
	je	LBB0_3
## %bb.6:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	56(%r15), %rcx
	movl	32(%r15), %r9d
	leaq	L_.str.1(%rip), %r8
	movq	%r15, %rdi
	callq	_netif_printk
	movl	32(%r15), %esi
	movq	_MII_PHYSID1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mdio_read
	movl	%eax, %ebx
	movl	32(%r15), %esi
	movq	_MII_PHYSID2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mdio_read
	shll	$16, %eax
	orl	%eax, %ebx
	movl	%ebx, (%r15)
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	56(%r15), %rcx
	leaq	L_.str.2(%rip), %r8
	movq	%r15, %rdi
	movl	%ebx, %r9d
	callq	_netif_printk
	xorl	%ebx, %ebx
	movq	_phy_82552_v@GOTPCREL(%rip), %r13
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BMCR_ISOLATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mdio_write
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%ebx
	cmpl	$32, %ebx
	je	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	32(%r15), %ebx
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r15), %eax
	cmpl	(%r13), %eax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mdio_read
	movl	%eax, %r12d
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BMCR_ISOLATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	andl	%r12d, %ecx
	jmp	LBB0_11
LBB0_4:
	movq	%r15, %rdi
	callq	_e100_phy_check_without_mii
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_26
## %bb.5:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	56(%r15), %rdx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_err
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_26
LBB0_13:
	movl	(%r15), %eax
	cmpl	(%r13), %eax
	jne	LBB0_15
## %bb.14:
	movl	32(%r15), %esi
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BMCR_ISOLATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r12d
	movq	%r14, %rdi
	movl	%r12d, %ecx
	callq	_mdio_write
	movl	(%r15), %eax
LBB0_15:
	movl	%eax, %ecx
	andl	$-983041, %ecx                  ## imm = 0xFFF0FFFF
	movq	_phy_nsc_tx@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_17
## %bb.16:
	movl	32(%r15), %esi
	movq	_MII_NSC_CONG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_mdio_read
	movq	_NSC_CONG_TXREADY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_NSC_CONG_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	32(%r15), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_mdio_write
	movl	(%r15), %eax
LBB0_17:
	cmpl	(%r13), %eax
	jne	LBB0_19
## %bb.18:
	movl	32(%r15), %esi
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_mdio_read
	movq	_mdio_ctrl_phy_82552_v@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%r15)
	movq	_ADVERTISE_PAUSE_CAP@GOTPCREL(%rip), %rcx
	movq	_ADVERTISE_PAUSE_ASYM@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movl	32(%r15), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_mdio_write
	movl	32(%r15), %esi
	movq	_MII_BMCR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_mdio_read
	movq	_BMCR_RESET@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	32(%r15), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_mdio_write
	xorl	%ebx, %ebx
	jmp	LBB0_26
LBB0_19:
	movq	8(%r15), %rax
	movq	_mac_82550_D102@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_23
## %bb.20:
	movq	_ich@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, 16(%r15)
	je	LBB0_26
## %bb.21:
	movl	32(%r15), %esi
	movq	_MII_TPISTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mdio_read
	testl	$32768, %eax                    ## imm = 0x8000
	je	LBB0_26
## %bb.22:
	movq	24(%r15), %rax
	movq	_eeprom_cnfg_mdix@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_eeprom_mdix_enabled@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_26
LBB0_23:
	movl	32(%r15), %esi
	movq	_MII_NCONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	cmpq	$0, 40(%r15)
	movl	$0, %ecx
	jne	LBB0_25
## %bb.24:
	movq	_NCONFIG_AUTO_SWITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_25:
	movq	%r14, %rdi
	callq	_mdio_write
LBB0_26:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_MII_BMSR,4,2                   ## @MII_BMSR
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to locate any known PHY, aborting\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"phy_addr = %d\n"

	.comm	_MII_PHYSID1,4,2                ## @MII_PHYSID1
	.comm	_MII_PHYSID2,4,2                ## @MII_PHYSID2
L_.str.2:                               ## @.str.2
	.asciz	"phy ID = 0x%08X\n"

	.comm	_BMCR_ISOLATE,4,2               ## @BMCR_ISOLATE
	.comm	_phy_82552_v,4,2                ## @phy_82552_v
	.comm	_phy_nsc_tx,4,2                 ## @phy_nsc_tx
	.comm	_MII_NSC_CONG,4,2               ## @MII_NSC_CONG
	.comm	_NSC_CONG_TXREADY,4,2           ## @NSC_CONG_TXREADY
	.comm	_NSC_CONG_ENABLE,4,2            ## @NSC_CONG_ENABLE
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_mdio_ctrl_phy_82552_v,4,2      ## @mdio_ctrl_phy_82552_v
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ## @ADVERTISE_PAUSE_CAP
	.comm	_ADVERTISE_PAUSE_ASYM,4,2       ## @ADVERTISE_PAUSE_ASYM
	.comm	_BMCR_RESET,4,2                 ## @BMCR_RESET
	.comm	_mac_82550_D102,8,3             ## @mac_82550_D102
	.comm	_ich,4,2                        ## @ich
	.comm	_MII_TPISTATUS,4,2              ## @MII_TPISTATUS
	.comm	_eeprom_cnfg_mdix,8,3           ## @eeprom_cnfg_mdix
	.comm	_eeprom_mdix_enabled,4,2        ## @eeprom_mdix_enabled
	.comm	_MII_NCONFIG,4,2                ## @MII_NCONFIG
	.comm	_NCONFIG_AUTO_SWITCH,4,2        ## @NCONFIG_AUTO_SWITCH
	.comm	_NCS_PHY_MODEL_MASK,4,2         ## @NCS_PHY_MODEL_MASK
	.no_dead_strip	_e100_phy_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e100_phy_init
_e100_phy_init:                         ; @e100_phy_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	mov	w22, #0
	ldr	x20, [x0, #56]
Lloh0:
	adrp	x23, _MII_BMCR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MII_BMCR@GOTPAGEOFF]
Lloh2:
	adrp	x24, _MII_BMSR@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MII_BMSR@GOTPAGEOFF]
	mov	w25, #65535
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w22, #1
	csel	w8, wzr, w22, eq
	cmp	w22, #0
	csinc	w1, w8, wzr, ne
	str	w1, [x19, #32]
	ldr	w2, [x23]
	mov	x0, x20
	bl	_mdio_read
	mov	x21, x0
	ldr	w1, [x19, #32]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_mdio_read
	ldr	w1, [x19, #32]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_mdio_read
	cmp	w21, w25
	orr	w8, w0, w21
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w22, w22, #1
	cmp	w22, #32
	b.ne	LBB0_1
; %bb.3:
	mov	x0, x19
	bl	_e100_phy_check_without_mii
	cbnz	x0, LBB0_24
; %bb.4:
Lloh4:
	adrp	x8, _hw@GOTPAGE
Lloh5:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	x2, [x19, #56]
Lloh7:
	adrp	x3, l_.str@PAGE
Lloh8:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
Lloh9:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_25
LBB0_5:
Lloh12:
	adrp	x24, _hw@GOTPAGE
Lloh13:
	ldr	x24, [x24, _hw@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh14:
	adrp	x25, _KERN_DEBUG@GOTPAGE
Lloh15:
	ldr	x25, [x25, _KERN_DEBUG@GOTPAGEOFF]
	ldr	w2, [x25]
	ldr	x3, [x19, #56]
	ldr	w5, [x19, #32]
Lloh16:
	adrp	x4, l_.str.1@PAGE
Lloh17:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_printk
	ldr	w1, [x19, #32]
Lloh18:
	adrp	x8, _MII_PHYSID1@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MII_PHYSID1@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mdio_read
	mov	x22, x0
	ldr	w1, [x19, #32]
Lloh21:
	adrp	x8, _MII_PHYSID2@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MII_PHYSID2@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mdio_read
	orr	w5, w22, w0, lsl #16
	str	w5, [x19]
	ldr	w1, [x24]
	ldr	w2, [x25]
	ldr	x3, [x19, #56]
Lloh24:
	adrp	x4, l_.str.2@PAGE
Lloh25:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netif_printk
	mov	w22, #0
Lloh26:
	adrp	x24, _phy_82552_v@GOTPAGE
Lloh27:
	ldr	x24, [x24, _phy_82552_v@GOTPAGEOFF]
Lloh28:
	adrp	x25, _BMCR_ISOLATE@GOTPAGE
Lloh29:
	ldr	x25, [x25, _BMCR_ISOLATE@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w2, [x23]
	ldr	w3, [x25]
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_mdio_write
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w22, w22, #1
	cmp	w22, #32
	b.eq	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #32]
	cmp	w22, w8
	b.ne	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x22
	bl	_mdio_read
	mov	x21, x0
	ldr	w2, [x23]
	ldr	w8, [x25]
	bic	w3, w0, w8
	b	LBB0_7
LBB0_12:
	ldr	w8, [x19]
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.13:
	ldr	w1, [x19, #32]
	ldr	w2, [x23]
	ldr	w8, [x25]
	bic	w3, w21, w8
	mov	x0, x20
	bl	_mdio_write
	ldr	w8, [x19]
LBB0_14:
	and	w9, w8, #0xfff0ffff
Lloh30:
	adrp	x10, _phy_nsc_tx@GOTPAGE
Lloh31:
	ldr	x10, [x10, _phy_nsc_tx@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_16
; %bb.15:
	ldr	w1, [x19, #32]
Lloh33:
	adrp	x21, _MII_NSC_CONG@GOTPAGE
Lloh34:
	ldr	x21, [x21, _MII_NSC_CONG@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_mdio_read
Lloh35:
	adrp	x8, _NSC_CONG_TXREADY@GOTPAGE
Lloh36:
	ldr	x8, [x8, _NSC_CONG_TXREADY@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh38:
	adrp	x9, _NSC_CONG_ENABLE@GOTPAGE
Lloh39:
	ldr	x9, [x9, _NSC_CONG_ENABLE@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	bic	w3, w8, w9
	ldr	w1, [x19, #32]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_mdio_write
	ldr	w8, [x19]
LBB0_16:
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.17:
	ldr	w1, [x19, #32]
Lloh41:
	adrp	x21, _MII_ADVERTISE@GOTPAGE
Lloh42:
	ldr	x21, [x21, _MII_ADVERTISE@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_mdio_read
Lloh43:
	adrp	x8, _mdio_ctrl_phy_82552_v@GOTPAGE
Lloh44:
	ldr	x8, [x8, _mdio_ctrl_phy_82552_v@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	str	w8, [x19, #48]
Lloh46:
	adrp	x8, _ADVERTISE_PAUSE_CAP@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ADVERTISE_PAUSE_CAP@GOTPAGEOFF]
Lloh48:
	adrp	x9, _ADVERTISE_PAUSE_ASYM@GOTPAGE
Lloh49:
	ldr	x9, [x9, _ADVERTISE_PAUSE_ASYM@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
Lloh51:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w3, w8, w9
	ldr	w1, [x19, #32]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_mdio_write
	ldr	w1, [x19, #32]
	ldr	w2, [x23]
	mov	x0, x20
	bl	_mdio_read
Lloh52:
	adrp	x8, _BMCR_RESET@GOTPAGE
Lloh53:
	ldr	x8, [x8, _BMCR_RESET@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	orr	w3, w8, w0
	ldr	w1, [x19, #32]
	ldr	w2, [x23]
	b	LBB0_23
LBB0_18:
	ldr	x8, [x19, #8]
Lloh55:
	adrp	x9, _mac_82550_D102@GOTPAGE
Lloh56:
	ldr	x9, [x9, _mac_82550_D102@GOTPAGEOFF]
Lloh57:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_22
; %bb.19:
	ldr	w8, [x19, #16]
Lloh58:
	adrp	x9, _ich@GOTPAGE
Lloh59:
	ldr	x9, [x9, _ich@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.20:
	ldr	w1, [x19, #32]
Lloh61:
	adrp	x8, _MII_TPISTATUS@GOTPAGE
Lloh62:
	ldr	x8, [x8, _MII_TPISTATUS@GOTPAGEOFF]
Lloh63:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mdio_read
	tbz	w0, #15, LBB0_24
; %bb.21:
	ldr	x8, [x19, #24]
Lloh64:
	adrp	x9, _eeprom_cnfg_mdix@GOTPAGE
Lloh65:
	ldr	x9, [x9, _eeprom_cnfg_mdix@GOTPAGEOFF]
Lloh66:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh67:
	adrp	x9, _eeprom_mdix_enabled@GOTPAGE
Lloh68:
	ldr	x9, [x9, _eeprom_mdix_enabled@GOTPAGEOFF]
Lloh69:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
LBB0_22:
	ldr	w1, [x19, #32]
Lloh70:
	adrp	x8, _MII_NCONFIG@GOTPAGE
Lloh71:
	ldr	x8, [x8, _MII_NCONFIG@GOTPAGEOFF]
Lloh72:
	ldr	w2, [x8]
	ldr	x8, [x19, #40]
Lloh73:
	adrp	x9, _NCONFIG_AUTO_SWITCH@GOTPAGE
Lloh74:
	ldr	x9, [x9, _NCONFIG_AUTO_SWITCH@GOTPAGEOFF]
Lloh75:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w3, w9, wzr, eq
LBB0_23:
	mov	x0, x20
	bl	_mdio_write
LBB0_24:
	mov	w0, #0
LBB0_25:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh50
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_MII_BMSR,4,2                   ; @MII_BMSR
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to locate any known PHY, aborting\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"phy_addr = %d\n"

	.comm	_MII_PHYSID1,4,2                ; @MII_PHYSID1
	.comm	_MII_PHYSID2,4,2                ; @MII_PHYSID2
l_.str.2:                               ; @.str.2
	.asciz	"phy ID = 0x%08X\n"

	.comm	_BMCR_ISOLATE,4,2               ; @BMCR_ISOLATE
	.comm	_phy_82552_v,4,2                ; @phy_82552_v
	.comm	_phy_nsc_tx,4,2                 ; @phy_nsc_tx
	.comm	_MII_NSC_CONG,4,2               ; @MII_NSC_CONG
	.comm	_NSC_CONG_TXREADY,4,2           ; @NSC_CONG_TXREADY
	.comm	_NSC_CONG_ENABLE,4,2            ; @NSC_CONG_ENABLE
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_mdio_ctrl_phy_82552_v,4,2      ; @mdio_ctrl_phy_82552_v
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ; @ADVERTISE_PAUSE_CAP
	.comm	_ADVERTISE_PAUSE_ASYM,4,2       ; @ADVERTISE_PAUSE_ASYM
	.comm	_BMCR_RESET,4,2                 ; @BMCR_RESET
	.comm	_mac_82550_D102,8,3             ; @mac_82550_D102
	.comm	_ich,4,2                        ; @ich
	.comm	_MII_TPISTATUS,4,2              ; @MII_TPISTATUS
	.comm	_eeprom_cnfg_mdix,8,3           ; @eeprom_cnfg_mdix
	.comm	_eeprom_mdix_enabled,4,2        ; @eeprom_mdix_enabled
	.comm	_MII_NCONFIG,4,2                ; @MII_NCONFIG
	.comm	_NCONFIG_AUTO_SWITCH,4,2        ; @NCONFIG_AUTO_SWITCH
	.comm	_NCS_PHY_MODEL_MASK,4,2         ; @NCS_PHY_MODEL_MASK
	.no_dead_strip	_e100_phy_init
.subsections_via_symbols
