// File: /workspace/github_cpp_makefile_star2_O3/pixlark[P]Badge/src/compiler.cc
// Function: Compiler::compile_stmt(Stmt*)
void compile_stmt(Stmt * stmt)
	{
		switch (stmt->kind) {
		case STMT_LET:
			compile_expr(stmt->let.right);
			push(BC::create(BC_LOAD_CONST,
							Value::raise(stmt->let.left),
							stmt->assoc));
			push(BC::create(BC_CREATE_BINDING,
							stmt->assoc));
			break;
		case STMT_SET: {
			compile_expr(stmt->set.right);
			// Deal with l-expr
			auto left = stmt->set.left;
			switch (left->kind) {
			case EXPR_VARIABLE:
				// Simple variable binding
				push(BC::create(BC_LOAD_CONST,
								Value::raise(left->variable),
								stmt->assoc));
				push(BC::create(BC_UPDATE_BINDING,
								stmt->assoc));
				break;
			case EXPR_FIELD:
				// Field of an object
				compile_expr(left->field.left);
				push(BC::create(BC_LOAD_CONST,
								Value::raise(left->field.right),
								stmt->assoc));
				push(BC::create(BC_UPDATE_FIELD,
								stmt->assoc));
				break;
			default:
				fatal_assoc(left->assoc, "Invalid l-expression");
			}
		} break;
		case STMT_RETURN:
			compile_expr(stmt->_return.expr);
			push(BC::create(BC_RETURN, stmt->assoc));
			break;
		case STMT_EXPR:
			compile_expr(stmt->expr);
			push(BC::create(BC_POP_AND_DISCARD, stmt->assoc));
			break;
		case STMT_BREAK:
			compile_expr(stmt->expr);
			push(BC::create(BC_BREAK_BODY, stmt->assoc));
			break;
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl (%rsi), %eax
cmpq $0x4, %rax
ja 0x5d37
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x59ae(%rip), %rcx      # 0xb170
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%r14), %rsi
movq %rbx, %rdi
callq 0x6e74
movq 0x8(%r14), %r15
movl 0x4(%r14), %r12d
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rax
leaq 0x1(%rcx), %rdx
cmpq %rdx, %rax
jae 0x5aaa
testq %rax, %rax
js 0x5a62
cvtsi2ss %rax, %xmm0
jmp 0x5a77
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x6e74
movl 0x4(%r14), %r14d
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rax
leaq 0x1(%rcx), %rdx
cmpq %rdx, %rax
jae 0x5984
testq %rax, %rax
js 0x593c
cvtsi2ss %rax, %xmm0
jmp 0x5951
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x6e74
movl 0x4(%r14), %r14d
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rax
leaq 0x1(%rcx), %rdx
cmpq %rdx, %rax
jae 0x59e6
testq %rax, %rax
js 0x599e
cvtsi2ss %rax, %xmm0
jmp 0x59b3
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x6e74
movl 0x4(%r14), %r14d
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rax
leaq 0x1(%rcx), %rdx
cmpq %rdx, %rax
jae 0x5a48
testq %rax, %rax
js 0x5a00
cvtsi2ss %rax, %xmm0
jmp 0x5a15
movq 0x10(%r14), %rsi
movq %rbx, %rdi
callq 0x6e74
movq 0x8(%r14), %r15
movl (%r15), %eax
cmpl $0xc, %eax
je 0x5900
cmpl $0x3, %eax
jne 0x5d40
movq 0x8(%r15), %r15
movl 0x4(%r14), %r12d
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rax
leaq 0x1(%rcx), %rdx
cmpq %rdx, %rax
jae 0x5c8e
testq %rax, %rax
js 0x5c46
cvtsi2ss %rax, %xmm0
jmp 0x5c5b
movq 0x8(%r15), %rsi
movq %rbx, %rdi
callq 0x6e74
movq 0x10(%r15), %r15
movl 0x4(%r14), %r12d
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rax
leaq 0x1(%rcx), %rdx
cmpq %rdx, %rax
jae 0x5b9c
testq %rax, %rax
js 0x5b54
cvtsi2ss %rax, %xmm0
jmp 0x5b69
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
addss %xmm0, %xmm0
cvttss2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subss 0x569b(%rip), %xmm0     # 0xb004
cvttss2si %xmm0, %rsi
andq %rcx, %rsi
orq %rax, %rsi
movq %rbx, %rdi
callq 0x937e
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq (%rbx), %rax
movq %rdx, 0x8(%rbx)
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rax
movl $0x22, (%rax)
jmp 0x5d33
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
addss %xmm0, %xmm0
cvttss2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subss 0x5639(%rip), %xmm0     # 0xb004
cvttss2si %xmm0, %rsi
andq %rcx, %rsi
orq %rax, %rsi
movq %rbx, %rdi
callq 0x937e
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq (%rbx), %rax
movq %rdx, 0x8(%rbx)
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rax
movl $0x14, (%rax)
jmp 0x5d33
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
addss %xmm0, %xmm0
cvttss2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subss 0x55d7(%rip), %xmm0     # 0xb004
cvttss2si %xmm0, %rsi
andq %rcx, %rsi
orq %rax, %rsi
movq %rbx, %rdi
callq 0x937e
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq (%rbx), %rax
movq %rdx, 0x8(%rbx)
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rax
movl $0x1, (%rax)
jmp 0x5d33
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
addss %xmm0, %xmm0
cvttss2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subss 0x5575(%rip), %xmm0     # 0xb004
cvttss2si %xmm0, %rsi
andq %rcx, %rsi
orq %rax, %rsi
movq %rbx, %rdi
callq 0x937e
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq (%rbx), %rax
movq %rdx, 0x8(%rbx)
leaq (%rcx,%rcx,2), %rcx
movl $0x2, %edx
movl %edx, (%rax,%rcx,8)
movl %r12d, 0x4(%rax,%rcx,8)
movl %edx, 0x8(%rax,%rcx,8)
movq %r15, 0x10(%rax,%rcx,8)
movl 0x4(%r14), %r14d
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rax
leaq 0x1(%rcx), %rdx
cmpq %rdx, %rax
jae 0x5b3a
testq %rax, %rax
js 0x5aef
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
jmp 0x5b07
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
addss %xmm0, %xmm0
cvttss2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subss 0x54e5(%rip), %xmm0     # 0xb004
cvttss2si %xmm0, %rsi
andq %rcx, %rsi
orq %rax, %rsi
movq %rbx, %rdi
callq 0x937e
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq (%rbx), %rax
movq %rdx, 0x8(%rbx)
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rax
movl $0x4, (%rax)
jmp 0x5d33
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
addss %xmm0, %xmm0
cvttss2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subss 0x5483(%rip), %xmm0     # 0xb004
cvttss2si %xmm0, %rsi
andq %rcx, %rsi
orq %rax, %rsi
movq %rbx, %rdi
callq 0x937e
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq (%rbx), %rax
movq %rdx, 0x8(%rbx)
leaq (%rcx,%rcx,2), %rcx
movl $0x2, %edx
movl %edx, (%rax,%rcx,8)
movl %r12d, 0x4(%rax,%rcx,8)
movl %edx, 0x8(%rax,%rcx,8)
movq %r15, 0x10(%rax,%rcx,8)
movl 0x4(%r14), %r14d
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rax
leaq 0x1(%rcx), %rdx
cmpq %rdx, %rax
jae 0x5c2c
testq %rax, %rax
js 0x5be1
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
jmp 0x5bf9
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
addss %xmm0, %xmm0
cvttss2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subss 0x53f3(%rip), %xmm0     # 0xb004
cvttss2si %xmm0, %rsi
andq %rcx, %rsi
orq %rax, %rsi
movq %rbx, %rdi
callq 0x937e
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq (%rbx), %rax
movq %rdx, 0x8(%rbx)
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rax
movl $0x20, (%rax)
jmp 0x5d33
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
addss %xmm0, %xmm0
cvttss2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subss 0x5391(%rip), %xmm0     # 0xb004
cvttss2si %xmm0, %rsi
andq %rcx, %rsi
orq %rax, %rsi
movq %rbx, %rdi
callq 0x937e
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq (%rbx), %rax
movq %rdx, 0x8(%rbx)
leaq (%rcx,%rcx,2), %rcx
movl $0x2, %edx
movl %edx, (%rax,%rcx,8)
movl %r12d, 0x4(%rax,%rcx,8)
movl %edx, 0x8(%rax,%rcx,8)
movq %r15, 0x10(%rax,%rcx,8)
movl 0x4(%r14), %r14d
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rax
leaq 0x1(%rcx), %rdx
cmpq %rdx, %rax
jae 0x5d1e
testq %rax, %rax
js 0x5cd3
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
jmp 0x5ceb
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
addss %xmm0, %xmm0
cvttss2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subss 0x5301(%rip), %xmm0     # 0xb004
cvttss2si %xmm0, %rsi
andq %rcx, %rsi
orq %rax, %rsi
movq %rbx, %rdi
callq 0x937e
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq (%rbx), %rax
movq %rdx, 0x8(%rbx)
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rax
movl $0x5, (%rax)
movl %r14d, 0x4(%rax)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl 0x4(%r15), %edi
leaq 0x5add(%rip), %rsi      # 0xb828
xorl %eax, %eax
callq 0x1c52