// File: /workspace/github_cpp_makefile_star2_O1/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 0x5e61
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x5644(%rip), %rcx      # 0xb170
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%r14), %rsi
movq %rbx, %rdi
callq 0x6f3e
movq 0x8(%r14), %r15
movl 0x4(%r14), %r12d
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rax
incq %rcx
cmpq %rcx, %rax
jae 0x5cad
testq %rax, %rax
js 0x5c6d
cvtsi2ss %rax, %xmm0
jmp 0x5c82
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x6f3e
movl 0x4(%r14), %r14d
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rax
incq %rcx
movl $0x22, %r15d
jmp 0x5dee
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x6f3e
movl 0x4(%r14), %r14d
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rax
incq %rcx
movl $0x14, %r15d
jmp 0x5dee
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x6f3e
movl 0x4(%r14), %r14d
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rax
incq %rcx
movl $0x1, %r15d
jmp 0x5dee
movq 0x10(%r14), %rsi
movq %rbx, %rdi
callq 0x6f3e
movq 0x8(%r14), %r15
movl (%r15), %eax
cmpl $0xc, %eax
je 0x5c32
cmpl $0x3, %eax
jne 0x5e6a
movq 0x8(%r15), %r15
movl 0x4(%r14), %r12d
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rax
incq %rcx
cmpq %rcx, %rax
jae 0x5db0
testq %rax, %rax
js 0x5d70
cvtsi2ss %rax, %xmm0
jmp 0x5d85
movq 0x8(%r15), %rsi
movq %rbx, %rdi
callq 0x6f3e
movq 0x10(%r15), %r15
movl 0x4(%r14), %r12d
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rax
incq %rcx
cmpq %rcx, %rax
jae 0x5d30
testq %rax, %rax
js 0x5cf0
cvtsi2ss %rax, %xmm0
jmp 0x5d05
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 0x536a(%rip), %xmm0     # 0xb004
cvttss2si %xmm0, %rsi
andq %rcx, %rsi
orq %rax, %rsi
movq %rbx, %rdi
callq 0x8e48
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
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
incq %rcx
movl $0x4, %r15d
jmp 0x5dee
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 0x52e7(%rip), %xmm0     # 0xb004
cvttss2si %xmm0, %rsi
andq %rcx, %rsi
orq %rax, %rsi
movq %rbx, %rdi
callq 0x8e48
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
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
incq %rcx
movl $0x20, %r15d
jmp 0x5dee
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 0x5267(%rip), %xmm0     # 0xb004
cvttss2si %xmm0, %rsi
andq %rcx, %rsi
orq %rax, %rsi
movq %rbx, %rdi
callq 0x8e48
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
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
incq %rcx
movl $0x5, %r15d
cmpq %rcx, %rax
jae 0x5e45
testq %rax, %rax
js 0x5e02
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
jmp 0x5e1a
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 0x51d2(%rip), %xmm0     # 0xb004
cvttss2si %xmm0, %rsi
andq %rcx, %rsi
orq %rax, %rsi
movq %rbx, %rdi
callq 0x8e48
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
leaq (%rcx,%rcx,2), %rcx
movl %r15d, (%rax,%rcx,8)
movl %r14d, 0x4(%rax,%rcx,8)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl 0x4(%r15), %edi
leaq 0x5a1b(%rip), %rsi      # 0xb890
xorl %eax, %eax
callq 0x1c80