	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_enet_ring_set_type
_xgene_enet_ring_set_type:              ## @xgene_enet_ring_set_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %r14
	movl	(%rdi), %edi
	callq	_xgene_enet_is_bufpool
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	movq	_RING_REGULAR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_RING_BUFPOOL@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	_X2_RINGTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SET_VAL
	orl	%eax, 16(%r14)
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:
	movq	_RINGMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BUFPOOL_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SET_VAL
	orl	%eax, 12(%r14)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_BUFPOOL,4,2               ## @RING_BUFPOOL
	.comm	_RING_REGULAR,4,2               ## @RING_REGULAR
	.comm	_X2_RINGTYPE,4,2                ## @X2_RINGTYPE
	.comm	_RINGMODE,4,2                   ## @RINGMODE
	.comm	_BUFPOOL_MODE,4,2               ## @BUFPOOL_MODE
	.no_dead_strip	_xgene_enet_ring_set_type
.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_set_type
_xgene_enet_ring_set_type:              ; @xgene_enet_ring_set_type
	.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
	ldr	x20, [x0, #8]
	ldr	w0, [x0]
	bl	_xgene_enet_is_bufpool
	mov	x19, x0
Lloh0:
	adrp	x8, _RING_BUFPOOL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RING_BUFPOOL@GOTPAGEOFF]
Lloh2:
	adrp	x9, _RING_REGULAR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RING_REGULAR@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
Lloh4:
	adrp	x8, _X2_RINGTYPE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _X2_RINGTYPE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_SET_VAL
	ldr	w8, [x20, #16]
	orr	w8, w8, w0
	str	w8, [x20, #16]
	cbz	w19, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _RINGMODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RINGMODE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _BUFPOOL_MODE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BUFPOOL_MODE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_SET_VAL
	ldr	w8, [x20, #12]
	orr	w8, w8, w0
	str	w8, [x20, #12]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_BUFPOOL,4,2               ; @RING_BUFPOOL
	.comm	_RING_REGULAR,4,2               ; @RING_REGULAR
	.comm	_X2_RINGTYPE,4,2                ; @X2_RINGTYPE
	.comm	_RINGMODE,4,2                   ; @RINGMODE
	.comm	_BUFPOOL_MODE,4,2               ; @BUFPOOL_MODE
	.no_dead_strip	_xgene_enet_ring_set_type
.subsections_via_symbols
