// File: /workspace/github_c_makefile_star2_O3/been-jamming[P]MinimalCC/compile.c
// Function: compile_block
void compile_block(char **c, unsigned char function_beginning, FILE *output_file){
	char *temp;
	unsigned char new_scope = 0;
	int variables_size_before;

	variables_size_before = variables_size;
	skip_whitespace(c);
	temp = *c;
	if(function_beginning || parse_datatype(NULL, &temp)){
		new_scope = 1;
		current_scope++;
		if(current_scope >= MAX_SCOPE){
			snprintf(error_message, sizeof(error_message), "Scope depth too large");
			do_error(1);
		}
		if(!local_variables[current_scope]){
			local_variables[current_scope] = malloc(sizeof(dictionary));
			*local_variables[current_scope] = create_dictionary(NULL);
		}
	}
	temp = *c;
	while(parse_datatype(NULL, &temp)){
		compile_variable_initializer(c);
		skip_whitespace(c);
		temp = *c;
		num_vars++;
	}

	if(new_scope){
		fprintf(output_file, "addi $sp, $sp, %d\n", -variables_size + variables_size_before);
	}

	while(**c != '}'){
		compile_statement(c, output_file);
		skip_whitespace(c);
	}

	if(new_scope){
		fprintf(output_file, "addi $sp, $sp, %d\n", variables_size - variables_size_before);
		free_dictionary(*local_variables[current_scope], free_var);
		free(local_variables[current_scope]);
		local_variables[current_scope] = NULL;
		current_scope--;
		variables_size = variables_size_before;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
leaq 0x6f1e(%rip), %r12      # 0xd248
movl (%r12), %r13d
callq 0x79e2
movq (%r14), %rax
movq %rax, 0x48(%rsp)
testl %ebp, %ebp
jne 0x6353
leaq 0x48(%rsp), %rsi
xorl %edi, %edi
callq 0x7896
testb %al, %al
je 0x64b4
leaq 0x6f6e(%rip), %rax      # 0xd2c8
movslq (%rax), %r12
leal 0x1(%r12), %ecx
movl %ecx, (%rax)
cmpq $0x1f, %r12
jge 0x64bc
leaq 0x6f5b(%rip), %rbp      # 0xd2d0
cmpq $0x0, 0x8(%rbp,%r12,8)
je 0x6381
xorl %ebp, %ebp
jmp 0x63b2
movl $0x48, %edi
callq 0x1140
movq %rax, %r15
movq %rax, 0x8(%rbp,%r12,8)
xorl %ebp, %ebp
leaq 0x50(%rsp), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x72c8
movl $0x9, %ecx
movq %r15, %rdi
movq %r12, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x6e8f(%rip), %r12      # 0xd248
movq (%r14), %rax
leaq 0x48(%rsp), %rsi
movq %rax, (%rsi)
xorl %edi, %edi
callq 0x7896
testb %al, %al
je 0x6400
leaq 0x48(%rsp), %r15
movq %r14, %rdi
callq 0x2b79
movq %r14, %rdi
callq 0x79e2
movq (%r14), %rax
movq %rax, 0x48(%rsp)
incl 0x6fde(%rip)            # 0xd3d0
xorl %edi, %edi
movq %r15, %rsi
callq 0x7896
testb %al, %al
jne 0x63d4
testb %bpl, %bpl
jne 0x6432
movl %r13d, %edx
subl (%r12), %edx
leaq 0x33d1(%rip), %rsi      # 0x97e4
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1100
jmp 0x6432
movq %r14, %rdi
movq %rbx, %rsi
callq 0x64e5
movq %r14, %rdi
callq 0x79e2
movq (%r14), %rax
cmpb $0x7d, (%rax)
jne 0x641f
testb %bpl, %bpl
jne 0x64a2
movl (%r12), %edx
subl %r13d, %edx
leaq 0x3397(%rip), %rsi      # 0x97e4
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1100
leaq 0x6e6a(%rip), %rbx      # 0xd2c8
movslq (%rbx), %rax
leaq 0x6e68(%rip), %r14      # 0xd2d0
movq (%r14,%rax,8), %rsi
movl $0x9, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
leaq 0xb22(%rip), %rdi       # 0x6fa0
callq 0x72e2
movslq (%rbx), %rax
movq (%r14,%rax,8), %rdi
callq 0x1030
movslq (%rbx), %rax
movq $0x0, (%r14,%rax,8)
decl %eax
movl %eax, (%rbx)
movl %r13d, (%r12)
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %bpl
jmp 0x63b9
movups 0x3894(%rip), %xmm0     # 0x9d57
movaps %xmm0, 0x7016(%rip)     # 0xd4e0
movabsq $0x656772616c206f, %rax # imm = 0x656772616C206F
movq %rax, 0x7013(%rip)      # 0xd4ee
movl $0x1, %edi
callq 0x5b10