	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_memseg
_show_memseg:                           ## @show_memseg
	.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	$24, %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), %r15d
	incl	%r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%r12d, %r12d
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	movl	%r15d, %r8d
	callq	_vm_get_memseg
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	leaq	-56(%rbp), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	movq	%r14, %rdi
	movl	%r12d, %esi
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rcx
	movl	%r15d, %r8d
	callq	_vm_get_memseg
	testl	%eax, %eax
	jne	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -64(%rbp)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	-64(%rbp), %rdx
	movq	_HN_AUTOSCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_HN_NOSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r13, %rdi
	movl	$8, %esi
	leaq	L_.str.2(%rip), %rcx
	callq	_humanize_number
	leaq	L_.str.3(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_printf
	cmpb	$0, (%rbx)
	movq	%rbx, %rsi
	leaq	L_.str.5(%rip), %rax
	cmoveq	%rax, %rsi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$10, %edi
	callq	_putchar
	jmp	LBB0_4
LBB0_5:
	xorl	%r12d, %r12d
LBB0_6:
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	cmovel	%r12d, %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SPECNAMELEN,4,2                ## @SPECNAMELEN
	.comm	_errno,8,3                      ## @errno
	.comm	_EINVAL,8,3                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"%-4d"

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

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

L_.str.4:                               ## @.str.4
	.asciz	"%s"

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

L_str:                                  ## @str
	.asciz	"ID  Length      Name"

	.no_dead_strip	_show_memseg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_memseg
_show_memseg:                           ; @show_memseg
	.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, #32
	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	_puts
	sub	x2, x29, #104
	mov	x0, x19
	mov	w1, #0
	mov	x3, x21
	mov	x4, x20
	bl	_vm_get_memseg
	cbz	w0, LBB0_3
LBB0_1:
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _EINVAL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	w0, wzr, w0, eq
	ldur	x8, [x29, #-88]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.2:
	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_3:
	mov	w22, #0
Lloh19:
	adrp	x28, _HN_NOSPACE@GOTPAGE
Lloh20:
	ldr	x28, [x28, _HN_NOSPACE@GOTPAGEOFF]
Lloh21:
	adrp	x24, l_.str.2@PAGE
Lloh22:
	add	x24, x24, l_.str.2@PAGEOFF
	sub	x23, x29, #96
Lloh23:
	adrp	x25, l_.str.3@PAGE
Lloh24:
	add	x25, x25, l_.str.3@PAGEOFF
Lloh25:
	adrp	x27, l_.str.5@PAGE
Lloh26:
	add	x27, x27, l_.str.5@PAGEOFF
Lloh27:
	adrp	x26, l_.str.4@PAGE
Lloh28:
	add	x26, x26, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w22, w22, #1
	sub	x2, x29, #104
	mov	x0, x19
	mov	x1, x22
	mov	x3, x21
	mov	x4, x20
	bl	_vm_get_memseg
	cbnz	w0, LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x29, #-104]
	cbz	x8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x22, [sp, #-16]!
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	ldur	x2, [x29, #-104]
Lloh31:
	adrp	x8, _HN_AUTOSCALE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _HN_AUTOSCALE@GOTPAGEOFF]
Lloh33:
	ldr	w4, [x8]
	ldr	w5, [x28]
	sub	x0, x29, #96
	mov	w1, #8
	mov	x3, x24
	bl	_humanize_number
	str	x23, [sp, #-16]!
	mov	x0, x25
	bl	_printf
	add	sp, sp, #16
	ldrb	w8, [x21]
	cmp	w8, #0
	csel	x8, x27, x21, eq
	str	x8, [sp, #-16]!
	mov	x0, x26
	bl	_printf
	add	sp, sp, #16
	mov	w0, #10
	bl	_putchar
	b	LBB0_4
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_SPECNAMELEN,4,2                ; @SPECNAMELEN
	.comm	_errno,8,3                      ; @errno
	.comm	_EINVAL,8,3                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"%-4d"

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

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

l_.str.4:                               ; @.str.4
	.asciz	"%s"

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

l_str:                                  ; @str
	.asciz	"ID  Length      Name"

	.no_dead_strip	_show_memseg
.subsections_via_symbols
