	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function new_pgdir
_new_pgdir:                             ## @new_pgdir
	.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	%rdx, %r14
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	_random32
	movl	%eax, %ebx
	movq	8(%r13), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %ecx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r12d
	movl	%edx, %r15d
	movq	8(%r13), %rdi
	movq	(%rdi), %rcx
	movq	%r12, %rbx
	shlq	$4, %rbx
	cmpq	$0, 8(%rcx,%rbx)
	jne	LBB0_4
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_zeroed_page
	movq	8(%r13), %rdi
	movq	(%rdi), %rcx
	movq	%rax, 8(%rcx,%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	$1, (%r14)
	jmp	LBB0_4
LBB0_2:
	movl	(%r13), %r12d
	movl	%r12d, %r15d
LBB0_4:
	shlq	$4, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rcx,%r12)
	movl	%r15d, %esi
	callq	_flush_user_mappings
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_SWITCHER_PGD_INDEX,4,2         ## @SWITCHER_PGD_INDEX
	.comm	__PAGE_PRESENT,4,2              ## @_PAGE_PRESENT
	.no_dead_strip	_new_pgdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function new_pgdir
_new_pgdir:                             ; @new_pgdir
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x19, x1
	mov	x22, x0
	bl	_random32
	mov	x20, x0
	ldr	x8, [x22, #8]
	ldr	x0, [x8]
	bl	_ARRAY_SIZE
	udiv	w8, w20, w0
	msub	w20, w8, w0, w20
	ldr	x0, [x22, #8]
	ldr	x9, [x0]
	add	x8, x9, w20, uxtw #4
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_get_zeroed_page
	mov	x8, x0
	ldr	x0, [x22, #8]
	ldr	x9, [x0]
	add	x10, x9, x20, lsl #4
	str	x8, [x10, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_4
LBB0_3:
	ldr	w20, [x22]
LBB0_4:
	lsl	x8, x20, #4
	str	x19, [x9, x8]
	mov	x1, x20
	bl	_flush_user_mappings
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_SWITCHER_PGD_INDEX,4,2         ; @SWITCHER_PGD_INDEX
	.comm	__PAGE_PRESENT,4,2              ; @_PAGE_PRESENT
	.no_dead_strip	_new_pgdir
.subsections_via_symbols
