	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spider_net_setup_aneg
_spider_net_setup_aneg:                 ## @spider_net_setup_aneg
	.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, %r14
	movl	(%rdi), %edi
	movl	16(%r14), %esi
	movq	_MII_BMSR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_spider_net_read_phy
	movl	%eax, %r15d
	movl	(%r14), %edi
	movl	16(%r14), %esi
	movq	_MII_ESTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_spider_net_read_phy
	movq	_BMSR_10HALF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r15d, %ecx
	je	LBB0_2
## %bb.1:
	movq	_ADVERTISED_10baseT_Half@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	movq	_BMSR_10FULL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	andl	%r15d, %ebx
	je	LBB0_4
## %bb.3:
	movq	_ADVERTISED_10baseT_Full@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
LBB0_4:
	movq	_BMSR_100HALF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%r15d, %edx
	je	LBB0_6
## %bb.5:
	movq	_ADVERTISED_100baseT_Half@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_6:
	orl	%ecx, %ebx
	movq	_BMSR_100FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r15d, %ecx
	je	LBB0_8
## %bb.7:
	movq	_ADVERTISED_100baseT_Full@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_8:
	orl	%ecx, %edx
	orl	%edx, %ebx
	movq	_BMSR_ESTATEN@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_13
## %bb.9:
	movq	_ESTATUS_1000_TFULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_11
## %bb.10:
	movq	_SUPPORTED_1000baseT_Full@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_11:
	orl	%ecx, %ebx
	movq	_ESTATUS_1000_THALF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	movq	_SUPPORTED_1000baseT_Half@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_13:
	leaq	8(%r14), %r15
	movl	16(%r14), %esi
	movq	%r15, %rdi
	callq	_sungem_phy_probe
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%r15, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BMSR,4,2                   ## @MII_BMSR
	.comm	_MII_ESTATUS,4,2                ## @MII_ESTATUS
	.comm	_BMSR_10HALF,4,2                ## @BMSR_10HALF
	.comm	_ADVERTISED_10baseT_Half,4,2    ## @ADVERTISED_10baseT_Half
	.comm	_BMSR_10FULL,4,2                ## @BMSR_10FULL
	.comm	_ADVERTISED_10baseT_Full,4,2    ## @ADVERTISED_10baseT_Full
	.comm	_BMSR_100HALF,4,2               ## @BMSR_100HALF
	.comm	_ADVERTISED_100baseT_Half,4,2   ## @ADVERTISED_100baseT_Half
	.comm	_BMSR_100FULL,4,2               ## @BMSR_100FULL
	.comm	_ADVERTISED_100baseT_Full,4,2   ## @ADVERTISED_100baseT_Full
	.comm	_BMSR_ESTATEN,4,2               ## @BMSR_ESTATEN
	.comm	_ESTATUS_1000_TFULL,4,2         ## @ESTATUS_1000_TFULL
	.comm	_SUPPORTED_1000baseT_Full,4,2   ## @SUPPORTED_1000baseT_Full
	.comm	_ESTATUS_1000_THALF,4,2         ## @ESTATUS_1000_THALF
	.comm	_SUPPORTED_1000baseT_Half,4,2   ## @SUPPORTED_1000baseT_Half
	.no_dead_strip	_spider_net_setup_aneg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spider_net_setup_aneg
_spider_net_setup_aneg:                 ; @spider_net_setup_aneg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldr	w0, [x0]
	ldr	w1, [x19, #16]
Lloh0:
	adrp	x8, _MII_BMSR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_BMSR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_spider_net_read_phy
	mov	x21, x0
	ldr	w0, [x19]
	ldr	w1, [x19, #16]
Lloh3:
	adrp	x8, _MII_ESTATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MII_ESTATUS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_spider_net_read_phy
Lloh6:
	adrp	x8, _BMSR_10HALF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BMSR_10HALF@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _ADVERTISED_10baseT_Half@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ADVERTISED_10baseT_Half@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w8, w21
Lloh12:
	adrp	x8, _BMSR_10FULL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BMSR_10FULL@GOTPAGEOFF]
	csel	w9, wzr, w9, eq
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x10, _ADVERTISED_10baseT_Full@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ADVERTISED_10baseT_Full@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w8, w21
	csel	w8, wzr, w10, eq
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _BMSR_100HALF@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BMSR_100HALF@GOTPAGEOFF]
Lloh20:
	adrp	x10, _ADVERTISED_100baseT_Half@GOTPAGE
Lloh21:
	ldr	x10, [x10, _ADVERTISED_100baseT_Half@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	ldr	w10, [x10]
	tst	w9, w21
	csel	w9, wzr, w10, eq
Lloh24:
	adrp	x10, _BMSR_100FULL@GOTPAGE
Lloh25:
	ldr	x10, [x10, _BMSR_100FULL@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh26:
	ldr	w9, [x10]
Lloh27:
	adrp	x10, _ADVERTISED_100baseT_Full@GOTPAGE
Lloh28:
	ldr	x10, [x10, _ADVERTISED_100baseT_Full@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	tst	w9, w21
	csel	w9, wzr, w10, eq
	orr	w20, w8, w9
Lloh30:
	adrp	x8, _BMSR_ESTATEN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BMSR_ESTATEN@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_3
; %bb.1:
Lloh33:
	adrp	x8, _ESTATUS_1000_TFULL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ESTATUS_1000_TFULL@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _SUPPORTED_1000baseT_Full@GOTPAGE
Lloh37:
	ldr	x9, [x9, _SUPPORTED_1000baseT_Full@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	tst	w8, w0
	csel	w8, wzr, w9, eq
	orr	w20, w8, w20
Lloh39:
	adrp	x8, _ESTATUS_1000_THALF@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ESTATUS_1000_THALF@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
Lloh42:
	adrp	x8, _SUPPORTED_1000baseT_Half@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SUPPORTED_1000baseT_Half@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_3:
	add	x21, x19, #8
	ldr	w1, [x19, #16]
	mov	x0, x21
	bl	_sungem_phy_probe
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x2, [x8]
	mov	x0, x21
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x2
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BMSR,4,2                   ; @MII_BMSR
	.comm	_MII_ESTATUS,4,2                ; @MII_ESTATUS
	.comm	_BMSR_10HALF,4,2                ; @BMSR_10HALF
	.comm	_ADVERTISED_10baseT_Half,4,2    ; @ADVERTISED_10baseT_Half
	.comm	_BMSR_10FULL,4,2                ; @BMSR_10FULL
	.comm	_ADVERTISED_10baseT_Full,4,2    ; @ADVERTISED_10baseT_Full
	.comm	_BMSR_100HALF,4,2               ; @BMSR_100HALF
	.comm	_ADVERTISED_100baseT_Half,4,2   ; @ADVERTISED_100baseT_Half
	.comm	_BMSR_100FULL,4,2               ; @BMSR_100FULL
	.comm	_ADVERTISED_100baseT_Full,4,2   ; @ADVERTISED_100baseT_Full
	.comm	_BMSR_ESTATEN,4,2               ; @BMSR_ESTATEN
	.comm	_ESTATUS_1000_TFULL,4,2         ; @ESTATUS_1000_TFULL
	.comm	_SUPPORTED_1000baseT_Full,4,2   ; @SUPPORTED_1000baseT_Full
	.comm	_ESTATUS_1000_THALF,4,2         ; @ESTATUS_1000_THALF
	.comm	_SUPPORTED_1000baseT_Half,4,2   ; @SUPPORTED_1000baseT_Half
	.no_dead_strip	_spider_net_setup_aneg
.subsections_via_symbols
