// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl $0x30, %edi
callq 0x1130
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
jne 0x3375
leaq 0x10ad(%rip), %rdi      # 0x43ca
movb $0x0, %al
callq 0x10a0
leaq 0x2e25(%rip), %rax      # 0x6150
movq (%rax), %rdi
callq 0x31e0
leaq 0x2e16(%rip), %rax      # 0x6150
movq (%rax), %rdi
callq 0x34f0
movl $0x30, %edi
callq 0x1130
movq %rax, -0x18(%rbp)
leaq 0x2df9(%rip), %rcx      # 0x6150
movq %rax, (%rcx)
cmpq $0x0, %rax
jne 0x3373
movl $0x1, %edi
leaq 0x1077(%rip), %rsi      # 0x43e3
movb $0x0, %al
callq 0x1120
jmp 0x3375
leaq 0x2dc0(%rip), %rax      # 0x613c
cmpl $0x0, (%rax)
jne 0x3429
movq -0x8(%rbp), %rdi
leaq 0x1060(%rip), %rsi      # 0x43f0
callq 0x10f0
cmpl $0x0, %eax
jne 0x3429
leaq 0x2da3(%rip), %rax      # 0x6148
movq (%rax), %rdi
movl $0x2f, %esi
callq 0x10c0
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0x33cc
leaq 0x2d85(%rip), %rax      # 0x6148
movq (%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0x33d8
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
leaq -0x120(%rbp), %rdi
movq -0x20(%rbp), %rdx
leaq 0x100b(%rip), %rsi      # 0x43f5
movb $0x0, %al
callq 0x1180
leaq -0x120(%rbp), %rdi
movl $0x2e, %esi
callq 0x10c0
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x341e
movq -0x20(%rbp), %rax
cmpb $0x0, 0x2(%rax)
jne 0x341e
movq -0x20(%rbp), %rax
movb $0x0, (%rax)
leaq -0x120(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x11a0
movq -0x18(%rbp), %rcx
movq %rax, 0x10(%rcx)
cmpq $0x0, %rax
jne 0x3453
movl $0x1, %edi
leaq 0xfad(%rip), %rsi       # 0x43f9
movb $0x0, %al
callq 0x1120
leaq 0x2cee(%rip), %rax      # 0x6148
movq (%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x18(%rax)
movl -0xc(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x28(%rax)
movq -0x18(%rbp), %rax
movq $0x0, 0x8(%rax)
movq -0x18(%rbp), %rax
movq $0x0, (%rax)
leaq 0x31e3(%rip), %rdi      # 0x6670
callq 0x11a0
movq -0x18(%rbp), %rcx
movq %rax, 0x20(%rcx)
cmpq $0x0, %rax
jne 0x34b3
movl $0x1, %edi
leaq 0xf4d(%rip), %rsi       # 0x43f9
movb $0x0, %al
callq 0x1120
leaq 0x2c96(%rip), %rax      # 0x6150
cmpq $0x0, (%rax)
jne 0x34d0
movq -0x18(%rbp), %rcx
leaq 0x2c85(%rip), %rax      # 0x6150
movq %rcx, (%rax)
jmp 0x34e3
movq -0x18(%rbp), %rdi
leaq 0x2c75(%rip), %rax      # 0x6150
movq (%rax), %rsi
callq 0x3540
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
nopl (%rax)