// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: parse_function
struct function* parse_function( struct element *elem, char *name,
	struct function *parent, char *message ) {
	struct element *child;
	struct function *func;
	if( elem->line < 1 && !check_element_depth( elem, parent->env->element_depth ) ) {
		strcpy( message, "Maximum element depth exceeded." );
		return NULL;
	}
	func = new_function( name, parent );
	if( func ) {
		func->line = elem->line;
		func->file = parent->file;
		func->file->reference_count++;
		if( parent->library ) {
			func->library = parent->library;
			func->library->reference_count++;
		}
		func->body = elem->next;
		func->env = parent->env;
		child = elem->child;
		while( child && message[ 0 ] == 0 ) {
			child = add_function_parameter( func, child, message );
			if( child && child->str.string[ 0 ] == ',' && message[ 0 ] == 0 ) {
				child = child->next;
			}
		}
		if( message[ 0 ] ) {
			unref_string( &func->str );
			func = NULL;
		}
	} else {
		strcpy( message, OUT_OF_MEMORY );
	}
	return func;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
cmpl $0x0, 0x28(%rdi)
jg 0x6b5b
movq 0x40(%r12), %rax
movl 0x8(%rax), %esi
movq %r15, %rdi
callq 0x6d2b
testl %eax, %eax
je 0x6d01
movq %r14, %rdi
movq %r12, %rsi
callq 0x6d74
testq %rax, %rax
je 0x6ce2
movq %rax, %r14
movl 0x28(%r15), %eax
movl %eax, 0x18(%r14)
movq 0x28(%r12), %rax
movq %rax, 0x28(%r14)
incq (%rax)
movq 0x30(%r12), %rax
testq %rax, %rax
je 0x6b97
movq %rax, 0x30(%r14)
incq (%rax)
movq 0x20(%r15), %rax
movq %rax, 0x38(%r14)
movq 0x40(%r12), %rax
movq %rax, 0x40(%r14)
movq 0x18(%r15), %r13
movq %r14, %rbp
addq $0x48, %rbp
pushq $0x3
popq %r15
movb (%rbx), %al
testq %r13, %r13
je 0x6cf3
testb %al, %al
jne 0x6cf7
movq 0x8(%r13), %rax
cmpb $0x28, (%rax)
jne 0x6c0f
movq 0x18(%r13), %rax
movq 0x8(%rax), %rsi
movq %r14, %rdi
movl %r15d, %edx
xorl %ecx, %ecx
callq 0x5f5b
testq %rax, %rax
je 0x6bf3
movq 0x20(%r13), %r13
jmp 0x6c11
movq 0x18(%r13), %rax
movq 0x8(%rax), %rdx
movl 0x28(%rax), %ecx
movq %rbx, %rdi
leaq 0xad16(%rip), %rsi      # 0x1191e
xorl %eax, %eax
callq 0x3200
xorl %eax, %eax
cmpb $0x0, (%rbx)
jne 0x6c2c
movq %r14, %rdi
movq %r13, %rsi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x8261
cmpb $0x0, (%rbx)
je 0x6c63
movq %r13, %rax
movl $0x0, %r13d
testq %rax, %rax
je 0x6bb7
movq 0x8(%rax), %rcx
cmpb $0x2c, (%rcx)
movq %rax, %r13
jne 0x6bb7
cmpb $0x0, (%rbx)
movq %rax, %r13
jne 0x6bb7
movq 0x20(%rax), %r13
jmp 0x6bb7
movq %rax, %r12
movq (%rbp), %r15
movq 0x8(%r13), %rsi
movq %r15, %rdi
leaq 0xa3de(%rip), %rdx      # 0x11056
callq 0x5eb5
testq %rax, %rax
je 0x6cac
movq %r12, %rdi
callq 0x7868
movq 0x8(%r13), %rdx
movl 0x28(%r13), %ecx
movq %rbx, %rdi
leaq 0xacad(%rip), %rsi      # 0x11949
xorl %eax, %eax
callq 0x3200
movq %r13, %rax
pushq $0x3
popq %r15
jmp 0x6c3e
movl 0x1c(%r14), %eax
incl %eax
movl %eax, 0x20(%r14)
movl %eax, 0x1c(%r14)
movq %rbp, %rcx
testq %r15, %r15
je 0x6cca
movq 0x50(%r14), %rbp
addq $0x18, %rbp
movq %r12, (%rbp)
movq %r12, 0x50(%r14)
movq 0x20(%r13), %r13
pushq $0x3
popq %r15
movq %rcx, %rbp
jmp 0x6c2c
movq 0x11487(%rip), %rsi     # 0x18170
movq %rbx, %rdi
callq 0x3070
jmp 0x6d16
testb %al, %al
je 0x6d19
movq %r14, %rdi
callq 0x38b2
jmp 0x6d16
movups 0xa83a(%rip), %xmm0     # 0x11542
movups %xmm0, 0x10(%rbx)
movups 0xa81f(%rip), %xmm0     # 0x11532
movups %xmm0, (%rbx)
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq