	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ListCmd
_ListCmd:                               ## @ListCmd
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CMDRTN_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_optind@GOTPCREL(%rip), %r12
	movl	$1, (%r12)
	xorl	%r13d, %r13d
	movb	$1, %al
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %r15
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movl	%r13d, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ecx, %r13d
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_getopt
	movl	$1, %ecx
	cmpl	$110, %eax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$108, %eax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, -80(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_1
LBB0_6:
	cmpl	%ebx, (%r12)
	jne	LBB0_9
## %bb.7:
	movq	_csock@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_NGM_GENERIC_COOKIE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%r13d, %r13d
	jne	LBB0_13
## %bb.8:
	movq	_NGM_LISTNODES@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_9:
	movq	_CMDRTN_USAGE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %r12d
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.12:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_NGM_LISTNAMES@GOTPCREL(%rip), %rax
LBB0_14:
	movl	-68(%rbp), %r12d                ## 4-byte Reload
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_NgSendMsg
	testq	%rax, %rax
	js	LBB0_22
## %bb.15:
	movl	(%rbx), %edi
	leaq	-88(%rbp), %rsi
	xorl	%edx, %edx
	callq	_NgAllocRecvMsg
	testq	%rax, %rax
	js	LBB0_23
## %bb.16:
	testl	%r13d, %r13d
	movq	-88(%rbp), %rax
	movq	(%rax), %rbx
	movl	(%rbx), %esi
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	8(%rbx), %r14
	testb	$1, -80(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_25
## %bb.17:
	cmpl	$0, (%rbx)
	jle	LBB0_30
## %bb.18:
	addq	$24, %r14
	leaq	L_.str.10(%rip), %r13
	leaq	L_.str.11(%rip), %r15
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	-8(%r14), %rdx
	movl	-24(%r14), %ecx
	movl	(%r14), %r8d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	(%rbx), %eax
	leal	-1(%rax), %ecx
	movl	%ecx, (%rbx)
	addq	$32, %r14
	cmpl	$1, %eax
	jle	LBB0_30
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	-16(%r14), %rsi
	cmpb	$0, (%rsi)
	jne	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	_UNNAMED@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rsi, %rdi
	movl	$8, %esi
	movq	%r13, %rdx
	callq	_snprintf
	movq	-16(%r14), %rsi
	jmp	LBB0_19
LBB0_22:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_24
LBB0_23:
	leaq	L_.str.3(%rip), %rdi
LBB0_24:
	callq	_warn
	movq	_CMDRTN_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_25:
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	_NG_PATHSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, %r13
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	L_.str.7(%rip), %rax
	movq	%rax, -64(%rbp)
	movq	%r15, -56(%rbp)
	cmpl	$0, (%rbx)
	jle	LBB0_29
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r14), %rcx
	movq	%r15, %rdi
	movl	%r13d, %esi
	leaq	L_.str.8(%rip), %rdx
	callq	_snprintf
	movl	$2, %edi
	leaq	-64(%rbp), %rsi
	movq	_show_cmd@GOTPCREL(%rip), %rax
	callq	*(%rax)
	movl	%eax, %r12d
	movq	_CMDRTN_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	movl	(%rbx), %eax
	leal	-1(%rax), %ecx
	movl	%ecx, (%rbx)
	cmpl	$2, %eax
	jl	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=1
	addq	$32, %r14
	movl	$10, %edi
	callq	_putchar
	cmpl	$0, (%rbx)
	jg	LBB0_26
LBB0_29:
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
LBB0_30:
	movq	-88(%rbp), %rdi
	callq	_free
	jmp	LBB0_11
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CMDRTN_OK,4,2                  ## @CMDRTN_OK
	.comm	_optind,4,2                     ## @optind
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ln"

	.comm	_CMDRTN_USAGE,4,2               ## @CMDRTN_USAGE
	.comm	_csock,4,2                      ## @csock
L_.str.1:                               ## @.str.1
	.asciz	"."

	.comm	_NGM_GENERIC_COOKIE,4,2         ## @NGM_GENERIC_COOKIE
	.comm	_NGM_LISTNAMES,4,2              ## @NGM_LISTNAMES
	.comm	_NGM_LISTNODES,4,2              ## @NGM_LISTNODES
L_.str.2:                               ## @.str.2
	.asciz	"send msg"

	.comm	_CMDRTN_ERROR,4,2               ## @CMDRTN_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"recv msg"

L_.str.4:                               ## @.str.4
	.asciz	"There are %d total %snodes:\n"

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

L_.str.6:                               ## @.str.6
	.space	1

	.comm	_NG_PATHSIZ,4,2                 ## @NG_PATHSIZ
L_.str.7:                               ## @.str.7
	.asciz	"show"

L_.str.8:                               ## @.str.8
	.asciz	"[%lx]:"

	.comm	_show_cmd,8,3                   ## @show_cmd
L_.str.10:                              ## @.str.10
	.asciz	"%s"

	.comm	_UNNAMED,8,3                    ## @UNNAMED
L_.str.11:                              ## @.str.11
	.asciz	"  Name: %-15s Type: %-15s ID: %08x   Num hooks: %d\n"

	.no_dead_strip	_ListCmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ListCmd
_ListCmd:                               ; @ListCmd
	.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	x21, x1
	mov	x20, x0
	mov	w26, #0
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	x23, _CMDRTN_OK@GOTPAGE
Lloh4:
	ldr	x23, [x23, _CMDRTN_OK@GOTPAGEOFF]
	ldr	w19, [x23]
Lloh5:
	adrp	x24, _optind@GOTPAGE
Lloh6:
	ldr	x24, [x24, _optind@GOTPAGEOFF]
	mov	w25, #1
	str	w25, [x24]
Lloh7:
	adrp	x22, l_.str@PAGE
Lloh8:
	add	x22, x22, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	mov	x8, x26
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x26, x8
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_getopt
	mov	w8, #1
	cmp	w0, #110
	b.eq	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w0, #108
	b.ne	LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w25, #0
	b	LBB0_1
LBB0_6:
	ldr	w8, [x24]
	cmp	w8, w20
	b.ne	LBB0_15
; %bb.7:
Lloh9:
	adrp	x20, _csock@GOTPAGE
Lloh10:
	ldr	x20, [x20, _csock@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh11:
	adrp	x8, _NGM_GENERIC_COOKIE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NGM_GENERIC_COOKIE@GOTPAGEOFF]
Lloh13:
	adrp	x9, _NGM_LISTNAMES@GOTPAGE
Lloh14:
	ldr	x9, [x9, _NGM_LISTNAMES@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _NGM_LISTNODES@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NGM_LISTNODES@GOTPAGEOFF]
	cmp	w26, #0
	csel	x8, x8, x9, eq
	ldr	w3, [x8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x4, #0
	mov	w5, #0
	bl	_NgSendMsg
	tbnz	x0, #63, LBB0_19
; %bb.8:
	ldr	w0, [x20]
	sub	x1, x29, #112
	mov	x2, #0
	bl	_NgAllocRecvMsg
	tbnz	x0, #63, LBB0_20
; %bb.9:
	ldur	x8, [x29, #-112]
Lloh20:
	adrp	x9, l_.str.5@PAGE
Lloh21:
	add	x9, x9, l_.str.5@PAGEOFF
	ldr	x24, [x8]
Lloh22:
	adrp	x8, l_.str.6@PAGE
Lloh23:
	add	x8, x8, l_.str.6@PAGEOFF
	cmp	w26, #0
	csel	x8, x8, x9, eq
	ldr	w9, [x24]
	stp	x9, x8, [sp, #-16]!
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	ldr	x26, [x24, #8]
	tbz	w25, #0, LBB0_22
; %bb.10:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.11:
	add	x22, x26, #16
Lloh26:
	adrp	x23, _UNNAMED@GOTPAGE
Lloh27:
	ldr	x23, [x23, _UNNAMED@GOTPAGEOFF]
Lloh28:
	adrp	x20, l_.str.10@PAGE
Lloh29:
	add	x20, x20, l_.str.10@PAGEOFF
Lloh30:
	adrp	x21, l_.str.11@PAGE
Lloh31:
	add	x21, x21, l_.str.11@PAGEOFF
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x22]
	ldur	w9, [x22, #-16]
	ldr	w10, [x22, #8]
	sub	sp, sp, #32
	stp	x9, x10, [sp, #16]
	stp	x0, x8, [sp]
	mov	x0, x21
	bl	_printf
	add	sp, sp, #32
	ldr	w8, [x24]
	add	x22, x22, #32
	subs	w8, w8, #1
	str	w8, [x24]
	b.le	LBB0_28
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldur	x0, [x22, #-8]
	ldrb	w8, [x0]
	cbnz	w8, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x3, [x23]
	mov	w1, #8
	mov	x2, x20
	bl	_snprintf
	ldur	x0, [x22, #-8]
	b	LBB0_12
LBB0_15:
Lloh32:
	adrp	x8, _CMDRTN_USAGE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CMDRTN_USAGE@GOTPAGEOFF]
LBB0_16:
	ldr	w19, [x8]
LBB0_17:
	ldur	x8, [x29, #-88]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.18:
	mov	x0, x19
	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_19:
Lloh37:
	adrp	x0, l_.str.2@PAGE
Lloh38:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_21
LBB0_20:
Lloh39:
	adrp	x0, l_.str.3@PAGE
Lloh40:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_21:
	bl	_warn
Lloh41:
	adrp	x8, _CMDRTN_ERROR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _CMDRTN_ERROR@GOTPAGEOFF]
	b	LBB0_16
LBB0_22:
	mov	x25, sp
Lloh43:
	adrp	x8, _NG_PATHSIZ@GOTPAGE
Lloh44:
	ldr	x8, [x8, _NG_PATHSIZ@GOTPAGEOFF]
Lloh45:
	ldr	w20, [x8]
	mov	x9, x20
Lloh46:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh47:
	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
Lloh48:
	adrp	x8, l_.str.7@PAGE
Lloh49:
	add	x8, x8, l_.str.7@PAGEOFF
	stp	x8, x21, [x29, #-104]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.23:
Lloh50:
	adrp	x22, l_.str.8@PAGE
Lloh51:
	add	x22, x22, l_.str.8@PAGEOFF
Lloh52:
	adrp	x27, _show_cmd@GOTPAGE
Lloh53:
	ldr	x27, [x27, _show_cmd@GOTPAGEOFF]
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x3, [x26]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_snprintf
	ldr	x8, [x27]
	sub	x1, x29, #104
	mov	w0, #2
	blr	x8
	mov	x19, x0
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	w8, [x24]
	sub	w9, w8, #1
	str	w9, [x24]
	cmp	w8, #2
	b.lt	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x26, x26, #32
	mov	w0, #10
	bl	_putchar
	ldr	w8, [x24]
	cmp	w8, #0
	b.gt	LBB0_24
LBB0_27:
	mov	sp, x25
LBB0_28:
	ldur	x0, [x29, #-112]
	bl	_free
	b	LBB0_17
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_CMDRTN_OK,4,2                  ; @CMDRTN_OK
	.comm	_optind,4,2                     ; @optind
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ln"

	.comm	_CMDRTN_USAGE,4,2               ; @CMDRTN_USAGE
	.comm	_csock,4,2                      ; @csock
l_.str.1:                               ; @.str.1
	.asciz	"."

	.comm	_NGM_GENERIC_COOKIE,4,2         ; @NGM_GENERIC_COOKIE
	.comm	_NGM_LISTNAMES,4,2              ; @NGM_LISTNAMES
	.comm	_NGM_LISTNODES,4,2              ; @NGM_LISTNODES
l_.str.2:                               ; @.str.2
	.asciz	"send msg"

	.comm	_CMDRTN_ERROR,4,2               ; @CMDRTN_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"recv msg"

l_.str.4:                               ; @.str.4
	.asciz	"There are %d total %snodes:\n"

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

l_.str.6:                               ; @.str.6
	.space	1

	.comm	_NG_PATHSIZ,4,2                 ; @NG_PATHSIZ
l_.str.7:                               ; @.str.7
	.asciz	"show"

l_.str.8:                               ; @.str.8
	.asciz	"[%lx]:"

	.comm	_show_cmd,8,3                   ; @show_cmd
l_.str.10:                              ; @.str.10
	.asciz	"%s"

	.comm	_UNNAMED,8,3                    ; @UNNAMED
l_.str.11:                              ; @.str.11
	.asciz	"  Name: %-15s Type: %-15s ID: %08x   Num hooks: %d\n"

	.no_dead_strip	_ListCmd
.subsections_via_symbols
