	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tenxpress_special_reset
_tenxpress_special_reset:               ## @tenxpress_special_reset
	.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
	callq	_falcon_stop_nic_stats
	movq	_MDIO_MMD_PMAPMD@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_PMA_PMD_XCONTROL_REG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_ef4_mdio_read
	movq	_PMA_PMD_EXT_SSR_LBN@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %eax
	movl	(%r15), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_ef4_mdio_write
	movl	$200, %edi
	callq	_mdelay
	movq	_TENXPRESS_REQUIRED_DEVS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ef4_mdio_wait_reset_mmds
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_tenxpress_init
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movl	$10, %edi
	callq	_mdelay
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %ebx
LBB0_4:
	movq	%r14, %rdi
	callq	_falcon_start_nic_stats
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_MMD_PMAPMD,4,2            ## @MDIO_MMD_PMAPMD
	.comm	_PMA_PMD_XCONTROL_REG,4,2       ## @PMA_PMD_XCONTROL_REG
	.comm	_PMA_PMD_EXT_SSR_LBN,4,2        ## @PMA_PMD_EXT_SSR_LBN
	.comm	_TENXPRESS_REQUIRED_DEVS,4,2    ## @TENXPRESS_REQUIRED_DEVS
	.no_dead_strip	_tenxpress_special_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tenxpress_special_reset
_tenxpress_special_reset:               ; @tenxpress_special_reset
	.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
	bl	_falcon_stop_nic_stats
Lloh0:
	adrp	x20, _MDIO_MMD_PMAPMD@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MDIO_MMD_PMAPMD@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x21, _PMA_PMD_XCONTROL_REG@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PMA_PMD_XCONTROL_REG@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ef4_mdio_read
Lloh4:
	adrp	x8, _PMA_PMD_EXT_SSR_LBN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PMA_PMD_EXT_SSR_LBN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	orr	w3, w8, w0
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ef4_mdio_write
	mov	w0, #200
	bl	_mdelay
Lloh7:
	adrp	x8, _TENXPRESS_REQUIRED_DEVS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TENXPRESS_REQUIRED_DEVS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ef4_mdio_wait_reset_mmds
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_tenxpress_init
	mov	x20, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	w0, #10
	bl	_mdelay
	b	LBB0_4
LBB0_3:
	mov	x20, x0
LBB0_4:
	mov	x0, x19
	bl	_falcon_start_nic_stats
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_MMD_PMAPMD,4,2            ; @MDIO_MMD_PMAPMD
	.comm	_PMA_PMD_XCONTROL_REG,4,2       ; @PMA_PMD_XCONTROL_REG
	.comm	_PMA_PMD_EXT_SSR_LBN,4,2        ; @PMA_PMD_EXT_SSR_LBN
	.comm	_TENXPRESS_REQUIRED_DEVS,4,2    ; @TENXPRESS_REQUIRED_DEVS
	.no_dead_strip	_tenxpress_special_reset
.subsections_via_symbols
