	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_destroy_context                ## -- Begin function destroy_context
	.p2align	4, 0x90
_destroy_context:                       ## @destroy_context
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_MM_NUM_TSBS@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.1:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	%r12, %rdi
	callq	_tsb_destroy_one
	incq	%rbx
	addq	$4, %r12
	cmpq	(%r14), %rbx
	jb	LBB0_2
LBB0_3:
	movq	_ctx_alloc_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	(%r15), %rdi
	callq	_CTX_VALID
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%r15), %rdi
	callq	_CTX_NRBITS
	movq	$-2, %rdx
	movl	%eax, %ecx
	rolq	%cl, %rdx
	movq	_mmu_context_bmap@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shrq	$6, %rax
	andq	%rdx, (%rcx,%rax,8)
LBB0_5:
	movq	_ctx_alloc_lock@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MM_NUM_TSBS,8,3                ## @MM_NUM_TSBS
	.comm	_ctx_alloc_lock,4,2             ## @ctx_alloc_lock
	.comm	_mmu_context_bmap,8,3           ## @mmu_context_bmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_destroy_context                ; -- Begin function destroy_context
	.p2align	2
_destroy_context:                       ; @destroy_context
	.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
Lloh0:
	adrp	x20, _MM_NUM_TSBS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MM_NUM_TSBS@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x21, #0
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x0, x8, x21
	bl	_tsb_destroy_one
	add	x22, x22, #1
	ldr	x8, [x20]
	add	x21, x21, #4
	cmp	x22, x8
	b.lo	LBB0_2
LBB0_3:
Lloh2:
	adrp	x0, _ctx_alloc_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _ctx_alloc_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	ldr	x0, [x19]
	bl	_CTX_VALID
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x0, [x19]
	bl	_CTX_NRBITS
	mov	w8, #1
	lsl	x8, x8, x0
Lloh4:
	adrp	x9, _mmu_context_bmap@GOTPAGE
Lloh5:
	ldr	x9, [x9, _mmu_context_bmap@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	lsr	x10, x0, #3
	and	x10, x10, #0x1ffffffffffffff8
	ldr	x11, [x9, x10]
	bic	x8, x11, x8
	str	x8, [x9, x10]
LBB0_5:
Lloh7:
	adrp	x0, _ctx_alloc_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _ctx_alloc_lock@GOTPAGEOFF]
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MM_NUM_TSBS,8,3                ; @MM_NUM_TSBS
	.comm	_ctx_alloc_lock,4,2             ; @ctx_alloc_lock
	.comm	_mmu_context_bmap,8,3           ; @mmu_context_bmap
.subsections_via_symbols
