// File: /workspace/github_c_makefile_star2_O0/martincameron[P]towntalk/towntalk.c
// Function: parse_operator_expression
static struct element* parse_operator_expression( struct element *elem, struct operator *oper,
	struct function *func, struct variables *vars, struct expression *prev, char *message ) {
	int count;
	struct element *next = elem->next;
	struct expression param = { 0 }, *expr = calloc( 1, sizeof( struct expression ) );
	if( expr ) {
		prev->next = expr;
		expr->line = elem->line;
		expr->index = oper->oper;
		expr->evaluate = oper->evaluate;
		if( oper->num_operands != 0 ) {
			if( next && next->str.string[ 0 ] == '(' ) {
				parse_expressions( next->child, func, vars, 0, &param, &count, message );
				expr->parameters = param.next;
				if( message[ 0 ] == 0 ) {
					if( count == oper->num_operands || ( oper->num_operands < 0 && count >= -oper->num_operands ) ) {
						next = next->next;
					} else {
						sprintf( message, "Wrong number of arguments to '%.64s()' on line %d.", oper->name, next->line );
					}
				}
			} else {
				sprintf( message, "Expected '(' after '%.64s' on line %d.", oper->name, elem->line );
			}
		}
	} else {
		strcpy( message, OUT_OF_MEMORY );
	}
	return next;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x40(%rbp)
leaq -0x60(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x30f0
movl $0x1, %edi
movl $0x20, %esi
callq 0x3120
movq %rax, -0x68(%rbp)
cmpq $0x0, -0x68(%rbp)
je 0x7b5a
movq -0x68(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x8(%rbp), %rax
movl 0x28(%rax), %ecx
movq -0x68(%rbp), %rax
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movsbl 0x8(%rax), %ecx
movq -0x68(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x68(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x10(%rbp), %rax
cmpl $0x0, 0xc(%rax)
je 0x7b58
cmpq $0x0, -0x40(%rbp)
je 0x7b36
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rax
movsbl (%rax), %eax
cmpl $0x28, %eax
jne 0x7b36
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x30(%rbp), %rax
xorl %ecx, %ecx
leaq -0x60(%rbp), %r8
leaq -0x34(%rbp), %r9
movq %rax, (%rsp)
callq 0xac40
movq -0x50(%rbp), %rcx
movq -0x68(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x7b34
movl -0x34(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0xc(%rcx), %eax
je 0x7b04
movq -0x10(%rbp), %rax
cmpl $0x0, 0xc(%rax)
jge 0x7b12
movl -0x34(%rbp), %eax
movq -0x10(%rbp), %rdx
xorl %ecx, %ecx
subl 0xc(%rdx), %ecx
cmpl %ecx, %eax
jl 0x7b12
movq -0x40(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x40(%rbp)
jmp 0x7b32
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
movq -0x40(%rbp), %rax
movl 0x28(%rax), %ecx
leaq 0x13faa(%rip), %rsi     # 0x1bad5
movb $0x0, %al
callq 0x31f0
jmp 0x7b34
jmp 0x7b56
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
movq -0x8(%rbp), %rax
movl 0x28(%rax), %ecx
leaq 0x13cc5(%rip), %rsi     # 0x1b814
movb $0x0, %al
callq 0x31f0
jmp 0x7b58
jmp 0x7b6a
movq -0x30(%rbp), %rdi
movq 0x195fb(%rip), %rsi     # 0x21160
callq 0x3070
movq -0x40(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)