	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xge_port_reset                 ## -- Begin function xge_port_reset
	.p2align	4, 0x90
_xge_port_reset:                        ## @xge_port_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	%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
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%rax), %r14
	movq	_ENET_CLKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$3, %edx
	callq	_xge_wr_csr
	movq	_ENET_SRST@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$15, %edx
	callq	_xge_wr_csr
	movl	(%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_xge_wr_csr
	movq	_CFG_MEM_RAM_SHUTDOWN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_xge_wr_csr
	movl	(%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_xge_wr_csr
	movq	$-10, %rbx
	movq	_BLOCK_MEM_RDY@GOTPCREL(%rip), %r12
	movq	_MEM_RDY@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$100, %edi
	movl	$110, %esi
	callq	_usleep_range
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_xge_rd_csr
	movq	(%r13), %rcx
	cmpq	%rcx, %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%rbx), %rdx
	testq	%rbx, %rbx
	movq	%rdx, %rbx
	jne	LBB0_1
LBB0_3:
	cmpq	%rcx, %rax
	jne	LBB0_4
## %bb.5:
	movq	_ENET_SHIM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DEVM_ARAUX_COH@GOTPCREL(%rip), %rax
	movq	_DEVM_AWAUX_COH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_xge_wr_csr
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_dev_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENET_CLKEN,4,2                 ## @ENET_CLKEN
	.comm	_ENET_SRST,4,2                  ## @ENET_SRST
	.comm	_CFG_MEM_RAM_SHUTDOWN,4,2       ## @CFG_MEM_RAM_SHUTDOWN
	.comm	_BLOCK_MEM_RDY,4,2              ## @BLOCK_MEM_RDY
	.comm	_MEM_RDY,8,3                    ## @MEM_RDY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ECC init failed: %x\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_ENET_SHIM,4,2                  ## @ENET_SHIM
	.comm	_DEVM_ARAUX_COH,4,2             ## @DEVM_ARAUX_COH
	.comm	_DEVM_AWAUX_COH,4,2             ## @DEVM_AWAUX_COH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xge_port_reset                 ; -- Begin function xge_port_reset
	.p2align	2
_xge_port_reset:                        ; @xge_port_reset
	.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
	bl	_netdev_priv
	mov	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _ENET_CLKEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENET_CLKEN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #3
	bl	_xge_wr_csr
Lloh3:
	adrp	x21, _ENET_SRST@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ENET_SRST@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #15
	bl	_xge_wr_csr
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_xge_wr_csr
Lloh5:
	adrp	x21, _CFG_MEM_RAM_SHUTDOWN@GOTPAGE
Lloh6:
	ldr	x21, [x21, _CFG_MEM_RAM_SHUTDOWN@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1
	bl	_xge_wr_csr
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_xge_wr_csr
	mov	x21, #-10
Lloh7:
	adrp	x22, _BLOCK_MEM_RDY@GOTPAGE
Lloh8:
	ldr	x22, [x22, _BLOCK_MEM_RDY@GOTPAGEOFF]
Lloh9:
	adrp	x23, _MEM_RDY@GOTPAGE
Lloh10:
	ldr	x23, [x23, _MEM_RDY@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #100
	mov	w1, #110
	bl	_usleep_range
	ldr	w1, [x22]
	mov	x0, x19
	bl	_xge_rd_csr
	ldr	x8, [x23]
	cmp	x0, x8
	ccmp	x21, #0, #4, ne
	add	x21, x21, #1
	b.ne	LBB0_1
; %bb.2:
	mov	x2, x0
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _ENET_SHIM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENET_SHIM@GOTPAGEOFF]
Lloh13:
	adrp	x9, _DEVM_ARAUX_COH@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DEVM_ARAUX_COH@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	ldr	w8, [x9]
Lloh17:
	adrp	x9, _DEVM_AWAUX_COH@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DEVM_AWAUX_COH@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_xge_wr_csr
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh22:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ENET_CLKEN,4,2                 ; @ENET_CLKEN
	.comm	_ENET_SRST,4,2                  ; @ENET_SRST
	.comm	_CFG_MEM_RAM_SHUTDOWN,4,2       ; @CFG_MEM_RAM_SHUTDOWN
	.comm	_BLOCK_MEM_RDY,4,2              ; @BLOCK_MEM_RDY
	.comm	_MEM_RDY,8,3                    ; @MEM_RDY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ECC init failed: %x\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_ENET_SHIM,4,2                  ; @ENET_SHIM
	.comm	_DEVM_ARAUX_COH,4,2             ; @DEVM_ARAUX_COH
	.comm	_DEVM_AWAUX_COH,4,2             ; @DEVM_AWAUX_COH
.subsections_via_symbols
