	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function close
_close:                                 ## @close
	.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	(%rsi), %r14
	testq	%r14, %r14
	je	LBB0_10
## %bb.1:
	movq	_lguest_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_free_guest_pagetable
	cmpl	$0, (%r14)
	je	LBB0_4
## %bb.2:
	movl	$8, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rdi
	addq	%rbx, %rdi
	callq	_hrtimer_cancel
	movq	32(%r14), %rax
	movl	-4(%rax,%rbx), %edi
	callq	_free_page
	movq	32(%r14), %rax
	movl	-8(%rax,%rbx), %edi
	callq	_mmput
	incq	%r15
	movl	(%r14), %eax
	addq	$12, %rbx
	cmpq	%rax, %r15
	jb	LBB0_3
LBB0_4:
	movq	16(%r14), %rdi
	cmpl	$0, 4(%rdi)
	je	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rdi), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_eventfd_ctx_put
	incq	%rbx
	movq	16(%r14), %rdi
	movl	4(%rdi), %eax
	cmpq	%rax, %rbx
	jb	LBB0_6
LBB0_7:
	callq	_kfree
	movq	8(%r14), %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	8(%r14), %rdi
	callq	_kfree
LBB0_9:
	movq	%r14, %rdi
	callq	_kfree
	movq	_lguest_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lguest_lock,4,2                ## @lguest_lock
	.no_dead_strip	_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function close
_close:                                 ; @close
	.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
	ldr	x19, [x1]
	cbz	x19, LBB0_10
; %bb.1:
Lloh0:
	adrp	x0, _lguest_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _lguest_lock@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x19
	bl	_free_guest_pagetable
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x20, #0
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x8, x8, x20
	add	x0, x8, #8
	bl	_hrtimer_cancel
	ldr	x8, [x19, #32]
	add	x8, x8, x20
	ldr	w0, [x8, #4]
	bl	_free_page
	ldr	x8, [x19, #32]
	ldr	w0, [x8, x20]
	bl	_mmput
	add	x21, x21, #1
	ldr	w8, [x19]
	add	x20, x20, #12
	cmp	x21, x8
	b.lo	LBB0_3
LBB0_4:
	ldr	x0, [x19, #16]
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_7
; %bb.5:
	mov	x20, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0, #24]
	ldr	w0, [x8, x20, lsl #2]
	bl	_eventfd_ctx_put
	add	x20, x20, #1
	ldr	x0, [x19, #16]
	ldr	w8, [x0, #4]
	cmp	x20, x8
	b.lo	LBB0_6
LBB0_7:
	bl	_kfree
	ldr	x0, [x19, #8]
	bl	_IS_ERR
	cbnz	w0, LBB0_9
; %bb.8:
	ldr	x0, [x19, #8]
	bl	_kfree
LBB0_9:
	mov	x0, x19
	bl	_kfree
Lloh2:
	adrp	x0, _lguest_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _lguest_lock@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_10:
	mov	w0, #0
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_lguest_lock,4,2                ; @lguest_lock
	.no_dead_strip	_close
.subsections_via_symbols
