	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc911x_mii_probe
_smsc911x_mii_probe:                    ## @smsc911x_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	%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, %r12
	callq	_netdev_priv
	movq	%rax, %r15
	movl	12(%rax), %edi
	callq	_phy_find_first
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_SMSC_TRACE
	movl	8(%r15), %ecx
	movq	_smsc911x_phy_adjust_link@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_phy_connect_direct
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_netdev_err
	movl	%r13d, %r14d
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_netdev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_phy_attached_info
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_set_max_speed
	movq	%rbx, %rdi
	callq	_phy_support_asym_pause
	movq	$-1, (%r15)
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_SMSC_TRACE
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	_probe,4,2                      ## @probe
L_.str.1:                               ## @.str.1
	.asciz	"PHY: addr %d, phy_id 0x%08X"

	.comm	_smsc911x_phy_adjust_link,4,2   ## @smsc911x_phy_adjust_link
L_.str.2:                               ## @.str.2
	.asciz	"Could not attach to PHY\n"

	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_hw,4,2                         ## @hw
L_.str.3:                               ## @.str.3
	.asciz	"phy initialised successfully"

	.no_dead_strip	_smsc911x_mii_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc911x_mii_probe
_smsc911x_mii_probe:                    ; @smsc911x_mii_probe
	.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, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_phy_find_first
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _probe@GOTPAGE
Lloh1:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	w9, w8, [x0]
	stp	x8, x9, [sp]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_SMSC_TRACE
	ldr	w3, [x19, #8]
Lloh5:
	adrp	x2, _smsc911x_phy_adjust_link@GOTPAGE
Lloh6:
	ldr	x2, [x2, _smsc911x_phy_adjust_link@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x21
	bl	_phy_connect_direct
	mov	x22, x0
	cbz	w0, LBB0_4
; %bb.2:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_phy_attached_info
Lloh14:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_phy_set_max_speed
	mov	x0, x21
	bl	_phy_support_asym_pause
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x19]
Lloh17:
	adrp	x8, _hw@GOTPAGE
Lloh18:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str.3@PAGE
Lloh21:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_SMSC_TRACE
LBB0_5:
	mov	x0, x22
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no PHY found\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_probe,4,2                      ; @probe
l_.str.1:                               ; @.str.1
	.asciz	"PHY: addr %d, phy_id 0x%08X"

	.comm	_smsc911x_phy_adjust_link,4,2   ; @smsc911x_phy_adjust_link
l_.str.2:                               ; @.str.2
	.asciz	"Could not attach to PHY\n"

	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_hw,4,2                         ; @hw
l_.str.3:                               ; @.str.3
	.asciz	"phy initialised successfully"

	.no_dead_strip	_smsc911x_mii_probe
.subsections_via_symbols
