	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_connect2_tee_id             ## -- Begin function ng_connect2_tee_id
	.p2align	4, 0x90
_ng_connect2_tee_id:                    ## @ng_connect2_tee_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movl	%esi, %r15d
	movl	%edi, %ebx
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NG_PATHSIZ@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %r8
	movl	%ebx, %edi
	xorl	%esi, %esi
	movq	%r13, %rcx
	callq	_ng_mkpeer_id
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_snprintf
	movl	(%r14), %esi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	callq	_snprintf
	movq	_NG_HOOKSIZ@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_strlcpy
	movl	(%rbx), %edx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_strlcpy
	movq	_csock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_NGM_GENERIC_COOKIE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NGM_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-80(%rbp), %r8
	movq	%r12, %rsi
	movl	$16, %r9d
	callq	_NgSendMsg
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %eax
LBB0_3:
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_PATHSIZ,4,2                 ## @NG_PATHSIZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tee"

L_.str.1:                               ## @.str.1
	.asciz	"left"

L_.str.2:                               ## @.str.2
	.asciz	"[%x]:"

L_.str.3:                               ## @.str.3
	.asciz	"right"

	.comm	_NG_HOOKSIZ,4,2                 ## @NG_HOOKSIZ
	.comm	_csock,4,2                      ## @csock
	.comm	_NGM_GENERIC_COOKIE,4,2         ## @NGM_GENERIC_COOKIE
	.comm	_NGM_CONNECT,4,2                ## @NGM_CONNECT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_connect2_tee_id             ; -- Begin function ng_connect2_tee_id
	.p2align	2
_ng_connect2_tee_id:                    ; @ng_connect2_tee_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, #32
	mov	x20, x3
	mov	x3, x2
	mov	x21, x1
	mov	x23, sp
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	x24, _NG_PATHSIZ@GOTPAGE
Lloh4:
	ldr	x24, [x24, _NG_PATHSIZ@GOTPAGEOFF]
	ldr	w8, [x24]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	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
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
Lloh9:
	adrp	x4, l_.str.1@PAGE
Lloh10:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x1, #0
	bl	_ng_mkpeer_id
	cbz	w0, LBB0_2
; %bb.1:
	mov	x3, x0
	ldr	w1, [x24]
Lloh11:
	adrp	x22, l_.str.2@PAGE
Lloh12:
	add	x22, x22, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_snprintf
	ldr	w1, [x24]
	mov	x2, x22
	mov	x3, x21
	bl	_snprintf
Lloh13:
	adrp	x21, _NG_HOOKSIZ@GOTPAGE
Lloh14:
	ldr	x21, [x21, _NG_HOOKSIZ@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strlcpy
	ldr	w2, [x21]
	mov	x1, x20
	bl	_strlcpy
Lloh17:
	adrp	x8, _csock@GOTPAGE
Lloh18:
	ldr	x8, [x8, _csock@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _NGM_GENERIC_COOKIE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NGM_GENERIC_COOKIE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _NGM_CONNECT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NGM_CONNECT@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	sub	x4, x29, #72
	mov	x1, x19
	mov	w5, #16
	bl	_NgSendMsg
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	mov	sp, x23
	ldur	x8, [x29, #-56]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	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_5:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_PATHSIZ,4,2                 ; @NG_PATHSIZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tee"

l_.str.1:                               ; @.str.1
	.asciz	"left"

l_.str.2:                               ; @.str.2
	.asciz	"[%x]:"

l_.str.3:                               ; @.str.3
	.asciz	"right"

	.comm	_NG_HOOKSIZ,4,2                 ; @NG_HOOKSIZ
	.comm	_csock,4,2                      ; @csock
	.comm	_NGM_GENERIC_COOKIE,4,2         ; @NGM_GENERIC_COOKIE
	.comm	_NGM_CONNECT,4,2                ; @NGM_CONNECT
.subsections_via_symbols
