	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spider_net_link_phy
_spider_net_link_phy:                   ## @spider_net_link_phy
	.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	_aneg_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	movq	%rax, %rbx
	leaq	32(%rax), %r14
	movq	(%rax), %rax
	movq	_SPIDER_NET_ANEG_TIMEOUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_6
## %bb.1:
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movl	8(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_9
## %bb.2:
	cmpl	$129, %eax
	je	LBB0_10
## %bb.3:
	cmpl	$130, %eax
	jne	LBB0_14
## %bb.4:
	movq	48(%rbx), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rcx
	movl	$129, %r15d
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.5:
	movq	%r14, %rdi
	movl	$1, %esi
	jmp	LBB0_12
LBB0_6:
	movq	48(%rbx), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	48(%rbx), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	movq	_SPIDER_NET_GMACST@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_spider_net_read_reg
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_spider_net_write_reg
	movq	_SPIDER_NET_GMACINTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_spider_net_write_reg
	xorl	%edx, %edx
	cmpl	$1000, 32(%rbx)                 ## imm = 0x3E8
	sete	%dl
	movq	_SPIDER_NET_GMACMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_spider_net_write_reg
	movq	$0, (%rbx)
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	cmpl	$1, 36(%rbx)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rax, %rcx
	movl	32(%rbx), %edx
	cmpl	$1, 40(%rbx)
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.5(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_info                        ## TAILCALL
LBB0_8:
	incq	(%rbx)
	jmp	LBB0_15
LBB0_9:
	movq	%rbx, %rdi
	callq	_spider_net_setup_aneg
	movl	$130, %r15d
	jmp	LBB0_13
LBB0_10:
	movq	48(%rbx), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rcx
	movl	$128, %r15d
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.11:
	movq	%r14, %rdi
	xorl	%esi, %esi
LBB0_12:
	callq	*%rcx
LBB0_13:
	movl	%r15d, 8(%rbx)
LBB0_14:
	movq	$0, (%rbx)
LBB0_15:
	addq	$24, %rbx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_SPIDER_NET_ANEG_TIMER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_aneg_timer,4,2                 ## @aneg_timer
	.comm	_SPIDER_NET_ANEG_TIMEOUT,8,3    ## @SPIDER_NET_ANEG_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: link is down trying to bring it up\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_SPIDER_NET_ANEG_TIMER,8,3      ## @SPIDER_NET_ANEG_TIMER
	.comm	_SPIDER_NET_GMACST,4,2          ## @SPIDER_NET_GMACST
	.comm	_SPIDER_NET_GMACINTEN,4,2       ## @SPIDER_NET_GMACINTEN
	.comm	_SPIDER_NET_GMACMODE,4,2        ## @SPIDER_NET_GMACMODE
L_.str.1:                               ## @.str.1
	.asciz	"%s: link up, %i Mbps, %s-duplex %sautoneg.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Full"

L_.str.3:                               ## @.str.3
	.asciz	"Half"

L_.str.4:                               ## @.str.4
	.space	1

L_.str.5:                               ## @.str.5
	.asciz	"no "

	.comm	_card,8,3                       ## @card
	.no_dead_strip	_spider_net_link_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spider_net_link_phy
_spider_net_link_phy:                   ; @spider_net_link_phy
	.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
Lloh0:
	adrp	x8, _aneg_timer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _aneg_timer@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	mov	x19, x0
	mov	x20, x0
	ldr	x8, [x20], #32
Lloh3:
	adrp	x9, _SPIDER_NET_ANEG_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SPIDER_NET_ANEG_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_6
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	w8, [x19, #8]
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.2:
	cmp	w8, #129
	b.eq	LBB0_10
; %bb.3:
	cmp	w8, #130
	b.ne	LBB0_15
; %bb.4:
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_13
; %bb.5:
	mov	x0, x20
	mov	w1, #1
	blr	x8
	mov	w8, #129
	b	LBB0_14
LBB0_6:
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	mov	x0, x20
	blr	x8
	cbz	w0, LBB0_8
; %bb.7:
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
Lloh8:
	adrp	x8, _SPIDER_NET_GMACST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SPIDER_NET_GMACST@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_spider_net_read_reg
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_spider_net_write_reg
Lloh11:
	adrp	x8, _SPIDER_NET_GMACINTEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SPIDER_NET_GMACINTEN@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #4
	bl	_spider_net_write_reg
	ldr	w8, [x19, #32]
	cmp	w8, #1000
	cset	w2, eq
Lloh14:
	adrp	x8, _SPIDER_NET_GMACMODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SPIDER_NET_GMACMODE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_spider_net_write_reg
	str	xzr, [x19]
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
	ldp	w2, w8, [x19, #32]
Lloh17:
	adrp	x9, l_.str.3@PAGE
Lloh18:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh19:
	adrp	x10, l_.str.2@PAGE
Lloh20:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #1
	csel	x3, x10, x9, eq
Lloh21:
	adrp	x8, l_.str.5@PAGE
Lloh22:
	add	x8, x8, l_.str.5@PAGEOFF
	ldr	w9, [x19, #40]
Lloh23:
	adrp	x10, l_.str.4@PAGE
Lloh24:
	add	x10, x10, l_.str.4@PAGEOFF
	cmp	w9, #1
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	csel	x4, x10, x8, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pr_info
LBB0_8:
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19], #24
	b	LBB0_16
LBB0_9:
	mov	x0, x19
	bl	_spider_net_setup_aneg
	mov	w8, #130
	b	LBB0_14
LBB0_10:
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x20
	mov	w1, #0
	blr	x8
LBB0_12:
	mov	w8, #128
	b	LBB0_14
LBB0_13:
	mov	w8, #129
LBB0_14:
	str	w8, [x19, #8]
LBB0_15:
	str	xzr, [x19], #24
LBB0_16:
Lloh27:
	adrp	x8, _jiffies@GOTPAGE
Lloh28:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
Lloh30:
	adrp	x9, _SPIDER_NET_ANEG_TIMER@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SPIDER_NET_ANEG_TIMER@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mod_timer
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_aneg_timer,4,2                 ; @aneg_timer
	.comm	_SPIDER_NET_ANEG_TIMEOUT,8,3    ; @SPIDER_NET_ANEG_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: link is down trying to bring it up\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_SPIDER_NET_ANEG_TIMER,8,3      ; @SPIDER_NET_ANEG_TIMER
	.comm	_SPIDER_NET_GMACST,4,2          ; @SPIDER_NET_GMACST
	.comm	_SPIDER_NET_GMACINTEN,4,2       ; @SPIDER_NET_GMACINTEN
	.comm	_SPIDER_NET_GMACMODE,4,2        ; @SPIDER_NET_GMACMODE
l_.str.1:                               ; @.str.1
	.asciz	"%s: link up, %i Mbps, %s-duplex %sautoneg.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Full"

l_.str.3:                               ; @.str.3
	.asciz	"Half"

l_.str.4:                               ; @.str.4
	.space	1

l_.str.5:                               ; @.str.5
	.asciz	"no "

	.comm	_card,8,3                       ; @card
	.no_dead_strip	_spider_net_link_phy
.subsections_via_symbols
