	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kring_get                      ## -- Begin function kring_get
	.p2align	4, 0x90
_kring_get:                             ## @kring_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	%rsi, (%rdi)
	jbe	LBB0_1
## %bb.2:
	addq	8(%rdi), %rsi
	movq	_RINGSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rsi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.4:
	movq	%rsi, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rax
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_3:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %eax
LBB0_5:
	shlq	$2, %rax
	addq	16(%rdi), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RINGSIZE,8,3                   ## @RINGSIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kring_get                      ; -- Begin function kring_get
	.p2align	2
_kring_get:                             ; @kring_get
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	cmp	x8, x1
	b.ls	LBB0_2
; %bb.1:
	ldp	x8, x9, [x0, #8]
	add	x8, x8, x1
Lloh0:
	adrp	x10, _RINGSIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _RINGSIZE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	udiv	x11, x8, x10
	msub	x8, x11, x10, x8
	add	x0, x9, x8, lsl #2
	ret
LBB0_2:
	mov	x0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RINGSIZE,8,3                   ; @RINGSIZE
.subsections_via_symbols
