	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_con_part2
_ng_con_part2:                          ## @ng_con_part2
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	%rdx, %rdi
	callq	_NG_HOOK_NAME
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ng_findhook
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_TRAP_ERROR
	movq	%r15, %rdi
	callq	_ng_destroy_hook
	leaq	L_str.7(%rip), %rdi
	callq	_puts
	movq	_EEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERROUT
LBB0_2:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	24(%r15), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_ng_destroy_hook
	leaq	L_str.7(%rip), %rdi
	callq	_puts
	movl	%r12d, %edi
	callq	_ERROUT
LBB0_5:
	movq	%rbx, 8(%r15)
	movq	%rbx, %rdi
	callq	_NG_NODE_REF
	leaq	12(%rbx), %rdi
	movq	_hk_hooks@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_LIST_INSERT_HEAD
	incl	8(%rbx)
	movq	%r15, %rdi
	callq	_NG_HOOK_REF
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%r15, %rdi
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_ng_destroy_hook
	leaq	L_str.5(%rip), %rdi
	callq	_puts
	movl	%ebx, %edi
	callq	_ERROUT
LBB0_8:
	xorl	%eax, %eax
	callq	_TOPOLOGY_RLOCK
	movq	16(%r15), %rbx
	cmpq	_ng_deadhook@GOTPCREL(%rip), %rbx
	jne	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_TOPOLOGY_RUNLOCK
	leaq	L_str.4(%rip), %rdi
	callq	_puts
	movq	%r15, %rdi
	callq	_ng_destroy_hook
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERROUT
LBB0_10:
	xorl	%eax, %eax
	callq	_TOPOLOGY_RUNLOCK
	movq	8(%rbx), %rdi
	movq	_NG_REUSE_ITEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	_ng_con_part3@GOTPCREL(%rip), %rcx
	movq	%rbx, %rsi
	movl	%r14d, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ng_send_fn2
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	%r15, %rdi
	callq	_ng_destroy_hook
	jmp	LBB0_13
LBB0_12:
	movq	_HK_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r15)
LBB0_13:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_hk_hooks,4,2                   ## @hk_hooks
	.comm	_ng_deadhook,32,3               ## @ng_deadhook
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ng_con_part3,4,2               ## @ng_con_part3
	.comm	_NG_REUSE_ITEM,4,2              ## @NG_REUSE_ITEM
	.comm	_HK_INVALID,4,2                 ## @HK_INVALID
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"failed in ng_con_part2(C)"

L_str.4:                                ## @str.4
	.asciz	"failed in ng_con_part2(B)"

L_str.5:                                ## @str.5
	.asciz	"failed in ng_con_part2(A)"

L_str.7:                                ## @str.7
	.asciz	"failed in ng_con_part2()"

	.no_dead_strip	_ng_con_part2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_con_part2
_ng_con_part2:                          ; @ng_con_part2
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	bl	_NG_HOOK_NAME
	mov	x1, x0
	mov	x0, x21
	bl	_ng_findhook
	cbz	x0, LBB0_2
; %bb.1:
	bl	_TRAP_ERROR
	mov	x0, x19
	bl	_ng_destroy_hook
Lloh0:
	adrp	x0, l_str.7@PAGE
Lloh1:
	add	x0, x0, l_str.7@PAGEOFF
	bl	_puts
Lloh2:
	adrp	x8, _EEXIST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_ERROUT
LBB0_2:
	ldr	x8, [x21]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w2, [x19, #24]
	mov	x0, x21
	mov	x1, x19
	blr	x8
	cbz	w0, LBB0_5
; %bb.4:
	mov	x22, x0
	mov	x0, x19
	bl	_ng_destroy_hook
Lloh5:
	adrp	x0, l_str.7@PAGE
Lloh6:
	add	x0, x0, l_str.7@PAGEOFF
	bl	_puts
	mov	x0, x22
	bl	_ERROUT
LBB0_5:
	str	x21, [x19, #8]
	mov	x0, x21
	bl	_NG_NODE_REF
	add	x0, x21, #12
Lloh7:
	adrp	x8, _hk_hooks@GOTPAGE
Lloh8:
	ldr	x8, [x8, _hk_hooks@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_LIST_INSERT_HEAD
	ldr	w8, [x21, #8]
	add	w8, w8, #1
	str	w8, [x21, #8]
	mov	x0, x19
	bl	_NG_HOOK_REF
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_8
; %bb.6:
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_8
; %bb.7:
	mov	x21, x0
	mov	x0, x19
	bl	_ng_destroy_hook
Lloh10:
	adrp	x0, l_str.5@PAGE
Lloh11:
	add	x0, x0, l_str.5@PAGEOFF
	bl	_puts
	mov	x0, x21
	bl	_ERROUT
LBB0_8:
	bl	_TOPOLOGY_RLOCK
	ldr	x21, [x19, #16]
Lloh12:
	adrp	x8, _ng_deadhook@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ng_deadhook@GOTPAGEOFF]
	cmp	x21, x8
	b.ne	LBB0_10
; %bb.9:
	bl	_TOPOLOGY_RUNLOCK
Lloh14:
	adrp	x0, l_str.4@PAGE
Lloh15:
	add	x0, x0, l_str.4@PAGEOFF
	bl	_puts
	mov	x0, x19
	bl	_ng_destroy_hook
Lloh16:
	adrp	x8, _ENOENT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_ERROUT
LBB0_10:
	bl	_TOPOLOGY_RUNLOCK
	ldr	x0, [x21, #8]
Lloh19:
	adrp	x8, _NG_REUSE_ITEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NG_REUSE_ITEM@GOTPAGEOFF]
Lloh21:
	ldr	w6, [x8]
Lloh22:
	adrp	x3, _ng_con_part3@GOTPAGE
Lloh23:
	ldr	x3, [x3, _ng_con_part3@GOTPAGEOFF]
	mov	x1, x21
	mov	x2, x20
	mov	x4, #0
	mov	w5, #0
	bl	_ng_send_fn2
	mov	x20, x0
	cbz	w0, LBB0_12
; %bb.11:
Lloh24:
	adrp	x0, l_str@PAGE
Lloh25:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	x0, x19
	bl	_ng_destroy_hook
	b	LBB0_13
LBB0_12:
Lloh26:
	adrp	x8, _HK_INVALID@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HK_INVALID@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_13:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_hk_hooks,4,2                   ; @hk_hooks
	.comm	_ng_deadhook,32,3               ; @ng_deadhook
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ng_con_part3,4,2               ; @ng_con_part3
	.comm	_NG_REUSE_ITEM,4,2              ; @NG_REUSE_ITEM
	.comm	_HK_INVALID,4,2                 ; @HK_INVALID
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"failed in ng_con_part2(C)"

l_str.4:                                ; @str.4
	.asciz	"failed in ng_con_part2(B)"

l_str.5:                                ; @str.5
	.asciz	"failed in ng_con_part2(A)"

l_str.7:                                ; @str.7
	.asciz	"failed in ng_con_part2()"

	.no_dead_strip	_ng_con_part2
.subsections_via_symbols
