	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mspec_fault
_mspec_fault:                           ## @mspec_fault
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %r12
	movq	(%rdi), %r13
	movq	(%r13), %rax
	movq	(%rax,%r12,8), %rbx
	testq	%rbx, %rbx
	jne	LBB0_7
## %bb.1:
	xorl	%eax, %eax
	callq	_numa_node_id
	movl	%eax, %edi
	movl	$1, %esi
	callq	_uncached_alloc_page
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	leaq	16(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movq	(%r13), %rax
	cmpq	$0, (%rax,%r12,8)
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_uncached_free_page
	movq	(%r13), %rax
	movq	(%rax,%r12,8), %rbx
	jmp	LBB0_6
LBB0_2:
	movq	_VM_FAULT_OOM@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	incl	20(%r13)
	movq	%rbx, (%rax,%r12,8)
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
LBB0_7:
	movq	8(%r13), %rax
	movq	_MSPEC_FETCHOP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_TO_AMO
	movq	%rax, %rbx
	jmp	LBB0_10
LBB0_9:
	movq	___IA64_UNCACHED_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	andq	%rax, %rbx
LBB0_10:
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %rbx
	movq	8(%r15), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_vm_insert_pfn
	movq	_VM_FAULT_NOPAGE@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_FAULT_OOM,4,2               ## @VM_FAULT_OOM
	.comm	_MSPEC_FETCHOP,8,3              ## @MSPEC_FETCHOP
	.comm	___IA64_UNCACHED_OFFSET,8,3     ## @__IA64_UNCACHED_OFFSET
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_VM_FAULT_NOPAGE,4,2            ## @VM_FAULT_NOPAGE
	.no_dead_strip	_mspec_fault
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mspec_fault
_mspec_fault:                           ; @mspec_fault
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x24, [x1]
	ldr	x23, [x0]
	ldr	x8, [x23]
	ldr	x21, [x8, x24, lsl #3]
	cbnz	x21, LBB0_7
; %bb.1:
	bl	_numa_node_id
	mov	w1, #1
	bl	_uncached_alloc_page
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
	add	x22, x23, #16
	mov	x0, x22
	bl	_spin_lock
	ldr	x8, [x23]
	ldr	x9, [x8, x24, lsl #3]
	cbz	x9, LBB0_5
; %bb.3:
	mov	x0, x21
	mov	w1, #1
	bl	_uncached_free_page
	ldr	x8, [x23]
	ldr	x21, [x8, x24, lsl #3]
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _VM_FAULT_OOM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_FAULT_OOM@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
	ldr	w9, [x23, #20]
	add	w9, w9, #1
	str	w9, [x23, #20]
	str	x21, [x8, x24, lsl #3]
LBB0_6:
	mov	x0, x22
	bl	_spin_unlock
LBB0_7:
	ldr	x8, [x23, #8]
Lloh2:
	adrp	x9, _MSPEC_FETCHOP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MSPEC_FETCHOP@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_TO_AMO
	b	LBB0_10
LBB0_9:
Lloh5:
	adrp	x8, ___IA64_UNCACHED_OFFSET@GOTPAGE
Lloh6:
	ldr	x8, [x8, ___IA64_UNCACHED_OFFSET@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	bic	x0, x21, x8
LBB0_10:
Lloh8:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	lsr	x2, x0, x8
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_vm_insert_pfn
Lloh11:
	adrp	x8, _VM_FAULT_NOPAGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VM_FAULT_NOPAGE@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_FAULT_OOM,4,2               ; @VM_FAULT_OOM
	.comm	_MSPEC_FETCHOP,8,3              ; @MSPEC_FETCHOP
	.comm	___IA64_UNCACHED_OFFSET,8,3     ; @__IA64_UNCACHED_OFFSET
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_VM_FAULT_NOPAGE,4,2            ; @VM_FAULT_NOPAGE
	.no_dead_strip	_mspec_fault
.subsections_via_symbols
