	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_enet_wr_cmd
_xgene_enet_wr_cmd:                     ## @xgene_enet_wr_cmd
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_xgene_enet_ring_owner
	movq	_RING_OWNER_CPU@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	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	(%r14), %esi
	callq	_SET_VAL
	movl	%eax, %r15d
	movq	_INTR_CLEAR@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
LBB0_2:
	movl	$16, %edi
	xorl	%esi, %esi
	callq	_GENMASK
	andl	%eax, %ebx
	orl	%r15d, %ebx
	movl	4(%r14), %esi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iowrite32                      ## TAILCALL
	.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	_INTR_CLEAR,4,2                 ## @INTR_CLEAR
	.no_dead_strip	_xgene_enet_wr_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_enet_wr_cmd
_xgene_enet_wr_cmd:                     ; @xgene_enet_wr_cmd
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
	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]
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
Lloh9:
	adrp	x8, _INTR_CLEAR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INTR_CLEAR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w21, w8, w0
	b	LBB0_3
LBB0_2:
	mov	w21, #0
LBB0_3:
	mov	w0, #16
	mov	w1, #0
	bl	_GENMASK
	and	w8, w0, w20
	orr	w0, w8, w21
	ldr	w1, [x19, #4]
	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
	b	_iowrite32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.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	_INTR_CLEAR,4,2                 ; @INTR_CLEAR
	.no_dead_strip	_xgene_enet_wr_cmd
.subsections_via_symbols
