	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ns_giga_speed_fallback
_ns_giga_speed_fallback:                ## @ns_giga_speed_fallback
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_MII_BMCR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_phy_read
	movl	%eax, %r15d
	movl	(%r12), %esi
	movq	_BMCR_PDOWN@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	orl	%eax, %edx
	movq	%rbx, %rdi
	callq	_phy_write
	movq	_NS_EXP_MEM_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_phy_write
	movq	_NS_EXP_MEM_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$448, %edx                      ## imm = 0x1C0
	callq	_phy_write
	movq	_NS_EXP_MEM_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_phy_write
	movl	(%r12), %esi
	movl	(%r13), %edx
	notl	%edx
	andl	%r15d, %edx
	movq	%rbx, %rdi
	callq	_phy_write
	movq	_LED_CTRL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_PDOWN,4,2                 ## @BMCR_PDOWN
	.comm	_NS_EXP_MEM_CTL,4,2             ## @NS_EXP_MEM_CTL
	.comm	_NS_EXP_MEM_ADD,4,2             ## @NS_EXP_MEM_ADD
	.comm	_NS_EXP_MEM_DATA,4,2            ## @NS_EXP_MEM_DATA
	.comm	_LED_CTRL_REG,4,2               ## @LED_CTRL_REG
	.no_dead_strip	_ns_giga_speed_fallback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ns_giga_speed_fallback
_ns_giga_speed_fallback:                ; @ns_giga_speed_fallback
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _MII_BMCR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MII_BMCR@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_phy_read
	mov	x21, x0
	ldr	w1, [x22]
Lloh2:
	adrp	x23, _BMCR_PDOWN@GOTPAGE
Lloh3:
	ldr	x23, [x23, _BMCR_PDOWN@GOTPAGEOFF]
	ldr	w8, [x23]
	orr	w2, w8, w0
	mov	x0, x20
	bl	_phy_write
Lloh4:
	adrp	x8, _NS_EXP_MEM_CTL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NS_EXP_MEM_CTL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_phy_write
Lloh7:
	adrp	x8, _NS_EXP_MEM_ADD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NS_EXP_MEM_ADD@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #448
	bl	_phy_write
Lloh10:
	adrp	x8, _NS_EXP_MEM_DATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NS_EXP_MEM_DATA@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #8
	bl	_phy_write
	ldr	w1, [x22]
	ldr	w8, [x23]
	bic	w2, w21, w8
	mov	x0, x20
	bl	_phy_write
Lloh13:
	adrp	x8, _LED_CTRL_REG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LED_CTRL_REG@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	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	_phy_write
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_PDOWN,4,2                 ; @BMCR_PDOWN
	.comm	_NS_EXP_MEM_CTL,4,2             ; @NS_EXP_MEM_CTL
	.comm	_NS_EXP_MEM_ADD,4,2             ; @NS_EXP_MEM_ADD
	.comm	_NS_EXP_MEM_DATA,4,2            ; @NS_EXP_MEM_DATA
	.comm	_LED_CTRL_REG,4,2               ; @LED_CTRL_REG
	.no_dead_strip	_ns_giga_speed_fallback
.subsections_via_symbols
