	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_enet_set_ring_state
_xgene_enet_set_ring_state:             ## @xgene_enet_set_ring_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_xgene_enet_ring_set_type
	movl	(%rbx), %edi
	callq	_xgene_enet_ring_owner
	movq	_RING_OWNER_ETH0@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_2
## %bb.1:
	movq	_RING_OWNER_ETH1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_xgene_enet_ring_set_recombbuf
LBB0_3:
	movq	%rbx, %rdi
	callq	_xgene_enet_ring_init
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_xgene_enet_write_ring_state    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_OWNER_ETH0,4,2            ## @RING_OWNER_ETH0
	.comm	_RING_OWNER_ETH1,4,2            ## @RING_OWNER_ETH1
	.no_dead_strip	_xgene_enet_set_ring_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_enet_set_ring_state
_xgene_enet_set_ring_state:             ; @xgene_enet_set_ring_state
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_xgene_enet_ring_set_type
	ldr	w0, [x19]
	bl	_xgene_enet_ring_owner
Lloh0:
	adrp	x8, _RING_OWNER_ETH0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RING_OWNER_ETH0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RING_OWNER_ETH1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RING_OWNER_ETH1@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_xgene_enet_ring_set_recombbuf
LBB0_2:
	mov	x0, x19
	bl	_xgene_enet_ring_init
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_xgene_enet_write_ring_state
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_OWNER_ETH0,4,2            ; @RING_OWNER_ETH0
	.comm	_RING_OWNER_ETH1,4,2            ; @RING_OWNER_ETH1
	.no_dead_strip	_xgene_enet_set_ring_state
.subsections_via_symbols
