	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mod_vmid_get_for_ptb           ## -- Begin function mod_vmid_get_for_ptb
	.p2align	4, 0x90
_mod_vmid_get_for_ptb:                  ## @mod_vmid_get_for_ptb
	.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
	movl	%esi, %r15d
	callq	_MOD_VMID_TO_CORE
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_get_existing_vmid_for_ptb
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.3:
	movl	%r15d, -32(%rbp)
	cmpq	$0, (%r14)
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_evict_vmids
LBB0_5:
	movq	%r14, %rdi
	callq	_get_next_available_vmid
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_add_ptb_to_table
	movl	8(%r14), %edi
	leaq	-32(%rbp), %rsi
	movl	%ebx, %edx
	callq	_dc_setup_vm_context
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mod_vmid_get_for_ptb           ; -- Begin function mod_vmid_get_for_ptb
	.p2align	2
_mod_vmid_get_for_ptb:                  ; @mod_vmid_get_for_ptb
	.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, x1
	bl	_MOD_VMID_TO_CORE
	cbz	w19, LBB0_5
; %bb.1:
	mov	x20, x0
	mov	x1, x19
	bl	_get_existing_vmid_for_ptb
	mov	x21, x0
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.2:
	str	w19, [sp, #8]
	ldr	x8, [x20]
	cbnz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_evict_vmids
LBB0_4:
	mov	x0, x20
	bl	_get_next_available_vmid
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_add_ptb_to_table
	ldr	w0, [x20, #8]
	add	x1, sp, #8
	mov	x2, x21
	bl	_dc_setup_vm_context
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
	mov	x0, x21
	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
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
