// File: /workspace/github_c_makefile_star2_O3/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, %r14
movq %rdi, %r15
movl $0x5, 0x18(%rdi)
movl $0x10, %edi
callq 0x3180
movq %rax, 0x20(%r15)
movq %rax, 0x8(%rax)
movq %rax, (%rax)
movl $0x38, %edi
callq 0x3180
movq %rax, %rbx
movq $0x0, 0x18(%rax)
movl $0x0, 0x28(%rax)
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
cmpq %rcx, %rax
je 0x4274
leaq 0x4031(%rip), %r12      # 0x80f4
movabsq $0x8c00000000, %r8      # imm = 0x8C00000000
leaq 0x10(%rbx), %r13
movzbl (%rax), %edx
cmpl $0x9, %edx
je 0x40ef
cmpl $0x20, %edx
je 0x40ef
cmpl $0xa, %edx
jne 0x4100
incl 0x18(%r14)
movl $0x1, 0x1c(%r14)
incq %rax
movq %rax, 0x8(%r14)
cmpq %rcx, %rax
jne 0x40d1
jmp 0x4274
movq %rax, 0x10(%rbx)
movl 0x18(%r14), %edx
movl %edx, 0x20(%rbx)
movl 0x1c(%r14), %esi
movl %esi, 0x24(%rbx)
movzbl (%rax), %edi
cmpq $0x27, %rdi
ja 0x412a
btq %rdi, %r8
jae 0x412a
incq %rax
movq %rax, 0x8(%r14)
jmp 0x412c
xorl %edi, %edi
cmpq %rcx, %rax
jae 0x4293
subq %rax, %rcx
incq %rax
movsbl -0x1(%rax), %r8d
testl %edi, %edi
je 0x4164
cmpl %r8d, %edi
je 0x418b
cmpb $0xa, %r8b
jne 0x417a
incl %edx
movl %edx, 0x18(%r14)
movl $0x1, 0x1c(%r14)
movl $0x1, %esi
jmp 0x417a
cmpb $0x9, %r8b
je 0x419e
movzbl %r8b, %r8d
cmpl $0xa, %r8d
je 0x4191
cmpl $0x20, %r8d
je 0x419e
movq %rax, 0x8(%r14)
incq %rax
decq %rcx
jne 0x413b
jmp 0x4293
cmpb $0xa, %r8b
jne 0x419e
incl %edx
movl %edx, 0x18(%r14)
movl $0x1, %esi
jmp 0x41a0
incl %esi
movl %esi, 0x1c(%r14)
movb $0x0, -0x1(%rax)
incq 0x8(%r14)
cmpb $0x1, 0x20(%r14)
jne 0x41c7
movq 0x10(%rbx), %rsi
movl 0x20(%rbx), %edx
movl 0x24(%rbx), %ecx
movq %r12, %rdi
xorl %eax, %eax
callq 0x30b0
movq %r13, %rdi
callq 0x3d84
testl %eax, %eax
jle 0x428f
movq 0x18(%rbx), %rax
movq 0x10(%rax), %rax
cmpq $0x70000004, %rax       # imm = 0x70000004
jle 0x41f9
cmpq $0x7fffffff, %rax       # imm = 0x7FFFFFFF
je 0x4212
cmpq $0x70000005, %rax       # imm = 0x70000005
je 0x4201
jmp 0x4224
cmpq $0x70000001, %rax       # imm = 0x70000001
jne 0x421c
movq %r13, %rdi
movq %r14, %rsi
callq 0x4062
testl %eax, %eax
jg 0x4224
jmp 0x428f
movq %rbx, %rdi
callq 0x3030
jmp 0x4239
cmpq $0x70000002, %rax       # imm = 0x70000002
je 0x429f
movq 0x20(%r15), %rax
movq (%rax), %rcx
movq %rbx, (%rax)
movq %rax, 0x8(%rbx)
movq %rcx, (%rbx)
movq %rbx, 0x8(%rcx)
movl $0x38, %edi
callq 0x3180
movq %rax, %rbx
movq $0x0, 0x18(%rax)
movl $0x0, 0x28(%rax)
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
xorl %ebp, %ebp
cmpq %rcx, %rax
movabsq $0x8c00000000, %r8      # imm = 0x8C00000000
jne 0x40cd
jmp 0x4276
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0x3030
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %ebp
jmp 0x4276
callq 0x333b
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x4276
movq %rbx, %rdi
callq 0x3030
movl $0x1, %ebp
jmp 0x427e