	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memguard_init                  ## -- Begin function memguard_init
	.p2align	4, 0x90
_memguard_init:                         ## @memguard_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_memguard_mapsize@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	_M_BESTFIT@GOTPCREL(%rip), %rax
	movq	_M_WAITOK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	orl	(%rax), %edx
	leaq	-24(%rbp), %rcx
	callq	_vmem_alloc
	movq	_memguard_arena@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-24(%rbp), %rdx
	movq	(%r14), %rcx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	(%rbx), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	xorl	%r9d, %r9d
	callq	_vmem_init
	movq	-24(%rbp), %rax
	movq	_memguard_base@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	-24(%rbp), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	(%r14), %esi
	sarl	$10, %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_memguard_mapsize,8,3           ## @memguard_mapsize
	.comm	_M_BESTFIT,4,2                  ## @M_BESTFIT
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_memguard_arena,4,2             ## @memguard_arena
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"memguard arena"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_memguard_base,8,3              ## @memguard_base
L_.str.2:                               ## @.str.2
	.asciz	"\tMEMGUARD map base: 0x%lx\n"

L_.str.3:                               ## @.str.3
	.asciz	"\tMEMGUARD map size: %jd KBytes\n"

L_str:                                  ## @str
	.asciz	"MEMGUARD DEBUGGING ALLOCATOR INITIALIZED:"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memguard_init                  ; -- Begin function memguard_init
	.p2align	2
_memguard_init:                         ; @memguard_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x19, _memguard_mapsize@GOTPAGE
Lloh1:
	ldr	x19, [x19, _memguard_mapsize@GOTPAGEOFF]
Lloh2:
	adrp	x8, _M_BESTFIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_BESTFIT@GOTPAGEOFF]
	ldr	x1, [x19]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x20, _M_WAITOK@GOTPAGE
Lloh6:
	ldr	x20, [x20, _M_WAITOK@GOTPAGEOFF]
	ldr	w9, [x20]
	orr	w2, w9, w8
	add	x3, sp, #8
	bl	_vmem_alloc
Lloh7:
	adrp	x8, _memguard_arena@GOTPAGE
Lloh8:
	ldr	x8, [x8, _memguard_arena@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	x2, [sp, #8]
	ldr	x3, [x19]
Lloh10:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
	ldr	w6, [x20]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	w5, #0
	bl	_vmem_init
	ldr	x8, [sp, #8]
Lloh15:
	adrp	x9, _memguard_base@GOTPAGE
Lloh16:
	ldr	x9, [x9, _memguard_base@GOTPAGEOFF]
Lloh17:
	str	x8, [x9]
Lloh18:
	adrp	x0, l_str@PAGE
Lloh19:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	ldr	w8, [x19]
	asr	w8, w8, #10
	str	x8, [sp]
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_memguard_mapsize,8,3           ; @memguard_mapsize
	.comm	_M_BESTFIT,4,2                  ; @M_BESTFIT
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_memguard_arena,4,2             ; @memguard_arena
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"memguard arena"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_memguard_base,8,3              ; @memguard_base
l_.str.2:                               ; @.str.2
	.asciz	"\tMEMGUARD map base: 0x%lx\n"

l_.str.3:                               ; @.str.3
	.asciz	"\tMEMGUARD map size: %jd KBytes\n"

l_str:                                  ; @str
	.asciz	"MEMGUARD DEBUGGING ALLOCATOR INITIALIZED:"

.subsections_via_symbols
