	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_enet_cle_init
_xgene_enet_cle_init:                   ## @xgene_enet_cle_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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DB_MAX_PTRS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	imulq	$56, %rax, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	(%r15), %rax
	movq	_PHY_INTERFACE_MODE_XGMII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movl	$12, 24(%r15)
	movq	%r15, %rdi
	callq	_xgene_cle_setup_rss
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	16(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	leaq	24(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rax
	movq	(%rax), %rdi
	callq	_xgene_enet_dst_ring_num
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rdi
	callq	_xgene_enet_get_fpsel
	movq	%rax, %r13
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	(%rax), %rdi
	callq	_xgene_enet_get_fpsel
	movq	%rax, %rbx
	jmp	LBB0_7
LBB0_5:
	xorl	%ebx, %ebx
LBB0_7:
	imull	$56, (%r12), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_DB_RES_ACCEPT@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	imulq	$56, %rcx, %rax
	movq	%r13, 48(%r14,%rax)
	movq	%rbx, 40(%r14,%rax)
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rsi, 32(%r14,%rax)
	movl	$1, (%r14,%rax)
	movq	_DB_RES_DEF@GOTPCREL(%rip), %rax
	imulq	$56, (%rax), %rax
	movq	%r14, %rdx
	addq	%rax, %rdx
	movq	%r13, 48(%r14,%rax)
	movq	%rbx, 40(%r14,%rax)
	movq	%rsi, 32(%r14,%rax)
	movl	$7, (%r14,%rax)
	movq	%r15, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	$7, %r8d
	callq	_xgene_cle_setup_def_dbptr
	movq	_DB_RES_DROP@GOTPCREL(%rip), %rax
	imulq	$56, (%rax), %rax
	movl	$1, 4(%r14,%rax)
	leaq	-120(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	_KN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movl	$1, -112(%rbp)
	movq	-104(%rbp), %rax
	movq	$0, 8(%rax)
	movq	_DB_RES_ACCEPT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	movq	%r13, 48(%r15)
	movq	%r14, 40(%r15)
	movl	$1, 28(%r15)
	movl	(%r12), %eax
	movl	%eax, 32(%r15)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_xgene_cle_setup_ptree
	movl	%eax, %ebx
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DB_MAX_PTRS,4,2                ## @DB_MAX_PTRS
	.comm	_PHY_INTERFACE_MODE_XGMII,8,3   ## @PHY_INTERFACE_MODE_XGMII
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RSS initialization failed\n"

	.comm	_DB_RES_ACCEPT,8,3              ## @DB_RES_ACCEPT
	.comm	_DB_RES_DEF,8,3                 ## @DB_RES_DEF
	.comm	_DB_RES_DROP,8,3                ## @DB_RES_DROP
	.comm	_KN,4,2                         ## @KN
	.no_dead_strip	_xgene_enet_cle_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_cle_init
_xgene_enet_cle_init:                   ; @xgene_enet_cle_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #64
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x25, _DB_MAX_PTRS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _DB_MAX_PTRS@GOTPAGEOFF]
	stur	x8, [x29, #-88]
	ldr	w8, [x25]
	mov	w9, #56
	mul	x9, x8, x9
	add	x8, x9, #15
	and	x8, x8, #0x7ffffffff0
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x21, x9, x8
	mov	sp, x21
	mov	x20, x0
	ldr	x8, [x20], #24
Lloh7:
	adrp	x9, _PHY_INTERFACE_MODE_XGMII@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_XGMII@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	w8, #12
	str	w8, [x19, #24]
	mov	x0, x19
	bl	_xgene_cle_setup_rss
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
	ldr	w0, [x19, #16]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	b	LBB0_8
LBB0_3:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	bl	_xgene_enet_dst_ring_num
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	x0, [x8]
	bl	_xgene_enet_get_fpsel
	mov	x23, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x0, [x8]
	bl	_xgene_enet_get_fpsel
	mov	x24, x0
	b	LBB0_7
LBB0_6:
	mov	x24, #0
LBB0_7:
	ldr	w8, [x25]
	mov	w26, #56
	mul	w2, w8, w26
	mov	x0, x21
	mov	w1, #0
	bl	_memset
Lloh15:
	adrp	x27, _DB_RES_ACCEPT@GOTPAGE
Lloh16:
	ldr	x27, [x27, _DB_RES_ACCEPT@GOTPAGEOFF]
	ldr	x3, [x27]
	madd	x8, x3, x26, x21
	stp	x24, x23, [x8, #40]
	str	x22, [x8, #32]
	mov	w28, #1
	str	w28, [x8]
Lloh17:
	adrp	x8, _DB_RES_DEF@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DB_RES_DEF@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	madd	x2, x8, x26, x21
	stp	x24, x23, [x2, #40]
	str	x22, [x2, #32]
	mov	w8, #7
	str	w8, [x2]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #7
	bl	_xgene_cle_setup_def_dbptr
Lloh20:
	adrp	x8, _DB_RES_DROP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DB_RES_DROP@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	madd	x8, x8, x26, x21
	str	w28, [x8, #4]
	sub	x22, x29, #144
	sub	x0, x29, #144
	mov	w1, #0
	mov	w2, #56
	bl	_memset
Lloh23:
	adrp	x8, _KN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _KN@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	stur	w8, [x29, #-120]
	stur	w28, [x29, #-136]
	ldur	x8, [x29, #-128]
	ldr	x9, [x27]
	stp	x9, xzr, [x8]
	stp	x21, x22, [x19, #40]
	ldr	w8, [x25]
	stp	w28, w8, [x19, #28]
	mov	x0, x19
	mov	x1, x20
	bl	_xgene_cle_setup_ptree
	mov	x22, x0
LBB0_8:
	ldur	x8, [x29, #-88]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x22
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_DB_MAX_PTRS,4,2                ; @DB_MAX_PTRS
	.comm	_PHY_INTERFACE_MODE_XGMII,8,3   ; @PHY_INTERFACE_MODE_XGMII
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RSS initialization failed\n"

	.comm	_DB_RES_ACCEPT,8,3              ; @DB_RES_ACCEPT
	.comm	_DB_RES_DEF,8,3                 ; @DB_RES_DEF
	.comm	_DB_RES_DROP,8,3                ; @DB_RES_DROP
	.comm	_KN,4,2                         ; @KN
	.no_dead_strip	_xgene_enet_cle_init
.subsections_via_symbols
