	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmu_pages_add
_mmu_pages_add:                         ## @mmu_pages_add
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, (%rsi)
	movl	(%rdi), %r8d
	je	LBB0_5
## %bb.1:
	testl	%r8d, %r8d
	jle	LBB0_5
## %bb.2:
	movq	8(%rdi), %r9
	movq	%r8, %r10
	shlq	$4, %r10
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, 8(%r9,%rcx)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %rcx
	cmpq	%rcx, %r10
	jne	LBB0_4
LBB0_5:
	movslq	%r8d, %rax
	movq	8(%rdi), %rcx
	shlq	$4, %rax
	movq	%rsi, 8(%rcx,%rax)
	movl	%edx, (%rcx,%rax)
	leal	1(%r8), %eax
	movl	%eax, (%rdi)
	movslq	%eax, %rcx
	movq	_KVM_PAGE_ARRAY_NR@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	%rcx, (%rdx)
	sete	%al
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KVM_PAGE_ARRAY_NR,8,3          ## @KVM_PAGE_ARRAY_NR
	.no_dead_strip	_mmu_pages_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmu_pages_add
_mmu_pages_add:                         ; @mmu_pages_add
	.cfi_startproc
; %bb.0:
	ldr	x9, [x1]
	ldr	w8, [x0]
	cmp	x9, #0
	ccmp	w8, #1, #8, ne
	b.lt	LBB0_4
; %bb.1:
	ldr	x9, [x0, #8]
	add	x9, x9, #8
	mov	x10, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cmp	x11, x1
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #16
	subs	x10, x10, #1
	b.ne	LBB0_2
LBB0_4:
	mov	x9, x8
	sxtw	x9, w9
	ldr	x10, [x0, #8]
	add	x9, x10, x9, lsl #4
	str	x1, [x9, #8]
	str	w2, [x9]
	add	w8, w8, #1
	str	w8, [x0]
Lloh0:
	adrp	x9, _KVM_PAGE_ARRAY_NR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KVM_PAGE_ARRAY_NR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, w8, sxtw
	cset	w0, eq
	ret
LBB0_5:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KVM_PAGE_ARRAY_NR,8,3          ; @KVM_PAGE_ARRAY_NR
	.no_dead_strip	_mmu_pages_add
.subsections_via_symbols
