	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1000_mii_probe
_au1000_mii_probe:                      ## @au1000_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, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	cmpq	$0, 56(%rax)
	je	LBB0_1
## %bb.3:
	xorl	%edi, %edi
	cmpl	$2, (%r15)
	setae	%dil
	callq	_BUG_ON
	movl	4(%r15), %esi
	testl	%esi, %esi
	je	LBB0_5
## %bb.4:
	movl	32(%r15), %edi
	callq	_mdiobus_get_phy
	jmp	LBB0_24
LBB0_1:
	movq	_PHY_MAX_ADDR@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	cmpl	$0, (%r13)
	jle	LBB0_2
## %bb.6:
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incl	%ebx
	cmpl	(%r13), %ebx
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%r15), %edi
	movl	%ebx, %esi
	callq	_mdiobus_get_phy
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	32(%r15), %edi
	movl	%ebx, %esi
	callq	_mdiobus_get_phy
	movq	%rax, %r12
	cmpl	$0, 48(%r15)
	jne	LBB0_9
LBB0_10:
	cmpq	$0, 40(%r15)
	jne	LBB0_11
	jmp	LBB0_20
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_info
LBB0_24:
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_2:
	xorl	%r12d, %r12d
	cmpq	$0, 40(%r15)
	je	LBB0_20
LBB0_11:
	testq	%r12, %r12
	jne	LBB0_20
## %bb.12:
	cmpl	$1, (%r15)
	jne	LBB0_21
## %bb.13:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	cmpl	$0, (%r13)
	jle	LBB0_21
## %bb.14:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	incl	%ebx
	cmpl	(%r13), %ebx
	jge	LBB0_20
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	32(%r15), %edi
	movl	%ebx, %esi
	callq	_mdiobus_get_phy
	cmpl	$1, (%r15)
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$0, (%rax)
	jne	LBB0_18
## %bb.19:
	movq	%rax, %r12
LBB0_20:
	testq	%r12, %r12
	je	LBB0_21
## %bb.22:
	movl	(%r12), %edi
	callq	_BUG_ON
	movq	%r12, %rdi
	callq	_phydev_name
	movq	_PHY_INTERFACE_MODE_MII@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_au1000_adjust_link@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_phy_connect
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_23
## %bb.26:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_21:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	movl	$-1, %eax
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_set_max_speed
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r15)
	movl	$-1, 8(%r15)
	movq	%rbx, %rdi
	callq	_phy_attached_info
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"using PHY-less setup\n"

	.comm	_PHY_MAX_ADDR,4,2               ## @PHY_MAX_ADDR
L_.str.1:                               ## @.str.1
	.asciz	": no PHY found on MAC1, let's see if it's attached to MAC0...\n"

L_.str.2:                               ## @.str.2
	.asciz	"no PHY found\n"

	.comm	_au1000_adjust_link,4,2         ## @au1000_adjust_link
	.comm	_PHY_INTERFACE_MODE_MII,4,2     ## @PHY_INTERFACE_MODE_MII
L_.str.3:                               ## @.str.3
	.asciz	"Could not attach to PHY\n"

	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.no_dead_strip	_au1000_mii_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1000_mii_probe
_au1000_mii_probe:                      ; @au1000_mii_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0, #56]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #1
	cset	w0, hi
	bl	_BUG_ON
	ldr	w1, [x20, #4]
	cbz	w1, LBB0_8
; %bb.2:
	ldr	w0, [x20, #32]
	bl	_mdiobus_get_phy
	b	LBB0_9
LBB0_3:
Lloh0:
	adrp	x23, _PHY_MAX_ADDR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PHY_MAX_ADDR@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.4:
	mov	w22, #0
	mov	x21, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w22, #1
	ldr	w8, [x23]
	cmp	w22, w8
	b.ge	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #32]
	mov	x1, x22
	bl	_mdiobus_get_phy
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x20, #32]
	mov	x1, x22
	bl	_mdiobus_get_phy
	mov	x21, x0
	ldr	w8, [x20, #48]
	cbnz	w8, LBB0_5
	b	LBB0_11
LBB0_8:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
LBB0_9:
	mov	w0, #0
	b	LBB0_24
LBB0_10:
	mov	x21, #0
LBB0_11:
	ldr	x8, [x20, #40]
	cmp	x8, #0
	ccmp	x21, #0, #0, ne
	b.ne	LBB0_20
; %bb.12:
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_23
; %bb.13:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.14:
	mov	w22, #0
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	w22, w22, #1
	ldr	w8, [x23]
	cmp	w22, w8
	b.ge	LBB0_19
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #32]
	mov	x1, x22
	bl	_mdiobus_get_phy
	ldr	w8, [x20]
	cmp	w8, #1
	b.eq	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x21, x0
	cbz	x0, LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x21]
	cbnz	w8, LBB0_15
	b	LBB0_20
LBB0_19:
	mov	x21, #0
LBB0_20:
	cbz	x21, LBB0_23
; %bb.21:
	ldr	w0, [x21]
	bl	_BUG_ON
	mov	x0, x21
	bl	_phydev_name
	mov	x1, x0
Lloh6:
	adrp	x8, _PHY_INTERFACE_MODE_MII@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_MII@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x2, _au1000_adjust_link@GOTPAGE
Lloh10:
	ldr	x2, [x2, _au1000_adjust_link@GOTPAGEOFF]
	mov	x0, x19
	bl	_phy_connect
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_25
; %bb.22:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_23:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	mov	w0, #-1
LBB0_24:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_25:
Lloh15:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_phy_set_max_speed
	stp	xzr, xzr, [x20, #16]
	mov	w8, #-1
	str	w8, [x20, #8]
	mov	x0, x21
	bl	_phy_attached_info
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"using PHY-less setup\n"

	.comm	_PHY_MAX_ADDR,4,2               ; @PHY_MAX_ADDR
l_.str.1:                               ; @.str.1
	.asciz	": no PHY found on MAC1, let's see if it's attached to MAC0...\n"

l_.str.2:                               ; @.str.2
	.asciz	"no PHY found\n"

	.comm	_au1000_adjust_link,4,2         ; @au1000_adjust_link
	.comm	_PHY_INTERFACE_MODE_MII,4,2     ; @PHY_INTERFACE_MODE_MII
l_.str.3:                               ; @.str.3
	.asciz	"Could not attach to PHY\n"

	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.no_dead_strip	_au1000_mii_probe
.subsections_via_symbols
