	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_mkpeer
_ng_mkpeer:                             ## @ng_mkpeer
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %ebx
	leaq	-36(%rbp), %rsi
	movq	%rcx, %rdi
	callq	_ng_make_node
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	leaq	-56(%rbp), %rdx
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_ng_add_hook
	movl	-36(%rbp), %edi
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r12d
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ng_rmnode
	jmp	LBB0_13
LBB0_3:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rsi
	callq	_ng_add_hook
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	movl	-36(%rbp), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ng_rmnode
	movq	-56(%rbp), %rdi
	callq	_ng_destroy_hook
	movq	-56(%rbp), %rdi
	jmp	LBB0_12
LBB0_5:
	movq	-48(%rbp), %rax
	movq	-56(%rbp), %rdi
	movq	%rax, 16(%rdi)
	movq	%rdi, 16(%rax)
	callq	_NG_HOOK_REF
	movq	-48(%rbp), %rdi
	callq	_NG_HOOK_REF
	movq	-56(%rbp), %rdi
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	callq	*%rax
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_14
LBB0_7:
	movq	-48(%rbp), %rdi
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.8:
	callq	*%rcx
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_9
LBB0_14:
	movq	-48(%rbp), %rdi
	callq	_ng_destroy_hook
	movl	-36(%rbp), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ng_rmnode
	movq	-56(%rbp), %rax
	jmp	LBB0_11
LBB0_9:
	movq	-48(%rbp), %rdi
LBB0_10:
	movq	_HK_INVALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	movq	-56(%rbp), %rax
	andl	%edx, (%rax)
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, (%rdi)
	xorl	%r12d, %r12d
LBB0_11:
	movq	%rax, %rdi
	callq	_NG_HOOK_UNREF
	movq	-48(%rbp), %rdi
LBB0_12:
	callq	_NG_HOOK_UNREF
LBB0_13:
	movl	%r12d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HK_INVALID,4,2                 ## @HK_INVALID
	.no_dead_strip	_ng_mkpeer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_mkpeer
_ng_mkpeer:                             ; @ng_mkpeer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x22, x0
	add	x1, sp, #28
	mov	x0, x3
	bl	_ng_make_node
	mov	x19, x0
	cbnz	w0, LBB0_14
; %bb.1:
	add	x2, sp, #16
	mov	x0, x22
	mov	x1, x21
	bl	_ng_add_hook
	mov	x19, x0
	ldr	w0, [sp, #28]
	cbz	w19, LBB0_3
; %bb.2:
	mov	x1, #0
	mov	x2, #0
	mov	w3, #0
	bl	_ng_rmnode
	b	LBB0_14
LBB0_3:
	add	x2, sp, #8
	mov	x1, x20
	bl	_ng_add_hook
	cbz	w0, LBB0_5
; %bb.4:
	mov	x19, x0
	ldr	w0, [sp, #28]
	mov	x1, #0
	mov	x2, #0
	mov	w3, #0
	bl	_ng_rmnode
	ldr	x0, [sp, #16]
	bl	_ng_destroy_hook
	ldr	x0, [sp, #16]
	b	LBB0_13
LBB0_5:
	ldp	x8, x0, [sp, #8]
	str	x8, [x0, #16]
	str	x0, [x8, #16]
	bl	_NG_HOOK_REF
	ldr	x0, [sp, #8]
	bl	_NG_HOOK_REF
	ldr	x0, [sp, #16]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	blr	x8
	mov	x19, x0
	cbnz	w0, LBB0_9
LBB0_7:
	ldr	x0, [sp, #8]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.8:
	blr	x8
	mov	x19, x0
	cbz	w0, LBB0_10
LBB0_9:
	ldr	x0, [sp, #8]
	bl	_ng_destroy_hook
	ldr	w0, [sp, #28]
	mov	x1, #0
	mov	x2, #0
	mov	w3, #0
	bl	_ng_rmnode
	ldr	x8, [sp, #16]
	b	LBB0_12
LBB0_10:
	ldr	x0, [sp, #8]
LBB0_11:
	mov	w19, #0
Lloh0:
	adrp	x9, _HK_INVALID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HK_INVALID@GOTPAGEOFF]
	ldr	w10, [x9]
	ldr	x8, [sp, #16]
	ldr	w11, [x8]
	bic	w10, w11, w10
	str	w10, [x8]
	ldr	w9, [x9]
	ldr	w10, [x0]
	bic	w9, w10, w9
	str	w9, [x0]
LBB0_12:
	mov	x0, x8
	bl	_NG_HOOK_UNREF
	ldr	x0, [sp, #8]
LBB0_13:
	bl	_NG_HOOK_UNREF
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HK_INVALID,4,2                 ; @HK_INVALID
	.no_dead_strip	_ng_mkpeer
.subsections_via_symbols
