// File: /workspace/github_c_makefile_star2_O2/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 0x63c9(%rip), %r12      # 0xc248
movl (%r12), %r13d
callq 0x7549
movq (%r14), %rax
movq %rax, 0x48(%rsp)
testl %ebp, %ebp
jne 0x5ea8
leaq 0x48(%rsp), %rsi
xorl %edi, %edi
callq 0x7455
testb %al, %al
je 0x5ff2
leaq 0x6419(%rip), %rax      # 0xc2c8
movslq (%rax), %r12
leal 0x1(%r12), %ecx
movl %ecx, (%rax)
cmpq $0x1f, %r12
jge 0x5ffa
leaq 0x6406(%rip), %rbp      # 0xc2d0
cmpq $0x0, 0x8(%rbp,%r12,8)
je 0x5ed6
xorl %ebp, %ebp
jmp 0x5f03
pushq $0x48
popq %rdi
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 0x6f30
pushq $0x9
popq %rcx
movq %r15, %rdi
movq %r12, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x633e(%rip), %r12      # 0xc248
movq (%r14), %rax
leaq 0x48(%rsp), %r15
movq %rax, (%r15)
xorl %edi, %edi
movq %r15, %rsi
callq 0x7455
testb %al, %al
je 0x5f43
movq %r14, %rdi
callq 0x290f
movq %r14, %rdi
callq 0x7549
movq (%r14), %rax
movq %rax, 0x48(%rsp)
incl 0x648f(%rip)            # 0xc3d0
jmp 0x5f15
testb %bpl, %bpl
jne 0x5f75
movl %r13d, %edx
subl (%r12), %edx
leaq 0x286e(%rip), %rsi      # 0x87c4
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1100
jmp 0x5f75
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6021
movq %r14, %rdi
callq 0x7549
movq (%r14), %rax
cmpb $0x7d, (%rax)
jne 0x5f62
testb %bpl, %bpl
jne 0x5fe0
movl (%r12), %edx
subl %r13d, %edx
leaq 0x2834(%rip), %rsi      # 0x87c4
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1100
leaq 0x6327(%rip), %rbx      # 0xc2c8
movslq (%rbx), %rax
leaq 0x6325(%rip), %r14      # 0xc2d0
movq (%r14,%rax,8), %rsi
pushq $0x9
popq %rcx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
leaq 0xaff(%rip), %rdi       # 0x6abe
callq 0x6f4a
movslq (%rbx), %rax
movq (%r14,%rax,8), %rdi
callq 0x1030
movslq (%rbx), %rax
andq $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 0x5f0a
movups 0x2d36(%rip), %xmm0     # 0x8d37
movaps %xmm0, 0x64d8(%rip)     # 0xc4e0
movabsq $0x656772616c206f, %rax # imm = 0x656772616C206F
movq %rax, 0x64d5(%rip)      # 0xc4ee
pushq $0x1
popq %rdi
callq 0x56c5