	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hugetlb_prefault_arch_hook     ## -- Begin function hugetlb_prefault_arch_hook
	.p2align	4, 0x90
_hugetlb_prefault_arch_hook:            ## @hugetlb_prefault_arch_hook
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_MM_TSB_HUGE@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	xorl	%edi, %edi
	cmpq	$0, (%rax,%rcx,8)
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_tsb_grow
	movq	%rbx, %rdi
	callq	_tsb_context_switch
	movq	%rbx, %rdi
	callq	_smp_tsb_sync
	movq	_tlb_type@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_cheetah_plus@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movq	_ctx_alloc_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	(%rbx), %rax
	movq	_CTX_PGSZ_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_CTX_PGSZ_BASE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	_CTX_PGSZ0_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rsi
	notq	%rdx
	movq	_CTX_PGSZ1_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_CTX_PGSZ_HUGE@GOTPCREL(%rip), %rdi
	movq	(%rdi), %r14
	shlq	%cl, %r14
	andq	%rax, %rdx
	orq	%rdx, %rsi
	orq	%rsi, %r14
	cmpq	%rax, %r14
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_do_flush_tlb_mm
	movq	%r14, (%rbx)
	movq	_context_reload@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_on_each_cpu
LBB0_4:
	movq	_ctx_alloc_lock@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MM_TSB_HUGE,8,3                ## @MM_TSB_HUGE
	.comm	_tlb_type,8,3                   ## @tlb_type
	.comm	_cheetah_plus,8,3               ## @cheetah_plus
	.comm	_ctx_alloc_lock,4,2             ## @ctx_alloc_lock
	.comm	_CTX_PGSZ_MASK,8,3              ## @CTX_PGSZ_MASK
	.comm	_CTX_PGSZ_BASE,8,3              ## @CTX_PGSZ_BASE
	.comm	_CTX_PGSZ0_SHIFT,8,3            ## @CTX_PGSZ0_SHIFT
	.comm	_CTX_PGSZ_HUGE,8,3              ## @CTX_PGSZ_HUGE
	.comm	_CTX_PGSZ1_SHIFT,8,3            ## @CTX_PGSZ1_SHIFT
	.comm	_context_reload,4,2             ## @context_reload
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hugetlb_prefault_arch_hook     ; -- Begin function hugetlb_prefault_arch_hook
	.p2align	2
_hugetlb_prefault_arch_hook:            ; @hugetlb_prefault_arch_hook
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _MM_TSB_HUGE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MM_TSB_HUGE@GOTPAGEOFF]
	ldr	x8, [x0, #8]
	ldr	x9, [x20]
	ldr	x8, [x8, x9, lsl #3]
	cmp	x8, #0
	cset	w0, ne
	bl	_likely
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	x1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_tsb_grow
	mov	x0, x19
	bl	_tsb_context_switch
	mov	x0, x19
	bl	_smp_tsb_sync
Lloh2:
	adrp	x8, _tlb_type@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tlb_type@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _cheetah_plus@GOTPAGE
Lloh6:
	ldr	x9, [x9, _cheetah_plus@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
Lloh8:
	adrp	x0, _ctx_alloc_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _ctx_alloc_lock@GOTPAGEOFF]
	bl	_spin_lock
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _CTX_PGSZ_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CTX_PGSZ_MASK@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	bic	x9, x8, x9
Lloh13:
	adrp	x10, _CTX_PGSZ_BASE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _CTX_PGSZ_BASE@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
Lloh16:
	adrp	x11, _CTX_PGSZ0_SHIFT@GOTPAGE
Lloh17:
	ldr	x11, [x11, _CTX_PGSZ0_SHIFT@GOTPAGEOFF]
Lloh18:
	ldr	x11, [x11]
	lsl	x10, x10, x11
	orr	x9, x10, x9
Lloh19:
	adrp	x10, _CTX_PGSZ_HUGE@GOTPAGE
Lloh20:
	ldr	x10, [x10, _CTX_PGSZ_HUGE@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
Lloh22:
	adrp	x11, _CTX_PGSZ1_SHIFT@GOTPAGE
Lloh23:
	ldr	x11, [x11, _CTX_PGSZ1_SHIFT@GOTPAGEOFF]
Lloh24:
	ldr	x11, [x11]
	lsl	x10, x10, x11
	orr	x20, x9, x10
	cmp	x20, x8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_do_flush_tlb_mm
	str	x20, [x19]
Lloh25:
	adrp	x8, _context_reload@GOTPAGE
Lloh26:
	ldr	x8, [x8, _context_reload@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	mov	x1, x19
	mov	w2, #0
	bl	_on_each_cpu
LBB0_4:
Lloh28:
	adrp	x0, _ctx_alloc_lock@GOTPAGE
Lloh29:
	ldr	x0, [x0, _ctx_alloc_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MM_TSB_HUGE,8,3                ; @MM_TSB_HUGE
	.comm	_tlb_type,8,3                   ; @tlb_type
	.comm	_cheetah_plus,8,3               ; @cheetah_plus
	.comm	_ctx_alloc_lock,4,2             ; @ctx_alloc_lock
	.comm	_CTX_PGSZ_MASK,8,3              ; @CTX_PGSZ_MASK
	.comm	_CTX_PGSZ_BASE,8,3              ; @CTX_PGSZ_BASE
	.comm	_CTX_PGSZ0_SHIFT,8,3            ; @CTX_PGSZ0_SHIFT
	.comm	_CTX_PGSZ_HUGE,8,3              ; @CTX_PGSZ_HUGE
	.comm	_CTX_PGSZ1_SHIFT,8,3            ; @CTX_PGSZ1_SHIFT
	.comm	_context_reload,4,2             ; @context_reload
.subsections_via_symbols
