	.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, %r13
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_PHY_MAX_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	movq	24(%r14), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_2
LBB0_4:
	movl	(%r13), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%rbx), %r8d
	movl	28(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_SMSC_TRACE
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_dev_name
	movl	16(%r14), %r8d
	movq	_smsc911x_phy_adjust_link@GOTPCREL(%rip), %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_phy_connect
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	movl	(%r13), %ebx
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_6:
	movq	16(%r12), %rax
	movl	(%rax), %r13d
	movq	%r12, %rdi
	addq	$12, %rdi
	callq	_dev_name
	movl	8(%r12), %r8d
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_pr_info
	movq	_PHY_BASIC_FEATURES@GOTPCREL(%rip), %rax
	movq	_SUPPORTED_Pause@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SUPPORTED_Asym_Pause@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	andl	(%r12), %ecx
	movl	%ecx, (%r12)
	movl	%ecx, 4(%r12)
	movq	%r12, 8(%r14)
	movq	$-1, (%r14)
	movq	_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_SMSC_TRACE
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_MAX_ADDR,4,2               ## @PHY_MAX_ADDR
	.comm	_PROBE,4,2                      ## @PROBE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PHY %d: addr %d, phy_id 0x%08X"

L_.str.1:                               ## @.str.1
	.asciz	"%s: no PHY found\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"%s: attached PHY driver [%s] (mii_bus:phy_addr=%s, irq=%d)\n"

	.comm	_PHY_BASIC_FEATURES,4,2         ## @PHY_BASIC_FEATURES
	.comm	_SUPPORTED_Pause,4,2            ## @SUPPORTED_Pause
	.comm	_SUPPORTED_Asym_Pause,4,2       ## @SUPPORTED_Asym_Pause
	.comm	_HW,4,2                         ## @HW
L_.str.4:                               ## @.str.4
	.asciz	"phy initialised succesfully"

	.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, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x0
	bl	_netdev_priv
Lloh0:
	adrp	x8, _PHY_MAX_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_MAX_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x8, #0
	ldr	x10, [x0, #24]
	ldr	x10, [x10]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x10, x8, lsl #3]
	cbnz	x21, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_2
LBB0_4:
	ldr	w1, [x20]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	add	sp, sp, #80
	ret
LBB0_6:
Lloh8:
	adrp	x9, _PROBE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PROBE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x9]
	ldp	w10, w9, [x21, #24]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_SMSC_TRACE
	add	x0, x21, #12
	bl	_dev_name
	mov	x1, x0
	ldr	w4, [x19, #16]
Lloh13:
	adrp	x2, _smsc911x_phy_adjust_link@GOTPAGE
Lloh14:
	ldr	x2, [x2, _smsc911x_phy_adjust_link@GOTPAGEOFF]
	mov	x0, x20
	mov	w3, #0
	bl	_phy_connect
	mov	x21, x0
	bl	_IS_ERR
	ldr	w20, [x20]
	cbz	x0, LBB0_8
; %bb.7:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_pr_err
	mov	x0, x21
	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
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_8:
	ldr	x8, [x21, #16]
	ldr	w22, [x8]
	add	x0, x21, #12
	bl	_dev_name
	mov	x3, x0
	ldr	w4, [x21, #8]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	mov	x2, x22
	bl	_pr_info
Lloh19:
	adrp	x8, _PHY_BASIC_FEATURES@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PHY_BASIC_FEATURES@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _SUPPORTED_Pause@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SUPPORTED_Pause@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh25:
	adrp	x9, _SUPPORTED_Asym_Pause@GOTPAGE
Lloh26:
	ldr	x9, [x9, _SUPPORTED_Asym_Pause@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x21]
	and	w8, w9, w8
	stp	w8, w8, [x21]
	str	x21, [x19, #8]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x19]
Lloh28:
	adrp	x8, _HW@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HW@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_SMSC_TRACE
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_MAX_ADDR,4,2               ; @PHY_MAX_ADDR
	.comm	_PROBE,4,2                      ; @PROBE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PHY %d: addr %d, phy_id 0x%08X"

l_.str.1:                               ; @.str.1
	.asciz	"%s: no PHY found\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"%s: attached PHY driver [%s] (mii_bus:phy_addr=%s, irq=%d)\n"

	.comm	_PHY_BASIC_FEATURES,4,2         ; @PHY_BASIC_FEATURES
	.comm	_SUPPORTED_Pause,4,2            ; @SUPPORTED_Pause
	.comm	_SUPPORTED_Asym_Pause,4,2       ; @SUPPORTED_Asym_Pause
	.comm	_HW,4,2                         ; @HW
l_.str.4:                               ; @.str.4
	.asciz	"phy initialised succesfully"

	.no_dead_strip	_smsc911x_mii_probe
.subsections_via_symbols
