	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MmCountFreePagesInLookupTable  ## -- Begin function MmCountFreePagesInLookupTable
	.p2align	4, 0x90
_MmCountFreePagesInLookupTable:         ## @MmCountFreePagesInLookupTable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movslq	%edi, %rcx
	movq	_LoaderFree@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	cmpq	$4, %rsi
	jae	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	xorl	%edi, %edi
	jmp	LBB0_11
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movq	%rsi, %rdi
	andq	$-4, %rdi
	movq	%r9, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	leaq	-4(%rdi), %rax
	movq	%rax, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r8, %rdx
	andq	$-2, %rdx
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	pxor	%xmm2, %xmm2
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rax,8), %xmm3
	movdqu	16(%rcx,%rax,8), %xmm4
	movdqu	32(%rcx,%rax,8), %xmm5
	movdqu	48(%rcx,%rax,8), %xmm6
	pcmpeqq	%xmm0, %xmm3
	psubq	%xmm3, %xmm1
	pcmpeqq	%xmm0, %xmm4
	psubq	%xmm4, %xmm2
	pcmpeqq	%xmm0, %xmm5
	psubq	%xmm5, %xmm1
	pcmpeqq	%xmm0, %xmm6
	psubq	%xmm6, %xmm2
	addq	$8, %rax
	addq	$-2, %rdx
	jne	LBB0_7
## %bb.8:
	testb	$1, %r8b
	je	LBB0_10
LBB0_9:
	movdqu	(%rcx,%rax,8), %xmm3
	movdqu	16(%rcx,%rax,8), %xmm4
	pcmpeqq	%xmm0, %xmm3
	psubq	%xmm3, %xmm1
	pcmpeqq	%xmm0, %xmm4
	psubq	%xmm4, %xmm2
LBB0_10:
	paddq	%xmm2, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	paddq	%xmm1, %xmm0
	movq	%xmm0, %rax
	cmpq	%rsi, %rdi
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edx, %edx
	cmpq	%r9, (%rcx,%rdi,8)
	sete	%dl
	addq	%rdx, %rax
	incq	%rdi
	cmpq	%rdi, %rsi
	jne	LBB0_11
LBB0_12:
	popq	%rbp
	retq
LBB0_5:
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	pxor	%xmm2, %xmm2
	testb	$1, %r8b
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_LoaderFree,8,3                 ## @LoaderFree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MmCountFreePagesInLookupTable  ; -- Begin function MmCountFreePagesInLookupTable
	.p2align	2
_MmCountFreePagesInLookupTable:         ; @MmCountFreePagesInLookupTable
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	x1, LBB0_3
; %bb.1:
	sxtw	x9, w0
Lloh0:
	adrp	x8, _LoaderFree@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LoaderFree@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x0, #0
	mov	x10, #0
	b	LBB0_7
LBB0_3:
	mov	x0, #0
	ret
LBB0_4:
	and	x10, x1, #0xfffffffffffffff8
	dup.2d	v0, x8
	add	x11, x9, #32
	movi.2d	v1, #0000000000000000
	mov	x12, x10
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q5, q6, [x11, #-32]
	ldp	q7, q16, [x11], #64
	cmeq.2d	v5, v5, v0
	cmeq.2d	v6, v6, v0
	cmeq.2d	v7, v7, v0
	cmeq.2d	v16, v16, v0
	sub.2d	v1, v1, v5
	sub.2d	v2, v2, v6
	sub.2d	v3, v3, v7
	sub.2d	v4, v4, v16
	subs	x12, x12, #8
	b.ne	LBB0_5
; %bb.6:
	add.2d	v0, v2, v1
	add.2d	v0, v3, v0
	add.2d	v0, v4, v0
	addp.2d	d0, v0
	fmov	x0, d0
	cmp	x10, x1
	b.eq	LBB0_9
LBB0_7:
	sub	x11, x1, x10
	add	x9, x9, x10, lsl #3
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #8
	cmp	x10, x8
	cinc	x0, x0, eq
	subs	x11, x11, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LoaderFree,8,3                 ; @LoaderFree
.subsections_via_symbols
