	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_new_mmu_context            ## -- Begin function get_new_mmu_context
	.p2align	4, 0x90
_get_new_mmu_context:                   ## @get_new_mmu_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	%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	%rdi, %rbx
	movq	_ctx_alloc_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_CTX_PGSZ_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	andq	(%rbx), %r12
	movq	_tlb_context_cache@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	incq	%rax
	movq	_CTX_NR_MASK@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rbx
	andq	%rax, %rbx
	movq	_mmu_context_bmap@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	_CTX_NR_BITS@GOTPCREL(%rip), %r15
	movb	(%r15), %cl
	movl	$1, %r14d
	movl	$1, %eax
	shll	%cl, %eax
	movslq	%eax, %rsi
	movl	%ebx, %edx
	callq	_find_next_zero_bit
	movb	(%r15), %cl
	shll	%cl, %r14d
	movslq	%r14d, %rcx
	cmpq	%rcx, %rax
	jb	LBB0_4
## %bb.1:
	movq	(%r13), %rdi
	movl	$1, %r15d
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_find_next_zero_bit
	cmpq	%rbx, %rax
	jae	LBB0_2
LBB0_4:
	movl	$1, %edx
	movl	%eax, %ecx
	shlq	%cl, %rdx
	movq	(%r13), %rcx
	movq	%rax, %rsi
	shrq	$6, %rsi
	orq	%rdx, (%rcx,%rsi,8)
	movq	_CTX_VERSION_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_tlb_context_cache@GOTPCREL(%rip), %r14
	andl	(%r14), %ecx
	movslq	%ecx, %rbx
	orq	%rax, %rbx
	xorl	%r15d, %r15d
LBB0_5:
	movl	%ebx, (%r14)
	orq	%rbx, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	movq	_ctx_alloc_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movl	%r15d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_smp_new_mmu_context_version    ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_CTX_VERSION_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_tlb_context_cache@GOTPCREL(%rip), %r14
	andl	(%r14), %eax
	movq	_CTX_FIRST_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %eax
	cmpl	$1, %eax
	cmovel	%ecx, %eax
	movslq	%eax, %rbx
	movq	(%r13), %rdi
	movq	$3, (%rdi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rdi)
	movq	$0, 24(%rdi)
	movq	_CTX_BMAP_SLOTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	$5, %esi
	jl	LBB0_5
## %bb.3:
	addq	$32, %rdi
	addl	$-5, %esi
	shrl	$2, %esi
	shlq	$5, %rsi
	addq	$32, %rsi
	callq	___bzero
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_ctx_alloc_lock,4,2             ## @ctx_alloc_lock
	.comm	_CTX_PGSZ_MASK,8,3              ## @CTX_PGSZ_MASK
	.comm	_tlb_context_cache,4,2          ## @tlb_context_cache
	.comm	_CTX_NR_MASK,4,2                ## @CTX_NR_MASK
	.comm	_mmu_context_bmap,8,3           ## @mmu_context_bmap
	.comm	_CTX_NR_BITS,4,2                ## @CTX_NR_BITS
	.comm	_CTX_VERSION_MASK,4,2           ## @CTX_VERSION_MASK
	.comm	_CTX_FIRST_VERSION,4,2          ## @CTX_FIRST_VERSION
	.comm	_CTX_BMAP_SLOTS,4,2             ## @CTX_BMAP_SLOTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_new_mmu_context            ; -- Begin function get_new_mmu_context
	.p2align	2
_get_new_mmu_context:                   ; @get_new_mmu_context
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x0, _ctx_alloc_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ctx_alloc_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _CTX_PGSZ_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CTX_PGSZ_MASK@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	and	x21, x9, x8
Lloh5:
	adrp	x22, _tlb_context_cache@GOTPAGE
Lloh6:
	ldr	x22, [x22, _tlb_context_cache@GOTPAGEOFF]
	ldrsw	x8, [x22]
Lloh7:
	adrp	x9, _CTX_NR_MASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CTX_NR_MASK@GOTPAGEOFF]
	add	x8, x8, #1
Lloh9:
	ldrsw	x9, [x9]
	and	x20, x8, x9
Lloh10:
	adrp	x23, _mmu_context_bmap@GOTPAGE
Lloh11:
	ldr	x23, [x23, _mmu_context_bmap@GOTPAGEOFF]
	ldr	x0, [x23]
Lloh12:
	adrp	x24, _CTX_NR_BITS@GOTPAGE
Lloh13:
	ldr	x24, [x24, _CTX_NR_BITS@GOTPAGEOFF]
	ldr	w8, [x24]
	mov	w25, #1
	lsl	w8, w25, w8
	sxtw	x1, w8
	mov	x2, x20
	bl	_find_next_zero_bit
	ldr	w8, [x24]
	lsl	w8, w25, w8
	cmp	x0, w8, sxtw
	b.lo	LBB0_2
; %bb.1:
	ldr	x0, [x23]
	mov	x1, x20
	mov	w2, #1
	bl	_find_next_zero_bit
	cmp	x0, x20
	b.hs	LBB0_3
LBB0_2:
	mov	w20, #0
	mov	w8, #1
	lsl	x8, x8, x0
	ldr	x9, [x23]
	lsr	x10, x0, #3
	and	x10, x10, #0x1ffffffffffffff8
	ldr	x11, [x9, x10]
	orr	x8, x11, x8
	str	x8, [x9, x10]
	ldr	w8, [x22]
Lloh14:
	adrp	x9, _CTX_VERSION_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CTX_VERSION_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	and	w8, w9, w8
	sxtw	x8, w8
	orr	x24, x0, x8
	b	LBB0_6
LBB0_3:
	ldr	w8, [x22]
Lloh17:
	adrp	x9, _CTX_VERSION_MASK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CTX_VERSION_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh20:
	adrp	x9, _CTX_FIRST_VERSION@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CTX_FIRST_VERSION@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	add	w8, w8, w9
	cmp	w8, #1
	csel	w8, w9, w8, eq
	sxtw	x24, w8
	ldr	x8, [x23]
	mov	w9, #3
	stp	x9, xzr, [x8]
	stp	xzr, xzr, [x8, #16]
Lloh23:
	adrp	x9, _CTX_BMAP_SLOTS@GOTPAGE
Lloh24:
	ldr	x9, [x9, _CTX_BMAP_SLOTS@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	subs	w9, w9, #5
	b.lt	LBB0_5
; %bb.4:
	add	x0, x8, #32
	lsr	w8, w9, #2
	lsl	x8, x8, #5
	add	x1, x8, #32
	bl	_bzero
LBB0_5:
	mov	w20, #1
LBB0_6:
	str	w24, [x22]
	orr	x8, x24, x21
	str	x8, [x19]
Lloh26:
	adrp	x0, _ctx_alloc_lock@GOTPAGE
Lloh27:
	ldr	x0, [x0, _ctx_alloc_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.7:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_smp_new_mmu_context_version
LBB0_8:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ctx_alloc_lock,4,2             ; @ctx_alloc_lock
	.comm	_CTX_PGSZ_MASK,8,3              ; @CTX_PGSZ_MASK
	.comm	_tlb_context_cache,4,2          ; @tlb_context_cache
	.comm	_CTX_NR_MASK,4,2                ; @CTX_NR_MASK
	.comm	_mmu_context_bmap,8,3           ; @mmu_context_bmap
	.comm	_CTX_NR_BITS,4,2                ; @CTX_NR_BITS
	.comm	_CTX_VERSION_MASK,4,2           ; @CTX_VERSION_MASK
	.comm	_CTX_FIRST_VERSION,4,2          ; @CTX_FIRST_VERSION
	.comm	_CTX_BMAP_SLOTS,4,2             ; @CTX_BMAP_SLOTS
.subsections_via_symbols
