	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function create_pagetables
LCPI0_0:
	.quad	2                               ## 0x2
	.quad	3                               ## 0x3
LCPI0_1:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_2:
	.quad	4                               ## 0x4
	.quad	4                               ## 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_create_pagetables:                     ## @create_pagetables
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_Maxmem@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_ptoa
	movq	_NBPDP@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_howmany
	cmpl	$5, %eax
	movl	$4, %edi
	cmovgel	%eax, %edi
	movq	_ndmpdp@GOTPCREL(%rip), %r15
	movl	%edi, (%r15)
	movq	_NPDPEPG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_howmany
	movq	_ndmpdpphys@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_NDMPML4E@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	cmpl	%esi, %eax
	jle	LBB0_2
## %bb.1:
	shll	$9, %esi
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movq	_NBPML4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	imull	(%rbx), %edi
	callq	_atop
	movl	%eax, (%r12)
	movl	(%rbx), %eax
	movq	_ndmpdpphys@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_NPDEPG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	%eax, %ecx
	movl	%ecx, (%r15)
LBB0_2:
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_allocpages
	movq	_DMPDPphys@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_amd_feature@GOTPCREL(%rip), %rax
	movq	_AMDID_PAGE1GB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.3:
	movl	(%r12), %edi
	callq	_ptoa
	movl	%eax, %ebx
	movq	_PDPSHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movq	_brwsection@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_KERNBASE@GOTPCREL(%rip), %rax
	subl	(%rax), %edi
	movl	(%r14), %esi
	callq	_howmany
	movq	%r13, %rdi
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, %esi
	callq	_allocpages
	jmp	LBB0_5
LBB0_4:
	xorl	%ebx, %ebx
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
                                        ## implicit-def: $eax
LBB0_5:
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	(%r15), %eax
	movl	%eax, %esi
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	subl	%ebx, %esi
	jle	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	callq	_allocpages
	movq	_DMPDphys@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	(%r15), %eax
LBB0_7:
	cltq
	movq	_PDPSHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	movq	_dmaplimit@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_allocpages
	movq	_KPML4phys@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_NKPML4E@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_allocpages
	movq	_KPDPphys@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	(%r13), %rdi
	callq	_nkpt_init
	movq	_nkpt@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_NKPDPE
	movl	%eax, %r14d
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_allocpages
	movq	_KPTphys@GOTPCREL(%rip), %r15
	movl	%eax, (%r15)
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movl	%r14d, %esi
	callq	_allocpages
	movq	_KPDphys@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movslq	%eax, %r13
	cmpl	$0, (%rbx)
	jle	LBB0_10
## %bb.8:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %r12d
	movl	%r14d, %edi
	callq	_ptoa
	addl	%r12d, %eax
	movq	_X86_PG_RW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_X86_PG_V@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r13,%r14,4)
	incq	%r14
	movslq	(%rbx), %rax
	cmpq	%rax, %r14
	jl	LBB0_9
LBB0_10:
	movq	_KERNend@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.11:
	xorl	%ebx, %ebx
	movq	_PDRSHIFT@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	_X86_PG_V@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	orl	%edi, %r15d
	movq	_PG_PS@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_pg_g@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_X86_PG_M@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_X86_PG_A@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	callq	_bootaddr_rwx
	orl	%r15d, %eax
	movl	%eax, (%r13,%rbx,4)
	incq	%rbx
	movzbl	(%r14), %ecx
	movl	%ebx, %edi
	shll	%cl, %edi
	movl	(%r12), %eax
	cmpl	%eax, %edi
	jl	LBB0_12
LBB0_13:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rbx
	movl	%eax, %edi
	callq	_round_2mpage
	cmpq	%rax, %rbx
	movq	_KPDPphys@GOTPCREL(%rip), %rbx
	jge	LBB0_15
## %bb.14:
	movl	(%r12), %edi
	callq	_round_2mpage
	movq	%rax, (%r14)
LBB0_15:
	movslq	(%rbx), %rbx
	movq	_KPML4I@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_KPML4BASE@GOTPCREL(%rip), %rax
	subl	(%rax), %edi
	callq	_ptoa
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, %edx
	movq	_KPDphys@GOTPCREL(%rip), %r12
	jle	LBB0_18
## %bb.16:
	movslq	%eax, %r14
	addq	%rbx, %r14
	movl	%edx, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %r13d
	movl	%ebx, %edi
	callq	_ptoa
	addl	%r13d, %eax
	movq	_X86_PG_RW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_X86_PG_V@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_KPDPI@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	%rbx, %rcx
	movl	%eax, (%r14,%rcx,4)
	incq	%rbx
	cmpl	%ebx, %r15d
	jne	LBB0_17
LBB0_18:
	movq	_NPDEPG@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	_ndmpdp@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	%ecx, %edx
	imull	%eax, %edx
	imull	-56(%rbp), %eax                 ## 4-byte Folded Reload
	cmpl	%edx, %eax
	jge	LBB0_21
## %bb.19:
	movq	_DMPDphys@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	movq	_PDRSHIFT@GOTPCREL(%rip), %r8
	movq	_X86_PG_RW@GOTPCREL(%rip), %r9
	movq	_X86_PG_V@GOTPCREL(%rip), %r10
	movq	_PG_PS@GOTPCREL(%rip), %r11
	movq	_pg_g@GOTPCREL(%rip), %r14
	movq	_X86_PG_M@GOTPCREL(%rip), %r15
	movq	_X86_PG_A@GOTPCREL(%rip), %rsi
	movq	_pg_nx@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ebx
	movzbl	(%r8), %ecx
	shlq	%cl, %rbx
	movl	%ebx, (%rdx)
	movl	(%r10), %ecx
	orl	(%r9), %ecx
	orl	%ebx, %ecx
	orl	(%r11), %ecx
	orl	(%r14), %ecx
	orl	(%r15), %ecx
	orl	(%rsi), %ecx
	orl	(%rdi), %ecx
	movl	%ecx, (%rdx)
	incl	%eax
	movl	(%r13), %ecx
	movl	(%r12), %ebx
	imull	%ecx, %ebx
	addq	$4, %rdx
	cmpl	%ebx, %eax
	jl	LBB0_20
LBB0_21:
	movq	_DMPDPphys@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_24
## %bb.22:
	movq	_PDPSHIFT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %r11d
	cmpl	$4, %eax
	jae	LBB0_25
## %bb.23:
	xorl	%r14d, %r14d
	jmp	LBB0_41
LBB0_24:
	xorl	%eax, %eax
	jmp	LBB0_44
LBB0_25:
	leaq	(%rbx,%r11,4), %rdx
	movq	_X86_PG_RW@GOTPCREL(%rip), %rsi
	leaq	4(%rsi), %rax
	cmpq	%rax, %rbx
	setb	-60(%rbp)                       ## 1-byte Folded Spill
	cmpq	%rsi, %rdx
	seta	-45(%rbp)                       ## 1-byte Folded Spill
	movq	_X86_PG_V@GOTPCREL(%rip), %rsi
	leaq	4(%rsi), %rax
	cmpq	%rax, %rbx
	setb	%r15b
	cmpq	%rsi, %rdx
	seta	-44(%rbp)                       ## 1-byte Folded Spill
	movq	_PG_PS@GOTPCREL(%rip), %rsi
	leaq	4(%rsi), %rax
	cmpq	%rax, %rbx
	setb	%r8b
	cmpq	%rsi, %rdx
	seta	-43(%rbp)                       ## 1-byte Folded Spill
	movq	_pg_g@GOTPCREL(%rip), %rsi
	leaq	4(%rsi), %rax
	cmpq	%rax, %rbx
	setb	%r10b
	cmpq	%rsi, %rdx
	seta	-42(%rbp)                       ## 1-byte Folded Spill
	movq	_X86_PG_M@GOTPCREL(%rip), %rsi
	leaq	4(%rsi), %rax
	cmpq	%rax, %rbx
	setb	%al
	cmpq	%rsi, %rdx
	seta	-41(%rbp)                       ## 1-byte Folded Spill
	movq	_X86_PG_A@GOTPCREL(%rip), %rdi
	leaq	4(%rdi), %rsi
	cmpq	%rsi, %rbx
	setb	%r12b
	cmpq	%rdi, %rdx
	seta	%r9b
	movq	_pg_nx@GOTPCREL(%rip), %rsi
	leaq	4(%rsi), %rdi
	cmpq	%rdi, %rbx
	setb	%r13b
	cmpq	%rsi, %rdx
	seta	%dil
	xorl	%r14d, %r14d
	movb	-45(%rbp), %dl                  ## 1-byte Reload
	testb	%dl, -60(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_40
## %bb.26:
	andb	-44(%rbp), %r15b                ## 1-byte Folded Reload
	jne	LBB0_40
## %bb.27:
	andb	-43(%rbp), %r8b                 ## 1-byte Folded Reload
	jne	LBB0_40
## %bb.28:
	andb	-42(%rbp), %r10b                ## 1-byte Folded Reload
	jne	LBB0_40
## %bb.29:
	andb	-41(%rbp), %al                  ## 1-byte Folded Reload
	jne	LBB0_40
## %bb.30:
	andb	%r9b, %r12b
	jne	LBB0_40
## %bb.31:
	andb	%dil, %r13b
	movq	_ndmpdp@GOTPCREL(%rip), %r13
	jne	LBB0_41
## %bb.32:
	movl	%r11d, %r14d
	andl	$-4, %r14d
	movq	%rcx, %xmm0
	movq	_X86_PG_V@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_X86_PG_RW@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movq	_PG_PS@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movq	_pg_g@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movq	_X86_PG_M@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movq	_X86_PG_A@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movq	_pg_nx@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movd	%eax, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	leaq	(,%r11,4), %rsi
	andq	$-16, %rsi
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [2,3]
	movdqa	LCPI0_1(%rip), %xmm3            ## xmm3 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	xorl	%eax, %eax
	movdqa	LCPI0_2(%rip), %xmm4            ## xmm4 = [4,4]
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm3, %xmm5
	psllq	%xmm0, %xmm5
	movdqa	%xmm2, %xmm6
	psllq	%xmm0, %xmm6
	shufps	$136, %xmm6, %xmm5              ## xmm5 = xmm5[0,2],xmm6[0,2]
	orps	%xmm1, %xmm5
	movups	%xmm5, (%rbx,%rax)
	paddq	%xmm4, %xmm3
	paddq	%xmm4, %xmm2
	addq	$16, %rax
	cmpq	%rax, %rsi
	jne	LBB0_33
## %bb.34:
	cmpq	%r11, %r14
	jne	LBB0_41
	jmp	LBB0_43
LBB0_40:
	movq	_ndmpdp@GOTPCREL(%rip), %r13
LBB0_41:
	movq	_X86_PG_RW@GOTPCREL(%rip), %r8
	movq	_X86_PG_V@GOTPCREL(%rip), %r9
	movq	_PG_PS@GOTPCREL(%rip), %r10
	movq	_pg_g@GOTPCREL(%rip), %r15
	movq	_X86_PG_M@GOTPCREL(%rip), %rsi
	movq	_X86_PG_A@GOTPCREL(%rip), %rdi
	movq	_pg_nx@GOTPCREL(%rip), %rax
	.p2align	4, 0x90
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdx
	shlq	%cl, %rdx
	movl	%edx, (%rbx,%r14,4)
	orl	(%r8), %edx
	orl	(%r9), %edx
	orl	(%r10), %edx
	orl	(%r15), %edx
	orl	(%rsi), %edx
	orl	(%rdi), %edx
	orl	(%rax), %edx
	movl	%edx, (%rbx,%r14,4)
	incq	%r14
	cmpq	%r14, %r11
	jne	LBB0_42
LBB0_43:
	movl	(%r13), %ecx
	movl	-56(%rbp), %eax                 ## 4-byte Reload
LBB0_44:
	cmpl	%ecx, %eax
	movq	_DMPDphys@GOTPCREL(%rip), %r12
	jge	LBB0_47
## %bb.45:
	movl	%eax, %r14d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14,4), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_46:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %r13d
	movl	%ebx, %edi
	callq	_ptoa
	addl	%r13d, %eax
	movl	%eax, (%r15,%rbx,4)
	movq	_X86_PG_RW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_X86_PG_V@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_pg_nx@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r15,%rbx,4)
	incq	%rbx
	leal	(%rbx,%r14), %eax
	movq	_ndmpdp@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jg	LBB0_46
LBB0_47:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_54
## %bb.48:
	movq	_NPDEPG@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	imull	-52(%rbp), %eax                 ## 4-byte Folded Reload
	testl	%eax, %eax
	jle	LBB0_51
## %bb.49:
	movslq	-80(%rbp), %r14                 ## 4-byte Folded Reload
	xorl	%ebx, %ebx
	movslq	-52(%rbp), %r13                 ## 4-byte Folded Reload
	.p2align	4, 0x90
LBB0_50:                                ## =>This Inner Loop Header: Depth=1
	movq	_PDRSHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movl	%ebx, %edi
	shll	%cl, %edi
	movq	_X86_PG_V@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	orl	%edi, %r15d
	movq	_PG_PS@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_pg_g@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_X86_PG_M@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_X86_PG_A@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_pg_nx@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	callq	_bootaddr_rwx
	orl	%r15d, %eax
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	movslq	(%r12), %rax
	imulq	%r13, %rax
	cmpq	%rax, %rbx
	jl	LBB0_50
LBB0_51:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_54
## %bb.52:
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	xorl	%ebx, %ebx
	movq	_pg_nx@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_53:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_ptoa
	addl	%r13d, %eax
	movq	_X86_PG_RW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_X86_PG_V@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	(%r15), %eax
	movl	%eax, (%r12,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_53
LBB0_54:
	movq	_KPML4phys@GOTPCREL(%rip), %rax
	movslq	(%rax), %r15
	movq	_PML4PML4I@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r15d, (%r15,%rax,4)
	movq	_X86_PG_RW@GOTPCREL(%rip), %rcx
	movq	_X86_PG_V@GOTPCREL(%rip), %rsi
	movq	_pg_nx@GOTPCREL(%rip), %r13
	movl	(%rcx), %ecx
	orl	%r15d, %ecx
	orl	(%rsi), %ecx
	orl	(%r13), %ecx
	movl	%ecx, (%r15,%rax,4)
	movq	_ndmpdpphys@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	_DMPDPphys@GOTPCREL(%rip), %r14
	jle	LBB0_57
## %bb.55:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_56:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %r12d
	movl	%ebx, %edi
	callq	_ptoa
	addl	%r12d, %eax
	movq	_DMPML4I@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rcx
	addq	%rbx, %rcx
	movl	%eax, (%r15,%rcx,4)
	movq	_X86_PG_V@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_X86_PG_RW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	(%r13), %eax
	movslq	(%rsi), %rcx
	addq	%rbx, %rcx
	orl	%eax, (%r15,%rcx,4)
	incq	%rbx
	movq	_ndmpdpphys@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_56
LBB0_57:
	movq	_NKPML4E@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	movq	_KPDPphys@GOTPCREL(%rip), %rax
	movq	_KPML4BASE@GOTPCREL(%rip), %rdx
	jle	LBB0_60
## %bb.58:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_59:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %r14d
	movl	%ebx, %edi
	movq	%rcx, %r12
	movq	%r15, %r13
	movq	%rdx, %r15
	callq	_ptoa
	movq	%r15, %rdx
	movq	%r13, %r15
	addl	%r14d, %eax
	movslq	(%rdx), %rcx
	addq	%rbx, %rcx
	movl	%eax, (%r13,%rcx,4)
	movq	_X86_PG_V@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_X86_PG_RW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movslq	(%rdx), %rcx
	addq	%rbx, %rcx
	orl	%eax, (%r13,%rcx,4)
	movq	%r12, %rcx
	movq	_KPDPphys@GOTPCREL(%rip), %rax
	incq	%rbx
	cmpl	(%r12), %ebx
	jl	LBB0_59
LBB0_60:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Maxmem,4,2                     ## @Maxmem
	.comm	_NBPDP,4,2                      ## @NBPDP
	.comm	_ndmpdp,4,2                     ## @ndmpdp
	.comm	_NPDPEPG,4,2                    ## @NPDPEPG
	.comm	_ndmpdpphys,4,2                 ## @ndmpdpphys
	.comm	_NDMPML4E,4,2                   ## @NDMPML4E
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NDMPML4E limits system to %d GB\n"

	.comm	_NBPML4,4,2                     ## @NBPML4
	.comm	_NPDEPG,4,2                     ## @NPDEPG
	.comm	_DMPDPphys,4,2                  ## @DMPDPphys
	.comm	_amd_feature,4,2                ## @amd_feature
	.comm	_AMDID_PAGE1GB,4,2              ## @AMDID_PAGE1GB
	.comm	_PDPSHIFT,8,3                   ## @PDPSHIFT
	.comm	_brwsection,8,3                 ## @brwsection
	.comm	_KERNBASE,8,3                   ## @KERNBASE
	.comm	_DMPDphys,4,2                   ## @DMPDphys
	.comm	_dmaplimit,8,3                  ## @dmaplimit
	.comm	_KPML4phys,4,2                  ## @KPML4phys
	.comm	_NKPML4E,4,2                    ## @NKPML4E
	.comm	_KPDPphys,4,2                   ## @KPDPphys
	.comm	_nkpt,4,2                       ## @nkpt
	.comm	_KPTphys,4,2                    ## @KPTphys
	.comm	_KPDphys,4,2                    ## @KPDphys
	.comm	_X86_PG_RW,4,2                  ## @X86_PG_RW
	.comm	_X86_PG_V,4,2                   ## @X86_PG_V
	.comm	_PDRSHIFT,4,2                   ## @PDRSHIFT
	.comm	_KERNend,4,2                    ## @KERNend
	.comm	_PG_PS,4,2                      ## @PG_PS
	.comm	_pg_g,4,2                       ## @pg_g
	.comm	_X86_PG_M,4,2                   ## @X86_PG_M
	.comm	_X86_PG_A,4,2                   ## @X86_PG_A
	.comm	_KPML4I,4,2                     ## @KPML4I
	.comm	_KPML4BASE,4,2                  ## @KPML4BASE
	.comm	_KPDPI,4,2                      ## @KPDPI
	.comm	_pg_nx,4,2                      ## @pg_nx
	.comm	_PML4PML4I,8,3                  ## @PML4PML4I
	.comm	_DMPML4I,4,2                    ## @DMPML4I
	.no_dead_strip	_create_pagetables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function create_pagetables
lCPI0_0:
	.quad	2                               ; 0x2
	.quad	3                               ; 0x3
lCPI0_1:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_create_pagetables:                     ; @create_pagetables
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x0
Lloh0:
	adrp	x20, _Maxmem@GOTPAGE
Lloh1:
	ldr	x20, [x20, _Maxmem@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_ptoa
Lloh2:
	adrp	x19, _NBPDP@GOTPAGE
Lloh3:
	ldr	x19, [x19, _NBPDP@GOTPAGEOFF]
	ldr	w1, [x19]
	bl	_howmany
	mov	w8, #4
	cmp	w0, #4
	csel	w0, w0, w8, gt
Lloh4:
	adrp	x8, _ndmpdp@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ndmpdp@GOTPAGEOFF]
	mov	x27, x8
	str	w0, [x8]
Lloh6:
	adrp	x8, _NPDPEPG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NPDPEPG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_howmany
	mov	x1, x0
Lloh9:
	adrp	x22, _ndmpdpphys@GOTPAGE
Lloh10:
	ldr	x22, [x22, _ndmpdpphys@GOTPAGEOFF]
	str	w0, [x22]
Lloh11:
	adrp	x21, _NDMPML4E@GOTPAGE
Lloh12:
	ldr	x21, [x21, _NDMPML4E@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh13:
	adrp	x23, _NPDEPG@GOTPAGE
Lloh14:
	ldr	x23, [x23, _NPDEPG@GOTPAGEOFF]
	cmp	w0, w8
	b.le	LBB0_2
; %bb.1:
	lsl	w1, w8, #9
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	w8, [x21]
Lloh17:
	adrp	x9, _NBPML4@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NBPML4@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	mul	w0, w9, w8
	bl	_atop
	str	w0, [x20]
	ldr	w1, [x21]
	str	w1, [x22]
	ldr	w8, [x23]
	mul	w8, w8, w1
	str	w8, [x27]
LBB0_2:
	mov	x0, x24
	bl	_allocpages
Lloh20:
	adrp	x8, _DMPDPphys@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DMPDPphys@GOTPAGEOFF]
Lloh22:
	str	w0, [x8]
Lloh23:
	adrp	x8, _amd_feature@GOTPAGE
Lloh24:
	ldr	x8, [x8, _amd_feature@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _AMDID_PAGE1GB@GOTPAGE
Lloh27:
	ldr	x9, [x9, _AMDID_PAGE1GB@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	adrp	x22, _PDPSHIFT@GOTPAGE
Lloh30:
	ldr	x22, [x22, _PDPSHIFT@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x20]
	bl	_ptoa
	ldr	w8, [x22]
	asr	w20, w0, w8
Lloh31:
	adrp	x8, _brwsection@GOTPAGE
Lloh32:
	ldr	x8, [x8, _brwsection@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _KERNBASE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _KERNBASE@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	sub	w0, w8, w9
	ldr	w1, [x19]
	bl	_howmany
	mov	x1, x0
	mov	x0, x24
	str	x1, [sp, #24]                   ; 8-byte Folded Spill
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_allocpages
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_5
LBB0_4:
	mov	w20, #0
                                        ; implicit-def: $w8
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
                                        ; implicit-def: $w8
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
LBB0_5:
	mov	x19, x27
	ldr	w8, [x27]
Lloh37:
	adrp	x21, _DMPDphys@GOTPAGE
Lloh38:
	ldr	x21, [x21, _DMPDphys@GOTPAGEOFF]
	str	w20, [sp, #40]                  ; 4-byte Folded Spill
	subs	w1, w8, w20
	b.le	LBB0_7
; %bb.6:
	mov	x0, x24
	bl	_allocpages
	str	w0, [x21]
	ldr	w8, [x19]
LBB0_7:
	sxtw	x8, w8
	ldr	x9, [x22]
	lsl	x8, x8, x9
Lloh39:
	adrp	x9, _dmaplimit@GOTPAGE
Lloh40:
	ldr	x9, [x9, _dmaplimit@GOTPAGEOFF]
Lloh41:
	str	x8, [x9]
	mov	x0, x24
	mov	w1, #1
	bl	_allocpages
Lloh42:
	adrp	x8, _KPML4phys@GOTPAGE
Lloh43:
	ldr	x8, [x8, _KPML4phys@GOTPAGEOFF]
Lloh44:
	str	w0, [x8]
Lloh45:
	adrp	x8, _NKPML4E@GOTPAGE
Lloh46:
	ldr	x8, [x8, _NKPML4E@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_allocpages
Lloh48:
	adrp	x20, _KPDPphys@GOTPAGE
Lloh49:
	ldr	x20, [x20, _KPDPphys@GOTPAGEOFF]
	str	w0, [x20]
	ldr	x0, [x24]
	bl	_nkpt_init
Lloh50:
	adrp	x19, _nkpt@GOTPAGE
Lloh51:
	ldr	x19, [x19, _nkpt@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_NKPDPE
	mov	x21, x0
	ldr	w1, [x19]
	mov	x0, x24
	bl	_allocpages
Lloh52:
	adrp	x22, _KPTphys@GOTPAGE
Lloh53:
	ldr	x22, [x22, _KPTphys@GOTPAGEOFF]
	str	w0, [x22]
	str	x24, [sp, #32]                  ; 8-byte Folded Spill
	mov	x0, x24
	str	w21, [sp, #8]                   ; 4-byte Folded Spill
	mov	x1, x21
	bl	_allocpages
Lloh54:
	adrp	x8, _KPDphys@GOTPAGE
Lloh55:
	ldr	x8, [x8, _KPDphys@GOTPAGEOFF]
Lloh56:
	str	w0, [x8]
	sxtw	x21, w0
	ldr	w8, [x19]
Lloh57:
	adrp	x24, _X86_PG_RW@GOTPAGE
Lloh58:
	ldr	x24, [x24, _X86_PG_RW@GOTPAGEOFF]
Lloh59:
	adrp	x25, _X86_PG_V@GOTPAGE
Lloh60:
	ldr	x25, [x25, _X86_PG_V@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x23, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w26, [x22]
	mov	x0, x23
	bl	_ptoa
	ldr	w8, [x24]
	add	w9, w0, w26
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w8, w8, w9
	str	w8, [x21, x23, lsl #2]
	add	x23, x23, #1
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.lt	LBB0_9
LBB0_10:
Lloh61:
	adrp	x23, _KERNend@GOTPAGE
Lloh62:
	ldr	x23, [x23, _KERNend@GOTPAGEOFF]
Lloh63:
	adrp	x19, _PG_PS@GOTPAGE
Lloh64:
	ldr	x19, [x19, _PG_PS@GOTPAGEOFF]
Lloh65:
	adrp	x10, _pg_g@GOTPAGE
Lloh66:
	ldr	x10, [x10, _pg_g@GOTPAGEOFF]
Lloh67:
	adrp	x11, _X86_PG_M@GOTPAGE
Lloh68:
	ldr	x11, [x11, _X86_PG_M@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh69:
	adrp	x12, _X86_PG_A@GOTPAGE
Lloh70:
	ldr	x12, [x12, _X86_PG_A@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x26, #0
	mov	w0, #0
	mov	x22, x27
Lloh71:
	adrp	x28, _PDRSHIFT@GOTPAGE
Lloh72:
	ldr	x28, [x28, _PDRSHIFT@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	orr	w8, w8, w0
	ldr	w9, [x19]
	orr	w8, w8, w9
	ldr	w9, [x10]
	orr	w8, w8, w9
	ldr	w9, [x11]
	orr	w8, w8, w9
	ldr	w9, [x12]
	orr	w27, w8, w9
	bl	_bootaddr_rwx
Lloh73:
	adrp	x12, _X86_PG_A@GOTPAGE
Lloh74:
	ldr	x12, [x12, _X86_PG_A@GOTPAGEOFF]
Lloh75:
	adrp	x11, _X86_PG_M@GOTPAGE
Lloh76:
	ldr	x11, [x11, _X86_PG_M@GOTPAGEOFF]
Lloh77:
	adrp	x10, _pg_g@GOTPAGE
Lloh78:
	ldr	x10, [x10, _pg_g@GOTPAGEOFF]
	orr	w8, w27, w0
	str	w8, [x21, x26, lsl #2]
	add	x26, x26, #1
	ldr	w8, [x28]
	lsl	w0, w26, w8
	ldr	w8, [x23]
	cmp	w0, w8
	b.lt	LBB0_12
	b	LBB0_14
LBB0_13:
	mov	x22, x27
LBB0_14:
	ldr	x26, [sp, #32]                  ; 8-byte Folded Reload
	ldr	x21, [x26]
	mov	x0, x8
	bl	_round_2mpage
	cmp	x21, x0
	b.ge	LBB0_16
; %bb.15:
	ldr	w0, [x23]
	bl	_round_2mpage
	str	x0, [x26]
LBB0_16:
Lloh79:
	adrp	x8, _KPML4I@GOTPAGE
Lloh80:
	ldr	x8, [x8, _KPML4I@GOTPAGEOFF]
	ldrsw	x23, [x20]
Lloh81:
	ldr	w8, [x8]
Lloh82:
	adrp	x9, _KPML4BASE@GOTPAGE
Lloh83:
	ldr	x9, [x9, _KPML4BASE@GOTPAGEOFF]
Lloh84:
	ldr	w9, [x9]
	sub	w0, w8, w9
	bl	_ptoa
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	cmp	w8, #1
Lloh85:
	adrp	x28, _KPDphys@GOTPAGE
Lloh86:
	ldr	x28, [x28, _KPDphys@GOTPAGEOFF]
	b.lt	LBB0_19
; %bb.17:
	mov	x21, #0
	add	x23, x23, w0, sxtw
Lloh87:
	adrp	x26, _KPDPI@GOTPAGE
Lloh88:
	ldr	x26, [x26, _KPDPI@GOTPAGEOFF]
	mov	w27, w8
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w20, [x28]
	mov	x0, x21
	bl	_ptoa
	ldr	w8, [x24]
	add	w9, w0, w20
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w8, w8, w9
	ldrsw	x9, [x26]
	add	x9, x21, x9
	str	w8, [x23, x9, lsl #2]
	add	x21, x21, #1
	cmp	w27, w21
	b.ne	LBB0_18
LBB0_19:
Lloh89:
	adrp	x17, _NPDEPG@GOTPAGE
Lloh90:
	ldr	x17, [x17, _NPDEPG@GOTPAGEOFF]
	ldr	w9, [x17]
	ldr	w2, [sp, #40]                   ; 4-byte Folded Reload
	mul	w8, w9, w2
	ldr	w10, [x22]
	mul	w9, w10, w9
Lloh91:
	adrp	x20, _pg_nx@GOTPAGE
Lloh92:
	ldr	x20, [x20, _pg_nx@GOTPAGEOFF]
	cmp	w8, w9
Lloh93:
	adrp	x3, _pg_g@GOTPAGE
Lloh94:
	ldr	x3, [x3, _pg_g@GOTPAGEOFF]
Lloh95:
	adrp	x4, _X86_PG_M@GOTPAGE
Lloh96:
	ldr	x4, [x4, _X86_PG_M@GOTPAGEOFF]
Lloh97:
	adrp	x5, _X86_PG_A@GOTPAGE
Lloh98:
	ldr	x5, [x5, _X86_PG_A@GOTPAGEOFF]
Lloh99:
	adrp	x1, _DMPDPphys@GOTPAGE
Lloh100:
	ldr	x1, [x1, _DMPDPphys@GOTPAGEOFF]
	b.ge	LBB0_22
; %bb.20:
Lloh101:
	adrp	x9, _DMPDphys@GOTPAGE
Lloh102:
	ldr	x9, [x9, _DMPDphys@GOTPAGEOFF]
Lloh103:
	ldrsw	x9, [x9]
Lloh104:
	adrp	x0, _PDRSHIFT@GOTPAGE
Lloh105:
	ldr	x0, [x0, _PDRSHIFT@GOTPAGEOFF]
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	mov	w10, w8
	ldr	w11, [x0]
	lsl	x10, x10, x11
	str	w10, [x9]
	ldr	w11, [x24]
	ldr	w12, [x25]
	orr	w11, w12, w11
	ldr	w12, [x19]
	ldr	w13, [x3]
	ldr	w14, [x4]
	ldr	w15, [x5]
	ldr	w16, [x20]
	orr	w10, w11, w10
	orr	w10, w10, w12
	orr	w10, w10, w13
	orr	w10, w10, w14
	orr	w10, w10, w15
	orr	w10, w10, w16
	str	w10, [x9], #4
	add	w8, w8, #1
	ldr	w11, [x17]
	ldr	w10, [x22]
	mul	w11, w10, w11
	cmp	w8, w11
	b.lt	LBB0_21
LBB0_22:
	ldrsw	x23, [x1]
	cmp	w2, #1
	b.lt	LBB0_25
; %bb.23:
Lloh106:
	adrp	x8, _PDPSHIFT@GOTPAGE
Lloh107:
	ldr	x8, [x8, _PDPSHIFT@GOTPAGEOFF]
Lloh108:
	ldr	x8, [x8]
	mov	w9, w2
	cmp	w2, #4
	b.hs	LBB0_26
; %bb.24:
	mov	x10, #0
	b	LBB0_36
LBB0_25:
	mov	w8, #0
	b	LBB0_38
LBB0_26:
	mov	x10, #0
	add	x17, x23, x9, lsl #2
	add	x11, x25, #4
	cmp	x23, x11
	ccmp	x17, x25, #0, lo
	cset	w11, hi
	add	x12, x19, #4
	cmp	x23, x12
	ccmp	x17, x19, #0, lo
	cset	w12, hi
	add	x13, x3, #4
	cmp	x23, x13
	ccmp	x17, x3, #0, lo
	cset	w13, hi
	add	x14, x4, #4
	cmp	x23, x14
	ccmp	x17, x4, #0, lo
	cset	w14, hi
	add	x15, x5, #4
	cmp	x23, x15
	ccmp	x17, x5, #0, lo
	cset	w15, hi
	add	x16, x20, #4
	cmp	x23, x16
	ccmp	x17, x20, #0, lo
	cset	w16, hi
	cmp	x17, x24
	add	x17, x24, #4
	ccmp	x23, x17, #2, hi
	b.lo	LBB0_36
; %bb.27:
	tbnz	w11, #0, LBB0_36
; %bb.28:
	tbnz	w12, #0, LBB0_36
; %bb.29:
	tbnz	w13, #0, LBB0_36
; %bb.30:
	tbnz	w14, #0, LBB0_36
; %bb.31:
	tbnz	w15, #0, LBB0_36
; %bb.32:
	tbnz	w16, #0, LBB0_36
; %bb.33:
	and	x10, x9, #0xfffffffc
	dup.2d	v0, x8
	ldr	w11, [x24]
	ldr	w12, [x25]
	ldr	w13, [x19]
	ldr	w14, [x3]
	ldr	w15, [x4]
	ldr	w16, [x5]
	ldr	w17, [x20]
	orr	w11, w12, w11
	orr	w11, w13, w11
	orr	w11, w14, w11
	orr	w11, w15, w11
	orr	w11, w16, w11
	orr	w11, w17, w11
	dup.4s	v1, w11
Lloh109:
	adrp	x11, lCPI0_0@PAGE
Lloh110:
	ldr	q2, [x11, lCPI0_0@PAGEOFF]
Lloh111:
	adrp	x11, lCPI0_1@PAGE
Lloh112:
	ldr	q3, [x11, lCPI0_1@PAGEOFF]
	mov	w11, #4
	dup.2d	v4, x11
	mov	x11, x10
	mov	x12, x23
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	ushl.2d	v5, v3, v0
	ushl.2d	v6, v2, v0
	uzp1.4s	v5, v5, v6
	orr.16b	v5, v1, v5
	str	q5, [x12], #16
	add.2d	v2, v2, v4
	add.2d	v3, v3, v4
	subs	x11, x11, #4
	b.ne	LBB0_34
; %bb.35:
	cmp	x10, x9
	b.eq	LBB0_37
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	lsl	x11, x10, x8
	lsl	x12, x10, #2
	str	w11, [x23, x12]
	ldr	w13, [x24]
	ldr	w14, [x25]
	ldr	w15, [x19]
	ldr	w16, [x3]
	ldr	w17, [x4]
	ldr	w0, [x5]
	ldr	w1, [x20]
	orr	w11, w13, w11
	orr	w11, w11, w14
	orr	w11, w11, w15
	orr	w11, w11, w16
	orr	w11, w11, w17
	orr	w11, w11, w0
	orr	w11, w11, w1
	str	w11, [x23, x12]
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_36
LBB0_37:
	ldr	w10, [x22]
	mov	x8, x2
LBB0_38:
	cmp	w8, w10
Lloh113:
	adrp	x19, _DMPDphys@GOTPAGE
Lloh114:
	ldr	x19, [x19, _DMPDphys@GOTPAGEOFF]
	b.ge	LBB0_41
; %bb.39:
	mov	x21, #0
	mov	w27, w8
	add	x26, x23, w8, uxtw #2
LBB0_40:                                ; =>This Inner Loop Header: Depth=1
	ldr	w28, [x19]
	mov	x0, x21
	bl	_ptoa
	lsl	x8, x21, #2
	add	w9, w0, w28
	str	w9, [x26, x8]
	ldr	w10, [x24]
	ldr	w11, [x25]
	ldr	w12, [x20]
	orr	w9, w10, w9
	orr	w9, w9, w11
	orr	w9, w9, w12
	str	w9, [x26, x8]
	ldr	w8, [x22]
	add	x21, x21, #1
	add	w9, w27, w21
	cmp	w8, w9
	b.gt	LBB0_40
LBB0_41:
	ldr	w8, [sp, #40]                   ; 4-byte Folded Reload
Lloh115:
	adrp	x27, _PG_PS@GOTPAGE
Lloh116:
	ldr	x27, [x27, _PG_PS@GOTPAGEOFF]
	cbz	w8, LBB0_48
; %bb.42:
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
Lloh117:
	adrp	x10, _NPDEPG@GOTPAGE
Lloh118:
	ldr	x10, [x10, _NPDEPG@GOTPAGEOFF]
	ldr	w8, [x10]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	mul	w8, w8, w9
	cmp	w8, #1
Lloh119:
	adrp	x11, _pg_g@GOTPAGE
Lloh120:
	ldr	x11, [x11, _pg_g@GOTPAGEOFF]
Lloh121:
	adrp	x12, _X86_PG_M@GOTPAGE
Lloh122:
	ldr	x12, [x12, _X86_PG_M@GOTPAGEOFF]
Lloh123:
	adrp	x19, _X86_PG_A@GOTPAGE
Lloh124:
	ldr	x19, [x19, _X86_PG_A@GOTPAGEOFF]
Lloh125:
	adrp	x26, _PDRSHIFT@GOTPAGE
Lloh126:
	ldr	x26, [x26, _PDRSHIFT@GOTPAGEOFF]
	b.lt	LBB0_45
; %bb.43:
	mov	x21, #0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sxtw	x9, w8
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	sxtw	x8, w8
	stp	x8, x9, [sp, #32]               ; 16-byte Folded Spill
LBB0_44:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	lsl	w0, w21, w8
	ldr	w8, [x25]
	orr	w8, w0, w8
	ldr	w9, [x27]
	orr	w8, w8, w9
	ldr	w9, [x11]
	orr	w8, w8, w9
	ldr	w9, [x12]
	orr	w8, w8, w9
	ldr	w9, [x19]
	orr	w8, w8, w9
	ldr	w9, [x20]
	orr	w28, w8, w9
	mov	x22, x10
	mov	x24, x20
	mov	x20, x11
	mov	x23, x25
	mov	x25, x12
	bl	_bootaddr_rwx
	mov	x12, x25
	mov	x25, x23
	mov	x11, x20
	mov	x20, x24
	mov	x10, x22
	orr	w8, w28, w0
	ldr	x15, [sp, #40]                  ; 8-byte Folded Reload
	str	w8, [x15, x21, lsl #2]
	add	x21, x21, #1
	ldrsw	x8, [x22]
	ldr	x15, [sp, #32]                  ; 8-byte Folded Reload
	mul	x8, x8, x15
	cmp	x21, x8
	b.lt	LBB0_44
LBB0_45:
	ldp	x22, x8, [sp, #16]              ; 16-byte Folded Reload
	cmp	w8, #1
Lloh127:
	adrp	x24, _X86_PG_RW@GOTPAGE
Lloh128:
	ldr	x24, [x24, _X86_PG_RW@GOTPAGEOFF]
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
	b.lt	LBB0_48
; %bb.46:
	mov	x21, #0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	mov	w19, w8
LBB0_47:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_ptoa
	ldr	w8, [x24]
	add	w9, w0, w22
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w8, w8, w9
	ldr	w9, [x20]
	orr	w8, w8, w9
	str	w8, [x23, x21, lsl #2]
	add	x21, x21, #1
	cmp	x19, x21
	b.ne	LBB0_47
LBB0_48:
Lloh129:
	adrp	x8, _KPML4phys@GOTPAGE
Lloh130:
	ldr	x8, [x8, _KPML4phys@GOTPAGEOFF]
Lloh131:
	ldrsw	x21, [x8]
Lloh132:
	adrp	x8, _PML4PML4I@GOTPAGE
Lloh133:
	ldr	x8, [x8, _PML4PML4I@GOTPAGEOFF]
Lloh134:
	ldr	x8, [x8]
	lsl	x8, x8, #2
	str	w21, [x21, x8]
	ldr	w9, [x24]
	ldr	w10, [x25]
	ldr	w11, [x20]
	orr	w9, w9, w21
	orr	w9, w9, w10
	orr	w9, w9, w11
	str	w9, [x21, x8]
Lloh135:
	adrp	x26, _ndmpdpphys@GOTPAGE
Lloh136:
	ldr	x26, [x26, _ndmpdpphys@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
Lloh137:
	adrp	x27, _DMPDPphys@GOTPAGE
Lloh138:
	ldr	x27, [x27, _DMPDPphys@GOTPAGEOFF]
	b.lt	LBB0_51
; %bb.49:
	mov	x19, #0
Lloh139:
	adrp	x22, _DMPML4I@GOTPAGE
Lloh140:
	ldr	x22, [x22, _DMPML4I@GOTPAGEOFF]
LBB0_50:                                ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x27]
	mov	x0, x19
	bl	_ptoa
	add	w8, w0, w23
	ldrsw	x9, [x22]
	add	x9, x19, x9
	str	w8, [x21, x9, lsl #2]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldr	w9, [x20]
	orr	w8, w8, w9
	ldrsw	x9, [x22]
	add	x9, x19, x9
	lsl	x9, x9, #2
	ldr	w10, [x21, x9]
	orr	w8, w8, w10
	str	w8, [x21, x9]
	ldr	w8, [x26]
	add	x19, x19, #1
	cmp	w19, w8
	b.lt	LBB0_50
LBB0_51:
Lloh141:
	adrp	x22, _NKPML4E@GOTPAGE
Lloh142:
	ldr	x22, [x22, _NKPML4E@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
Lloh143:
	adrp	x23, _KPDPphys@GOTPAGE
Lloh144:
	ldr	x23, [x23, _KPDPphys@GOTPAGEOFF]
Lloh145:
	adrp	x26, _KPML4BASE@GOTPAGE
Lloh146:
	ldr	x26, [x26, _KPML4BASE@GOTPAGEOFF]
	b.lt	LBB0_54
; %bb.52:
	mov	x19, #0
LBB0_53:                                ; =>This Inner Loop Header: Depth=1
	ldr	w20, [x23]
	mov	x0, x19
	bl	_ptoa
	add	w8, w0, w20
	ldrsw	x9, [x26]
	add	x9, x19, x9
	str	w8, [x21, x9, lsl #2]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldrsw	x9, [x26]
	add	x9, x19, x9
	lsl	x9, x9, #2
	ldr	w10, [x21, x9]
	orr	w8, w8, w10
	str	w8, [x21, x9]
	ldr	w8, [x22]
	add	x19, x19, #1
	cmp	w19, w8
	b.lt	LBB0_53
LBB0_54:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotStr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotStr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotStr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh99, Lloh100
	.loh AdrpLdrGot	Lloh97, Lloh98
	.loh AdrpLdrGot	Lloh95, Lloh96
	.loh AdrpLdrGot	Lloh93, Lloh94
	.loh AdrpLdrGot	Lloh91, Lloh92
	.loh AdrpLdrGot	Lloh89, Lloh90
	.loh AdrpLdrGot	Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdr	Lloh111, Lloh112
	.loh AdrpAdrp	Lloh109, Lloh111
	.loh AdrpLdr	Lloh109, Lloh110
	.loh AdrpLdrGot	Lloh113, Lloh114
	.loh AdrpLdrGot	Lloh115, Lloh116
	.loh AdrpLdrGot	Lloh125, Lloh126
	.loh AdrpLdrGot	Lloh123, Lloh124
	.loh AdrpLdrGot	Lloh121, Lloh122
	.loh AdrpLdrGot	Lloh119, Lloh120
	.loh AdrpLdrGot	Lloh117, Lloh118
	.loh AdrpLdrGot	Lloh127, Lloh128
	.loh AdrpLdrGot	Lloh137, Lloh138
	.loh AdrpLdrGot	Lloh135, Lloh136
	.loh AdrpLdrGotLdr	Lloh132, Lloh133, Lloh134
	.loh AdrpLdrGotLdr	Lloh129, Lloh130, Lloh131
	.loh AdrpLdrGot	Lloh139, Lloh140
	.loh AdrpLdrGot	Lloh145, Lloh146
	.loh AdrpLdrGot	Lloh143, Lloh144
	.loh AdrpLdrGot	Lloh141, Lloh142
	.cfi_endproc
                                        ; -- End function
	.comm	_Maxmem,4,2                     ; @Maxmem
	.comm	_NBPDP,4,2                      ; @NBPDP
	.comm	_ndmpdp,4,2                     ; @ndmpdp
	.comm	_NPDPEPG,4,2                    ; @NPDPEPG
	.comm	_ndmpdpphys,4,2                 ; @ndmpdpphys
	.comm	_NDMPML4E,4,2                   ; @NDMPML4E
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NDMPML4E limits system to %d GB\n"

	.comm	_NBPML4,4,2                     ; @NBPML4
	.comm	_NPDEPG,4,2                     ; @NPDEPG
	.comm	_DMPDPphys,4,2                  ; @DMPDPphys
	.comm	_amd_feature,4,2                ; @amd_feature
	.comm	_AMDID_PAGE1GB,4,2              ; @AMDID_PAGE1GB
	.comm	_PDPSHIFT,8,3                   ; @PDPSHIFT
	.comm	_brwsection,8,3                 ; @brwsection
	.comm	_KERNBASE,8,3                   ; @KERNBASE
	.comm	_DMPDphys,4,2                   ; @DMPDphys
	.comm	_dmaplimit,8,3                  ; @dmaplimit
	.comm	_KPML4phys,4,2                  ; @KPML4phys
	.comm	_NKPML4E,4,2                    ; @NKPML4E
	.comm	_KPDPphys,4,2                   ; @KPDPphys
	.comm	_nkpt,4,2                       ; @nkpt
	.comm	_KPTphys,4,2                    ; @KPTphys
	.comm	_KPDphys,4,2                    ; @KPDphys
	.comm	_X86_PG_RW,4,2                  ; @X86_PG_RW
	.comm	_X86_PG_V,4,2                   ; @X86_PG_V
	.comm	_PDRSHIFT,4,2                   ; @PDRSHIFT
	.comm	_KERNend,4,2                    ; @KERNend
	.comm	_PG_PS,4,2                      ; @PG_PS
	.comm	_pg_g,4,2                       ; @pg_g
	.comm	_X86_PG_M,4,2                   ; @X86_PG_M
	.comm	_X86_PG_A,4,2                   ; @X86_PG_A
	.comm	_KPML4I,4,2                     ; @KPML4I
	.comm	_KPML4BASE,4,2                  ; @KPML4BASE
	.comm	_KPDPI,4,2                      ; @KPDPI
	.comm	_pg_nx,4,2                      ; @pg_nx
	.comm	_PML4PML4I,8,3                  ; @PML4PML4I
	.comm	_DMPML4I,4,2                    ; @DMPML4I
	.no_dead_strip	_create_pagetables
.subsections_via_symbols
