	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getmemsize
_getmemsize:                            ## @getmemsize
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movl	%edi, %r13d
	movq	%rsp, -112(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%esi, -76(%rbp)
	movq	_PHYS_AVAIL_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_kernphys@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_trunc_page
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_vm_phys_add_seg
	leal	(,%r15,4), %esi
	movq	%r14, %rdi
	callq	_bzero
	movl	$0, -52(%rbp)
	movq	_init_ops@GOTPCREL(%rip), %rbx
	leaq	-52(%rbp), %rdx
	movl	%r13d, %edi
	movq	%r14, %rsi
	callq	*8(%rbx)
	movl	-52(%rbp), %ecx
	leal	-2(%rcx), %eax
	movl	%eax, -52(%rbp)
	movq	_basemem@GOTPCREL(%rip), %r15
	movl	$0, (%r15)
	cmpl	$2, %ecx
	jl	LBB0_6
## %bb.1:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$655361, (%r14,%rcx,4)          ## imm = 0xA0001
	jl	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$2, %rcx
	cmpl	%ecx, %eax
	jge	LBB0_2
	jmp	LBB0_6
LBB0_4:
	movl	%ecx, %ecx
	shlq	$2, %rcx
	orq	$4, %rcx
	movl	(%r14,%rcx), %ecx
	leal	1023(%rcx), %edx
	testl	%ecx, %ecx
	movl	%ecx, %esi
	cmovsl	%edx, %esi
	sarl	$10, %esi
	movl	%esi, (%r15)
	cmpl	$2047, %edx                     ## imm = 0x7FF
	jb	LBB0_6
## %bb.5:
	cmpl	$656384, %ecx                   ## imm = 0xA0400
	jl	LBB0_9
LBB0_6:
	movq	_bootverbose@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	-52(%rbp), %eax
LBB0_8:
	movl	$640, (%r15)                    ## imm = 0x280
LBB0_9:
	movq	_kernphys@GOTPCREL(%rip), %r13
	cltq
	movl	4(%r14,%rax,4), %edi
	callq	_atop
	movq	_Maxmem@GOTPCREL(%rip), %r12
	movl	%eax, (%r12)
	leaq	L_.str.1(%rip), %rdi
	leaq	-96(%rbp), %rsi
	callq	_TUNABLE_ULONG_FETCH
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	-96(%rbp), %edi
	callq	_atop
	movl	%eax, (%r12)
LBB0_11:
	movl	$0, -60(%rbp)
	leaq	L_.str.2(%rip), %rdi
	leaq	-60(%rbp), %rsi
	callq	_TUNABLE_ULONG_FETCH
	movl	(%r12), %r15d
	movslq	-52(%rbp), %rax
	movl	4(%r14,%rax,4), %edi
	callq	_atop
	cmpl	%eax, %r15d
	jle	LBB0_13
## %bb.12:
	movslq	-52(%rbp), %rax
	movl	4(%r14,%rax,4), %edi
	callq	_atop
	movl	%eax, (%r12)
LBB0_13:
	movslq	-52(%rbp), %rax
	movl	4(%r14,%rax,4), %edi
	callq	_atop
	movl	(%r12), %esi
	cmpl	%esi, %eax
	je	LBB0_16
## %bb.14:
	movq	_boothowto@GOTPCREL(%rip), %rax
	movq	_RB_VERBOSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_16
## %bb.15:
	shll	$2, %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_16:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	-52(%rbp), %rsi
	movq	%r14, %rdi
	callq	*%rax
LBB0_18:
	leaq	-76(%rbp), %rdi
	callq	_pmap_bootstrap
	movq	_vm_guest@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_VM_GUEST_NO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$1, %eax
	movl	$16, %edx
	cmovgl	%eax, %edx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movl	%edx, -72(%rbp)
	leaq	L_.str.4(%rip), %rdi
	leaq	-72(%rbp), %rsi
	callq	_TUNABLE_ULONG_FETCH
	movl	(%r14), %eax
	movl	-72(%rbp), %edi
	cmpl	%edi, %eax
	jge	LBB0_24
## %bb.19:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edi
	jl	LBB0_23
## %bb.20:
	movl	4(%r14), %ecx
	cmpl	%ecx, %edi
	jl	LBB0_22
## %bb.21:
	subl	%eax, %ecx
	movl	%ecx, %edi
LBB0_22:
	callq	_round_page
LBB0_23:
	movl	%eax, (%r14)
LBB0_24:
	movq	_phys_avail@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movl	(%r14), %eax
	movl	%eax, 4(%rcx)
	movq	_dump_avail@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 4(%rcx)
	movq	_CMAP1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	L_.str.5(%rip), %rdi
	leaq	-64(%rbp), %rsi
	callq	_getenv_quad
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	leaq	L_.str.6(%rip), %rdi
	leaq	-92(%rbp), %rsi
	callq	_getenv_quad
	testq	%rax, %rax
	jne	LBB0_27
LBB0_26:
	movl	$0, -64(%rbp)
LBB0_27:
	cmpl	$0, -60(%rbp)
	je	LBB0_29
## %bb.28:
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_29:
	cmpl	$0, -52(%rbp)
	js	LBB0_30
## %bb.31:
	movl	$1, %r15d
	xorl	%ebx, %ebx
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	movl	$1, %r12d
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_69:                                ##   in Loop: Header=BB0_32 Depth=1
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	addq	$2, %rbx
	cmpl	%ebx, -52(%rbp)
	movq	-120(%rbp), %r14                ## 8-byte Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	jl	LBB0_70
LBB0_32:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_36 Depth 2
	movq	_Maxmem@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ptoa
	leaq	(,%rbx,4), %rcx
	orq	$4, %rcx
	movl	(%r14,%rcx), %edi
	cmpl	%eax, %edi
	jge	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	callq	_trunc_page
LBB0_34:                                ##   in Loop: Header=BB0_32 Depth=1
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movl	(%r14,%rbx,4), %edi
	callq	_round_page
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	cmpl	%r8d, %eax
	jge	LBB0_69
## %bb.35:                              ##   in Loop: Header=BB0_32 Depth=1
	movl	%eax, %ebx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdi
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_64:                                ##   in Loop: Header=BB0_36 Depth=2
	movl	(%rdi), %edx
	addl	%ebx, %edx
	movl	%edx, (%rax,%rcx,4)
LBB0_67:                                ##   in Loop: Header=BB0_36 Depth=2
	testl	%r15d, %r15d
	jne	LBB0_69
LBB0_68:                                ##   in Loop: Header=BB0_36 Depth=2
	addl	(%rdi), %ebx
	cmpl	%r8d, %ebx
	jge	LBB0_69
LBB0_36:                                ##   Parent Loop BB0_32 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_CADDR1@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	cmpl	(%r13), %ebx
	jl	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_36 Depth=2
	cmpl	-76(%rbp), %ebx
	jl	LBB0_63
LBB0_38:                                ##   in Loop: Header=BB0_36 Depth=2
	movl	-64(%rbp), %edi
	testl	%edi, %edi
	jle	LBB0_42
## %bb.39:                              ##   in Loop: Header=BB0_36 Depth=2
	callq	_trunc_page
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	cmpl	%eax, %ebx
	jl	LBB0_42
## %bb.40:                              ##   in Loop: Header=BB0_36 Depth=2
	movl	-92(%rbp), %eax
	addl	-64(%rbp), %eax
	cmpl	%eax, %ebx
	jge	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_36 Depth=2
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdi
	jmp	LBB0_63
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_36 Depth=2
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	cmpl	$0, -60(%rbp)
	je	LBB0_43
## %bb.44:                              ##   in Loop: Header=BB0_36 Depth=2
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	cltd
	movq	_PAGES_PER_GB@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	testl	%edx, %edx
	jne	LBB0_46
## %bb.45:                              ##   in Loop: Header=BB0_36 Depth=2
	movl	$46, %edi
	callq	_putchar
LBB0_46:                                ##   in Loop: Header=BB0_36 Depth=2
	movq	_PG_V@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%ebx, %eax
	movq	_PG_RW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_PG_NC_PWT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_PG_NC_PCD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_invltlb
	movl	(%r14), %eax
	movl	$-1431655766, (%r14)            ## imm = 0xAAAAAAAA
	movl	(%r14), %ecx
	cmpl	$-1431655766, %ecx              ## imm = 0xAAAAAAAA
	movq	_TRUE@GOTPCREL(%rip), %rdx
	je	LBB0_48
## %bb.47:                              ##   in Loop: Header=BB0_36 Depth=2
	movl	(%rdx), %r13d
LBB0_48:                                ##   in Loop: Header=BB0_36 Depth=2
	movl	$1431655765, (%r14)             ## imm = 0x55555555
	movl	(%r14), %ecx
	cmpl	$1431655765, %ecx               ## imm = 0x55555555
	je	LBB0_50
## %bb.49:                              ##   in Loop: Header=BB0_36 Depth=2
	movl	(%rdx), %r13d
LBB0_50:                                ##   in Loop: Header=BB0_36 Depth=2
	movl	$-1, (%r14)
	movl	(%r14), %ecx
	cmpl	$-1, %ecx
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	je	LBB0_52
## %bb.51:                              ##   in Loop: Header=BB0_36 Depth=2
	movl	(%rdx), %r13d
LBB0_52:                                ##   in Loop: Header=BB0_36 Depth=2
	movl	$0, (%r14)
	cmpl	$0, (%r14)
	je	LBB0_54
## %bb.53:                              ##   in Loop: Header=BB0_36 Depth=2
	movl	(%rdx), %r13d
LBB0_54:                                ##   in Loop: Header=BB0_36 Depth=2
	movl	%eax, (%r14)
	cmpl	(%rdx), %r13d
	jne	LBB0_57
LBB0_56:                                ##   in Loop: Header=BB0_36 Depth=2
	movq	_kernphys@GOTPCREL(%rip), %r13
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdi
	jmp	LBB0_68
LBB0_43:                                ##   in Loop: Header=BB0_36 Depth=2
	movq	_TRUE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %r13d
	je	LBB0_56
LBB0_57:                                ##   in Loop: Header=BB0_36 Depth=2
	movq	_phys_avail@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movslq	%edi, %rcx
	cmpl	%ebx, (%rax,%rcx,4)
	movq	_kernphys@GOTPCREL(%rip), %r13
	jne	LBB0_59
## %bb.58:                              ##   in Loop: Header=BB0_36 Depth=2
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edx
	addl	%ebx, %edx
	movl	%edx, (%rax,%rcx,4)
	jmp	LBB0_62
LBB0_59:                                ##   in Loop: Header=BB0_36 Depth=2
	leal	1(%rdi), %edx
	movq	_PHYS_AVAIL_ENTRIES@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_61
## %bb.60:                              ##   in Loop: Header=BB0_36 Depth=2
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdi
	jmp	LBB0_63
LBB0_61:                                ##   in Loop: Header=BB0_36 Depth=2
	addl	$2, %edi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movslq	%edx, %rdx
	movl	%ebx, (%rax,%rdx,4)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edx
	addl	%ebx, %edx
	movl	%edx, 8(%rax,%rcx,4)
LBB0_62:                                ##   in Loop: Header=BB0_36 Depth=2
	movq	_physmem@GOTPCREL(%rip), %rax
	incq	(%rax)
LBB0_63:                                ##   in Loop: Header=BB0_36 Depth=2
	movq	_dump_avail@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r12d, %rcx
	cmpl	%ebx, (%rax,%rcx,4)
	je	LBB0_64
## %bb.65:                              ##   in Loop: Header=BB0_36 Depth=2
	leal	1(%r12), %edx
	movq	_PHYS_AVAIL_ENTRIES@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	je	LBB0_67
## %bb.66:                              ##   in Loop: Header=BB0_36 Depth=2
	addl	$2, %r12d
	movslq	%edx, %rdx
	movl	%ebx, (%rax,%rdx,4)
	movl	(%rdi), %edx
	addl	%ebx, %edx
	movl	%edx, 8(%rax,%rcx,4)
	jmp	LBB0_67
LBB0_30:
	movl	$1, %r15d
LBB0_70:
	movq	%r15, %rbx
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	$0, (%rax)
	xorl	%eax, %eax
	callq	_invltlb
	cmpl	$0, -60(%rbp)
	je	LBB0_72
## %bb.71:
	movl	$10, %edi
	callq	_putchar
LBB0_72:
	movq	_phys_avail@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movslq	%ebx, %rbx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	addl	-4(%rax,%rbx,4), %r14d
	movq	_msgbufsize@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_round_page
	addl	%r14d, %eax
	movq	(%r15), %rcx
	movl	(%rcx,%rbx,4), %edi
	cmpl	%edi, %eax
	jge	LBB0_74
## %bb.73:
	movq	%rbx, %r12
	movq	_phys_avail@GOTPCREL(%rip), %r13
	jmp	LBB0_76
LBB0_74:
	leaq	-1(%rbx), %r14
	movq	_phys_avail@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_75:                                ## =>This Inner Loop Header: Depth=1
	subl	(%rcx,%r14,4), %edi
	callq	_atop
	cltq
	movq	_physmem@GOTPCREL(%rip), %rcx
	subq	%rax, (%rcx)
	movq	(%r13), %rax
	movl	$0, (%rax,%rbx,4)
	leaq	-2(%rbx), %r12
	movl	$0, (%rax,%r14,4)
	leaq	-3(%rbx), %r14
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	addl	-12(%rax,%rbx,4), %r15d
	movq	_msgbufsize@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_round_page
	addl	%r15d, %eax
	movq	(%r13), %rcx
	movl	-8(%rcx,%rbx,4), %edi
	movq	%r12, %rbx
	cmpl	%edi, %eax
	jge	LBB0_75
LBB0_76:
	callq	_atop
	movq	_Maxmem@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_msgbufsize@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_round_page
	movq	(%r13), %rcx
	movl	(%rcx,%r12,4), %edi
	subl	%eax, %edi
	movl	%edi, (%rcx,%r12,4)
	callq	_PHYS_TO_DMAP
	movq	_msgbufp@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	-112(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_78
## %bb.77:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_78:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PHYS_AVAIL_ENTRIES,4,2         ## @PHYS_AVAIL_ENTRIES
	.comm	_kernphys,8,3                   ## @kernphys
	.comm	_init_ops,16,3                  ## @init_ops
	.comm	_basemem,4,2                    ## @basemem
	.comm	_bootverbose,8,3                ## @bootverbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Memory map doesn't contain a basemem segment, faking it"

	.comm	_Maxmem,4,2                     ## @Maxmem
L_.str.1:                               ## @.str.1
	.asciz	"hw.physmem"

L_.str.2:                               ## @.str.2
	.asciz	"hw.memtest.tests"

	.comm	_boothowto,4,2                  ## @boothowto
	.comm	_RB_VERBOSE,4,2                 ## @RB_VERBOSE
L_.str.3:                               ## @.str.3
	.asciz	"Physical memory use set to %ldK\n"

	.comm	_vm_guest,8,3                   ## @vm_guest
	.comm	_VM_GUEST_NO,8,3                ## @VM_GUEST_NO
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
L_.str.4:                               ## @.str.4
	.asciz	"hw.physmem.start"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_phys_avail,8,3                 ## @phys_avail
	.comm	_dump_avail,8,3                 ## @dump_avail
	.comm	_CMAP1,8,3                      ## @CMAP1
L_.str.5:                               ## @.str.5
	.asciz	"dcons.addr"

L_.str.6:                               ## @.str.6
	.asciz	"dcons.size"

L_.str.7:                               ## @.str.7
	.asciz	"Testing system memory"

	.comm	_CADDR1,8,3                     ## @CADDR1
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_PAGES_PER_GB,4,2               ## @PAGES_PER_GB
	.comm	_PG_V,4,2                       ## @PG_V
	.comm	_PG_RW,4,2                      ## @PG_RW
	.comm	_PG_NC_PWT,4,2                  ## @PG_NC_PWT
	.comm	_PG_NC_PCD,4,2                  ## @PG_NC_PCD
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_physmem,8,3                    ## @physmem
	.comm	_msgbufsize,4,2                 ## @msgbufsize
	.comm	_msgbufp,8,3                    ## @msgbufp
	.comm	_MAXMEM,4,2                     ## @MAXMEM
L_str:                                  ## @str
	.asciz	"Too many holes in the physical address space, giving up"

	.no_dead_strip	_getmemsize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getmemsize
_getmemsize:                            ; @getmemsize
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #80
	mov	x20, x0
	mov	x8, sp
	stur	x8, [x29, #-152]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	stur	w1, [x29, #-92]
Lloh3:
	adrp	x8, _PHYS_AVAIL_ENTRIES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHYS_AVAIL_ENTRIES@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	lsl	x8, x19, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh8:
	adrp	x27, _kernphys@GOTPAGE
Lloh9:
	ldr	x27, [x27, _kernphys@GOTPAGEOFF]
	ldr	w21, [x27]
	mov	x0, x1
	bl	_trunc_page
	mov	x1, x0
	mov	x0, x21
	bl	_vm_phys_add_seg
	lsl	w1, w19, #2
	mov	x0, x22
	bl	_bzero
	stur	wzr, [x29, #-96]
Lloh10:
	adrp	x19, _init_ops@GOTPAGE
Lloh11:
	ldr	x19, [x19, _init_ops@GOTPAGEOFF]
	ldr	x8, [x19, #8]
	sub	x2, x29, #96
	mov	x0, x20
	mov	x1, x22
	blr	x8
	ldur	w8, [x29, #-96]
Lloh12:
	adrp	x20, _basemem@GOTPAGE
Lloh13:
	ldr	x20, [x20, _basemem@GOTPAGEOFF]
	str	wzr, [x20]
	subs	w8, w8, #2
	stur	w8, [x29, #-96]
	b.lt	LBB0_5
; %bb.1:
	mov	x10, #0
	mov	w9, #1
	movk	w9, #10, lsl #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x22, x10, lsl #2]
	cmp	w11, w9
	b.lt	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, #2
	cmp	w8, w10
	b.ge	LBB0_2
	b	LBB0_5
LBB0_4:
	and	x10, x10, #0xfffffffe
	add	x10, x22, x10, lsl #2
	ldr	w10, [x10, #4]
	add	w11, w10, #1023
	cmp	w10, #0
	csel	w12, w11, w10, lt
	asr	w12, w12, #10
	str	w12, [x20]
	add	w9, w9, #1022
	cmp	w11, #2047
	ccmp	w10, w9, #0, hs
	b.le	LBB0_8
LBB0_5:
Lloh14:
	adrp	x9, _bootverbose@GOTPAGE
Lloh15:
	ldr	x9, [x9, _bootverbose@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cbz	x9, LBB0_7
; %bb.6:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldur	w8, [x29, #-96]
LBB0_7:
	mov	w9, #640
	str	w9, [x20]
LBB0_8:
	add	w8, w8, #1
	ldr	w0, [x22, w8, sxtw #2]
	bl	_atop
Lloh19:
	adrp	x25, _Maxmem@GOTPAGE
Lloh20:
	ldr	x25, [x25, _Maxmem@GOTPAGEOFF]
	str	w0, [x25]
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	sub	x1, x29, #104
	bl	_TUNABLE_ULONG_FETCH
	cbz	x0, LBB0_10
; %bb.9:
	ldur	w0, [x29, #-104]
	bl	_atop
	str	w0, [x25]
LBB0_10:
	stur	wzr, [x29, #-108]
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	sub	x1, x29, #108
	bl	_TUNABLE_ULONG_FETCH
	ldr	w20, [x25]
	ldursw	x8, [x29, #-96]
	add	x8, x22, x8, lsl #2
	ldr	w0, [x8, #4]
	bl	_atop
	cmp	w20, w0
	b.le	LBB0_12
; %bb.11:
	ldursw	x8, [x29, #-96]
	add	x8, x22, x8, lsl #2
	ldr	w0, [x8, #4]
	bl	_atop
	str	w0, [x25]
LBB0_12:
	ldursw	x8, [x29, #-96]
	add	x8, x22, x8, lsl #2
	ldr	w0, [x8, #4]
	bl	_atop
	ldr	w8, [x25]
	cmp	w0, w8
	b.eq	LBB0_15
; %bb.13:
Lloh25:
	adrp	x9, _boothowto@GOTPAGE
Lloh26:
	ldr	x9, [x9, _boothowto@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
Lloh28:
	adrp	x10, _RB_VERBOSE@GOTPAGE
Lloh29:
	ldr	x10, [x10, _RB_VERBOSE@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_15
; %bb.14:
	lsl	w8, w8, #2
	str	x8, [sp, #-16]!
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	add	sp, sp, #16
LBB0_15:
	ldr	x8, [x19]
	cbz	x8, LBB0_17
; %bb.16:
	sub	x1, x29, #96
	mov	x0, x22
	blr	x8
LBB0_17:
	sub	x0, x29, #92
	bl	_pmap_bootstrap
Lloh33:
	adrp	x8, _vm_guest@GOTPAGE
Lloh34:
	ldr	x8, [x8, _vm_guest@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
Lloh36:
	adrp	x9, _VM_GUEST_NO@GOTPAGE
Lloh37:
	ldr	x9, [x9, _VM_GUEST_NO@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #16
	csinc	w8, w8, wzr, le
Lloh39:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh40:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	stur	w8, [x29, #-100]
Lloh42:
	adrp	x0, l_.str.4@PAGE
Lloh43:
	add	x0, x0, l_.str.4@PAGEOFF
	sub	x1, x29, #100
	bl	_TUNABLE_ULONG_FETCH
	ldr	w0, [x22]
	ldur	w8, [x29, #-100]
Lloh44:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh45:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
	cmp	w0, w8
	b.ge	LBB0_24
; %bb.18:
	ldr	w0, [x26]
	cmp	w8, w0
	b.lt	LBB0_23
; %bb.19:
	ldr	w9, [x22, #4]
	cmp	w8, w9
	b.ge	LBB0_21
; %bb.20:
	mov	x0, x8
	b	LBB0_22
LBB0_21:
	sub	w0, w9, w0
LBB0_22:
	bl	_round_page
LBB0_23:
	str	w0, [x22]
LBB0_24:
Lloh46:
	adrp	x8, _phys_avail@GOTPAGE
Lloh47:
	ldr	x8, [x8, _phys_avail@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
	str	w0, [x8]
	ldr	w9, [x22]
Lloh49:
	adrp	x10, _dump_avail@GOTPAGE
Lloh50:
	ldr	x10, [x10, _dump_avail@GOTPAGEOFF]
	str	w9, [x8, #4]
Lloh51:
	ldr	x8, [x10]
	str	w9, [x8, #4]
Lloh52:
	adrp	x8, _CMAP1@GOTPAGE
Lloh53:
	ldr	x8, [x8, _CMAP1@GOTPAGEOFF]
Lloh54:
	ldr	x8, [x8]
	stur	x8, [x29, #-128]                ; 8-byte Folded Spill
Lloh55:
	adrp	x0, l_.str.5@PAGE
Lloh56:
	add	x0, x0, l_.str.5@PAGEOFF
	sub	x1, x29, #112
	bl	_getenv_quad
	cbz	x0, LBB0_26
; %bb.25:
Lloh57:
	adrp	x0, l_.str.6@PAGE
Lloh58:
	add	x0, x0, l_.str.6@PAGEOFF
	sub	x1, x29, #116
	bl	_getenv_quad
	cbnz	x0, LBB0_27
LBB0_26:
	stur	wzr, [x29, #-112]
LBB0_27:
	ldur	w8, [x29, #-108]
	cbz	w8, LBB0_29
; %bb.28:
Lloh59:
	adrp	x0, l_.str.7@PAGE
Lloh60:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
LBB0_29:
	ldur	w8, [x29, #-96]
	tbnz	w8, #31, LBB0_59
; %bb.30:
	mov	x28, #0
	mov	w19, #0
	mov	w24, #1
	mov	w8, #1
	stp	x22, x8, [x29, #-144]           ; 16-byte Folded Spill
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	b	LBB0_32
LBB0_31:                                ;   in Loop: Header=BB0_32 Depth=1
	add	x28, x28, #2
	ldur	w8, [x29, #-96]
	cmp	w8, w28
Lloh61:
	adrp	x25, _Maxmem@GOTPAGE
Lloh62:
	ldr	x25, [x25, _Maxmem@GOTPAGEOFF]
	ldur	x22, [x29, #-144]               ; 8-byte Folded Reload
	b.lt	LBB0_60
LBB0_32:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_39 Depth 2
	ldr	w0, [x25]
	bl	_ptoa
	mov	x21, x0
	lsl	x8, x28, #2
	orr	x8, x8, #0x4
	ldr	w0, [x22, x8]
	cmp	w0, w21
	b.ge	LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	bl	_trunc_page
	mov	x21, x0
LBB0_34:                                ;   in Loop: Header=BB0_32 Depth=1
	ldr	w0, [x22, x28, lsl #2]
	bl	_round_page
	cmp	w0, w21
	b.ge	LBB0_31
; %bb.35:                               ;   in Loop: Header=BB0_32 Depth=1
	mov	x22, x0
	b	LBB0_39
LBB0_36:                                ;   in Loop: Header=BB0_39 Depth=2
	ldr	w10, [x26]
	add	w10, w10, w22
	str	w10, [x8, x9, lsl #2]
LBB0_37:                                ;   in Loop: Header=BB0_39 Depth=2
	cbnz	w25, LBB0_31
LBB0_38:                                ;   in Loop: Header=BB0_39 Depth=2
	ldr	w8, [x26]
	add	w22, w8, w22
	cmp	w22, w21
	b.ge	LBB0_31
LBB0_39:                                ;   Parent Loop BB0_32 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
Lloh63:
	adrp	x8, _FALSE@GOTPAGE
Lloh64:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh65:
	ldr	w25, [x8]
	ldr	w8, [x27]
	ldur	w9, [x29, #-92]
	cmp	w22, w8
	ccmp	w22, w9, #0, ge
	b.lt	LBB0_56
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=2
Lloh66:
	adrp	x8, _CADDR1@GOTPAGE
Lloh67:
	ldr	x8, [x8, _CADDR1@GOTPAGEOFF]
Lloh68:
	ldr	x20, [x8]
	ldur	w0, [x29, #-112]
	cmp	w0, #1
	b.lt	LBB0_43
; %bb.41:                               ;   in Loop: Header=BB0_39 Depth=2
	bl	_trunc_page
	cmp	w22, w0
	b.lt	LBB0_43
; %bb.42:                               ;   in Loop: Header=BB0_39 Depth=2
	ldp	w9, w8, [x29, #-116]
	add	w8, w9, w8
	cmp	w22, w8
	b.lt	LBB0_56
LBB0_43:                                ;   in Loop: Header=BB0_39 Depth=2
	mov	x23, x26
	mov	x26, x27
Lloh69:
	adrp	x8, _FALSE@GOTPAGE
Lloh70:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh71:
	ldr	w27, [x8]
	ldur	w8, [x29, #-108]
	cbz	w8, LBB0_47
; %bb.44:                               ;   in Loop: Header=BB0_39 Depth=2
	add	w19, w19, #1
Lloh72:
	adrp	x8, _PAGES_PER_GB@GOTPAGE
Lloh73:
	ldr	x8, [x8, _PAGES_PER_GB@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
	sdiv	w9, w19, w8
	msub	w8, w9, w8, w19
	cbnz	w8, LBB0_46
; %bb.45:                               ;   in Loop: Header=BB0_39 Depth=2
	mov	w0, #46
	bl	_putchar
LBB0_46:                                ;   in Loop: Header=BB0_39 Depth=2
Lloh75:
	adrp	x8, _PG_V@GOTPAGE
Lloh76:
	ldr	x8, [x8, _PG_V@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
	orr	w8, w8, w22
Lloh78:
	adrp	x9, _PG_RW@GOTPAGE
Lloh79:
	ldr	x9, [x9, _PG_RW@GOTPAGEOFF]
Lloh80:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh81:
	adrp	x9, _PG_NC_PWT@GOTPAGE
Lloh82:
	ldr	x9, [x9, _PG_NC_PWT@GOTPAGEOFF]
Lloh83:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh84:
	adrp	x9, _PG_NC_PCD@GOTPAGE
Lloh85:
	ldr	x9, [x9, _PG_NC_PCD@GOTPAGEOFF]
Lloh86:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldur	x9, [x29, #-128]                ; 8-byte Folded Reload
	str	w8, [x9]
	bl	_invltlb
	ldr	w8, [x20]
	mov	w11, #-1431655766
	str	w11, [x20]
	ldr	w9, [x20]
Lloh87:
	adrp	x13, _TRUE@GOTPAGE
Lloh88:
	ldr	x13, [x13, _TRUE@GOTPAGEOFF]
	ldr	w10, [x13]
	cmp	w9, w11
	csel	w9, w27, w10, eq
	mov	w12, #1431655765
	str	w12, [x20]
	ldr	w10, [x20]
	ldr	w11, [x13]
	cmp	w10, w12
	csel	w9, w9, w11, eq
	mov	w10, #-1
	str	w10, [x20]
	ldr	w10, [x20]
	ldr	w11, [x13]
	cmn	w10, #1
	csel	w9, w9, w11, eq
	str	wzr, [x20]
	ldr	w10, [x20]
	ldr	w11, [x13]
	cmp	w10, #0
	csel	w27, w9, w11, eq
	str	w8, [x20]
	b	LBB0_48
LBB0_47:                                ;   in Loop: Header=BB0_39 Depth=2
Lloh89:
	adrp	x13, _TRUE@GOTPAGE
Lloh90:
	ldr	x13, [x13, _TRUE@GOTPAGEOFF]
LBB0_48:                                ;   in Loop: Header=BB0_39 Depth=2
	ldr	w8, [x13]
	cmp	w27, w8
	b.ne	LBB0_50
; %bb.49:                               ;   in Loop: Header=BB0_39 Depth=2
	mov	x27, x26
	mov	x26, x23
	b	LBB0_38
LBB0_50:                                ;   in Loop: Header=BB0_39 Depth=2
Lloh91:
	adrp	x8, _phys_avail@GOTPAGE
Lloh92:
	ldr	x8, [x8, _phys_avail@GOTPAGEOFF]
Lloh93:
	ldr	x8, [x8]
	ldur	x10, [x29, #-136]               ; 8-byte Folded Reload
	sxtw	x9, w10
	ldr	w10, [x8, w10, sxtw #2]
	cmp	w10, w22
	mov	x27, x26
	b.ne	LBB0_52
; %bb.51:                               ;   in Loop: Header=BB0_39 Depth=2
	mov	x26, x23
	ldr	w10, [x23]
	add	w10, w10, w22
	str	w10, [x8, x9, lsl #2]
	b	LBB0_55
LBB0_52:                                ;   in Loop: Header=BB0_39 Depth=2
	add	x10, x9, #1
Lloh94:
	adrp	x11, _PHYS_AVAIL_ENTRIES@GOTPAGE
Lloh95:
	ldr	x11, [x11, _PHYS_AVAIL_ENTRIES@GOTPAGEOFF]
Lloh96:
	ldr	w11, [x11]
	cmp	w10, w11
	mov	x26, x23
	b.ne	LBB0_54
; %bb.53:                               ;   in Loop: Header=BB0_39 Depth=2
Lloh97:
	adrp	x0, l_str@PAGE
Lloh98:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh99:
	adrp	x8, _TRUE@GOTPAGE
Lloh100:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh101:
	ldr	w25, [x8]
	b	LBB0_56
LBB0_54:                                ;   in Loop: Header=BB0_39 Depth=2
	str	w22, [x8, x10, lsl #2]
	add	x9, x9, #2
	ldr	w10, [x26]
	add	w10, w10, w22
	str	w10, [x8, x9, lsl #2]
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	stur	x9, [x29, #-136]                ; 8-byte Folded Spill
LBB0_55:                                ;   in Loop: Header=BB0_39 Depth=2
Lloh102:
	adrp	x9, _physmem@GOTPAGE
Lloh103:
	ldr	x9, [x9, _physmem@GOTPAGEOFF]
	ldr	x8, [x9]
	add	x8, x8, #1
	str	x8, [x9]
LBB0_56:                                ;   in Loop: Header=BB0_39 Depth=2
Lloh104:
	adrp	x8, _dump_avail@GOTPAGE
Lloh105:
	ldr	x8, [x8, _dump_avail@GOTPAGEOFF]
Lloh106:
	ldr	x8, [x8]
	sxtw	x9, w24
	ldr	w10, [x8, w24, sxtw #2]
	cmp	w10, w22
	b.eq	LBB0_36
; %bb.57:                               ;   in Loop: Header=BB0_39 Depth=2
	add	x10, x9, #1
Lloh107:
	adrp	x11, _PHYS_AVAIL_ENTRIES@GOTPAGE
Lloh108:
	ldr	x11, [x11, _PHYS_AVAIL_ENTRIES@GOTPAGEOFF]
Lloh109:
	ldr	w11, [x11]
	cmp	w10, w11
	b.eq	LBB0_37
; %bb.58:                               ;   in Loop: Header=BB0_39 Depth=2
	str	w22, [x8, x10, lsl #2]
	add	x24, x9, #2
	ldr	w9, [x26]
	add	w9, w9, w22
	str	w9, [x8, x24, lsl #2]
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	b	LBB0_37
LBB0_59:
	mov	w8, #1
	stur	x8, [x29, #-136]                ; 8-byte Folded Spill
LBB0_60:
	ldur	x8, [x29, #-128]                ; 8-byte Folded Reload
	str	wzr, [x8]
	bl	_invltlb
	ldur	w8, [x29, #-108]
	cbz	w8, LBB0_62
; %bb.61:
	mov	w0, #10
	bl	_putchar
LBB0_62:
Lloh110:
	adrp	x24, _phys_avail@GOTPAGE
Lloh111:
	ldr	x24, [x24, _phys_avail@GOTPAGEOFF]
	ldr	x8, [x24]
	ldur	x23, [x29, #-136]               ; 8-byte Folded Reload
	mov	x9, x23
	sxtw	x20, w9
	sub	x21, x20, #1
	ldr	w8, [x8, x21, lsl #2]
	ldr	w9, [x26]
	add	w22, w9, w8
Lloh112:
	adrp	x19, _msgbufsize@GOTPAGE
Lloh113:
	ldr	x19, [x19, _msgbufsize@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_round_page
	mov	x8, x0
	ldr	x9, [x24]
	ldr	w0, [x9, w23, sxtw #2]
	add	w8, w22, w8
	cmp	w8, w0
Lloh114:
	adrp	x27, _physmem@GOTPAGE
Lloh115:
	ldr	x27, [x27, _physmem@GOTPAGEOFF]
	b.ge	LBB0_64
; %bb.63:
	mov	x22, x20
	b	LBB0_65
LBB0_64:                                ; =>This Inner Loop Header: Depth=1
	lsl	x21, x21, #2
	ldr	w8, [x9, x21]
	sub	w0, w0, w8
	bl	_atop
	ldr	x8, [x27]
	sub	x8, x8, w0, sxtw
	str	x8, [x27]
	ldr	x8, [x24]
	lsl	x23, x20, #2
	add	x9, x8, x23
	str	wzr, [x9]
	str	wzr, [x8, x21]
	sub	x22, x20, #2
	sub	x21, x20, #3
	ldur	w8, [x9, #-12]
	ldr	w9, [x26]
	add	w20, w9, w8
	ldr	w0, [x19]
	bl	_round_page
	mov	x8, x0
	ldr	x9, [x24]
	add	x10, x9, x23
	ldur	w0, [x10, #-8]
	add	w8, w20, w8
	cmp	w8, w0
	mov	x20, x22
	b.ge	LBB0_64
LBB0_65:
	bl	_atop
	str	w0, [x25]
	ldr	w0, [x19]
	bl	_round_page
	ldr	x8, [x24]
	lsl	x9, x22, #2
	ldr	w10, [x8, x9]
	sub	w0, w10, w0
	str	w0, [x8, x9]
	bl	_PHYS_TO_DMAP
Lloh116:
	adrp	x8, _msgbufp@GOTPAGE
Lloh117:
	ldr	x8, [x8, _msgbufp@GOTPAGEOFF]
Lloh118:
	str	x0, [x8]
	ldur	x8, [x29, #-152]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh119:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh120:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh121:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_67
; %bb.66:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_67:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpLdrGot	Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGot	Lloh114, Lloh115
	.loh AdrpLdrGot	Lloh112, Lloh113
	.loh AdrpLdrGot	Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpLdrGotStr	Lloh116, Lloh117, Lloh118
	.cfi_endproc
                                        ; -- End function
	.comm	_PHYS_AVAIL_ENTRIES,4,2         ; @PHYS_AVAIL_ENTRIES
	.comm	_kernphys,8,3                   ; @kernphys
	.comm	_init_ops,16,3                  ; @init_ops
	.comm	_basemem,4,2                    ; @basemem
	.comm	_bootverbose,8,3                ; @bootverbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Memory map doesn't contain a basemem segment, faking it"

	.comm	_Maxmem,4,2                     ; @Maxmem
l_.str.1:                               ; @.str.1
	.asciz	"hw.physmem"

l_.str.2:                               ; @.str.2
	.asciz	"hw.memtest.tests"

	.comm	_boothowto,4,2                  ; @boothowto
	.comm	_RB_VERBOSE,4,2                 ; @RB_VERBOSE
l_.str.3:                               ; @.str.3
	.asciz	"Physical memory use set to %ldK\n"

	.comm	_vm_guest,8,3                   ; @vm_guest
	.comm	_VM_GUEST_NO,8,3                ; @VM_GUEST_NO
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
l_.str.4:                               ; @.str.4
	.asciz	"hw.physmem.start"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_phys_avail,8,3                 ; @phys_avail
	.comm	_dump_avail,8,3                 ; @dump_avail
	.comm	_CMAP1,8,3                      ; @CMAP1
l_.str.5:                               ; @.str.5
	.asciz	"dcons.addr"

l_.str.6:                               ; @.str.6
	.asciz	"dcons.size"

l_.str.7:                               ; @.str.7
	.asciz	"Testing system memory"

	.comm	_CADDR1,8,3                     ; @CADDR1
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_PAGES_PER_GB,4,2               ; @PAGES_PER_GB
	.comm	_PG_V,4,2                       ; @PG_V
	.comm	_PG_RW,4,2                      ; @PG_RW
	.comm	_PG_NC_PWT,4,2                  ; @PG_NC_PWT
	.comm	_PG_NC_PCD,4,2                  ; @PG_NC_PCD
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_physmem,8,3                    ; @physmem
	.comm	_msgbufsize,4,2                 ; @msgbufsize
	.comm	_msgbufp,8,3                    ; @msgbufp
	.comm	_MAXMEM,4,2                     ; @MAXMEM
l_str:                                  ; @str
	.asciz	"Too many holes in the physical address space, giving up"

	.no_dead_strip	_getmemsize
.subsections_via_symbols
