// File: /workspace/github_c_makefile_star2_O3/darwin-on-arm[P]darwin-sdk/developer_cmds/ctags/tree.c
// Function: pfnote
void
pfnote(name, ln)
	char	*name;
	int	ln;
{
	NODE	*np;
	char	*fp;
	char	nbuf[MAXTOKEN];

	/*NOSTRICT*/
	if (!(np = (NODE *)malloc(sizeof(NODE)))) {
		warnx("too many entries to sort");
		put_entries(head);
		free_tree(head);
		/*NOSTRICT*/
		if (!(head = np = (NODE *)malloc(sizeof(NODE))))
			err(1, "out of space");
	}
	if (!xflag && !strcmp(name, "main")) {
		if (!(fp = strrchr(curfile, '/')))
			fp = curfile;
		else
			++fp;
		(void)sprintf(nbuf, "M%s", fp);
		fp = strrchr(nbuf, '.');
		if (fp && !fp[2])
			*fp = EOS;
		name = nbuf;
	}
	if (!(np->entry = strdup(name)))
		err(1, "strdup");
	np->file = curfile;
	np->lno = ln;
	np->left = np->right = 0;
	if (!(np->pat = strdup(lbuf)))
		err(1, "strdup");
	if (!head)
		head = np;
	else
		add_node(np, head);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movl %esi, %ebp
movq %rdi, %r14
movl $0x30, %edi
callq 0x1140
testq %rax, %rax
jne 0x293c
leaq 0x96e(%rip), %rdi       # 0x3276
xorl %eax, %eax
callq 0x10a0
leaq 0x284a(%rip), %r15      # 0x5160
movq (%r15), %rdi
callq 0x2806
movq (%r15), %rdi
callq 0x2b28
movl $0x30, %edi
callq 0x1140
movq %rax, (%r15)
testq %rax, %rax
je 0x2b1f
movq %rax, %rbx
leaq 0x2806(%rip), %rax      # 0x514c
cmpl $0x0, (%rax)
jne 0x2962
leaq 0x94a(%rip), %rsi       # 0x329c
movq %r14, %rdi
callq 0x1100
testl %eax, %eax
je 0x2a6f
movq %r14, %rdi
callq 0x11c0
movq %rax, 0x10(%rbx)
testq %rax, %rax
je 0x2b0c
movq %rax, %r14
leaq 0x27d7(%rip), %rax      # 0x5158
movq (%rax), %r15
movq %r15, 0x18(%rbx)
movl %ebp, 0x28(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
leaq 0x2ce8(%rip), %rdi      # 0x5680
callq 0x11c0
movq %rax, 0x20(%rbx)
testq %rax, %rax
je 0x2b0c
leaq 0x27af(%rip), %rax      # 0x5160
movq (%rax), %r13
testq %r13, %r13
je 0x29fe
movq 0x10(%r13), %rsi
movq %r14, %rdi
callq 0x1100
testl %eax, %eax
je 0x2a06
testl %eax, %eax
js 0x29db
movq 0x8(%r13), %r12
testq %r12, %r12
jne 0x29e8
jmp 0x2acd
movq (%r13), %r12
testq %r12, %r12
je 0x2ad3
movq 0x10(%r12), %rsi
movq %r14, %rdi
callq 0x1100
movq %r12, %r13
testl %eax, %eax
jne 0x29c9
jmp 0x2a09
movq %rbx, (%rax)
jmp 0x2ad7
movq %r13, %r12
movq 0x18(%r12), %rcx
cmpq %rcx, %r15
je 0x2a36
cmpb $0x0, 0x2c(%r12)
jne 0x2a2b
leaq 0x2722(%rip), %rax      # 0x5144
cmpl $0x0, (%rax)
je 0x2ae9
movb $0x1, 0x2c(%r12)
jmp 0x2ad7
leaq 0x2707(%rip), %rax      # 0x5144
cmpl $0x0, (%rax)
jne 0x2ad7
movq 0x25ab(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0x2c19(%rip), %rax      # 0x5670
movl (%rax), %ecx
leaq 0x84c(%rip), %rsi       # 0x32ac
movq %r15, %rdx
movq %r14, %r8
xorl %eax, %eax
callq 0x1110
jmp 0x2ad7
leaq 0x26e2(%rip), %rax      # 0x5158
movq (%rax), %r14
movq %r14, %rdi
movl $0x2f, %esi
callq 0x10c0
leaq 0x1(%rax), %rdx
testq %rax, %rax
cmoveq %r14, %rdx
leaq 0x809(%rip), %rsi       # 0x32a1
movq %rsp, %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x1190
movq %r14, %rdi
movl $0x2e, %esi
callq 0x10c0
testq %rax, %rax
je 0x2962
cmpb $0x0, 0x2(%rax)
jne 0x2962
movb $0x0, (%rax)
jmp 0x2962
movq %rbx, 0x8(%r13)
jmp 0x2ad7
movq %rbx, (%r13)
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2508(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0x7f0(%rip), %rsi       # 0x32ea
movq %r15, %rdx
movq %r14, %r8
xorl %eax, %eax
callq 0x1110
jmp 0x2a2b
leaq 0x792(%rip), %rsi       # 0x32a5
movl $0x1, %edi
xorl %eax, %eax
callq 0x1130
leaq 0x769(%rip), %rsi       # 0x328f
jmp 0x2b13