	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_memmap
_show_memmap:                           ## @show_memmap
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SPECNAMELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	incl	%ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_printf
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	$0, -80(%rbp)
	subq	$8, %rsp
	leaq	-60(%rbp), %rax
	leaq	-80(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	leaq	-88(%rbp), %r8
	leaq	-68(%rbp), %r9
	movq	%r14, %rdi
	pushq	%rax
	callq	_vm_mmap_getnext
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	callq	_putchar
	movq	-88(%rbp), %rax
	addq	%rax, -80(%rbp)
	subq	$8, %rsp
	movq	%r14, %rdi
	leaq	-80(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	leaq	-88(%rbp), %r8
	leaq	-68(%rbp), %r9
	leaq	-60(%rbp), %rax
	pushq	%rax
	callq	_vm_mmap_getnext
	addq	$16, %rsp
	testl	%eax, %eax
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-64(%rbp), %esi
	movq	%r14, %rdi
	leaq	-112(%rbp), %rdx
	movq	%r13, %rcx
	movl	%ebx, %r8d
	callq	_vm_get_memseg
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rsi
	xorl	%ebx, %ebx
	leaq	L_.str.2(%rip), %r14
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-88(%rbp), %rdx
	movq	_HN_AUTOSCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_HN_NOSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	movl	$8, %esi
	leaq	L_.str.3(%rip), %rcx
	callq	_humanize_number
	leaq	L_.str.4(%rip), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_printf
	cmpb	$0, (%r13)
	movq	%r13, %rsi
	leaq	L_.str.5(%rip), %rax
	cmoveq	%rax, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	-72(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	-68(%rbp), %eax
	movq	_PROT_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	$82, %esi
	movl	$45, %edi
	cmovel	%edi, %esi
	movq	_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	$87, %edx
	cmovel	%edi, %edx
	movq	_PROT_EXEC@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	$88, %ecx
	cmovel	%edi, %ecx
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	-60(%rbp), %eax
	movq	_VM_MEMMAP_F_WIRED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.7(%rip), %rdi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	$47, %ebx
	movl	-60(%rbp), %eax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_VM_MEMMAP_F_IOMMU@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	-104(%rbp), %r14                ## 8-byte Reload
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.8(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_7
LBB0_8:
	xorl	%r12d, %r12d
LBB0_9:
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_ENOENT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	cmovel	%r12d, %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SPECNAMELEN,4,2                ## @SPECNAMELEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Address     Length      Segment     Offset      "

	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
L_.str.2:                               ## @.str.2
	.asciz	"%-12lX"

L_.str.3:                               ## @.str.3
	.asciz	"B"

	.comm	_HN_AUTOSCALE,4,2               ## @HN_AUTOSCALE
	.comm	_HN_NOSPACE,4,2                 ## @HN_NOSPACE
L_.str.4:                               ## @.str.4
	.asciz	"%-12s"

L_.str.5:                               ## @.str.5
	.asciz	"sysmem"

L_.str.6:                               ## @.str.6
	.asciz	"%c%c%c   "

	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_PROT_WRITE,4,2                 ## @PROT_WRITE
	.comm	_PROT_EXEC,4,2                  ## @PROT_EXEC
	.comm	_VM_MEMMAP_F_WIRED,4,2          ## @VM_MEMMAP_F_WIRED
L_.str.7:                               ## @.str.7
	.asciz	"%cwired"

	.comm	_VM_MEMMAP_F_IOMMU,4,2          ## @VM_MEMMAP_F_IOMMU
L_.str.8:                               ## @.str.8
	.asciz	"%ciommu"

L_str:                                  ## @str
	.asciz	"Prot  Flags"

	.no_dead_strip	_show_memmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_memmap
_show_memmap:                           ; @show_memmap
	.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, #64
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _SPECNAMELEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPECNAMELEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w20, w8, #1
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
Lloh10:
	adrp	x0, l_str@PAGE
Lloh11:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	stur	xzr, [x29, #-112]
	sub	x1, x29, #112
	sub	x2, x29, #140
	sub	x3, x29, #100
	sub	x4, x29, #120
	sub	x5, x29, #136
	sub	x6, x29, #132
	mov	x0, x19
	bl	_vm_mmap_getnext
	cbz	w0, LBB0_4
LBB0_1:
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _ENOENT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	w0, wzr, w0, eq
LBB0_2:
	ldur	x8, [x29, #-88]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.3:
	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_4:
Lloh21:
	adrp	x22, l_.str.2@PAGE
Lloh22:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh23:
	adrp	x24, l_.str.4@PAGE
Lloh24:
	add	x24, x24, l_.str.4@PAGEOFF
	mov	w26, #45
	mov	w23, #82
Lloh25:
	adrp	x25, l_.str.6@PAGE
Lloh26:
	add	x25, x25, l_.str.6@PAGEOFF
Lloh27:
	adrp	x28, _VM_MEMMAP_F_WIRED@GOTPAGE
Lloh28:
	ldr	x28, [x28, _VM_MEMMAP_F_WIRED@GOTPAGEOFF]
Lloh29:
	adrp	x27, _VM_MEMMAP_F_IOMMU@GOTPAGE
Lloh30:
	ldr	x27, [x27, _VM_MEMMAP_F_IOMMU@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #10
	bl	_putchar
	ldp	x8, x9, [x29, #-120]
	add	x8, x9, x8
	stur	x8, [x29, #-112]
	sub	x1, x29, #112
	sub	x2, x29, #140
	sub	x3, x29, #100
	sub	x4, x29, #120
	sub	x5, x29, #136
	sub	x6, x29, #132
	mov	x0, x19
	bl	_vm_mmap_getnext
	cbnz	w0, LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w1, [x29, #-140]
	sub	x2, x29, #128
	mov	x0, x19
	mov	x3, x21
	mov	x4, x20
	bl	_vm_get_memseg
	cbnz	w0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldur	x8, [x29, #-112]
	str	x8, [sp, #-16]!
	mov	x0, x22
	bl	_printf
	add	sp, sp, #16
	ldur	x2, [x29, #-120]
Lloh31:
	adrp	x8, _HN_AUTOSCALE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _HN_AUTOSCALE@GOTPAGEOFF]
Lloh33:
	ldr	w4, [x8]
Lloh34:
	adrp	x8, _HN_NOSPACE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _HN_NOSPACE@GOTPAGEOFF]
Lloh36:
	ldr	w5, [x8]
	sub	x0, x29, #96
	mov	w1, #8
Lloh37:
	adrp	x3, l_.str.3@PAGE
Lloh38:
	add	x3, x3, l_.str.3@PAGEOFF
	bl	_humanize_number
	sub	x8, x29, #96
	str	x8, [sp, #-16]!
	mov	x0, x24
	bl	_printf
	add	sp, sp, #16
	ldrb	w8, [x21]
	cmp	w8, #0
Lloh39:
	adrp	x8, l_.str.5@PAGE
Lloh40:
	add	x8, x8, l_.str.5@PAGEOFF
	csel	x8, x8, x21, eq
	str	x8, [sp, #-16]!
	mov	x0, x24
	bl	_printf
	add	sp, sp, #16
	ldur	w8, [x29, #-100]
	str	x8, [sp, #-16]!
	mov	x0, x22
	bl	_printf
	add	sp, sp, #16
	ldur	w8, [x29, #-136]
Lloh41:
	adrp	x9, _PROT_READ@GOTPAGE
Lloh42:
	ldr	x9, [x9, _PROT_READ@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
Lloh44:
	adrp	x10, _PROT_WRITE@GOTPAGE
Lloh45:
	ldr	x10, [x10, _PROT_WRITE@GOTPAGEOFF]
Lloh46:
	ldr	w10, [x10]
Lloh47:
	adrp	x11, _PROT_EXEC@GOTPAGE
Lloh48:
	ldr	x11, [x11, _PROT_EXEC@GOTPAGEOFF]
Lloh49:
	ldr	w11, [x11]
	tst	w11, w8
	mov	w11, #88
	csel	x11, x26, x11, eq
	sub	sp, sp, #32
	tst	w10, w8
	mov	w10, #87
	csel	x10, x26, x10, eq
	tst	w9, w8
	csel	x8, x26, x23, eq
	stp	x10, x11, [sp, #8]
	str	x8, [sp]
	mov	x0, x25
	bl	_printf
	add	sp, sp, #32
	ldur	w9, [x29, #-132]
	ldr	w8, [x28]
	tst	w8, w9
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [sp, #-16]!
Lloh50:
	adrp	x0, l_.str.7@PAGE
Lloh51:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	mov	w8, #47
	ldur	w9, [x29, #-132]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #0
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w10, [x27]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	str	x8, [sp, #-16]!
Lloh52:
	adrp	x0, l_.str.8@PAGE
Lloh53:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	b	LBB0_5
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_SPECNAMELEN,4,2                ; @SPECNAMELEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Address     Length      Segment     Offset      "

	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
l_.str.2:                               ; @.str.2
	.asciz	"%-12lX"

l_.str.3:                               ; @.str.3
	.asciz	"B"

	.comm	_HN_AUTOSCALE,4,2               ; @HN_AUTOSCALE
	.comm	_HN_NOSPACE,4,2                 ; @HN_NOSPACE
l_.str.4:                               ; @.str.4
	.asciz	"%-12s"

l_.str.5:                               ; @.str.5
	.asciz	"sysmem"

l_.str.6:                               ; @.str.6
	.asciz	"%c%c%c   "

	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_PROT_WRITE,4,2                 ; @PROT_WRITE
	.comm	_PROT_EXEC,4,2                  ; @PROT_EXEC
	.comm	_VM_MEMMAP_F_WIRED,4,2          ; @VM_MEMMAP_F_WIRED
l_.str.7:                               ; @.str.7
	.asciz	"%cwired"

	.comm	_VM_MEMMAP_F_IOMMU,4,2          ; @VM_MEMMAP_F_IOMMU
l_.str.8:                               ; @.str.8
	.asciz	"%ciommu"

l_str:                                  ; @str
	.asciz	"Prot  Flags"

	.no_dead_strip	_show_memmap
.subsections_via_symbols
