// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/worker.c
// Function: evaluate_worker_expression
enum result evaluate_worker_expression( struct expression *this,
	struct variables *vars, struct variable *result ) {
	struct expression *parameter = this->parameters;
	struct element *elem, prev = { { 1, "$worker", 9, ELEMENT }, NULL, NULL, 0 };
	struct environment *env = vars->func->env;
	struct variable var = { 0, NULL };
	char message[ 128 ] = "";
	struct worker *work;
	enum result ret;
	if( vars->func->env->worker ) {
		ret = throw( vars, this, 0, "Operation not permitted." );
	} else {
		ret = evaluate_element( parameter, vars, &var, 0 );
	}
	if( ret ) {
		elem = ( struct element * ) var.string_value;
		if( ( size_t ) &ret < env->stack_limit ) {
			ret = throw_stack_overflow( vars, this );
		} else {
			prev.line = this->line;
			validate_syntax( "({0", elem, &prev, env, message );
			if( message[ 0 ] == 0 ) {
				work = parse_worker( elem, vars->func->file, message );
				if( work ) {
					result->string_value = &work->custom.str;
				} else {
					ret = throw( vars, this, 0, message );
				}
			} else {
				ret = throw( vars, this, 0, message );
			}
		}
		dispose_temporary( &var );
	}
	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
movups 0x8acd(%rip), %xmm0     # 0x18a60
movaps %xmm0, 0xd0(%rsp)
movups 0x8aae(%rip), %xmm0     # 0x18a50
movaps %xmm0, 0xc0(%rsp)
movdqu 0x8a8e(%rip), %xmm0     # 0x18a40
movdqa %xmm0, 0xb0(%rsp)
movq 0x18(%rsi), %rax
movq 0x40(%rax), %r12
pxor %xmm0, %xmm0
movdqa %xmm0, 0x10(%rsp)
movdqa %xmm0, 0xa0(%rsp)
movdqa %xmm0, 0x90(%rsp)
movdqa %xmm0, 0x80(%rsp)
movdqa %xmm0, 0x70(%rsp)
movdqa %xmm0, 0x60(%rsp)
movdqa %xmm0, 0x50(%rsp)
movdqa %xmm0, 0x40(%rsp)
movdqa %xmm0, 0x30(%rsp)
cmpq $0x0, 0x3a0(%r12)
je 0x10027
leaq 0x3270(%rip), %rcx      # 0x13288
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3c96
jmp 0x10036
leaq 0x10(%rsp), %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x4478
movl %eax, 0xc(%rsp)
testl %eax, %eax
je 0x10059
leaq 0xc(%rsp), %rax
cmpq %rax, (%r12)
jbe 0x10060
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4e98
jmp 0x1035c
xorl %eax, %eax
jmp 0x1036e
movq 0x18(%rsp), %rbp
movl (%rbx), %eax
leaq 0xb0(%rsp), %rdx
movl %eax, 0x28(%rdx)
leaq 0x30b0(%rip), %rdi      # 0x13129
leaq 0x30(%rsp), %r13
movq %rbp, %rsi
movq %r12, %rcx
movq %r13, %r8
callq 0x65fe
cmpb $0x0, (%r13)
jne 0x1034a
movq 0x18(%r14), %rax
movq 0x28(%rax), %r12
movl $0x1, %edi
movl $0x420, %esi            # imm = 0x420
callq 0x3130
testq %rax, %rax
je 0x101dd
movq %rax, %r13
movq %r12, 0x28(%rsp)
leaq 0x9eca(%rip), %rax      # 0x19f90
movq %rax, 0x18(%r13)
movq 0x9ebf(%rip), %rdi      # 0x19f90
movq %rdi, 0x8(%r13)
callq 0x30c0
movl %eax, 0x10(%r13)
movq $0x1, (%r13)
movb $0x9, 0x14(%r13)
movq %r13, %r12
addq $0x20, %r12
leaq 0x30(%rsp), %rdx
movl $0x10000, %esi          # imm = 0x10000
movq %r12, %rdi
callq 0x7d8c
testl %eax, %eax
je 0x10342
leaq 0x9edd(%rip), %rdi      # 0x19ff0
leaq 0x30(%rsp), %rdx
movq %r12, %rsi
callq 0x7b88
testl %eax, %eax
je 0x10342
movq %r13, 0x3c0(%r13)
movq $0x0, 0x110(%rsp)
movq %r12, 0x120(%rsp)
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x37b3
movq %rax, 0x108(%rsp)
testq %rax, %rax
je 0x101f6
movq 0x8(%r13), %rsi
leaq 0xe0(%rsp), %rdx
leaq 0x30(%rsp), %rcx
movq %rbp, %rdi
callq 0x7020
testq %rax, %rax
je 0x1032e
movl 0x28(%rbp), %esi
leaq 0x30(%rsp), %rcx
movq %rax, %rdi
movq %r12, %rdx
movq %rax, %rbp
callq 0x3edc
testq %rax, %rax
je 0x10326
movq %rbp, 0x3b8(%r13)
movslq 0x1c(%rbp), %r12
movl $0x10, %esi
movq %r12, %rdi
callq 0x3130
movq %rax, 0x3c8(%r13)
testq %rax, %rax
je 0x1020f
movl $0x48, %esi
movq %r12, %rdi
callq 0x3130
movq %rax, 0x400(%r13)
jmp 0x10216
leaq 0x8f8c(%rip), %rax      # 0x19170
movq (%rax), %rsi
leaq 0x30(%rsp), %rdi
callq 0x3070
jmp 0x1034a
leaq 0x8f73(%rip), %rax      # 0x19170
movq (%rax), %rsi
leaq 0x30(%rsp), %rdi
callq 0x3070
jmp 0x1033b
movq 0x400(%r13), %rax
testq %rax, %rax
je 0x10231
movl $0x30, %esi
movq %r12, %rdi
callq 0x3130
movq %rax, 0x3f0(%r13)
jmp 0x10238
movq 0x3f0(%r13), %rax
testq %rax, %rax
je 0x10312
testl %r12d, %r12d
jle 0x10301
leal 0x1(%r12), %ecx
decq %r12
movq %r12, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
shrl %ecx
shlq $0x6, %rcx
movdqa 0x2fe6(%rip), %xmm1     # 0x13250
xorl %edx, %edx
movdqa 0x2fec(%rip), %xmm2     # 0x13260
pxor %xmm2, %xmm0
pcmpeqd %xmm3, %xmm3
movdqa 0x2fec(%rip), %xmm4     # 0x13270
movdqa %xmm1, %xmm5
pxor %xmm2, %xmm5
movdqa %xmm5, %xmm6
pcmpgtd %xmm0, %xmm6
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm5     # xmm5 = xmm5[1,1,3,3]
pand %xmm6, %xmm5
pshufd $0xf5, %xmm6, %xmm6     # xmm6 = xmm6[1,1,3,3]
por %xmm5, %xmm6
movdqa %xmm1, %xmm5
psubq %xmm3, %xmm5
movd %xmm6, %esi
notl %esi
testb $0x1, %sil
je 0x102cf
movq %xmm5, %rsi
shlq $0x5, %rsi
addq %rax, %rsi
movq %rsi, 0x10(%rax,%rdx)
pxor %xmm3, %xmm6
pextrw $0x4, %xmm6, %esi
testb $0x1, %sil
je 0x102f4
pshufd $0xee, %xmm5, %xmm5     # xmm5 = xmm5[2,3,2,3]
movq %xmm5, %rsi
shlq $0x5, %rsi
addq %rax, %rsi
movq %rsi, 0x30(%rax,%rdx)
paddq %xmm4, %xmm1
addq $0x40, %rdx
cmpq %rdx, %rcx
jne 0x10284
leaq 0x30(%rsp), %rdx
movq %rbp, %rdi
xorl %esi, %esi
callq 0x7328
jmp 0x10326
leaq 0x8e57(%rip), %rax      # 0x19170
movq (%rax), %rsi
leaq 0x30(%rsp), %rdi
callq 0x3070
movq %rbp, %rdi
callq 0x394d
movq 0x108(%rsp), %rdi
callq 0x394d
cmpb $0x0, 0x30(%rsp)
je 0x10380
movq %r13, %rdi
callq 0x394d
leaq 0x30(%rsp), %rcx
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3c96
movl %eax, 0xc(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x3a57
movl 0xc(%rsp), %eax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, 0x8(%r15)
jmp 0x10360