// File: /workspace/github_c_makefile_star2_O1/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 0x6f56(%rip), %r12      # 0xd248
movl (%r12), %r13d
callq 0x799f
movq (%r14), %rax
movq %rax, 0x48(%rsp)
testl %ebp, %ebp
jne 0x631b
leaq 0x48(%rsp), %rsi
xorl %edi, %edi
callq 0x7853
testb %al, %al
je 0x647b
leaq 0x6fa6(%rip), %rax      # 0xd2c8
movl (%rax), %ecx
leal 0x1(%rcx), %edx
movl %edx, (%rax)
cmpl $0x1f, %ecx
jge 0x6483
movslq (%rax), %r12
leaq 0x6f94(%rip), %rbp      # 0xd2d0
cmpq $0x0, (%rbp,%r12,8)
je 0x6348
xorl %ebp, %ebp
jmp 0x6379
movl $0x48, %edi
callq 0x1140
movq %rax, %r15
movq %rax, (%rbp,%r12,8)
xorl %ebp, %ebp
leaq 0x50(%rsp), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x728c
movl $0x9, %ecx
movq %r15, %rdi
movq %r12, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x6ec8(%rip), %r12      # 0xd248
movq (%r14), %rax
leaq 0x48(%rsp), %rsi
movq %rax, (%rsi)
xorl %edi, %edi
callq 0x7853
testb %al, %al
je 0x63c7
leaq 0x48(%rsp), %r15
movq %r14, %rdi
callq 0x2b6d
movq %r14, %rdi
callq 0x799f
movq (%r14), %rax
movq %rax, 0x48(%rsp)
incl 0x7017(%rip)            # 0xd3d0
xorl %edi, %edi
movq %r15, %rsi
callq 0x7853
testb %al, %al
jne 0x639b
testb %bpl, %bpl
jne 0x63f9
movl %r13d, %edx
subl (%r12), %edx
leaq 0x340a(%rip), %rsi      # 0x97e4
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1100
jmp 0x63f9
movq %r14, %rdi
movq %rbx, %rsi
callq 0x64ac
movq %r14, %rdi
callq 0x799f
movq (%r14), %rax
cmpb $0x7d, (%rax)
jne 0x63e6
testb %bpl, %bpl
jne 0x6469
movl (%r12), %edx
subl %r13d, %edx
leaq 0x33d0(%rip), %rsi      # 0x97e4
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1100
leaq 0x6ea3(%rip), %rbx      # 0xd2c8
movslq (%rbx), %rax
leaq 0x6ea1(%rip), %r14      # 0xd2d0
movq (%r14,%rax,8), %rsi
movl $0x9, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
leaq 0xb0f(%rip), %rdi       # 0x6f54
callq 0x72a6
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 0x6380
movups 0x38cd(%rip), %xmm0     # 0x9d57
movaps %xmm0, 0x704f(%rip)     # 0xd4e0
movabsq $0x656772616c206f, %rax # imm = 0x656772616C206F
movq %rax, 0x704c(%rip)      # 0xd4ee
movl $0x1, %edi
callq 0x5ae0