	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slic_set_link_autoneg
_slic_set_link_autoneg:                 ## @slic_set_link_autoneg
	.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, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$16, %edx
	movq	_ADVERTISE_1000XFULL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_ADVERTISE_1000XPAUSE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_ADVERTISE_1000XPSE_ASYM@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_SLIC_REG_WPHY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_4
LBB0_2:
	movq	8(%rbx), %rax
	movl	(%rax), %r14d
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$16, %edx
	movq	_ADVERTISE_100FULL@GOTPCREL(%rip), %rax
	movq	_ADVERTISE_100HALF@GOTPCREL(%rip), %rcx
	movq	_ADVERTISE_10FULL@GOTPCREL(%rip), %rsi
	movq	_ADVERTISE_10HALF@GOTPCREL(%rip), %rdi
	movq	_ADVERTISE_PAUSE_CAP@GOTPCREL(%rip), %r8
	movq	_ADVERTISE_PAUSE_ASYM@GOTPCREL(%rip), %r9
	movq	_ADVERTISE_CSMA@GOTPCREL(%rip), %r10
	orl	(%rax), %edx
	orl	(%rcx), %edx
	orl	(%rsi), %edx
	orl	(%rdi), %edx
	orl	(%r8), %edx
	orl	(%r9), %edx
	orl	(%r10), %edx
	movq	_SLIC_REG_WPHY@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_slic_write
	movq	_MII_CTRL1000@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$16, %edx
	movq	_ADVERTISE_1000FULL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_slic_write
	movq	_PCI_SUBDEVICE_ID_ALACRITECH_CICADA@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_3
## %bb.5:
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$16, %edx
	jmp	LBB0_6
LBB0_3:
	movq	_SLIC_MIICR_REG_16@GOTPCREL(%rip), %rax
	movq	_SLIC_MRV_REG16_XOVERON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	(%r15), %esi
LBB0_4:
	movq	%rbx, %rdi
	callq	_slic_write
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$16, %edx
	movq	_BMCR_RESET@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
LBB0_6:
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_BMCR_ANRESTART@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_SLIC_REG_WPHY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_slic_write                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_ADVERTISE_1000XFULL,4,2        ## @ADVERTISE_1000XFULL
	.comm	_ADVERTISE_1000XPAUSE,4,2       ## @ADVERTISE_1000XPAUSE
	.comm	_ADVERTISE_1000XPSE_ASYM,4,2    ## @ADVERTISE_1000XPSE_ASYM
	.comm	_SLIC_REG_WPHY,4,2              ## @SLIC_REG_WPHY
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ## @BMCR_RESET
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_BMCR_ANRESTART,4,2             ## @BMCR_ANRESTART
	.comm	_ADVERTISE_100FULL,4,2          ## @ADVERTISE_100FULL
	.comm	_ADVERTISE_100HALF,4,2          ## @ADVERTISE_100HALF
	.comm	_ADVERTISE_10FULL,4,2           ## @ADVERTISE_10FULL
	.comm	_ADVERTISE_10HALF,4,2           ## @ADVERTISE_10HALF
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ## @ADVERTISE_PAUSE_CAP
	.comm	_ADVERTISE_PAUSE_ASYM,4,2       ## @ADVERTISE_PAUSE_ASYM
	.comm	_ADVERTISE_CSMA,4,2             ## @ADVERTISE_CSMA
	.comm	_MII_CTRL1000,4,2               ## @MII_CTRL1000
	.comm	_ADVERTISE_1000FULL,4,2         ## @ADVERTISE_1000FULL
	.comm	_PCI_SUBDEVICE_ID_ALACRITECH_CICADA,4,2 ## @PCI_SUBDEVICE_ID_ALACRITECH_CICADA
	.comm	_SLIC_MIICR_REG_16,4,2          ## @SLIC_MIICR_REG_16
	.comm	_SLIC_MRV_REG16_XOVERON,4,2     ## @SLIC_MRV_REG16_XOVERON
	.no_dead_strip	_slic_set_link_autoneg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slic_set_link_autoneg
_slic_set_link_autoneg:                 ; @slic_set_link_autoneg
	.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	x8, [x0]
Lloh0:
	adrp	x20, _SLIC_REG_WPHY@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SLIC_REG_WPHY@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh4:
	adrp	x9, _ADVERTISE_1000XFULL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ADVERTISE_1000XFULL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8, lsl #16
Lloh8:
	adrp	x9, _ADVERTISE_1000XPAUSE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ADVERTISE_1000XPAUSE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _ADVERTISE_1000XPSE_ASYM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ADVERTISE_1000XPSE_ASYM@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w8, w9
	b	LBB0_5
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	w21, [x8]
Lloh14:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _ADVERTISE_100FULL@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ADVERTISE_100FULL@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _ADVERTISE_100HALF@GOTPAGE
Lloh21:
	ldr	x10, [x10, _ADVERTISE_100HALF@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
Lloh23:
	adrp	x11, _ADVERTISE_10FULL@GOTPAGE
Lloh24:
	ldr	x11, [x11, _ADVERTISE_10FULL@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x11]
Lloh26:
	adrp	x12, _ADVERTISE_10HALF@GOTPAGE
Lloh27:
	ldr	x12, [x12, _ADVERTISE_10HALF@GOTPAGEOFF]
Lloh28:
	ldr	w12, [x12]
Lloh29:
	adrp	x13, _ADVERTISE_PAUSE_CAP@GOTPAGE
Lloh30:
	ldr	x13, [x13, _ADVERTISE_PAUSE_CAP@GOTPAGEOFF]
Lloh31:
	ldr	w13, [x13]
Lloh32:
	adrp	x14, _ADVERTISE_PAUSE_ASYM@GOTPAGE
Lloh33:
	ldr	x14, [x14, _ADVERTISE_PAUSE_ASYM@GOTPAGEOFF]
Lloh34:
	ldr	w14, [x14]
Lloh35:
	adrp	x15, _ADVERTISE_CSMA@GOTPAGE
Lloh36:
	ldr	x15, [x15, _ADVERTISE_CSMA@GOTPAGEOFF]
Lloh37:
	ldr	w15, [x15]
	orr	w8, w9, w8, lsl #16
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w8, w8, w12
	orr	w8, w8, w13
	orr	w8, w8, w14
	orr	w2, w8, w15
	ldr	w1, [x20]
	mov	x0, x19
	bl	_slic_write
Lloh38:
	adrp	x8, _MII_CTRL1000@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MII_CTRL1000@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	adrp	x9, _ADVERTISE_1000FULL@GOTPAGE
Lloh42:
	ldr	x9, [x9, _ADVERTISE_1000FULL@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w2, w9, w8, lsl #16
	ldr	w1, [x20]
	mov	x0, x19
	bl	_slic_write
Lloh44:
	adrp	x8, _PCI_SUBDEVICE_ID_ALACRITECH_CICADA@GOTPAGE
Lloh45:
	ldr	x8, [x8, _PCI_SUBDEVICE_ID_ALACRITECH_CICADA@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_4
; %bb.3:
Lloh47:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	lsl	w8, w8, #16
	b	LBB0_6
LBB0_4:
Lloh50:
	adrp	x8, _SLIC_MIICR_REG_16@GOTPAGE
Lloh51:
	ldr	x8, [x8, _SLIC_MIICR_REG_16@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
Lloh53:
	adrp	x9, _SLIC_MRV_REG16_XOVERON@GOTPAGE
Lloh54:
	ldr	x9, [x9, _SLIC_MRV_REG16_XOVERON@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	orr	w2, w9, w8
LBB0_5:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_slic_write
Lloh56:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh57:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
Lloh59:
	adrp	x9, _BMCR_RESET@GOTPAGE
Lloh60:
	ldr	x9, [x9, _BMCR_RESET@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	orr	w8, w9, w8, lsl #16
LBB0_6:
Lloh62:
	adrp	x9, _BMCR_ANENABLE@GOTPAGE
Lloh63:
	ldr	x9, [x9, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh65:
	adrp	x9, _BMCR_ANRESTART@GOTPAGE
Lloh66:
	ldr	x9, [x9, _BMCR_ANRESTART@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x9]
	orr	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	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
	b	_slic_write
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_ADVERTISE_1000XFULL,4,2        ; @ADVERTISE_1000XFULL
	.comm	_ADVERTISE_1000XPAUSE,4,2       ; @ADVERTISE_1000XPAUSE
	.comm	_ADVERTISE_1000XPSE_ASYM,4,2    ; @ADVERTISE_1000XPSE_ASYM
	.comm	_SLIC_REG_WPHY,4,2              ; @SLIC_REG_WPHY
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ; @BMCR_RESET
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_BMCR_ANRESTART,4,2             ; @BMCR_ANRESTART
	.comm	_ADVERTISE_100FULL,4,2          ; @ADVERTISE_100FULL
	.comm	_ADVERTISE_100HALF,4,2          ; @ADVERTISE_100HALF
	.comm	_ADVERTISE_10FULL,4,2           ; @ADVERTISE_10FULL
	.comm	_ADVERTISE_10HALF,4,2           ; @ADVERTISE_10HALF
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ; @ADVERTISE_PAUSE_CAP
	.comm	_ADVERTISE_PAUSE_ASYM,4,2       ; @ADVERTISE_PAUSE_ASYM
	.comm	_ADVERTISE_CSMA,4,2             ; @ADVERTISE_CSMA
	.comm	_MII_CTRL1000,4,2               ; @MII_CTRL1000
	.comm	_ADVERTISE_1000FULL,4,2         ; @ADVERTISE_1000FULL
	.comm	_PCI_SUBDEVICE_ID_ALACRITECH_CICADA,4,2 ; @PCI_SUBDEVICE_ID_ALACRITECH_CICADA
	.comm	_SLIC_MIICR_REG_16,4,2          ; @SLIC_MIICR_REG_16
	.comm	_SLIC_MRV_REG16_XOVERON,4,2     ; @SLIC_MRV_REG16_XOVERON
	.no_dead_strip	_slic_set_link_autoneg
.subsections_via_symbols
