	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kring_append                   ## -- Begin function kring_append
	.p2align	4, 0x90
_kring_append:                          ## @kring_append
	.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
	movl	%esi, %r8d
	movl	(%rdi), %esi
	movq	_RINGSIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	jge	LBB0_6
## %bb.1:
	movq	%rdx, %r9
	testl	%esi, %esi
	je	LBB0_2
## %bb.3:
	incl	%esi
	movl	%esi, (%rdi)
	movl	4(%rdi), %eax
	incl	%eax
	cltd
	idivl	(%rcx)
	movl	%edx, 4(%rdi)
	movq	8(%rdi), %rax
	movslq	%edx, %rcx
	jmp	LBB0_4
LBB0_2:
	movq	$1, (%rdi)
	movq	$0, 24(%rdi)
	movq	8(%rdi), %rax
	movq	%rax, 16(%rdi)
	movl	$1, %esi
	xorl	%ecx, %ecx
LBB0_4:
	leaq	(%rcx,%rcx,2), %rcx
	movl	%r8d, 16(%rax,%rcx,8)
	movl	4(%r9), %edx
	movl	%edx, 12(%rax,%rcx,8)
	movl	(%r9), %edx
	movl	%edx, 8(%rax,%rcx,8)
	movq	$0, (%rax,%rcx,8)
	cmpl	$2, %esi
	jl	LBB0_6
## %bb.5:
	leaq	(%rax,%rcx,8), %rbx
	addl	$-2, %esi
	callq	_kring_get
	movq	%rbx, (%rax)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RINGSIZE,4,2                   ## @RINGSIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function kring_append
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_kring_append
	.p2align	2
_kring_append:                          ; @kring_append
	.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	w9, [x0]
Lloh0:
	adrp	x8, _RINGSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RINGSIZE@GOTPAGEOFF]
	ldr	w10, [x8]
	cmp	w9, w10
	b.ge	LBB0_6
; %bb.1:
	cbz	w9, LBB0_3
; %bb.2:
	add	w10, w9, #1
	str	w10, [x0]
	ldr	w9, [x0, #4]
	add	w9, w9, #1
	ldr	w8, [x8]
	sdiv	w11, w9, w8
	msub	w8, w11, w8, w9
	str	w8, [x0, #4]
	ldr	x9, [x0, #8]
	sxtw	x8, w8
	b	LBB0_4
LBB0_3:
	mov	x8, #0
Lloh2:
	adrp	x9, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x0]
	ldr	x9, [x0, #8]
	stp	x9, xzr, [x0, #16]
	mov	w10, #1
LBB0_4:
	mov	w11, #24
	madd	x11, x8, x11, x9
	str	w1, [x11, #16]
	ldr	d0, [x2]
	str	d0, [x11, #8]
	str	xzr, [x11]
	subs	w1, w10, #2
	b.lt	LBB0_6
; %bb.5:
	mov	w10, #24
	madd	x19, x8, x10, x9
	bl	_kring_get
	str	x19, [x0]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_RINGSIZE,4,2                   ; @RINGSIZE
.subsections_via_symbols
