	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_activate                  ## -- Begin function pmap_activate
	.p2align	4, 0x90
_pmap_activate:                         ## @pmap_activate
	.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, %rbx
	xorl	%eax, %eax
	callq	_critical_enter
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_vmspace_pmap
	movq	%rax, %r14
	movq	_tlb_ctx@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_PCPU_GET
	movl	%eax, %r15d
	movq	_tlb_ctx_max@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	cmpl	%eax, %r15d
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_tlb_flush_user
	movq	_tlb_ctx_min@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	movl	%eax, %r15d
LBB0_2:
	movl	(%rbx), %edi
	leal	1(%r15), %esi
	xorl	%eax, %eax
	callq	_PCPU_SET
	movq	(%r14), %rax
	movq	_curcpu@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r15d, (%rax,%rcx,4)
	movq	_cpuid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	movq	%r14, %rsi
	addq	$12, %rsi
	movl	%eax, %edi
	callq	_CPU_SET
	movq	_pmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_PCPU_SET
	movq	_AA_DMMU_TSB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASI_DMMU@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	8(%r14), %edx
	callq	_stxa
	movq	_AA_IMMU_TSB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASI_IMMU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	callq	_stxa
	movq	_AA_DMMU_PCXR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r12), %r14d
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_ldxa
	movq	_TLB_CXR_PGSZ_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	orl	%eax, %r15d
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_stxa
	movq	_KERNBASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_flush
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_critical_exit                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tlb_ctx,4,2                    ## @tlb_ctx
	.comm	_tlb_ctx_max,4,2                ## @tlb_ctx_max
	.comm	_tlb_ctx_min,4,2                ## @tlb_ctx_min
	.comm	_curcpu,8,3                     ## @curcpu
	.comm	_cpuid,4,2                      ## @cpuid
	.comm	_pmap,4,2                       ## @pmap
	.comm	_AA_DMMU_TSB,4,2                ## @AA_DMMU_TSB
	.comm	_ASI_DMMU,4,2                   ## @ASI_DMMU
	.comm	_AA_IMMU_TSB,4,2                ## @AA_IMMU_TSB
	.comm	_ASI_IMMU,4,2                   ## @ASI_IMMU
	.comm	_AA_DMMU_PCXR,4,2               ## @AA_DMMU_PCXR
	.comm	_TLB_CXR_PGSZ_MASK,4,2          ## @TLB_CXR_PGSZ_MASK
	.comm	_KERNBASE,4,2                   ## @KERNBASE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_activate                  ; -- Begin function pmap_activate
	.p2align	2
_pmap_activate:                         ; @pmap_activate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	_critical_enter
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_vmspace_pmap
	mov	x20, x0
Lloh0:
	adrp	x21, _tlb_ctx@GOTPAGE
Lloh1:
	ldr	x21, [x21, _tlb_ctx@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_PCPU_GET
	mov	x19, x0
Lloh2:
	adrp	x8, _tlb_ctx_max@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tlb_ctx_max@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_PCPU_GET
	cmp	w19, w0
	b.ne	LBB0_2
; %bb.1:
	bl	_tlb_flush_user
Lloh5:
	adrp	x8, _tlb_ctx_min@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tlb_ctx_min@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_PCPU_GET
	mov	x19, x0
LBB0_2:
	ldr	w0, [x21]
	add	w8, w19, #1
	str	x8, [sp]
	bl	_PCPU_SET
	ldr	x8, [x20]
Lloh8:
	adrp	x9, _curcpu@GOTPAGE
Lloh9:
	ldr	x9, [x9, _curcpu@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	str	w19, [x8, x9, lsl #2]
Lloh11:
	adrp	x8, _cpuid@GOTPAGE
Lloh12:
	ldr	x8, [x8, _cpuid@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_PCPU_GET
	add	x1, x20, #12
	bl	_CPU_SET
Lloh14:
	adrp	x8, _pmap@GOTPAGE
Lloh15:
	ldr	x8, [x8, _pmap@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	str	x20, [sp]
	bl	_PCPU_SET
Lloh17:
	adrp	x8, _AA_DMMU_TSB@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AA_DMMU_TSB@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x21, _ASI_DMMU@GOTPAGE
Lloh21:
	ldr	x21, [x21, _ASI_DMMU@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w2, [x20, #8]
	bl	_stxa
Lloh22:
	adrp	x8, _AA_IMMU_TSB@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AA_IMMU_TSB@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x8, _ASI_IMMU@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ASI_IMMU@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	bl	_stxa
Lloh28:
	adrp	x8, _AA_DMMU_PCXR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AA_DMMU_PCXR@GOTPAGEOFF]
Lloh30:
	ldr	w20, [x8]
	ldr	w21, [x21]
	mov	x0, x20
	mov	x1, x21
	bl	_ldxa
Lloh31:
	adrp	x8, _TLB_CXR_PGSZ_MASK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TLB_CXR_PGSZ_MASK@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	and	w8, w8, w0
	orr	w2, w8, w19
	mov	x0, x20
	mov	x1, x21
	bl	_stxa
Lloh34:
	adrp	x8, _KERNBASE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _KERNBASE@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_flush
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_critical_exit
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_tlb_ctx,4,2                    ; @tlb_ctx
	.comm	_tlb_ctx_max,4,2                ; @tlb_ctx_max
	.comm	_tlb_ctx_min,4,2                ; @tlb_ctx_min
	.comm	_curcpu,8,3                     ; @curcpu
	.comm	_cpuid,4,2                      ; @cpuid
	.comm	_pmap,4,2                       ; @pmap
	.comm	_AA_DMMU_TSB,4,2                ; @AA_DMMU_TSB
	.comm	_ASI_DMMU,4,2                   ; @ASI_DMMU
	.comm	_AA_IMMU_TSB,4,2                ; @AA_IMMU_TSB
	.comm	_ASI_IMMU,4,2                   ; @ASI_IMMU
	.comm	_AA_DMMU_PCXR,4,2               ; @AA_DMMU_PCXR
	.comm	_TLB_CXR_PGSZ_MASK,4,2          ; @TLB_CXR_PGSZ_MASK
	.comm	_KERNBASE,4,2                   ; @KERNBASE
.subsections_via_symbols
