	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cuse_vmoffset                  ## -- Begin function cuse_vmoffset
	.p2align	4, 0x90
_cuse_vmoffset:                         ## @cuse_vmoffset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_CUSE_LOCK
	movq	_CUSE_ALLOC_UNIT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	_a_cuse@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	$8, %rcx
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	addq	$16, %rcx
	cmpq	%rbx, %rax
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %r15
	testq	%r15, %r15
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r14, %r15
	ja	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	-8(%rcx), %rdx
	leaq	(%r15,%rdx,4), %rdx
	addq	$-4, %rdx
	cmpq	%r14, %rdx
	jb	LBB0_9
## %bb.5:
	xorl	%eax, %eax
	callq	_CUSE_UNLOCK
	subq	%r15, %r14
	sarq	$2, %r14
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r14, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_6
## %bb.7:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_8
LBB0_10:
	xorl	%eax, %eax
	callq	_CUSE_UNLOCK
	movl	$2147483648, %eax               ## imm = 0x80000000
	jmp	LBB0_11
LBB0_6:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_8:
	subq	%rdx, %r14
	imulq	%rbx, %rcx
	movq	_CUSE_ALLOC_PAGES_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	%rcx, %rax
	addq	%r14, %rax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CUSE_ALLOC_UNIT_MAX,4,2        ## @CUSE_ALLOC_UNIT_MAX
	.comm	_a_cuse,8,3                     ## @a_cuse
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_CUSE_ALLOC_PAGES_MAX,4,2       ## @CUSE_ALLOC_PAGES_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cuse_vmoffset                  ; -- Begin function cuse_vmoffset
	.p2align	2
_cuse_vmoffset:                         ; @cuse_vmoffset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_CUSE_LOCK
Lloh0:
	adrp	x8, _CUSE_ALLOC_UNIT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CUSE_ALLOC_UNIT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x20, #0
Lloh3:
	adrp	x9, _a_cuse@GOTPAGE
Lloh4:
	ldr	x9, [x9, _a_cuse@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x9, x9, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	add	x9, x9, #16
	cmp	x8, x20
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x9]
	cmp	x21, #0
	ccmp	x21, x19, #2, ne
	b.hi	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldursw	x10, [x9, #-8]
	add	x10, x21, x10, lsl #2
	sub	x10, x10, #4
	cmp	x10, x19
	b.lo	LBB0_2
; %bb.5:
	bl	_CUSE_UNLOCK
	sub	x8, x19, x21
	asr	x8, x8, #2
Lloh6:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	udiv	x8, x8, x9
	mul	x10, x9, x20
Lloh9:
	adrp	x11, _CUSE_ALLOC_PAGES_MAX@GOTPAGE
Lloh10:
	ldr	x11, [x11, _CUSE_ALLOC_PAGES_MAX@GOTPAGEOFF]
Lloh11:
	ldrsw	x11, [x11]
	mul	x10, x10, x11
	madd	x0, x8, x9, x10
	b	LBB0_7
LBB0_6:
	bl	_CUSE_UNLOCK
	mov	w0, #-2147483648
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CUSE_ALLOC_UNIT_MAX,4,2        ; @CUSE_ALLOC_UNIT_MAX
	.comm	_a_cuse,8,3                     ; @a_cuse
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_CUSE_ALLOC_PAGES_MAX,4,2       ; @CUSE_ALLOC_PAGES_MAX
.subsections_via_symbols
