LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/ngkaho1234[P]ext4-extents-tree/db_bitmap.c
// Function: bitmap_bits_free
void bitmap_bits_free(struct db_bitmap *db_bitmap, ext4_fsblk_t bit, uint32_t bcnt)
{
    ext4_fsblk_t i = bit;
    uint8_t *bitmap = db_bitmap->bitmap;

    while(i & 7){

        if(!bcnt)
            return;

        __bitmap_bits_clr(db_bitmap, bitmap, i);

        bcnt--;
        i++;
    }
    bit  = i;
    bitmap += (bit >> 3);

    while(bcnt >= 32){
        *(uint32_t *)bitmap = 0;
        bitmap += 4;
        bcnt -= 32;
        bit += 32;
    }

    while(bcnt >= 16){
        *(uint16_t *)bitmap = 0;
        bitmap += 2;
        bcnt -= 16;
        bit += 16;
    }

    while(bcnt >= 8){
        *bitmap = 0;
        bitmap += 1;
        bcnt -= 8;
        bit += 8;
    }

    for (i = 0; i < bcnt; ++i) {
        __bitmap_bits_clr(db_bitmap, bitmap, i);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
movq 0x8(%rdi), %r14
movl %edx, %r12d
testb $0x7, %r15b
je 0x3d9c
testl %r12d, %r12d
je 0x3df8
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x3e01
incq %r15
decq %r12
jmp 0x3d7b
shrq $0x3, %r15
addq %r15, %r14
cmpl $0x1f, %r12d
jbe 0x3dc4
andl $0x0, (%r14)
addq $0x4, %r14
addq $-0x20, %r12
jmp 0x3da3
andw $0x0, (%r14)
addq $0x2, %r14
addq $-0x10, %r12
cmpl $0xf, %r12d
ja 0x3db7
jmp 0x3dd7
movb $0x0, (%r14)
incq %r14
addq $-0x8, %r12
cmpl $0x7, %r12d
ja 0x3dcc
xorl %r15d, %r15d
cmpq %r12, %r15
jae 0x3df8
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x3e01
incq %r15
jmp 0x3de0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ngkaho1234[P]ext4-extents-tree/db_bitmap.c
// Function: _bitmap_bits_clr
static inline void __bitmap_bits_clr(struct db_bitmap *db_bitmap, uint8_t *bitmap, ext4_fsblk_t bit)
{
	int bitmap_block = ((bitmap - db_bitmap->bitmap) >>
		db_bitmap->sb->s_blocksize_bits) +
		(bit >> (db_bitmap->sb->s_blocksize_bits << 3));
	*(bitmap + (bit >> 3)) &= ~(1 << (bit & 7));
	db_bitmap->bitmap_desc[bitmap_block].dirty = 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rsi, %rax
subq 0x8(%rdi), %rax
movq (%rdi), %rcx
movl 0x8(%rcx), %ecx
sarq %cl, %rax
shll $0x3, %ecx
movq %rdx, %r8
shrq %cl, %r8
addl %eax, %r8d
movb $-0x2, %al
movl %edx, %ecx
rolb %cl, %al
shrq $0x3, %rdx
andb %al, (%rsi,%rdx)
movq 0x10(%rdi), %rax
movslq %r8d, %rcx
orb $0x1, (%rax,%rcx,4)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ngkaho1234[P]ext4-extents-tree/db_bitmap.c
// Function: bitmap_find_bits_clr
int bitmap_find_bits_clr(struct db_bitmap *db_bitmap, ext4_fsblk_t bit, ext4_fsblk_t ebit,
    ext4_fsblk_t *bit_id)
{
    ext4_fsblk_t i;
    uint64_t bcnt = ebit - bit + 1;
    uint8_t *bitmap = db_bitmap->bitmap;

    i = bit;

    while(i & 7){

        if(!bcnt)
            return -ENOSPC;

        if(bitmap_is_bit_clr(bitmap, i)){
            *bit_id = bit;
            return 0;
        }

        i++;
        bcnt--;
    }

    bit  = i;
    bitmap += (bit >> 3);


    while(bcnt >= 32){
        if(*(uint32_t *)bitmap != 0xFFFFFFFF)
            goto finish_it;

        bitmap += 4;
        bcnt -= 32;
        bit += 32;
    }

    while(bcnt >= 16){
        if(*(uint16_t *)bitmap != 0xFFFF)
            goto finish_it;

        bitmap += 2;
        bcnt -= 16;
        bit += 16;
    }

    finish_it:
    while(bcnt >= 8){
        if(*bitmap != 0xFF){
            for (i = 0; i < 8; ++i) {
                if(bitmap_is_bit_clr(bitmap, i)){
                    *bit_id = bit + i;
                    return 0;
                }
            }
        }

        bitmap += 1;
        bcnt -= 8;
        bit += 8;
    }

    for (i = 0; i < bcnt; ++i) {
        if(bitmap_is_bit_clr(bitmap, i)){
            *bit_id = bit + i;
            return 0;
        }
    }

    return -ENOSPC;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
movq 0x8(%rdi), %r8
movl %esi, %edi
negl %edi
andl $0x7, %edi
addq %rsi, %rdi
leaq 0x1(%rdx), %r10
movl $0xffffffe4, %eax       # imm = 0xFFFFFFE4
movq %rsi, %r9
testb $0x7, %r9b
je 0x3e8a
cmpq %r9, %r10
je 0x3f1e
movq %r9, %r11
shrq $0x3, %r11
movzbl (%r8,%r11), %r11d
movl %r9d, %ebx
andl $0x7, %ebx
btl %ebx, %r11d
jae 0x3f19
incq %r9
jmp 0x3e5a
movq %rdi, %rsi
shrq $0x3, %rsi
addq %rsi, %r8
subq %r9, %rdx
incq %rdx
cmpq $0x1f, %rdx
jbe 0x3eb4
cmpl $-0x1, (%r8)
jne 0x3ed6
addq $0x4, %r8
addq $-0x20, %rdx
addq $0x20, %rdi
jmp 0x3e9a
xorl %esi, %esi
leaq (%rdx,%rsi), %r9
cmpq $0x10, %r9
jb 0x3ed1
cmpw $-0x1, (%r8)
jne 0x3ed1
addq $0x2, %r8
addq $-0x10, %rsi
jmp 0x3eb6
subq %rsi, %rdi
jmp 0x3ed9
movq %rdx, %r9
movq %rdi, %rdx
negq %rdx
cmpq $0x7, %r9
jbe 0x3f21
movzbl (%r8), %r10d
cmpl $0xff, %r10d
je 0x3f05
xorl %esi, %esi
cmpq $0x8, %rsi
je 0x3f05
btl %esi, %r10d
jae 0x3f16
incq %rsi
jmp 0x3ef4
incq %r8
addq $-0x8, %r9
addq $0x8, %rdi
addq $-0x8, %rdx
jmp 0x3edf
subq %rdx, %rsi
movq %rsi, (%rcx)
xorl %eax, %eax
popq %rbx
popq %rbp
retq
xorl %edx, %edx
cmpq %rdx, %r9
je 0x3f1e
movq %rdx, %rsi
shrq $0x3, %rsi
movzbl (%r8,%rsi), %esi
movl %edx, %r10d
andl $0x7, %r10d
btl %r10d, %esi
jae 0x3f46
incq %rdx
jmp 0x3f23
addq %rdx, %rdi
movq %rdi, %rsi
jmp 0x3f19
nop
// File: /workspace/github_c_makefile_star2_O2/ngkaho1234[P]ext4-extents-tree/db.c
// Function: db_open
struct db_handle *db_open(struct super_block *sb)
{
	struct buffer_head *bh;
	struct db_header *bhdr;
	struct db_handle *db_handle;
	struct db_bitmap *db_bitmap;
	int err = 0;
	db_handle = xzalloc(sizeof(struct db_handle));
	if (!db_handle)
		return NULL;

	bh = fs_bread(sb, 0, &err);
	if (!bh) {
		err = -ENOMEM;
		goto out;
	}
	bhdr = (struct db_header *)bh->b_data;
	db_handle->sb = sb;
	db_handle->db_header = (struct db_header *)bhdr;
	db_bitmap = load_all_bitmap(sb, bhdr->db_nrblocks, bhdr->db_bitmap_block);
	if (!db_handle) {
		err = -ENOMEM;
		goto out;
	}
	db_handle->db_bitmap = db_bitmap;
	db_handle->sb_bh = bh;
out:
	if (err) {
		if (db_bitmap)
			free_all_bitmap(db_bitmap);
		if (db_handle)
			xfree(db_handle);

		db_handle = NULL;
	}
	return db_handle;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
andl $0x0, -0x24(%rbp)
pushq $0x1
popq %rdi
pushq $0x28
popq %rsi
callq 0x2140
testq %rax, %rax
je 0x3fcb
movq %rax, %rbx
leaq -0x24(%rbp), %r15
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x267c
movq %rax, %r12
movq 0x18(%rax), %rax
movq %r14, (%rbx)
movq %rax, 0x10(%rbx)
movq 0x4(%rax), %rsi
movq 0xc(%rax), %rdx
movq %r14, %rdi
callq 0x3ab3
movq %rax, 0x18(%rbx)
movq %r12, 0x20(%rbx)
cmpl $0x0, (%r15)
je 0x3fcd
testq %rax, %rax
je 0x3fc3
movq %rax, %rdi
callq 0x3bd2
movq %rbx, %rdi
callq 0x2030
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ngkaho1234[P]ext4-extents-tree/db.c
// Function: db_close
void db_close(struct db_handle *db_handle)
{
	save_all_bitmap(db_handle->sb, db_handle->db_bitmap);
	free_all_bitmap(db_handle->db_bitmap);
	fs_brelse(db_handle->sb_bh);
	xfree(db_handle);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
movq 0x18(%rbx), %rsi
callq 0x3c47
movq 0x18(%rbx), %rdi
callq 0x3bd2
movq 0x20(%rbx), %rdi
callq 0x2700
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2030
nop
// File: /workspace/github_c_makefile_star2_O2/ngkaho1234[P]ext4-extents-tree/extents.c
// Function: extcursor_alloc_block
static int
extcursor_alloc_block(struct ext4_ext_cursor *cur, ext4_fsblk_t *nblockp)
{
	int ret;
	ext4_lblk_t count = 1;
	*nblockp = ext4_new_meta_blocks((struct inode *)cur->c_fsinfo, 0, 0,
					&count, &ret);
	return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq 0x8(%rdi), %r15
leaq -0x20(%rbp), %rcx
andq $0x0, (%rcx)
movq 0x18(%r15), %rax
movq 0x10(%rax), %rdx
movq 0x18(%rax), %rdi
movq 0x4(%rdx), %rdx
decq %rdx
xorl %esi, %esi
callq 0x3e3b
movl %eax, %r14d
testl %eax, %eax
jne 0x406d
movq 0x18(%r15), %rax
movq 0x18(%rax), %rdi
movq -0x20(%rbp), %rsi
callq 0x3cfa
movq -0x20(%rbp), %rax
movq %rax, (%rbx)
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ngkaho1234[P]ext4-extents-tree/extents.c
// Function: ext4_ext_cursor_alloc
struct ext4_ext_cursor *
ext4_ext_cursor_alloc(struct super_block *sb, void *root, void *fsinfo,
		      size_t blocksz)
{
	struct ext4_ext_path *paths;
	struct ext4_extent_header *hdr;
	int i;
	int rootdepth;
	struct ext4_ext_cursor *cur;

	hdr = root;
	rootdepth = ext4_ext_header_depth(hdr);

	cur = (struct ext4_ext_cursor *)ext4_malloc(
	    sizeof(struct ext4_ext_cursor));
	if (!cur)
		return NULL;

	paths = (struct ext4_ext_path *)ext4_zalloc(
	    sizeof(struct ext4_ext_path) * (rootdepth + 1));
	if (!paths) {
		ext4_free(cur);
		return NULL;
	}
	for (i = 0; i <= rootdepth; i++)
		paths[i].p_ptr = -1;
	cur->c_superblock = sb;
	cur->c_root = root;
	cur->c_fsinfo = fsinfo;
	cur->c_cursor_op = ext4_test_cursor_op;
	cur->c_paths = paths;
	cur->c_maxdepth = rootdepth;
	cur->c_blocksz = blocksz;

	cur->c_paths[rootdepth].p_bcb = NULL;
	cur->c_paths[rootdepth].p_hdr = cur->c_root;
	cur->c_paths[rootdepth].p_ptr = -1;
	return cur;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r12
movq %rdx, -0x38(%rbp)
movq %rsi, %r15
movq %rdi, %r13
movzwl 0x6(%rsi), %r14d
pushq $0x48
popq %rdi
callq 0x21c0
testq %rax, %rax
je 0x416b
movq %rax, %rbx
movq %r12, -0x30(%rbp)
imulq $0x18, %r14, %r12
leaq 0x18(%r12), %rsi
pushq $0x1
popq %rdi
callq 0x2140
testq %rax, %rax
je 0x4163
movl %r14d, %ecx
imulq $0x18, %rcx, %rcx
addq $0x18, %rcx
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x4121
orq $-0x1, 0x10(%rax,%rdx)
addq $0x18, %rdx
jmp 0x4110
movq %r13, 0x10(%rbx)
movq %r15, (%rbx)
movq -0x38(%rbp), %rcx
movq %rcx, 0x8(%rbx)
leaq 0x6041(%rip), %rcx      # 0xa178
movups (%rcx), %xmm0
movups %xmm0, 0x18(%rbx)
movq 0x10(%rcx), %rcx
movq %rcx, 0x28(%rbx)
movq %rax, 0x30(%rbx)
movl %r14d, 0x40(%rbx)
movq -0x30(%rbp), %rcx
movq %rcx, 0x38(%rbx)
movq %r15, 0x8(%rax,%r12)
orq $-0x1, 0x10(%rax,%r12)
jmp 0x416d
movq %rbx, %rdi
callq 0x2030
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ngkaho1234[P]ext4-extents-tree/extents.c
// Function: ext4_ext_cursor_unpin
void
ext4_ext_cursor_unpin(struct ext4_ext_cursor *cur, int depth, int nrlevel)
{
	int i;
	int maxdepth;

	maxdepth = cur->c_maxdepth;

	if (depth < 0) {
		for (i = 0; i <= maxdepth; i++)
			ext4_ext_path_unpin(cur->c_paths + i);

	} else {
		for (i = depth; i <= maxdepth && i < depth + nrlevel; i++)
			ext4_ext_path_unpin(cur->c_paths + i);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movslq 0x40(%rdi), %r12
testl %esi, %esi
js 0x41c6
movl %edx, %r14d
movl %esi, %r15d
addl %esi, %r14d
movl %esi, %eax
imulq $0x18, %rax, %r13
cmpl %r15d, %r12d
jl 0x41e6
cmpl %r15d, %r14d
jle 0x41e6
movq 0x30(%rbx), %rdi
addq %r13, %rdi
callq 0x41f5
addq $0x18, %r13
incl %r15d
jmp 0x41a7
xorl %r14d, %r14d
xorl %r15d, %r15d
cmpq %r12, %r15
jg 0x41e6
movq 0x30(%rbx), %rdi
addq %r14, %rdi
callq 0x41f5
incq %r15
addq $0x18, %r14
jmp 0x41cc
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ngkaho1234[P]ext4-extents-tree/extents.c
// Function: ext4_ext_path_unpin
static void
ext4_ext_path_unpin(struct ext4_ext_path *pathp)
{
	if (pathp->p_hdr) {
		if (pathp->p_bcb) {
			fs_brelse(pathp->p_bcb);
			pathp->p_bcb = NULL;
		}
		pathp->p_hdr = NULL;
		pathp->p_ptr = 0;
	}
}

// Assembly:
cmpq $0x0, 0x8(%rdi)
je 0x4226
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x421b
callq 0x2700
andq $0x0, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ngkaho1234[P]ext4-extents-tree/extents.c
// Function: ext4_ext_insert_item
static void
ext4_ext_insert_item(struct ext4_ext_cursor *cur, int depth,
		     union ext4_extent_item *nitems, bool updptr)
{
	struct ext4_extent_header *hdr;
	uint16_t nritems;
	ssize_t ptr;
	union ext4_extent_item *item;

	hdr = cur->c_paths[depth].p_hdr;
	nritems = ext4_ext_header_entries(hdr);
	ptr = (nritems) ? cur->c_paths[depth].p_ptr : 0;
	item = EXT_FIRST_ITEM(hdr) + ptr;

	ext4_assert(EXT_HAS_FREE_INDEX(hdr));

	if (nritems) {
		ssize_t shiftnritems;

		if (depth) {
			if (ext4_idx_lblock(&item->i) <
			    ext4_idx_lblock(&nitems->i)) {
				ptr++;
				item++;
			}
		} else {
			if (ext4_ext_lblock(&item->e) + ext4_ext_len(&item->e) -
				1 <
			    ext4_ext_lblock(&nitems->e)) {
				ptr++;
				item++;
			}
		}
		shiftnritems = EXT_LAST_ITEM(hdr) - item + 1;
		if (shiftnritems)
			memmove(item + 1, item,
				shiftnritems * EXT4_EXT_ITEM_SIZE);
		memcpy(item, nitems, EXT4_EXT_ITEM_SIZE);
	} else {
		memcpy(item, nitems, EXT4_EXT_ITEM_SIZE);
	}
	if (updptr)
		cur->c_paths[depth].p_ptr = ptr;
	ext4_ext_header_set_entries(hdr, ext4_ext_header_entries(hdr) + 1);
	if (depth == ext4_ext_cursor_depth(cur))
		cur->c_cursor_op.c_root_dirty_func(cur);
	else
		fs_mark_buffer_dirty(cur->c_paths[depth].p_bcb);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r15
movl %esi, %ebx
movq %rdi, %r8
movq 0x30(%rdi), %rdx
movl %esi, %eax
imulq $0x18, %rax, %r10
movq 0x8(%rdx,%r10), %r14
movzwl 0x2(%r14), %eax
testq %rax, %rax
je 0x49df
cmpw 0x4(%r14), %ax
jae 0x4a79
movq 0x10(%rdx,%r10), %r11
leaq 0xc(%r14), %rdx
imulq $0xc, %r11, %rsi
leaq (%r14,%rsi), %r12
addq $0xc, %r12
movl (%r12), %r9d
testl %ebx, %ebx
je 0x4a4f
cmpl (%r15), %r9d
jae 0x4996
incq %r11
addq $0xc, %r12
imulq $0xc, %rax, %rax
addq %rax, %rdx
subq %r12, %rdx
addq $-0xc, %rdx
cmpq $-0xc, %rdx
je 0x49f2
leaq 0xc(%r12), %rdi
addq $0xc, %rdx
movq %r12, %rsi
movq %r8, -0x40(%rbp)
movl %ecx, %r13d
movq %r10, -0x38(%rbp)
movl %ebx, -0x2c(%rbp)
movq %r11, %rbx
callq 0x2210
movq %rbx, %r11
movl -0x2c(%rbp), %ebx
movq -0x38(%rbp), %r10
movl %r13d, %ecx
movq -0x40(%rbp), %r8
jmp 0x49f2
cmpw $0x0, 0x4(%r14)
je 0x4a79
leaq 0xc(%r14), %r12
xorl %r11d, %r11d
movl 0x8(%r15), %eax
movl %eax, 0x8(%r12)
movq (%r15), %rax
movq %rax, (%r12)
testb %cl, %cl
je 0x4a0f
movq 0x30(%r8), %rax
movq %r11, 0x10(%rax,%r10)
incw 0x2(%r14)
movq (%r8), %rax
movzwl 0x6(%rax), %eax
cmpl %ebx, %eax
jne 0x4a34
movq %r8, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *0x18(%r8)
movq 0x30(%r8), %rax
movq (%rax,%r10), %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2710
movzwl 0x4(%r12), %esi
movl %esi, %edi
andl $0x7fff, %edi           # imm = 0x7FFF
cmpw $0x8001, %si            # imm = 0x8001
cmovbl %esi, %edi
leal (%r9,%rdi), %esi
decl %esi
cmpl (%r15), %esi
jb 0x498f
jmp 0x4996
leaq 0x2185(%rip), %rdi      # 0x6c05
leaq 0x1f54(%rip), %rsi      # 0x69db
leaq 0x218f(%rip), %rcx      # 0x6c1d
movl $0x407, %edx            # imm = 0x407
callq 0x20c0
// File: /workspace/github_c_makefile_star2_O2/ngkaho1234[P]ext4-extents-tree/extents.c
// Function: ext4_ext_update_index
static void
ext4_ext_update_index(struct ext4_ext_cursor *cur, int depth, int force)
{
	int i;
	int rootdepth;

	rootdepth = ext4_ext_cursor_depth(cur);

	for (i = depth + 1; i <= rootdepth; i++) {
		struct ext4_extent_header *hdr =
		    (cur->c_paths[i].p_hdr);
		struct ext4_extent_header *childhdr =
		    cur->c_paths[i - 1].p_hdr;
		ssize_t ptr = cur->c_paths[i].p_ptr;

		if (cur->c_paths[i - 1].p_ptr)
			break;
		if (i > 1) {
			struct ext4_extent_idx *idx =
			    EXT_FIRST_INDEX(hdr) + ptr;
			struct ext4_extent_idx *childidx =
			    EXT_FIRST_INDEX(childhdr);

			if (ext4_idx_lblock(idx) != ext4_idx_lblock(childidx)) {
				ext4_idx_store_lblock(
				    idx, ext4_idx_lblock(childidx));
				if (i < rootdepth)
					fs_mark_buffer_dirty(
					    cur->c_paths[i].p_bcb);
				else
					cur->c_cursor_op.c_root_dirty_func(cur);
			} else if (!force)
				break;
		} else {
			struct ext4_extent_idx *idx =
			    EXT_FIRST_INDEX(hdr) + ptr;
			struct ext4_extent *childext =
			    EXT_FIRST_EXTENT(childhdr);

			if (ext4_idx_lblock(idx) != ext4_ext_lblock(childext)) {
				ext4_idx_store_lblock(
				    idx, ext4_ext_lblock(childext));
				if (i < rootdepth)
					fs_mark_buffer_dirty(
					    cur->c_paths[i].p_bcb);
				else
					cur->c_cursor_op.c_root_dirty_func(cur);
			} else if (!force)
				break;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rdi, %r14
movq (%rdi), %rax
movzwl 0x6(%rax), %r15d
movslq %esi, %r13
imulq $0x18, %r13, %r12
addq $0x28, %r12
cmpq %r15, %r13
jge 0x4b1d
movq 0x30(%r14), %rax
cmpq $0x0, -0x18(%rax,%r12)
jne 0x4b1d
movq %r13, %rcx
incq %r13
movq -0x20(%rax,%r12), %rsi
movq -0x8(%rax,%r12), %rdx
imulq $0xc, (%rax,%r12), %rdi
addq %rdi, %rdx
addq $0xc, %rdx
movl (%rdx), %edi
movl 0xc(%rsi), %esi
testq %rcx, %rcx
cmpl %esi, %edi
jne 0x4afd
testl %ebx, %ebx
jne 0x4b17
jmp 0x4b1d
movl %esi, (%rdx)
cmpq %r15, %r13
jge 0x4b10
movq -0x10(%rax,%r12), %rdi
callq 0x2710
jmp 0x4b17
movq %r14, %rdi
callq *0x18(%r14)
addq $0x18, %r12
jmp 0x4abe
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ngkaho1234[P]ext4-extents-tree/extents.c
// Function: ext4_ext_decrement
int
ext4_ext_decrement(struct ext4_ext_cursor *cur, bool *noprevp)
{
	int ret = 0;
	int i;
	int depth;
	ssize_t ptr;
	bool noprev = true;
	int rootdepth;

	rootdepth = ext4_ext_cursor_depth(cur);
	for (i = 0; i <= rootdepth; i++) {
		struct ext4_extent_header *hdr;

		hdr = cur->c_paths[i].p_hdr;
		ptr = cur->c_paths[i].p_ptr;
		if (hdr && ptr && ptr != -1)
			break;
	}
	depth = i;
	if (depth > rootdepth)
		goto out;

	cur->c_paths[depth].p_ptr--;
	ret = ext4_ext_reload_paths(cur, depth, true);
	if (ret)
		goto out;

	noprev = false;
out:
	if (noprevp)
		*noprevp = noprev;
	return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq (%rdi), %rax
movq 0x30(%rdi), %rcx
movzwl 0x6(%rax), %edx
incq %rdx
addq $0x10, %rcx
xorl %eax, %eax
xorl %esi, %esi
cmpq %rsi, %rdx
je 0x4d02
cmpq $0x0, -0x8(%rcx)
je 0x4cf9
movq (%rcx), %r8
decq %r8
cmpq $-0x2, %r8
jb 0x4d06
incq %rsi
addq $0x18, %rcx
jmp 0x4ce1
movb $0x1, %cl
jmp 0x4d16
decq (%rcx)
pushq $0x1
popq %rdx
callq 0x4b2c
testl %eax, %eax
setne %cl
testq %rbx, %rbx
je 0x4d1d
movb %cl, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ngkaho1234[P]ext4-extents-tree/extents.c
// Function: ext4_ext_increment
int
ext4_ext_increment(struct ext4_ext_cursor *cur, bool *nonextp)
{
	int ret = 0;
	int i;
	int depth;
	ssize_t ptr;
	bool nonext = true;
	int rootdepth;

	rootdepth = ext4_ext_cursor_depth(cur);
	for (i = 0; i <= rootdepth; i++) {
		struct ext4_extent_header *hdr;

		hdr = cur->c_paths[i].p_hdr;
		ptr = cur->c_paths[i].p_ptr;
		if (hdr && ptr != -1 && ptr < ext4_ext_header_entries(hdr) - 1)
			break;
	}
	depth = i;
	if (depth > rootdepth)
		goto out;

	cur->c_paths[depth].p_ptr++;
	ret = ext4_ext_reload_paths(cur, depth, false);
	if (ret)
		goto out;

	nonext = false;
out:
	if (nonextp)
		*nonextp = nonext;
	return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq (%rdi), %rax
movq 0x30(%rdi), %rcx
movzwl 0x6(%rax), %edx
incq %rdx
addq $0x10, %rcx
xorl %eax, %eax
xorl %esi, %esi
cmpq %rsi, %rdx
je 0x4d7d
movq -0x8(%rcx), %r9
movq (%rcx), %r8
testq %r9, %r9
setne %r10b
cmpq $-0x1, %r8
setne %r11b
andb %r10b, %r11b
cmpb $0x1, %r11b
jne 0x4d74
movzwl 0x2(%r9), %r9d
decq %r9
cmpq %r9, %r8
jl 0x4d81
incq %rsi
addq $0x18, %rcx
jmp 0x4d43
movb $0x1, %cl
jmp 0x4d90
incq (%rcx)
xorl %edx, %edx
callq 0x4b2c
testl %eax, %eax
setne %cl
testq %rbx, %rbx
je 0x4d97
movb %cl, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ngkaho1234[P]ext4-extents-tree/extents.c
// Function: ext4_ext_cursor_reset_rootpath
static int
ext4_ext_cursor_reset_rootpath(struct ext4_ext_cursor *cur)
{
	struct ext4_ext_path *paths;
	int rootdepth;

	rootdepth = ext4_ext_cursor_depth(cur);

	if (rootdepth > cur->c_maxdepth) {
		int nrlevel = cur->c_maxdepth;

		paths = (struct ext4_ext_path *)ext4_malloc(
		    sizeof(struct ext4_ext_path) * (rootdepth + 1));
		if (!paths)
			return ENOMEM;

		memcpy(paths, cur->c_paths,
		       nrlevel * sizeof(struct ext4_ext_path));
		ext4_free(cur->c_paths);
		cur->c_paths = paths;
		cur->c_maxdepth = rootdepth;
	}

	cur->c_paths[rootdepth].p_bcb = NULL;
	cur->c_paths[rootdepth].p_hdr = cur->c_root;
	cur->c_paths[rootdepth].p_ptr = -1;
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rax
movzwl 0x6(%rax), %r12d
movslq 0x40(%rdi), %r13
cmpl %r12d, %r13d
jge 0x52be
imulq $0x18, %r12, %rdi
addq $0x18, %rdi
callq 0x21c0
testq %rax, %rax
je 0x52ea
movq %rax, %r14
movq 0x30(%rbx), %r15
imulq $0x18, %r13, %rdx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2180
movq %r15, %rdi
callq 0x2030
movq %r14, 0x30(%rbx)
movl %r12d, 0x40(%rbx)
movq (%rbx), %rax
jmp 0x52c2
movq 0x30(%rbx), %r14
movl %r12d, %ecx
imulq $0x18, %rcx, %rcx
andq $0x0, (%r14,%rcx)
movq %rax, 0x8(%r14,%rcx)
orq $-0x1, 0x10(%r14,%rcx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0xc
popq %rax
jmp 0x52db
// File: /workspace/github_c_makefile_star2_O2/ngkaho1234[P]ext4-extents-tree/extents.c
// Function: ext4_ext_delete_item
static void
ext4_ext_delete_item(struct ext4_ext_cursor *cur, int depth)
{
	ssize_t ptr;
	ssize_t nritems;
	struct ext4_extent_header *hdr;
	union ext4_extent_item *item;

	ptr = cur->c_paths[depth].p_ptr;
	hdr = cur->c_paths[depth].p_hdr;
	item = EXT_FIRST_ITEM(hdr) + ptr;

	ext4_assert(ext4_ext_header_entries(hdr));

	nritems = EXT_LAST_ITEM(hdr) - (item + 1) + 1;
	if (nritems) {
		memmove(item, item + 1, nritems * EXT4_EXT_ITEM_SIZE);
		memset(EXT_LAST_ITEM(hdr), 0, EXT4_EXT_ITEM_SIZE);
	} else {
		memset(item, 0, EXT4_EXT_ITEM_SIZE);
	}
	ext4_ext_header_set_entries(hdr, ext4_ext_header_entries(hdr) - 1);
	if (depth == ext4_ext_cursor_depth(cur))
		cur->c_cursor_op.c_root_dirty_func(cur);
	else
		fs_mark_buffer_dirty(cur->c_paths[depth].p_bcb);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x30(%rdi), %rax
movslq %esi, %rcx
imulq $0x18, %rcx, %r14
movq 0x8(%rax,%r14), %r15
movzwl 0x2(%r15), %ecx
testq %rcx, %rcx
je 0x59bb
movl %esi, %ebx
movq %rdi, %r8
imulq $0xc, 0x10(%rax,%r14), %rax
leaq 0xc(%r15), %r12
leaq (%r15,%rax), %rdi
addq $0xc, %rdi
imulq $0xc, %rcx, %rdx
addq %r12, %rdx
leaq 0xc(%rdi), %rsi
subq %rsi, %rdx
addq $-0xc, %rdx
cmpq $-0xc, %rdx
je 0x5973
addq $0xc, %rdx
movq %r8, %r13
callq 0x2210
movq %r13, %r8
movzwl 0x2(%r15), %eax
imulq $0xc, %rax, %rax
leaq (%r12,%rax), %rdi
addq $-0xc, %rdi
andl $0x0, 0x8(%rdi)
andq $0x0, (%rdi)
decw 0x2(%r15)
movq (%r8), %rax
movzwl 0x6(%rax), %eax
cmpl %ebx, %eax
jne 0x59a0
movq %r8, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *0x18(%r8)
movq 0x30(%r8), %rax
movq (%rax,%r14), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2710
leaq 0x13d0(%rip), %rdi      # 0x6d92
leaq 0x1012(%rip), %rsi      # 0x69db
leaq 0x13df(%rip), %rcx      # 0x6daf
movl $0x4d0, %edx            # imm = 0x4D0
callq 0x20c0
// File: /workspace/github_c_makefile_star2_O2/ngkaho1234[P]ext4-extents-tree/extents.c
// Function: ext4_ext_right_sibling
static int
ext4_ext_right_sibling(struct ext4_ext_cursor *cur, int depth,
		       struct ext4_ext_cursor **ncurp, bool *nosibp)
{
	int ret = 0;
	int i;
	ext4_lblk_t lblock;
	bool nosib = true;
	struct ext4_ext_cursor *ncur = NULL;
	int rootdepth;
	struct ext4_extent_header *hdr;
	union ext4_extent_item *itemp;

	rootdepth = ext4_ext_cursor_depth(cur);
	hdr = cur->c_paths[depth].p_hdr;
	itemp = EXT_FIRST_ITEM(hdr);

	ext4_assert(ncurp);

	if (!depth)
		lblock = ext4_ext_lblock(&itemp->e);
	else
		lblock = ext4_idx_lblock(&itemp->i);

	for (i = depth + 1; i <= rootdepth; i++) {
		ssize_t ptr = cur->c_paths[i].p_ptr;

		hdr = cur->c_paths[i].p_hdr;
		if (ptr++ < ext4_ext_header_entries(hdr) - 1) {
			struct ext4_extent_idx *idx =
			    EXT_FIRST_INDEX(hdr) + ptr;
			nosib = false;
			lblock = ext4_idx_lblock(idx);
			break;
		}
	}
	ncur = ext4_ext_cursor_alloc(cur->c_superblock, cur->c_root,
				     cur->c_fsinfo, cur->c_blocksz);
	if (!ncur) {
		ret = ENOMEM;
		goto out;
	}

	ret = ext4_ext_lookup_extent(ncur, lblock, NULL);
	if (ret)
		goto out;

out:
	*nosibp = nosib;
	*ncurp = ncur;
	return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdx, %rdx
je 0x5aa7
movq %rcx, %r14
movq %rdx, %rbx
movl %esi, %eax
movq (%rdi), %rsi
movq 0x30(%rdi), %rdx
movzwl 0x6(%rsi), %ecx
cltq
imulq $0x18, %rax, %r8
addq %r8, %rdx
addq $0x28, %rdx
movq -0x20(%rdx), %r8
movl 0xc(%r8), %r15d
decq %rax
incq %rax
cmpq %rcx, %rax
jge 0x5a61
movq -0x8(%rdx), %r8
movq (%rdx), %r9
addq $0x18, %rdx
movzwl 0x2(%r8), %r10d
decq %r10
cmpq %r10, %r9
jge 0x5a33
imulq $0xc, %r9, %rax
movl 0x18(%r8,%rax), %r15d
xorl %r13d, %r13d
jmp 0x5a64
movb $0x1, %r13b
movq 0x8(%rdi), %rdx
movq 0x10(%rdi), %rax
movq 0x38(%rdi), %rcx
movq %rax, %rdi
callq 0x40b2
movq %rax, %r12
testq %rax, %rax
je 0x5a8f
movq %r12, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x4299
jmp 0x5a92
pushq $0xc
popq %rax
movb %r13b, (%r14)
movq %r12, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x133a(%rip), %rdi      # 0x6de8
leaq 0xf26(%rip), %rsi       # 0x69db
leaq 0x1332(%rip), %rcx      # 0x6dee
movl $0x54b, %edx            # imm = 0x54B
callq 0x20c0
// File: /workspace/github_c_makefile_star2_O2/ngkaho1234[P]ext4-extents-tree/extents.c
// Function: ext4_ext_shrinkable
static int
ext4_ext_shrinkable(struct ext4_ext_cursor *cur, bool *shrinkablep)
{
	int ret = 0;
	int i = 0;
	int maxnritems;
	int nritems;
	int nnritems = 0;
	int rootdepth;
	struct ext4_extent_header *hdr;
	struct ext4_ext_cursor *ncur = NULL;
	bool shrinkable = false;

	rootdepth = ext4_ext_cursor_depth(cur);
	hdr = cur->c_root;

	if (!rootdepth)
		goto out;

	ncur = ext4_ext_cursor_alloc(cur->c_superblock, cur->c_root,
				     cur->c_fsinfo, cur->c_blocksz);
	if (!ncur)
		return ENOMEM;

	ret = ext4_ext_lookup_extent(ncur, 0, NULL);
	if (ret)
		goto out;

	maxnritems = ext4_ext_header_max_entries(hdr);
	nritems = ext4_ext_header_entries(hdr);

	for (i = 0; i < nritems; i++) {
		bool nosib;
		struct ext4_ext_cursor *tcur;
		struct ext4_extent_header *nhdr =
		
		nhdr = cur->c_paths[rootdepth - 1].p_hdr;

		nnritems += ext4_ext_header_entries(nhdr);
		ret =
		    ext4_ext_right_sibling(ncur, rootdepth - 1, &tcur, &nosib);
		if (ret)
			goto out;
		if (nosib) {
			if (tcur)
				ext4_ext_cursor_free(tcur);
			break;
		}
		ext4_ext_cursor_free(ncur);
		ncur = tcur;
	}
	if (nnritems <= maxnritems)
		shrinkable = true;

out:
	if (ncur)
		ext4_ext_cursor_free(ncur);
	*shrinkablep = shrinkable;
	return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r15
movq (%rdi), %rbx
movzwl 0x6(%rbx), %eax
testl %eax, %eax
je 0x5b30
movq %rdi, %r14
movq %rax, %r12
movq 0x8(%rdi), %rdx
movq 0x10(%rdi), %rdi
movq 0x38(%r14), %rcx
movq %rbx, %rsi
callq 0x40b2
testq %rax, %rax
je 0x5b3e
movq %r15, -0x40(%rbp)
movq $0x0, -0x38(%rbp)
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4299
testl %eax, %eax
je 0x5b47
movl %eax, %r13d
movq %r15, %rdi
xorl %ebx, %ebx
jmp 0x5bed
movq %r15, -0x40(%rbp)
xorl %ebx, %ebx
xorl %r13d, %r13d
jmp 0x5bf2
pushq $0xc
popq %r13
jmp 0x5bf8
movzwl 0x4(%rbx), %eax
movl %eax, -0x30(%rbp)
movzwl 0x2(%rbx), %ebx
decl %r12d
movq %r12, -0x58(%rbp)
imulq $0x18, %r12, %rax
movq %rax, -0x50(%rbp)
movq %r15, %rdi
subl $0x1, %ebx
jb 0x5bbb
movq %r14, %r15
movq 0x30(%r14), %rax
movq -0x50(%rbp), %rcx
movq 0x8(%rax,%rcx), %rax
movzwl 0x2(%rax), %r14d
movq %rdi, %r12
movq -0x58(%rbp), %rsi
leaq -0x48(%rbp), %rdx
leaq -0x29(%rbp), %rcx
callq 0x59f1
testl %eax, %eax
jne 0x5bc1
movq -0x38(%rbp), %rax
addl %r14d, %eax
movq %rax, %r14
cmpb $0x1, -0x29(%rbp)
je 0x5bcb
movq %r14, -0x38(%rbp)
movq %r12, %rdi
callq 0x426f
movq -0x48(%rbp), %rdi
movq %r15, %r14
jmp 0x5b64
movq -0x38(%rbp), %r14
jmp 0x5bdc
movl %eax, %r13d
xorl %ebx, %ebx
movq %r12, %rdi
jmp 0x5be8
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0x5bd9
callq 0x426f
movq %r12, %rdi
movl -0x30(%rbp), %eax
cmpl %eax, %r14d
setle %bl
xorl %r13d, %r13d
testq %rdi, %rdi
je 0x5bf2
callq 0x426f
movq -0x40(%rbp), %rax
movb %bl, (%rax)
movl %r13d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/c0stya[P]fslib/src/compile.c
// Function: fst_compile_str
struct _fst * fst_compile_str(struct _fst * fst, const char * str) {
    char p[0xffff];
    char * tok;
    size_t line = 1;

    strcpy(p, str);

    do {
        if (line == 1)
            tok = strtok(p, "\n");
        else {
            tok = strtok(NULL, "\n");
        }

        if (tok)
            if ( _parse_line(fst, tok) != 0) {
                    fprintf(stderr, "Invalid input line %zd: %s\n", line, tok);
                    exit(EXIT_FAILURE);
            }
        ++line;
    } while (tok);

    return fst;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10068, %rsp          # imm = 0x10068
movq %rdi, %r15
leaq -0x10080(%rbp), %rdi
callq 0x1050
pushq $0x1
popq %rbx
leaq -0x60(%rbp), %r14
leaq -0x48(%rbp), %r13
cmpq $0x1, %rbx
jne 0x1850
leaq -0x10080(%rbp), %rdi
jmp 0x1852
xorl %edi, %edi
leaq 0x4b87(%rip), %rsi      # 0x63e0
callq 0x1190
movq %rax, %r12
testq %rax, %rax
je 0x198f
movq %rbx, -0x40(%rbp)
movzbl 0xc(%r15), %esi
leaq -0x80(%rbp), %rdi
callq 0x1f64
leaq -0x2c(%rbp), %rax
movq %rax, (%rsp)
movq %r12, -0x38(%rbp)
movq %r12, %rdi
leaq 0x47f4(%rip), %rsi      # 0x6086
movq %r15, %rbx
leaq -0x68(%rbp), %r15
movq %r15, %rdx
movq %r14, %rcx
leaq -0x50(%rbp), %r12
movq %r12, %r8
movq %r13, %r9
xorl %eax, %eax
callq 0x1160
cmpl $0x5, %eax
jne 0x18d7
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq -0x50(%rbp), %rcx
movq -0x48(%rbp), %r8
movss -0x2c(%rbp), %xmm0
movq %rbx, %rdi
callq 0x1a5c
movq %rbx, %r15
jmp 0x1952
movq -0x38(%rbp), %rdi
leaq 0x47b7(%rip), %rsi      # 0x6099
movq %r15, %rdx
movq %r14, %rcx
movq %r12, %r8
movq %r13, %r9
xorl %eax, %eax
callq 0x1160
cmpl $0x4, %eax
jne 0x191c
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq -0x50(%rbp), %rcx
movq -0x48(%rbp), %r8
movss -0x6c(%rbp), %xmm0
movq %rbx, %r15
movq %rbx, %rdi
callq 0x1a5c
jmp 0x1952
movq -0x38(%rbp), %rdi
leaq 0x476b(%rip), %rsi      # 0x6092
leaq -0x58(%rbp), %r12
movq %r12, %rdx
leaq -0x2c(%rbp), %rcx
xorl %eax, %eax
callq 0x1160
cmpl $0x2, %eax
movq %rbx, %r15
jne 0x195e
movq -0x58(%rbp), %rsi
movss -0x2c(%rbp), %xmm0
movq %r15, %rdi
callq 0x1acc
movq -0x40(%rbp), %rbx
incq %rbx
jmp 0x1841
movq -0x38(%rbp), %rdi
leaq 0x473c(%rip), %rsi      # 0x60a5
movq %r12, %rdx
xorl %eax, %eax
callq 0x1160
cmpl $0x1, %eax
movq -0x40(%rbp), %rbx
jne 0x19a4
movq -0x58(%rbp), %rsi
movss -0x6c(%rbp), %xmm0
movq %r15, %rdi
callq 0x1acc
jmp 0x1956
movq %r15, %rax
addq $0x10068, %rsp          # imm = 0x10068
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x764d(%rip), %rax      # 0x8ff8
movq (%rax), %rdi
leaq 0x4672(%rip), %rsi      # 0x6027
movq %rbx, %rdx
movq -0x38(%rbp), %rcx
xorl %eax, %eax
callq 0x1120
pushq $0x1
popq %rdi
callq 0x11b0
// File: /workspace/github_c_makefile_star2_O2/c0stya[P]fslib/src/compile.c
// Function: trn
static size_t trn(char * token, struct _symt * st) {
    char * end;
    long dig = strtol(token, &end, 10);
    if (!*end)
        return (size_t)dig;
    
    fprintf(stderr, "Incorrect token: %s\n", token);

    return -1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq -0x18(%rbp), %r14
pushq $0xa
popq %rdx
movq %r14, %rsi
callq 0x1130
movq (%r14), %rcx
cmpb $0x0, (%rcx)
jne 0x19f9
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq 0x75f8(%rip), %rax      # 0x8ff8
movq (%rax), %rdi
leaq 0x4654(%rip), %rsi      # 0x605e
movq %rbx, %rdx
xorl %eax, %eax
callq 0x1120
pushq $-0x1
popq %rax
jmp 0x19f0
// File: /workspace/github_c_makefile_star2_O2/c0stya[P]fslib/src/compile.c
// Function: trt
static size_t trt(char * token, struct _symt * st) {
    size_t t = symt_getr(st, token);
    if (-1 == t) {
        fprintf(stderr, "Unknown token: %s\n", token);
    }
    return t;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq %rsi, %rdi
movq %rbx, %rsi
callq 0x2b16
movq %rax, %r14
cmpq $-0x1, %rax
je 0x1a3f
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
movq 0x75b2(%rip), %rax      # 0x8ff8
movq (%rax), %rdi
leaq 0x4623(%rip), %rsi      # 0x6073
movq %rbx, %rdx
xorl %eax, %eax
callq 0x1120
jmp 0x1a37
// File: /workspace/github_c_makefile_star2_O2/c0stya[P]fslib/src/hash.c
// Function: hash_create
struct _hash * hash_create( hash_func hash_f,
                            cmp_func cmp_f, 
                            size_t key_size, 
                            size_t item_size, 
                            size_t size) 
{
    struct _hash * hash = (struct _hash *) malloc(sizeof(struct _hash));
    struct _bucket * buckets = (struct _bucket *)malloc(
                size * sizeof(struct _bucket));

    for (size_t i = 0; i < size; i++) {
        buckets[i].head = buckets[i].tail = NULL;
    }

    hash->key_size = key_size;
    hash->item_size = item_size;
    hash->size = size;
    hash->buckets = buckets;
    hash->hash_f = hash_f;
    hash->cmp_f = cmp_f;
    hash->n_items = 0;

    return hash;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, -0x30(%rbp)
movq %rdi, %r15
pushq $0x38
popq %rdi
callq 0x1150
movq %rax, %rbx
movq %r14, %rdi
shlq $0x4, %rdi
callq 0x1150
xorps %xmm0, %xmm0
movq %rax, %rcx
movq %r14, %rdx
subq $0x1, %rdx
jb 0x1b61
movups %xmm0, (%rcx)
addq $0x10, %rcx
jmp 0x1b52
movq %r13, 0x10(%rbx)
movq %r12, 0x8(%rbx)
movq %r14, 0x18(%rbx)
movq %rax, (%rbx)
movq %r15, 0x28(%rbx)
movq -0x30(%rbp), %rax
movq %rax, 0x30(%rbx)
andq $0x0, 0x20(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/c0stya[P]fslib/src/hash.c
// Function: hash_resize
void hash_resize(struct _hash * hash) {
    size_t old_size = hash->size;
    struct _bucket * old_buckets = hash->buckets;

    hash->size *= 2; 
    hash->n_items = 0;

    hash->buckets = (struct _bucket *)malloc(
                hash->size * sizeof(struct _bucket));

    for (size_t i = 0; i < hash->size; i++)
        hash->buckets[i].head = hash->buckets[i].tail = NULL;

    // rehash all the values 
    for (size_t i = 0; i < old_size; i++) { 
        for (   struct _bitem * bi = old_buckets[i].head; 
                bi != NULL;
                bi = bi->next
        ) {
            hash_add(hash, bi->key, bi->value);
        }
    }

    for (size_t i = 0; i < old_size; ++i)
        empty_chain(old_buckets[i].head); 
    free(old_buckets);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq (%rdi), %rbx
movq 0x18(%rdi), %r15
leaq (%r15,%r15), %r12
movq %r12, 0x18(%rdi)
andq $0x0, 0x20(%rdi)
movq %r15, %rdi
shlq $0x5, %rdi
callq 0x1150
movq %rax, (%r14)
xorps %xmm0, %xmm0
subq $0x1, %r12
jb 0x1bd9
movups %xmm0, (%rax)
addq $0x10, %rax
jmp 0x1bca
xorl %r12d, %r12d
cmpq %r15, %r12
je 0x1c0f
movq %r12, %r13
shlq $0x4, %r13
addq %rbx, %r13
movq (%r13), %r13
testq %r13, %r13
je 0x1c0a
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %r14, %rdi
callq 0x1c3c
addq $0x10, %r13
jmp 0x1beb
incq %r12
jmp 0x1bdc
movq %rbx, %r14
subq $0x1, %r15
jb 0x1c26
movq (%r14), %rdi
callq 0x1d9f
addq $0x10, %r14
jmp 0x1c12
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/c0stya[P]fslib/src/hash.c
// Function: hash_add
void hash_add(  struct _hash * hash, 
                void * key, 
                void * value) 
{
    size_t bnum = hash->hash_f(key) % hash->size;
    struct _bucket * bucket = &hash->buckets[bnum];

    // check if we allready have that key and update it
    for (
                struct _bitem * bi = bucket->head; 
                bi != NULL; 
                bi = bi->next
    ) {
        if ( hash->cmp_f(key, bi->key) ) {
            memcpy(bi->key, key, hash->key_size);
            memcpy(bi->value, value, hash->item_size);
            return;
        }
    }

    // otherwise

    struct _bitem * bitem = malloc(sizeof(struct _bitem));

    bitem->key = key;
    bitem->value = value;
    bitem->next = NULL;         // sentinel

    bitem->key = malloc(hash->key_size);
    memcpy(bitem->key, key, hash->key_size);

    bitem->value = malloc(hash->item_size);
    memcpy(bitem->value, value, hash->item_size);

    if ( bucket->tail == NULL ) {
        bucket->tail = bucket->head = bitem;
    } else {
        bucket->tail->next = bitem;
        bucket->tail = bitem;
    }

    // warning: could be a recusion while resizing
    ++hash->n_items;
    if ( ( ((float)hash->n_items) / hash->size) > HASH_ALPHA) {
        hash_resize(hash);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %rbx
movq %rsi, %rdi
callq *0x28(%rbx)
xorl %edx, %edx
divq 0x18(%rbx)
movq %rdx, %r15
shlq $0x4, %r15
addq (%rbx), %r15
movq %r15, %r14
movq (%r14), %r14
testq %r14, %r14
je 0x1c8b
movq (%r14), %rsi
movq %r12, %rdi
callq *0x30(%rbx)
testl %eax, %eax
jne 0x1d0a
addq $0x10, %r14
jmp 0x1c6c
pushq $0x18
popq %rdi
callq 0x1150
movq %r13, -0x30(%rbp)
movq %rax, %r13
andq $0x0, 0x10(%rax)
movq 0x10(%rbx), %r14
movq %r14, %rdi
callq 0x1150
movq %rax, (%r13)
movq %rax, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x1140
movq 0x8(%rbx), %r14
movq %r14, %rdi
callq 0x1150
movq %rax, 0x8(%r13)
movq %rax, %rdi
movq -0x30(%rbp), %rsi
movq %r14, %rdx
callq 0x1140
movq 0x8(%r15), %rax
leaq 0x10(%rax), %rcx
testq %rax, %rax
cmoveq %r15, %rcx
movq %r13, (%rcx)
movq %r13, 0x8(%r15)
movq 0x18(%rbx), %rax
movq 0x20(%rbx), %rcx
incq %rcx
movq %rcx, 0x20(%rbx)
js 0x1d37
cvtsi2ss %rcx, %xmm0
jmp 0x1d4c
movq (%r14), %rdi
movq 0x10(%rbx), %rdx
movq %r12, %rsi
callq 0x1140
movq 0x8(%r14), %rdi
movq 0x8(%rbx), %rdx
movq %r13, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1140
movq %rcx, %rdx
shrq %rdx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
testq %rax, %rax
js 0x1d58
cvtsi2ss %rax, %xmm1
jmp 0x1d6d
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm1
addss %xmm1, %xmm1
divss %xmm1, %xmm0
ucomiss 0x4334(%rip), %xmm0     # 0x60ac
jbe 0x1d90
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1b93
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/c0stya[P]fslib/src/hash.c
// Function: empty_chain
void empty_chain(struct _bitem * bitem) {
    struct _bitem * t_bitem = NULL;
    while(bitem != NULL) {
        t_bitem = bitem;
        bitem = bitem->next;
        if (t_bitem->value) {
            free(t_bitem->key);
            free(t_bitem->value);
        }
        free(t_bitem);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
testq %rbx, %rbx
je 0x1dd7
movq 0x10(%rbx), %r14
cmpq $0x0, 0x8(%rbx)
je 0x1dca
movq (%rbx), %rdi
callq 0x1030
movq 0x8(%rbx), %rdi
callq 0x1030
movq %rbx, %rdi
callq 0x1030
movq %r14, %rbx
jmp 0x1da9
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/c0stya[P]fslib/src/hash.c
// Function: hash_remove
void hash_remove(struct _hash * hash) {
    for (size_t i = 0; i < hash->size; ++i) {
        empty_chain(hash->buckets[i].head); 
    }
    free(hash->buckets);
    free(hash);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
xorl %r15d, %r15d
movq (%rbx), %rdi
cmpq 0x18(%rbx), %r15
jae 0x1e0a
movq (%rdi,%r14), %rdi
callq 0x1d9f
incq %r15
addq $0x10, %r14
jmp 0x1def
callq 0x1030
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/c0stya[P]fslib/src/hash.c
// Function: hash_get
void * hash_get(    struct _hash * hash, 
                    void * key, 
                    void * item) 
{
    struct _bucket bucket = hash->buckets[hash->hash_f(key) % hash->size];

    for (
                struct _bitem * bi = bucket.head; 
                bi != NULL; 
                bi = bi->next
    ) {
        if ( hash->cmp_f(key, bi->key) ) {
            memcpy(item, bi->value, hash->item_size);
            return bi->value;
        }
    }
    return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, -0x30(%rbp)
movq %rsi, %r15
movq %rdi, %r14
movq (%rdi), %rbx
movq %rsi, %rdi
callq *0x28(%r14)
xorl %edx, %edx
divq 0x18(%r14)
movq %rdx, %r12
xorl %r13d, %r13d
shlq $0x4, %r12
addq %rbx, %r12
movq (%r12), %r12
testq %r12, %r12
je 0x1e8b
movq (%r12), %rsi
movq %r15, %rdi
callq *0x30(%r14)
testl %eax, %eax
jne 0x1e74
addq $0x10, %r12
jmp 0x1e56
movq 0x8(%r12), %rsi
movq 0x8(%r14), %rdx
movq -0x30(%rbp), %rdi
callq 0x1140
movq 0x8(%r12), %r13
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/c0stya[P]fslib/src/fst.c
// Function: fst_add_state
state_t fst_add_state(struct _fst * fst) {
    struct _state * state;
    ++fst->n_states;

    if (fst->n_states > fst->n_max) {
        fst->n_max = fst->n_states * 2;
        fst->states = realloc(fst->states, 
            sizeof(struct _state) * fst->n_max);
    }
    
    state = &fst->states[fst->n_states - 1];

    state->n_arcs = 0;
    state->n_max = 0;
    state->final = 0; 
    state->weight = 0;

    state->arcs = NULL;
    
    return fst->n_states - 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x4(%rdi), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x4(%rdi)
cmpl 0x8(%rdi), %ecx
jbe 0x1ff3
addl %ecx, %ecx
movl %ecx, 0x8(%rbx)
movq 0x10(%rbx), %rdi
imulq $0x18, %rcx, %rsi
callq 0x1170
movq %rax, %rcx
movq %rax, 0x10(%rbx)
movl 0x4(%rbx), %eax
decl %eax
jmp 0x1ff7
movq 0x10(%rbx), %rcx
movl %eax, %edx
imulq $0x18, %rdx, %rdx
xorps %xmm0, %xmm0
movups %xmm0, (%rcx,%rdx)
andq $0x0, 0x10(%rcx,%rdx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/c0stya[P]fslib/src/fst.c
// Function: fst_add_arc
arc_t fst_add_arc(
            struct _fst *   fst, 
            state_t         src, 
            state_t         dst, 
            label_t         il,
            label_t         ol,
            weight_t        weight) 
{
    struct _arc * arc;
    struct _state * state = &fst->states[src];

    ++state->n_arcs;

    if (state->n_arcs > state->n_max) {
        state->n_max = state->n_arcs * 2;
        state->arcs = realloc(state->arcs, 
            sizeof(struct _arc) * state->n_max);
    }

    arc = &state->arcs[state->n_arcs - 1];
    arc->state = dst;
    arc->ilabel = il;
    arc->olabel = ol;
    arc->weight = weight;

    return state->n_arcs - 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %r8d, %ebx
movl %ecx, %r14d
movl %edx, %r15d
movq 0x10(%rdi), %rcx
movl %esi, %eax
imulq $0x18, %rax, %rdx
leaq (%rcx,%rdx), %r12
movl (%rcx,%rdx), %eax
leal 0x1(%rax), %esi
movl %esi, (%rcx,%rdx)
cmpl 0x4(%rcx,%rdx), %esi
jbe 0x2075
addl %esi, %esi
movl %esi, 0x4(%r12)
movq 0x10(%r12), %rdi
shlq $0x4, %rsi
movss %xmm0, -0x24(%rbp)
callq 0x1170
movss -0x24(%rbp), %xmm0
movq %rax, %rcx
movq %rax, 0x10(%r12)
movl (%r12), %eax
decl %eax
jmp 0x207a
movq 0x10(%r12), %rcx
movl %eax, %edx
shlq $0x4, %rdx
movl %r15d, (%rcx,%rdx)
movl %r14d, 0x8(%rcx,%rdx)
movl %ebx, 0xc(%rcx,%rdx)
movss %xmm0, 0x4(%rcx,%rdx)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/c0stya[P]fslib/src/fst.c
// Function: fst_empty
void fst_empty(struct _fst * fst) {
    struct _state * state;

    for(state_t s=0; s < fst->n_states; ++s) {
        state = fst->states + s;
        if (state->arcs != NULL)
            free(state->arcs);
    } 
    
    if ( fst->states != NULL )
        free(fst->states);

    fst->n_states = 0;
    fst->n_max = 0;
    fst->states = NULL;
    fst->start = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x10
popq %r14
xorl %r15d, %r15d
movl 0x4(%rbx), %eax
movq 0x10(%rbx), %rdi
cmpq %rax, %r15
jae 0x20ee
movq (%rdi,%r14), %rdi
callq 0x1030
incq %r15
addq $0x18, %r14
jmp 0x20d0
callq 0x1030
andl $0x0, 0x8(%rbx)
andq $0x0, 0x10(%rbx)
andq $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/c0stya[P]fslib/src/fst.c
// Function: fst_write
void fst_write(const struct _fst * fst, FILE * fout) {
    struct _state * state;

    fwrite( &_fst_header, sizeof(_fst_header), 1, fout);
    fwrite( &fst->start, sizeof(state_t), 1, fout);
    fwrite( &fst->n_states, sizeof(state_t), 1, fout);
    fwrite( &fst->sr_type, sizeof(uint8_t), 1, fout);
    fwrite( &fst->flags, sizeof(uint8_t), 1, fout);

    for (int s=0; s < fst->n_states; ++s) {
        state = &fst->states[s];  
        
        fwrite( &state->weight, sizeof(weight_t), 1, fout);
        fwrite( &state->n_arcs, sizeof(arc_t), 1, fout);
        fwrite( &state->final, sizeof(int), 1, fout);

        fwrite( state->arcs, sizeof(struct _arc), state->n_arcs, fout);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r15
movq %rdi, %r14
leaq 0x3f69(%rip), %rdi      # 0x60b0
pushq $0x4
popq %rbx
pushq $0x1
popq %r12
movq %rbx, %rsi
movq %r12, %rdx
movq %r15, %rcx
callq 0x11c0
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %r15, %rcx
callq 0x11c0
leaq 0x4(%r14), %rdi
movq %rdi, -0x40(%rbp)
movq %rbx, %rsi
movq %r12, %rdx
movq %r15, %rcx
callq 0x11c0
movsbl 0xc(%r14), %edi
movq %r15, %rsi
callq 0x10f0
movq %r14, -0x38(%rbp)
movsbl 0xd(%r14), %edi
movq %r15, -0x30(%rbp)
movq %r15, %rsi
callq 0x10f0
xorl %r13d, %r13d
xorl %ecx, %ecx
movq -0x30(%rbp), %r15
movq -0x40(%rbp), %rax
movl (%rax), %eax
cmpq %rax, %rcx
jae 0x2229
movq -0x38(%rbp), %rax
movq 0x10(%rax), %r12
leaq (%r12,%r13), %r14
leaq (%r12,%r13), %rdi
addq $0x8, %rdi
movq %rbx, %rsi
pushq $0x1
popq %rdx
movq %rcx, -0x48(%rbp)
movq %r15, %rcx
callq 0x11c0
movq %r14, %rdi
movq %rbx, %rsi
pushq $0x1
popq %rdx
movq %r15, %rcx
callq 0x11c0
leaq (%r12,%r13), %r14
addq $0xc, %r14
movq %r14, %rdi
movq %rbx, %rsi
pushq $0x1
popq %rdx
movq %r15, %rcx
callq 0x11c0
movq 0x4(%r14), %rdi
movl -0xc(%r14), %edx
pushq $0x10
popq %rsi
movq %r15, %rcx
callq 0x11c0
movq -0x48(%rbp), %rcx
incq %rcx
addq $0x18, %r13
jmp 0x21ae
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq