	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_enet_ring_init
_xgene_enet_ring_init:                  ## @xgene_enet_ring_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movl	8(%rdi), %r14d
	movl	12(%rdi), %edi
	callq	_xgene_enet_ring_owner
	movq	_RING_OWNER_CPU@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_X2_INTLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RING_BUFNUM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	12(%rbx), %esi
	callq	_SET_VAL
	orl	%eax, (%r15)
	movq	_X2_DEQINTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SET_BIT
	orl	%eax, 12(%r15)
LBB0_2:
	movq	_X2_CFGCRID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$2, %esi
	callq	_SET_VAL
	orl	%eax, (%r15)
	movl	%r14d, %esi
	sarl	$8, %esi
	movq	_QCOHERENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_RINGADDRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SET_VAL
	orl	%r12d, %eax
	orl	%eax, 8(%r15)
	sarl	$31, %r14d
	movq	_RINGSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	callq	_SET_VAL
	movl	%eax, %ebx
	movq	_ACCEPTLERR@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_RINGADDRH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_SET_VAL
	orl	%ebx, %eax
	orl	%eax, 12(%r15)
	movq	_X2_SELTHRSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_SET_VAL
	orl	%eax, 16(%r15)
	movq	_X2_QBASE_AM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SET_BIT
	movl	%eax, %ebx
	movq	_X2_MSG_AM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SET_BIT
	orl	%ebx, %eax
	orl	%eax, 20(%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_OWNER_CPU,8,3             ## @RING_OWNER_CPU
	.comm	_X2_INTLINE,4,2                 ## @X2_INTLINE
	.comm	_RING_BUFNUM_MASK,4,2           ## @RING_BUFNUM_MASK
	.comm	_X2_DEQINTEN,4,2                ## @X2_DEQINTEN
	.comm	_X2_CFGCRID,4,2                 ## @X2_CFGCRID
	.comm	_QCOHERENT,4,2                  ## @QCOHERENT
	.comm	_RINGADDRL,4,2                  ## @RINGADDRL
	.comm	_RINGSIZE,4,2                   ## @RINGSIZE
	.comm	_ACCEPTLERR,4,2                 ## @ACCEPTLERR
	.comm	_RINGADDRH,4,2                  ## @RINGADDRH
	.comm	_X2_SELTHRSH,4,2                ## @X2_SELTHRSH
	.comm	_X2_QBASE_AM,4,2                ## @X2_QBASE_AM
	.comm	_X2_MSG_AM,4,2                  ## @X2_MSG_AM
	.no_dead_strip	_xgene_enet_ring_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_ring_init
_xgene_enet_ring_init:                  ; @xgene_enet_ring_init
	.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
	ldr	x21, [x0]
	ldp	w20, w0, [x0, #8]
	bl	_xgene_enet_ring_owner
Lloh0:
	adrp	x8, _RING_OWNER_CPU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RING_OWNER_CPU@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _X2_INTLINE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _X2_INTLINE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w8, [x19, #12]
Lloh6:
	adrp	x9, _RING_BUFNUM_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RING_BUFNUM_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w1, w9, w8
	bl	_SET_VAL
	ldr	w8, [x21]
	orr	w8, w8, w0
	str	w8, [x21]
Lloh9:
	adrp	x8, _X2_DEQINTEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _X2_DEQINTEN@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_SET_BIT
	ldr	w8, [x21, #12]
	orr	w8, w8, w0
	str	w8, [x21, #12]
LBB0_2:
Lloh12:
	adrp	x8, _X2_CFGCRID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _X2_CFGCRID@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	w1, #2
	bl	_SET_VAL
	ldr	w8, [x21]
	orr	w8, w8, w0
	str	w8, [x21]
	asr	w1, w20, #8
Lloh15:
	adrp	x8, _QCOHERENT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QCOHERENT@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
Lloh18:
	adrp	x8, _RINGADDRL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RINGADDRL@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_SET_VAL
	orr	w8, w0, w22
	ldr	w9, [x21, #8]
	orr	w8, w8, w9
	str	w8, [x21, #8]
	asr	w20, w20, #31
Lloh21:
	adrp	x8, _RINGSIZE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RINGSIZE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
	bl	_SET_VAL
Lloh24:
	adrp	x8, _ACCEPTLERR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ACCEPTLERR@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	orr	w19, w8, w0
Lloh27:
	adrp	x8, _RINGADDRH@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RINGADDRH@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_SET_VAL
	orr	w8, w19, w0
	ldr	w9, [x21, #12]
	orr	w8, w8, w9
	str	w8, [x21, #12]
Lloh30:
	adrp	x8, _X2_SELTHRSH@GOTPAGE
Lloh31:
	ldr	x8, [x8, _X2_SELTHRSH@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_SET_VAL
	ldr	w8, [x21, #16]
	orr	w8, w8, w0
	str	w8, [x21, #16]
Lloh33:
	adrp	x8, _X2_QBASE_AM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _X2_QBASE_AM@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_SET_BIT
	mov	x19, x0
Lloh36:
	adrp	x8, _X2_MSG_AM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _X2_MSG_AM@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_SET_BIT
	orr	w8, w0, w19
	ldr	w9, [x21, #20]
	orr	w8, w8, w9
	str	w8, [x21, #20]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_OWNER_CPU,8,3             ; @RING_OWNER_CPU
	.comm	_X2_INTLINE,4,2                 ; @X2_INTLINE
	.comm	_RING_BUFNUM_MASK,4,2           ; @RING_BUFNUM_MASK
	.comm	_X2_DEQINTEN,4,2                ; @X2_DEQINTEN
	.comm	_X2_CFGCRID,4,2                 ; @X2_CFGCRID
	.comm	_QCOHERENT,4,2                  ; @QCOHERENT
	.comm	_RINGADDRL,4,2                  ; @RINGADDRL
	.comm	_RINGSIZE,4,2                   ; @RINGSIZE
	.comm	_ACCEPTLERR,4,2                 ; @ACCEPTLERR
	.comm	_RINGADDRH,4,2                  ; @RINGADDRH
	.comm	_X2_SELTHRSH,4,2                ; @X2_SELTHRSH
	.comm	_X2_QBASE_AM,4,2                ; @X2_QBASE_AM
	.comm	_X2_MSG_AM,4,2                  ; @X2_MSG_AM
	.no_dead_strip	_xgene_enet_ring_init
.subsections_via_symbols
