	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun4c_grow_kernel_ring         ## -- Begin function sun4c_grow_kernel_ring
	.p2align	4, 0x90
_sun4c_grow_kernel_ring:                ## @sun4c_grow_kernel_ring
	.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	_sun4c_user_taken_entries@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_max_user_taken_entries@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.1:
	movq	_sun4c_ufree_ring@GOTPCREL(%rip), %rdi
	cmpq	$0, 8(%rdi)
	je	LBB0_3
## %bb.2:
	movq	(%rdi), %rbx
	movq	%rbx, %rsi
	callq	_remove_ring
	movq	_sun4c_kfree_ring@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_add_ring
	incq	(%r14)
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sun4c_user_taken_entries,8,3   ## @sun4c_user_taken_entries
	.comm	_max_user_taken_entries,8,3     ## @max_user_taken_entries
	.comm	_sun4c_ufree_ring,16,3          ## @sun4c_ufree_ring
	.comm	_sun4c_kfree_ring,4,2           ## @sun4c_kfree_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun4c_grow_kernel_ring         ; -- Begin function sun4c_grow_kernel_ring
	.p2align	2
_sun4c_grow_kernel_ring:                ; @sun4c_grow_kernel_ring
	.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
Lloh0:
	adrp	x20, _sun4c_user_taken_entries@GOTPAGE
Lloh1:
	ldr	x20, [x20, _sun4c_user_taken_entries@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _max_user_taken_entries@GOTPAGE
Lloh3:
	ldr	x9, [x9, _max_user_taken_entries@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x0, _sun4c_ufree_ring@GOTPAGE
Lloh6:
	ldr	x0, [x0, _sun4c_ufree_ring@GOTPAGEOFF]
	ldr	x10, [x0, #8]
	cmp	x8, x9
	ccmp	x10, #0, #4, lt
	b.eq	LBB0_2
; %bb.1:
	ldr	x19, [x0]
	mov	x1, x19
	bl	_remove_ring
Lloh7:
	adrp	x0, _sun4c_kfree_ring@GOTPAGE
Lloh8:
	ldr	x0, [x0, _sun4c_kfree_ring@GOTPAGEOFF]
	mov	x1, x19
	bl	_add_ring
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_sun4c_user_taken_entries,8,3   ; @sun4c_user_taken_entries
	.comm	_max_user_taken_entries,8,3     ; @max_user_taken_entries
	.comm	_sun4c_ufree_ring,16,3          ; @sun4c_ufree_ring
	.comm	_sun4c_kfree_ring,4,2           ; @sun4c_kfree_ring
.subsections_via_symbols
