	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ngp_shutdown
_ngp_shutdown:                          ## @ngp_shutdown
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	callq	_NG_NODE_PRIVATE
	movq	%rax, %rbx
	cmpq	$0, 24(%rax)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	addq	$16, %rdi
	movl	%r14d, %esi
	callq	_ng_uncallout
LBB0_2:
	movq	(%rbx), %rdi
	movq	8(%rbx), %rsi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.4:
	callq	_ng_bypass
	jmp	LBB0_8
LBB0_5:
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.6:
	movq	%rsi, %rdi
	callq	_ng_rmhook_self
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
LBB0_7:
	callq	_ng_rmhook_self
LBB0_8:
	movl	%r14d, %edi
	callq	_NG_NODE_UNREF
	movq	_M_NG_PIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_free
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_NG_PIPE,4,2                  ## @M_NG_PIPE
	.no_dead_strip	_ngp_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ngp_shutdown
_ngp_shutdown:                          ; @ngp_shutdown
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_NG_NODE_PRIVATE
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	add	x0, x19, #16
	mov	x1, x20
	bl	_ng_uncallout
LBB0_2:
	ldp	x0, x1, [x19]
	cbz	x0, LBB0_5
; %bb.3:
	cbz	x1, LBB0_7
; %bb.4:
	bl	_ng_bypass
	b	LBB0_8
LBB0_5:
	cbz	x1, LBB0_8
; %bb.6:
	mov	x0, x1
	bl	_ng_rmhook_self
	ldr	x0, [x19]
	cbz	x0, LBB0_8
LBB0_7:
	bl	_ng_rmhook_self
LBB0_8:
	mov	x0, x20
	bl	_NG_NODE_UNREF
Lloh0:
	adrp	x8, _M_NG_PIPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_NG_PIPE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_free
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_M_NG_PIPE,4,2                  ; @M_NG_PIPE
	.no_dead_strip	_ngp_shutdown
.subsections_via_symbols
