	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function xgene_enet_init_hw
LCPI0_0:
	.long	512                             ## 0x200
	.long	1024                            ## 0x400
	.long	3                               ## 0x3
	.long	8                               ## 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_xgene_enet_init_hw:                    ## @xgene_enet_init_hw
	.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, %r15
	movq	32(%rdi), %rax
	movq	64(%rdi), %r14
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.1:
	movq	%r14, %rdi
	callq	_xgene_enet_create_desc_rings
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	jmp	LBB0_19
LBB0_3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r15)
	jle	LBB0_8
## %bb.4:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %rax
	movq	(%rax,%r14,8), %rax
	movq	8(%rax), %rbx
	movq	%rbx, %rdi
	callq	_xgene_enet_init_bufpool
	movq	40(%r15), %rax
	movq	(%rax,%r14,8), %rax
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_xgene_enet_init_bufpool
	movl	56(%r15), %r13d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_xgene_enet_refill_bufpool
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_xgene_enet_refill_pagepool
	testl	%eax, %eax
	jne	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	movslq	(%r15), %rax
	cmpq	%rax, %r14
	jl	LBB0_5
LBB0_8:
	movq	40(%r15), %rax
	movq	(%rax), %rdi
	callq	_xgene_enet_dst_ring_num
	movq	8(%r15), %rax
	movq	_PHY_INTERFACE_MODE_XGMII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.9:
	movq	_PARSER_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 88(%r15)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [512,1024,3,8]
	movups	%xmm0, 72(%r15)
	movq	48(%r15), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_18
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	jmp	LBB0_15
LBB0_14:
	movl	%eax, %ebx
LBB0_15:
	movq	%r15, %rdi
	callq	_xgene_enet_delete_desc_rings
	jmp	LBB0_19
LBB0_11:
	movq	40(%r15), %rax
	movq	(%rax), %rdi
	callq	_xgene_enet_dst_ring_num
	movq	40(%r15), %rcx
	movq	(%rcx), %rdx
	movq	(%rdx), %rcx
	movq	8(%rdx), %rdx
	testq	%rcx, %rcx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_16
## %bb.12:
	movl	(%rcx), %ecx
	jmp	LBB0_17
LBB0_16:
	xorl	%ecx, %ecx
LBB0_17:
	movq	32(%r15), %rbx
	movl	(%rdx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	*8(%rbx)
LBB0_18:
	movq	_XGENE_ENET_MAX_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	16(%r15), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	xorl	%ebx, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error in ring configuration\n"

	.comm	_PHY_INTERFACE_MODE_XGMII,8,3   ## @PHY_INTERFACE_MODE_XGMII
	.comm	_PARSER_ALL,4,2                 ## @PARSER_ALL
L_.str.1:                               ## @.str.1
	.asciz	"Preclass Tree init error\n"

	.comm	_XGENE_ENET_MAX_MTU,4,2         ## @XGENE_ENET_MAX_MTU
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.no_dead_strip	_xgene_enet_init_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function xgene_enet_init_hw
lCPI0_0:
	.long	512                             ; 0x200
	.long	1024                            ; 0x400
	.long	3                               ; 0x3
	.long	8                               ; 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_xgene_enet_init_hw:                    ; @xgene_enet_init_hw
	.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, x0
	ldr	x20, [x0, #64]
	ldr	x8, [x0, #32]
	ldr	x8, [x8]
	blr	x8
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.1:
	mov	x0, x20
	bl	_xgene_enet_create_desc_rings
	cbz	w0, LBB0_3
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	b	LBB0_18
LBB0_3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x24, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	lsl	x22, x24, #3
	ldr	x8, [x8, x22]
	ldr	x21, [x8, #8]
	mov	x0, x21
	bl	_xgene_enet_init_bufpool
	ldr	x8, [x19, #40]
	ldr	x8, [x8, x22]
	ldr	x22, [x8]
	mov	x0, x22
	bl	_xgene_enet_init_bufpool
	ldr	w23, [x19, #56]
	mov	x0, x21
	mov	x1, x23
	bl	_xgene_enet_refill_bufpool
	cbnz	w0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_xgene_enet_refill_pagepool
	cbnz	w0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19]
	cmp	x24, x8
	b.lt	LBB0_5
LBB0_8:
	ldr	x8, [x19, #40]
	ldr	x0, [x8]
	bl	_xgene_enet_dst_ring_num
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _PHY_INTERFACE_MODE_XGMII@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_XGMII@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.9:
Lloh5:
	adrp	x8, _PARSER_ALL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PARSER_ALL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #104]
	stp	xzr, xzr, [x19, #88]
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x19, #72]
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_17
; %bb.10:
	mov	x21, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	b	LBB0_12
LBB0_11:
	mov	x21, x0
LBB0_12:
	mov	x0, x19
	bl	_xgene_enet_delete_desc_rings
	b	LBB0_18
LBB0_13:
	ldr	x8, [x19, #40]
	ldr	x0, [x8]
	bl	_xgene_enet_dst_ring_num
	mov	x1, x0
	ldr	x8, [x19, #40]
	ldr	x9, [x8]
	ldp	x9, x8, [x9]
	cbz	x9, LBB0_15
; %bb.14:
	ldr	w3, [x9]
	b	LBB0_16
LBB0_15:
	mov	w3, #0
LBB0_16:
	ldr	x9, [x19, #32]
	ldr	x9, [x9, #8]
	ldr	w2, [x8]
	mov	x0, x19
	blr	x9
LBB0_17:
Lloh12:
	adrp	x8, _XGENE_ENET_MAX_MTU@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XGENE_ENET_MAX_MTU@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh15:
	adrp	x8, _SPEED_UNKNOWN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	w21, #0
LBB0_18:
	mov	x0, x21
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error in ring configuration\n"

	.comm	_PHY_INTERFACE_MODE_XGMII,8,3   ; @PHY_INTERFACE_MODE_XGMII
	.comm	_PARSER_ALL,4,2                 ; @PARSER_ALL
l_.str.1:                               ; @.str.1
	.asciz	"Preclass Tree init error\n"

	.comm	_XGENE_ENET_MAX_MTU,4,2         ; @XGENE_ENET_MAX_MTU
	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.no_dead_strip	_xgene_enet_init_hw
.subsections_via_symbols
