// File: /workspace/github_c_makefile_star2_O0/oridb[P]mc/parse/infer.c
// Function: ctxstrcall
static void
ctxstrcall(char *buf, size_t sz, Node *n)
{
	char *p, *end, *sep, *t;
	size_t nargs, i;
	Node **args;
	Type *et;

	args = n->expr.args;
	nargs = n->expr.nargs;
	p = buf;
	end = buf + sz;
	sep = "";

	if (exprop(args[0]) == Ovar)
		p += bprintf(p, end - p, "%s(", namestr(args[0]->expr.args[0]));
	else
		p += bprintf(p, end - p, "<e>(");
	for (i = 1; i < nargs; i++) {
		et = tyfix(NULL, exprtype(args[i]), 1);
		if (et != NULL)
			t = tystr(et);
		else
			t = strdup("?");

		if (exprop(args[i]) == Ovar)
			p += bprintf(p, end - p, "%s%s:%s", sep, namestr(args[i]->expr.args[0]), t);
		else
			p += bprintf(p, end - p, "%s<e%zd>:%s", sep, i, t);
		sep = ", ";
		free(t);
	}
	if (exprtype(args[0])->nsub)
		t = tystr(tyfix(NULL, exprtype(args[0])->sub[0], 1));
	else
		t = strdup("unknown");
	p += bprintf(p, end - p, "): %s", t);
	free(t);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq 0x50(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rax
movq 0x40(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rax
addq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
leaq 0x2d56b(%rip), %rax     # 0x55825
movq %rax, -0x30(%rbp)
movq -0x50(%rbp), %rax
movq (%rax), %rdi
callq 0x2f210
cmpl $0x33, %eax
jne 0x2831c
movq -0x20(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x28(%rbp), %rax
movq -0x20(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x60(%rbp)
movq -0x50(%rbp), %rax
movq (%rax), %rax
movq 0x50(%rax), %rax
movq (%rax), %rdi
callq 0x30600
movq -0x68(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq %rax, %rcx
leaq 0x29c08(%rip), %rdx     # 0x51f13
movb $0x0, %al
callq 0x4a230
addq -0x20(%rbp), %rax
movq %rax, -0x20(%rbp)
jmp 0x28341
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x20(%rbp), %rax
subq %rax, %rsi
leaq 0x29be5(%rip), %rdx     # 0x51f17
movb $0x0, %al
callq 0x4a230
addq -0x20(%rbp), %rax
movq %rax, -0x20(%rbp)
movq $0x1, -0x48(%rbp)
movq -0x48(%rbp), %rax
cmpq -0x40(%rbp), %rax
jae 0x28471
movq -0x50(%rbp), %rax
movq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x30340
movq %rax, %rsi
xorl %eax, %eax
movl %eax, %edi
movl $0x1, %edx
callq 0x28500
movq %rax, -0x58(%rbp)
cmpq $0x0, -0x58(%rbp)
je 0x28393
movq -0x58(%rbp), %rdi
callq 0x38a10
movq %rax, -0x38(%rbp)
jmp 0x283a3
leaq 0x29af0(%rip), %rdi     # 0x51e8a
callq 0x6330
movq %rax, -0x38(%rbp)
movq -0x50(%rbp), %rax
movq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x2f210
cmpl $0x33, %eax
jne 0x2841b
movq -0x20(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x28(%rbp), %rax
movq -0x20(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x78(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x50(%rbp), %rax
movq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x50(%rax), %rax
movq (%rax), %rdi
callq 0x30600
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rcx
movq %rax, %r8
movq -0x38(%rbp), %r9
leaq 0x29b12(%rip), %rdx     # 0x51f1c
movb $0x0, %al
callq 0x4a230
addq -0x20(%rbp), %rax
movq %rax, -0x20(%rbp)
jmp 0x2844c
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x20(%rbp), %rax
subq %rax, %rsi
movq -0x30(%rbp), %rcx
movq -0x48(%rbp), %r8
movq -0x38(%rbp), %r9
leaq 0x29ae7(%rip), %rdx     # 0x51f24
movb $0x0, %al
callq 0x4a230
addq -0x20(%rbp), %rax
movq %rax, -0x20(%rbp)
leaq 0x29add(%rip), %rax     # 0x51f30
movq %rax, -0x30(%rbp)
movq -0x38(%rbp), %rdi
callq 0x6040
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x28349
movq -0x50(%rbp), %rax
movq (%rax), %rdi
callq 0x30340
cmpq $0x0, 0x70(%rax)
je 0x284b3
movq -0x50(%rbp), %rax
movq (%rax), %rdi
callq 0x30340
movq 0x68(%rax), %rax
movq (%rax), %rsi
xorl %eax, %eax
movl %eax, %edi
movl $0x1, %edx
callq 0x28500
movq %rax, %rdi
callq 0x38a10
movq %rax, -0x38(%rbp)
jmp 0x284c3
leaq 0x29a51(%rip), %rdi     # 0x51f0b
callq 0x6330
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x20(%rbp), %rax
subq %rax, %rsi
movq -0x38(%rbp), %rcx
leaq 0x29a56(%rip), %rdx     # 0x51f33
movb $0x0, %al
callq 0x4a230
addq -0x20(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x38(%rbp), %rdi
callq 0x6040
addq $0x80, %rsp
popq %rbp
retq
nop