	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_con_part3
_ng_con_part3:                          ## @ng_con_part3
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdx, %rdi
	callq	_NG_HOOK_NODE
	cmpq	_ng_deadnode@GOTPCREL(%rip), %rax
	jne	LBB0_2
## %bb.1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERROUT
LBB0_2:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	xorl	%r15d, %r15d
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	*%rcx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_ng_destroy_hook
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	%r12d, %edi
	callq	_ERROUT
	movl	%r12d, %r15d
LBB0_5:
	movq	_HK_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
	movl	%r14d, %edi
	callq	_NG_FREE_ITEM
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ng_deadnode,4,2                ## @ng_deadnode
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_HK_INVALID,4,2                 ## @HK_INVALID
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"failed in ng_con_part3()"

	.no_dead_strip	_ng_con_part3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_con_part3
_ng_con_part3:                          ; @ng_con_part3
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x0, x2
	bl	_NG_HOOK_NODE
Lloh0:
	adrp	x8, _ng_deadnode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ng_deadnode@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_ERROUT
LBB0_2:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x20
	blr	x8
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_ng_destroy_hook
Lloh5:
	adrp	x0, l_str@PAGE
Lloh6:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	x0, x21
	bl	_ERROUT
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
Lloh7:
	adrp	x8, _HK_INVALID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HK_INVALID@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	mov	x0, x19
	bl	_NG_FREE_ITEM
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ng_deadnode,4,2                ; @ng_deadnode
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_HK_INVALID,4,2                 ; @HK_INVALID
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"failed in ng_con_part3()"

	.no_dead_strip	_ng_con_part3
.subsections_via_symbols
