	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ShutdownCmd
_ShutdownCmd:                           ## @ShutdownCmd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$2, %edi
	jne	LBB0_1
## %bb.2:
	movq	8(%rsi), %rsi
	movq	_csock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_NGM_GENERIC_COOKIE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NGM_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_NgSendMsg
	testq	%rax, %rax
	js	LBB0_4
## %bb.3:
	movq	_CMDRTN_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_CMDRTN_USAGE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_warn
	movq	_CMDRTN_ERROR@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMDRTN_USAGE,4,2               ## @CMDRTN_USAGE
	.comm	_csock,4,2                      ## @csock
	.comm	_NGM_GENERIC_COOKIE,4,2         ## @NGM_GENERIC_COOKIE
	.comm	_NGM_SHUTDOWN,4,2               ## @NGM_SHUTDOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"shutdown"

	.comm	_CMDRTN_ERROR,4,2               ## @CMDRTN_ERROR
	.comm	_CMDRTN_OK,4,2                  ## @CMDRTN_OK
	.no_dead_strip	_ShutdownCmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ShutdownCmd
_ShutdownCmd:                           ; @ShutdownCmd
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w0, #2
	b.ne	LBB0_3
; %bb.1:
	ldr	x1, [x1, #8]
Lloh0:
	adrp	x8, _csock@GOTPAGE
Lloh1:
	ldr	x8, [x8, _csock@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _NGM_GENERIC_COOKIE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NGM_GENERIC_COOKIE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _NGM_SHUTDOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NGM_SHUTDOWN@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x4, #0
	mov	w5, #0
	bl	_NgSendMsg
	tbnz	x0, #63, LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _CMDRTN_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CMDRTN_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh11:
	adrp	x8, _CMDRTN_USAGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CMDRTN_USAGE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
Lloh15:
	adrp	x8, _CMDRTN_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CMDRTN_ERROR@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CMDRTN_USAGE,4,2               ; @CMDRTN_USAGE
	.comm	_csock,4,2                      ; @csock
	.comm	_NGM_GENERIC_COOKIE,4,2         ; @NGM_GENERIC_COOKIE
	.comm	_NGM_SHUTDOWN,4,2               ; @NGM_SHUTDOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"shutdown"

	.comm	_CMDRTN_ERROR,4,2               ; @CMDRTN_ERROR
	.comm	_CMDRTN_OK,4,2                  ; @CMDRTN_OK
	.no_dead_strip	_ShutdownCmd
.subsections_via_symbols
