	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_mkpeer_id                   ## -- Begin function ng_mkpeer_id
	.p2align	4, 0x90
_ng_mkpeer_id:                          ## @ng_mkpeer_id
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NG_PATHSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_NG_TYPESIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_strlcpy
	movq	_NG_HOOKSIZ@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rsi
	callq	_strlcpy
	movl	(%rbx), %edx
	movq	%r13, %rsi
	callq	_strlcpy
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_sprintf
	movq	_csock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_NGM_GENERIC_COOKIE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	_NGM_MKPEER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-88(%rbp), %r8
	movq	%r14, %rsi
	movl	$16, %r9d
	callq	_NgSendMsg
	xorl	%r13d, %r13d
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.1:
	movl	%r12d, %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_ng_next_node_id_internal
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movl	%eax, %r15d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	callq	_strcpy
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_sprintf
	movq	_csock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	movq	_NGM_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-72(%rbp), %r8
	movq	%r14, %rsi
	movl	$16, %r9d
	callq	_NgSendMsg
	cmpl	$-1, %eax
	je	LBB0_5
LBB0_4:
	movl	%r15d, %r13d
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_PATHSIZ,4,2                 ## @NG_PATHSIZ
	.comm	_NG_TYPESIZ,4,2                 ## @NG_TYPESIZ
	.comm	_NG_HOOKSIZ,4,2                 ## @NG_HOOKSIZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%x]:"

	.comm	_csock,4,2                      ## @csock
	.comm	_NGM_GENERIC_COOKIE,4,2         ## @NGM_GENERIC_COOKIE
	.comm	_NGM_MKPEER,4,2                 ## @NGM_MKPEER
	.comm	_NGM_NAME,4,2                   ## @NGM_NAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_mkpeer_id                   ; -- Begin function ng_mkpeer_id
	.p2align	2
_ng_mkpeer_id:                          ; @ng_mkpeer_id
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #48
	mov	x23, x4
	mov	x21, x3
	mov	x12, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _NG_PATHSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NG_PATHSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh8:
	adrp	x8, _NG_TYPESIZ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NG_TYPESIZ@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x1, x12
	bl	_strlcpy
Lloh11:
	adrp	x24, _NG_HOOKSIZ@GOTPAGE
Lloh12:
	ldr	x24, [x24, _NG_HOOKSIZ@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x1, x21
	bl	_strlcpy
	ldr	w2, [x24]
	mov	x1, x23
	bl	_strlcpy
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_sprintf
Lloh15:
	adrp	x23, _csock@GOTPAGE
Lloh16:
	ldr	x23, [x23, _csock@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh17:
	adrp	x24, _NGM_GENERIC_COOKIE@GOTPAGE
Lloh18:
	ldr	x24, [x24, _NGM_GENERIC_COOKIE@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh19:
	adrp	x8, _NGM_MKPEER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NGM_MKPEER@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	sub	x4, x29, #72
	mov	x1, x19
	mov	w5, #16
	bl	_NgSendMsg
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	mov	x0, x22
	mov	x1, #0
	mov	x2, x21
	mov	w3, #0
	bl	_ng_next_node_id_internal
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.2:
	cbz	x20, LBB0_5
; %bb.3:
	mov	x1, x20
	bl	_strcpy
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_sprintf
	ldr	w0, [x23]
	ldr	w2, [x24]
Lloh24:
	adrp	x8, _NGM_NAME@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NGM_NAME@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	sub	x4, x29, #88
	mov	x1, x19
	mov	w5, #16
	bl	_NgSendMsg
	cmn	w0, #1
	b.ne	LBB0_5
LBB0_4:
	mov	w21, #0
LBB0_5:
	ldur	x8, [x29, #-56]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x21
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_PATHSIZ,4,2                 ; @NG_PATHSIZ
	.comm	_NG_TYPESIZ,4,2                 ; @NG_TYPESIZ
	.comm	_NG_HOOKSIZ,4,2                 ; @NG_HOOKSIZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%x]:"

	.comm	_csock,4,2                      ; @csock
	.comm	_NGM_GENERIC_COOKIE,4,2         ; @NGM_GENERIC_COOKIE
	.comm	_NGM_MKPEER,4,2                 ; @NGM_MKPEER
	.comm	_NGM_NAME,4,2                   ; @NGM_NAME
.subsections_via_symbols
