	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_enet_ecc_init
_xgene_enet_ecc_init:                   ## @xgene_enet_ecc_init
	.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
	movq	%rdi, %r12
	movq	(%rdi), %r14
	movq	_ENET_CFG_MEM_RAM_SHUTDOWN_ADDR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_xgene_enet_rd_diag_csr
	movl	%eax, %ebx
	movq	_ENET_BLOCK_MEM_RDY_ADDR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_xgene_enet_rd_diag_csr
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.1:
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_dbg
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_3:
	movl	(%r15), %esi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_xgene_enet_wr_diag_csr
	movl	$100, %edi
	movl	$110, %esi
	callq	_usleep_range
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_xgene_enet_rd_diag_csr
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.4:
	movl	$100, %edi
	movl	$110, %esi
	callq	_usleep_range
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_xgene_enet_rd_diag_csr
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.5:
	movl	$100, %edi
	movl	$110, %esi
	callq	_usleep_range
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_xgene_enet_rd_diag_csr
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.6:
	movl	$100, %edi
	movl	$110, %esi
	callq	_usleep_range
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_xgene_enet_rd_diag_csr
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.7:
	movl	$100, %edi
	movl	$110, %esi
	callq	_usleep_range
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_xgene_enet_rd_diag_csr
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.8:
	movl	$100, %edi
	movl	$110, %esi
	callq	_usleep_range
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_xgene_enet_rd_diag_csr
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.9:
	movl	$100, %edi
	movl	$110, %esi
	callq	_usleep_range
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_xgene_enet_rd_diag_csr
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.10:
	movl	$100, %edi
	movl	$110, %esi
	callq	_usleep_range
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_xgene_enet_rd_diag_csr
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.11:
	movl	$100, %edi
	movl	$110, %esi
	callq	_usleep_range
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_xgene_enet_rd_diag_csr
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.12:
	movl	$100, %edi
	movl	$110, %esi
	callq	_usleep_range
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_xgene_enet_rd_diag_csr
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENET_CFG_MEM_RAM_SHUTDOWN_ADDR,4,2 ## @ENET_CFG_MEM_RAM_SHUTDOWN_ADDR
	.comm	_ENET_BLOCK_MEM_RDY_ADDR,4,2    ## @ENET_BLOCK_MEM_RDY_ADDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"+ ecc_init done, skipping\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to release memory from shutdown\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_xgene_enet_ecc_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_enet_ecc_init
_xgene_enet_ecc_init:                   ; @xgene_enet_ecc_init
	.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	x20, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x23, _ENET_CFG_MEM_RAM_SHUTDOWN_ADDR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ENET_CFG_MEM_RAM_SHUTDOWN_ADDR@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_xgene_enet_rd_diag_csr
	mov	x21, x0
Lloh2:
	adrp	x22, _ENET_BLOCK_MEM_RDY_ADDR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ENET_BLOCK_MEM_RDY_ADDR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_xgene_enet_rd_diag_csr
	cmp	w21, #0
	ccmn	w0, #1, #0, eq
	b.eq	LBB0_12
; %bb.1:
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #0
	bl	_xgene_enet_wr_diag_csr
	mov	w0, #100
	mov	w1, #110
	bl	_usleep_range
	ldr	w1, [x22]
	mov	x0, x20
	bl	_xgene_enet_rd_diag_csr
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.2:
	mov	w0, #100
	mov	w1, #110
	bl	_usleep_range
	ldr	w1, [x22]
	mov	x0, x20
	bl	_xgene_enet_rd_diag_csr
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.3:
	mov	w0, #100
	mov	w1, #110
	bl	_usleep_range
	ldr	w1, [x22]
	mov	x0, x20
	bl	_xgene_enet_rd_diag_csr
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.4:
	mov	w0, #100
	mov	w1, #110
	bl	_usleep_range
	ldr	w1, [x22]
	mov	x0, x20
	bl	_xgene_enet_rd_diag_csr
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.5:
	mov	w0, #100
	mov	w1, #110
	bl	_usleep_range
	ldr	w1, [x22]
	mov	x0, x20
	bl	_xgene_enet_rd_diag_csr
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.6:
	mov	w0, #100
	mov	w1, #110
	bl	_usleep_range
	ldr	w1, [x22]
	mov	x0, x20
	bl	_xgene_enet_rd_diag_csr
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.7:
	mov	w0, #100
	mov	w1, #110
	bl	_usleep_range
	ldr	w1, [x22]
	mov	x0, x20
	bl	_xgene_enet_rd_diag_csr
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.8:
	mov	w0, #100
	mov	w1, #110
	bl	_usleep_range
	ldr	w1, [x22]
	mov	x0, x20
	bl	_xgene_enet_rd_diag_csr
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.9:
	mov	w0, #100
	mov	w1, #110
	bl	_usleep_range
	ldr	w1, [x22]
	mov	x0, x20
	bl	_xgene_enet_rd_diag_csr
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.10:
	mov	w0, #100
	mov	w1, #110
	bl	_usleep_range
	ldr	w1, [x22]
	mov	x0, x20
	bl	_xgene_enet_rd_diag_csr
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.11:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_12:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
LBB0_13:
	mov	w0, #0
LBB0_14:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENET_CFG_MEM_RAM_SHUTDOWN_ADDR,4,2 ; @ENET_CFG_MEM_RAM_SHUTDOWN_ADDR
	.comm	_ENET_BLOCK_MEM_RDY_ADDR,4,2    ; @ENET_BLOCK_MEM_RDY_ADDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"+ ecc_init done, skipping\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to release memory from shutdown\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_xgene_enet_ecc_init
.subsections_via_symbols
