// File: /workspace/github_c_makefile_star2_O1/xemul[P]cylang/tokenizer.c
// Function: read_cblocks
static int read_cblocks(struct cy_token *t, struct cy_file *f)
{
	int ret;

	t->v.t = CY_V_CBLOCK;
	t->v.v_cblk = malloc(sizeof(struct cy_cblock));
	INIT_LIST_HEAD(&t->v.v_cblk->h);

	while (1) {
		struct cy_ctoken *cb;

		cb = malloc(sizeof(*cb));

		ret = cy_read_next_token(f, &cb->t);
		if (ret <= 0) {
			free(cb);
			return ret;
		}

		if (cb->t.typ->priv == OP_CBLOCK || cb->t.typ->priv == OP_CBLOCK_SHORT) {
			ret = read_cblocks(&cb->t, f);
			if (ret <= 0) {
				free(cb);
				return ret;
			}
		} else if (cb->t.typ->priv == OP_CBLOCK_END) {
			free(cb);
			return 1;
		} else if (cb->t.typ->priv == OP_COMMENT) {
			free(cb);
			continue;
		}

		list_add_tail(&cb->l, &t->v.v_cblk->h);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0x5, 0x18(%rdi)
movl $0x10, %edi
callq 0x3180
movq %r14, (%rsp)
movq %rax, 0x20(%r14)
movq %rax, 0x8(%rax)
movq %rax, (%rax)
movl $0x38, %edi
callq 0x3180
movq %rax, %r13
movq %rax, %r12
movq $0x0, 0x18(%rax)
movl $0x0, 0x28(%rax)
movq 0x8(%rbx), %rdx
movq 0x10(%rbx), %rax
cmpq %rax, %rdx
je 0x411c
movzbl (%rdx), %ecx
cmpl $0x9, %ecx
je 0x4113
cmpl $0xa, %ecx
je 0x4109
cmpl $0x20, %ecx
je 0x4113
jmp 0x41be
incl 0x18(%rbx)
movl $0x1, 0x1c(%rbx)
incq %rdx
movq %rdx, 0x8(%rbx)
jmp 0x40ed
xorl %r14d, %r14d
xorl %ebp, %ebp
addq $0x10, %r13
testb %r14b, %r14b
je 0x4134
movq %r13, %rdi
callq 0x3dcc
movl %eax, %ebp
testl %ebp, %ebp
jle 0x4266
movq 0x18(%r12), %rax
movq 0x10(%rax), %rax
cmpq $0x70000004, %rax       # imm = 0x70000004
jg 0x4175
cmpq $0x70000001, %rax       # imm = 0x70000001
je 0x4189
cmpq $0x70000002, %rax       # imm = 0x70000002
jne 0x419c
movq %r12, %rdi
callq 0x3030
movl $0x1, %r15d
movl $0x1, %eax
jmp 0x4276
cmpq $0x7fffffff, %rax       # imm = 0x7FFFFFFF
je 0x4255
cmpq $0x70000005, %rax       # imm = 0x70000005
jne 0x419c
movq %r13, %rdi
movq %rbx, %rsi
callq 0x4095
testl %eax, %eax
jle 0x4264
movq (%rsp), %rax
movq 0x20(%rax), %rax
movq (%rax), %rcx
movq %r12, (%rax)
movq %rax, 0x8(%r12)
movq %rcx, (%r12)
movq %r12, 0x8(%rcx)
xorl %eax, %eax
jmp 0x4276
movq %rdx, 0x10(%r12)
movl 0x18(%rbx), %ecx
movl %ecx, 0x20(%r12)
movl 0x1c(%rbx), %ecx
movl %ecx, 0x24(%r12)
movzbl (%rdx), %esi
xorl %ecx, %ecx
cmpq $0x27, %rsi
ja 0x41f9
movabsq $0x8c00000000, %rdi     # imm = 0x8C00000000
btq %rsi, %rdi
jae 0x41f9
movsbl %sil, %ecx
incq %rdx
movq %rdx, 0x8(%rbx)
movq 0x8(%rbx), %rdx
cmpq %rax, %rdx
jae 0x42c3
movsbl (%rdx), %esi
testl %ecx, %ecx
je 0x4223
cmpl %esi, %ecx
je 0x4246
cmpb $0xa, %sil
jne 0x423d
incl 0x18(%rbx)
movl $0x1, 0x1c(%rbx)
jmp 0x423d
cmpb $0x20, %sil
ja 0x423d
movzbl %sil, %esi
movabsq $0x100000600, %rdi      # imm = 0x100000600
btq %rsi, %rdi
jb 0x4246
incq %rdx
movq %rdx, 0x8(%rbx)
jmp 0x41fd
cmpb $0xa, (%rdx)
jne 0x4280
incl 0x18(%rbx)
movl $0x1, %eax
jmp 0x4285
movq %r12, %rdi
callq 0x3030
movl $0x2, %eax
jmp 0x4276
movl %eax, %ebp
movq %r12, %rdi
callq 0x3030
movl $0x1, %eax
movl %ebp, %r15d
testb $0x1, %al
je 0x40c6
jmp 0x42d5
movl 0x1c(%rbx), %eax
incl %eax
movl %eax, 0x1c(%rbx)
movb $0x0, (%rdx)
incq 0x8(%rbx)
movl $0x1, %ebp
movb $0x1, %r14b
cmpb $0x1, 0x20(%rbx)
jne 0x4121
movq 0x10(%r12), %rsi
movl 0x20(%r12), %edx
movl 0x24(%r12), %ecx
leaq 0x4e46(%rip), %rdi      # 0x90fd
xorl %eax, %eax
callq 0x30b0
jmp 0x4121
callq 0x336e
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
xorl %r14d, %r14d
jmp 0x4121
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq