// File: /workspace/github_c_makefile_star2_O3/findstr[P]version-database/meta.c
// Function: ctrl_read
const uint8_t *
ctrl_read(const uint8_t *p, struct CTRL *ctrl)
{
	ctrl->act = uint8(p);	p += 1;
	switch (ctrl->act) {
	case CTRL_NEW:
		return ctrl_new_read(p, &ctrl->u.new);
	case CTRL_DFF:
		return ctrl_dff_read(p, &ctrl->u.dff);
	case CTRL_DFX:
		return ctrl_dfx_read(p, &ctrl->u.dfx);
	case CTRL_CPY:
		return ctrl_cpy_read(p, &ctrl->u.cpy);
	case CTRL_DEL:
		return ctrl_del_read(p, &ctrl->u.del);
	default:
		assert(0);
	}
	return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movzbl (%rdi), %eax
movb %al, (%rsi)
addl $-0x10, %eax
roll $0x1c, %eax
cmpl $0x4, %eax
ja 0x6f6c
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x3c26(%rip), %rcx      # 0xa818
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movzwl 0x1(%r14), %r12d
leaq 0x3(%r14), %r13
leaq 0xc(%r12), %rdi
callq 0x2200
movq %rax, %r15
movl $0x1, %eax
movl %eax, (%r15)
movl %r12d, 0x4(%r15)
leaq 0x8(%r15), %rdi
movq %rdi, -0x30(%rbp)
movq %r13, %rsi
movq %r12, %rdx
callq 0x21d0
xorl %eax, %eax
movb %al, 0x8(%r15,%r12)
leaq (%r14,%r12), %r13
addq $0x3, %r13
movq %r15, 0x8(%rbx)
addq %r12, %r14
addq $0x7, %r14
movslq -0x4(%r14), %r15
leaq 0xc(%r15), %rdi
callq 0x2200
movq %rax, %r12
movl $0x1, %eax
movl %eax, (%r12)
movl %r15d, 0x4(%r12)
leaq 0x8(%r12), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21d0
xorl %eax, %eax
movb %al, 0x8(%r12,%r15)
movq %r12, 0x10(%rbx)
cvtsi2ssl 0x4(%r12), %xmm0
leaq (%r15,%r13), %r14
addq $0x4, %r14
mulss 0x3b7a(%rip), %xmm0     # 0xa814
cvtss2sd %xmm0, %xmm0
leaq 0x3b9b(%rip), %rdi      # 0xa840
movq -0x30(%rbp), %rsi
movb $0x1, %al
callq 0x2110
jmp 0x6f5a
movzwl 0x1(%r14), %r15d
leaq 0x3(%r14), %rax
movq %rax, -0x30(%rbp)
leaq 0xc(%r15), %rdi
callq 0x2200
movq %rax, %r13
movl $0x1, (%rax)
movl %r15d, 0x4(%rax)
leaq 0x8(%rax), %r12
movq %r12, %rdi
movq -0x30(%rbp), %rsi
movq %r15, %rdx
callq 0x21d0
movb $0x0, 0x8(%r13,%r15)
addq %r15, %r14
addq $0x3, %r14
movq %r13, 0x8(%rbx)
leaq 0x3b88(%rip), %rdi      # 0xa88b
movq %r12, %rsi
xorl %eax, %eax
callq 0x2110
jmp 0x6f5a
movzwl 0x1(%r14), %r12d
leaq 0x3(%r14), %r13
leaq 0xc(%r12), %rdi
callq 0x2200
movq %rax, %r15
movl $0x1, %eax
movl %eax, (%r15)
movl %r12d, 0x4(%r15)
leaq 0x8(%r15), %rdi
movq %rdi, -0x30(%rbp)
movq %r13, %rsi
movq %r12, %rdx
callq 0x21d0
xorl %eax, %eax
movb %al, 0x8(%r15,%r12)
leaq (%r14,%r12), %rax
addq $0x3, %rax
movq %rax, -0x40(%rbp)
movq %r15, 0x8(%rbx)
addq %r12, %r14
addq $0x5, %r14
movzwl -0x2(%r14), %r15d
leaq 0xc(%r15), %rdi
callq 0x2200
movq %rax, %r13
movl $0x1, %eax
movl %eax, (%r13)
movl %r15d, 0x4(%r13)
leaq 0x8(%r13), %r12
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21d0
xorl %eax, %eax
movb %al, 0x8(%r13,%r15)
movq -0x40(%rbp), %rax
leaq (%r15,%rax), %rcx
addq $0x2, %rcx
movq %rcx, -0x38(%rbp)
movq %r13, 0x10(%rbx)
leaq (%r15,%rax), %r14
addq $0x6, %r14
movslq -0x4(%r14), %r15
leaq 0xc(%r15), %rdi
callq 0x2200
movq %rax, %r13
movl $0x1, %eax
movl %eax, (%r13)
movl %r15d, 0x4(%r13)
leaq 0x8(%r13), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21d0
xorl %eax, %eax
movb %al, 0x8(%r13,%r15)
movq -0x38(%rbp), %rax
leaq (%r15,%rax), %r14
addq $0x4, %r14
movq %r13, 0x18(%rbx)
movl 0x4(%r13), %ecx
leaq 0x3a68(%rip), %rdi      # 0xa86e
movq %r12, %rsi
movq -0x30(%rbp), %rdx
xorl %eax, %eax
callq 0x2110
jmp 0x6f5a
movzwl 0x1(%r14), %r15d
leaq 0x3(%r14), %r12
leaq 0xc(%r15), %rdi
callq 0x2200
movq %rax, %r13
movl $0x1, %eax
movl %eax, (%r13)
movl %r15d, 0x4(%r13)
leaq 0x8(%r13), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x21d0
xorl %eax, %eax
movb %al, 0x8(%r13,%r15)
leaq (%r14,%r15), %rax
addq $0x3, %rax
movq %rax, -0x30(%rbp)
movq %r13, 0x8(%rbx)
addq %r15, %r14
addq $0x5, %r14
movzwl -0x2(%r14), %r15d
leaq 0xc(%r15), %rdi
callq 0x2200
movq %rax, %r12
movl $0x1, %eax
movl %eax, (%r12)
movl %r15d, 0x4(%r12)
leaq 0x8(%r12), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21d0
xorl %eax, %eax
movb %al, 0x8(%r12,%r15)
movq -0x30(%rbp), %rax
leaq (%r15,%rax), %r14
addq $0x2, %r14
movq %r12, 0x10(%rbx)
jmp 0x6f5a
movzwl 0x1(%r14), %r12d
leaq 0x3(%r14), %r13
leaq 0xc(%r12), %rdi
callq 0x2200
movq %rax, %r15
movl $0x1, %eax
movl %eax, (%r15)
movl %r12d, 0x4(%r15)
leaq 0x8(%r15), %rdi
movq %rdi, -0x30(%rbp)
movq %r13, %rsi
movq %r12, %rdx
callq 0x21d0
xorl %eax, %eax
movb %al, 0x8(%r15,%r12)
leaq (%r14,%r12), %r13
addq $0x3, %r13
movq %r15, 0x8(%rbx)
addq %r12, %r14
addq $0x7, %r14
movslq -0x4(%r14), %r15
leaq 0xc(%r15), %rdi
callq 0x2200
movq %rax, %r12
movl $0x1, %eax
movl %eax, (%r12)
movl %r15d, 0x4(%r12)
leaq 0x8(%r12), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21d0
xorl %eax, %eax
movb %al, 0x8(%r12,%r15)
leaq (%r15,%r13), %r14
addq $0x4, %r14
movq %r12, 0x10(%rbx)
movl 0x4(%r12), %edx
leaq 0x3908(%rip), %rdi      # 0xa857
movq -0x30(%rbp), %rsi
xorl %eax, %eax
callq 0x2110
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3a21(%rip), %rdi      # 0xa994
leaq 0x3929(%rip), %rsi      # 0xa8a3
leaq 0x3929(%rip), %rcx      # 0xa8aa
movl $0xd9, %edx
callq 0x2130