	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function et131x_mii_probe
_et131x_mii_probe:                      ## @et131x_mii_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movl	8(%rax), %edi
	callq	_phy_find_first
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_phydev_name
	movq	_PHY_INTERFACE_MODE_MII@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_et131x_adjust_link@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_phy_connect
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	(%r15), %rdi
	addq	$8, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	(%r15), %rdi
	addq	$8, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_phy_set_max_speed
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_ET131X_PCI_DEVICE_ID_FAST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_phy_set_max_speed
LBB0_5:
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_phy_attached_info
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no PHY found\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_et131x_adjust_link,4,2         ## @et131x_adjust_link
	.comm	_PHY_INTERFACE_MODE_MII,4,2     ## @PHY_INTERFACE_MODE_MII
L_.str.1:                               ## @.str.1
	.asciz	"Could not attach to PHY\n"

	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_ET131X_PCI_DEVICE_ID_FAST,8,3  ## @ET131X_PCI_DEVICE_ID_FAST
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.no_dead_strip	_et131x_mii_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function et131x_mii_probe
_et131x_mii_probe:                      ; @et131x_mii_probe
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_phy_find_first
	cbz	x0, LBB0_3
; %bb.1:
	bl	_phydev_name
	mov	x1, x0
Lloh0:
	adrp	x8, _PHY_INTERFACE_MODE_MII@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_MII@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x2, _et131x_adjust_link@GOTPAGE
Lloh4:
	ldr	x2, [x2, _et131x_adjust_link@GOTPAGEOFF]
	mov	x0, x20
	bl	_phy_connect
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x19]
	add	x0, x8, #8
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
	ldr	x8, [x19]
	add	x0, x8, #8
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_4:
Lloh12:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_phy_set_max_speed
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _ET131X_PCI_DEVICE_ID_FAST@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ET131X_PCI_DEVICE_ID_FAST@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
Lloh18:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_phy_set_max_speed
LBB0_6:
Lloh21:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x20
	bl	_phy_attached_info
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no PHY found\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_et131x_adjust_link,4,2         ; @et131x_adjust_link
	.comm	_PHY_INTERFACE_MODE_MII,4,2     ; @PHY_INTERFACE_MODE_MII
l_.str.1:                               ; @.str.1
	.asciz	"Could not attach to PHY\n"

	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_ET131X_PCI_DEVICE_ID_FAST,8,3  ; @ET131X_PCI_DEVICE_ID_FAST
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.no_dead_strip	_et131x_mii_probe
.subsections_via_symbols
