	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cuse_vmfree                    ## -- Begin function cuse_vmfree
	.p2align	4, 0x90
_cuse_vmfree:                           ## @cuse_vmfree
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_f_cuse@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	js	LBB0_9
## %bb.1:
	movq	%rdi, %r12
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_CUSE_LOCK
	movq	_CUSE_ALLOC_UNIT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	_a_cuse@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, (%rcx,%rbx)
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %rbx
	incl	%r15d
	cmpq	%rbx, %rax
	jne	LBB0_3
	jmp	LBB0_8
LBB0_4:
	movq	8(%rcx,%rbx), %r14
	xorl	%eax, %eax
	callq	_CUSE_UNLOCK
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_munmap
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	%r15d, -48(%rbp)
	movq	(%r13), %rdi
	movq	_CUSE_IOCTL_FREE_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_ioctl
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DPRINTF
LBB0_6:
	xorl	%eax, %eax
	callq	_CUSE_LOCK
	movq	_a_cuse@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	$0, (%rax,%rbx)
	movq	(%rcx), %rax
	movq	$0, 8(%rax,%rbx)
LBB0_8:
	xorl	%eax, %eax
	callq	_CUSE_UNLOCK
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_f_cuse,8,3                     ## @f_cuse
	.comm	_CUSE_ALLOC_UNIT_MAX,4,2        ## @CUSE_ALLOC_UNIT_MAX
	.comm	_a_cuse,8,3                     ## @a_cuse
	.comm	_CUSE_IOCTL_FREE_MEMORY,4,2     ## @CUSE_IOCTL_FREE_MEMORY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Freeing memory failed: %d\n"

	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cuse_vmfree                    ; -- Begin function cuse_vmfree
	.p2align	2
_cuse_vmfree:                           ; @cuse_vmfree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x23, _f_cuse@GOTPAGE
Lloh1:
	ldr	x23, [x23, _f_cuse@GOTPAGEOFF]
	ldr	x8, [x23]
	tbnz	x8, #63, LBB0_9
; %bb.1:
	mov	x19, x0
	bl	_CUSE_LOCK
Lloh2:
	adrp	x8, _CUSE_ALLOC_UNIT_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CUSE_ALLOC_UNIT_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
	cbz	w9, LBB0_8
; %bb.2:
	mov	w24, #0
	mov	x21, #0
Lloh5:
	adrp	x22, _a_cuse@GOTPAGE
Lloh6:
	ldr	x22, [x22, _a_cuse@GOTPAGEOFF]
	ldr	x8, [x22]
	lsl	x9, x9, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, x21]
	cmp	x10, x19
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #16
	add	w24, w24, #1
	cmp	x9, x21
	b.ne	LBB0_3
	b	LBB0_8
LBB0_5:
	add	x8, x8, x21
	ldr	x20, [x8, #8]
	bl	_CUSE_UNLOCK
	mov	x0, x19
	mov	x1, x20
	bl	_munmap
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	str	w24, [sp, #8]
	ldr	x0, [x23]
Lloh7:
	adrp	x8, _CUSE_IOCTL_FREE_MEMORY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CUSE_IOCTL_FREE_MEMORY@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cbz	w0, LBB0_7
; %bb.6:
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTF
LBB0_7:
	bl	_CUSE_LOCK
	ldr	x8, [x22]
	str	xzr, [x8, x21]
	ldr	x8, [x22]
	add	x8, x8, x21
	str	xzr, [x8, #8]
LBB0_8:
	bl	_CUSE_UNLOCK
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_f_cuse,8,3                     ; @f_cuse
	.comm	_CUSE_ALLOC_UNIT_MAX,4,2        ; @CUSE_ALLOC_UNIT_MAX
	.comm	_a_cuse,8,3                     ; @a_cuse
	.comm	_CUSE_IOCTL_FREE_MEMORY,4,2     ; @CUSE_IOCTL_FREE_MEMORY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Freeing memory failed: %d\n"

	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
