LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O0/ngkaho1234[P]ext4-extents-tree/rbtree.c
// Function: rb_augment_path
static void rb_augment_path(struct rb_node *node, rb_augment_f func,
			      void *data)
{
	struct rb_node *parent;

up:
	func(node, data);
	parent = rb_parent(node);
	if (!parent)
		return;

	if (node == parent->rb_left && parent->rb_right)
		func(parent->rb_right, data);
	else if (parent->rb_left)
		func(parent->rb_left, data);

	node = parent;
	goto up;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq *%rax
movq -0x8(%rbp), %rax
movq (%rax), %rax
andq $-0x4, %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x4dce
addq $0x20, %rsp
popq %rbp
retq
movq -0x8(%rbp), %rax
movq -0x20(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x4dfb
movq -0x20(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x4dfb
movq -0x10(%rbp), %rax
movq -0x20(%rbp), %rcx
movq 0x8(%rcx), %rdi
movq -0x18(%rbp), %rsi
callq *%rax
jmp 0x4e1a
movq -0x20(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x4e18
movq -0x10(%rbp), %rax
movq -0x20(%rbp), %rcx
movq 0x10(%rcx), %rdi
movq -0x18(%rbp), %rsi
callq *%rax
jmp 0x4e1a
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x4da4
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/ngkaho1234[P]ext4-extents-tree/rbtree.c
// Function: rb_augment_erase_begin
struct rb_node *rb_augment_erase_begin(struct rb_node *node)
{
	struct rb_node *deepest;

	if (!node->rb_right && !node->rb_left)
		deepest = rb_parent(node);
	else if (!node->rb_right)
		deepest = node->rb_left;
	else if (!node->rb_left)
		deepest = node->rb_right;
	else {
		deepest = rb_next(node);
		if (deepest->rb_right)
			deepest = deepest->rb_right;
		else if (rb_parent(deepest) != node)
			deepest = rb_parent(deepest);
	}

	return deepest;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x4e66
movq -0x8(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x4e66
movq -0x8(%rbp), %rax
movq (%rax), %rax
andq $-0x4, %rax
movq %rax, -0x10(%rbp)
jmp 0x4ee6
movq -0x8(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x4e7f
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x4ee4
movq -0x8(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x4e98
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x4ee2
movq -0x8(%rbp), %rdi
callq 0x4ef0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x4ebe
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x4ee0
movq -0x10(%rbp), %rax
movq (%rax), %rax
andq $-0x4, %rax
cmpq -0x8(%rbp), %rax
je 0x4ede
movq -0x10(%rbp), %rax
movq (%rax), %rax
andq $-0x4, %rax
movq %rax, -0x10(%rbp)
jmp 0x4ee0
jmp 0x4ee2
jmp 0x4ee4
jmp 0x4ee6
movq -0x10(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/ngkaho1234[P]ext4-extents-tree/rbtree.c
// Function: rb_next
struct rb_node *rb_next(const struct rb_node *node)
{
	struct rb_node *parent;

	if (rb_parent(node) == node)
		return NULL;

	/* If we have a right-hand child, go down and then left as far
		as we can. */
	if (node->rb_right) {
		node = node->rb_right;
		while (node->rb_left)
			node = node->rb_left;
		return (struct rb_node *)node;
	}

	/* No right-hand children.  Everything down and left is
	   smaller than us, so any 'next' node must be in the general
	   direction of our parent. Go up the tree; any time the
	   ancestor is a right-hand child of its parent, keep going
	   up. First time it's a left-hand child of its parent, said
	   parent is our 'next' node. */
	while ((parent = rb_parent(node)) && node == parent->rb_right)
		node = parent;

	return parent;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
andq $-0x4, %rax
cmpq -0x10(%rbp), %rax
jne 0x4f16
movq $0x0, -0x8(%rbp)
jmp 0x4f99
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x4f50
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x4f46
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x4f2d
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x4f99
jmp 0x4f52
movq -0x10(%rbp), %rax
movq (%rax), %rcx
andq $-0x4, %rcx
movq %rcx, -0x18(%rbp)
xorl %eax, %eax
cmpq $0x0, %rcx
movb %al, -0x19(%rbp)
je 0x4f7e
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
cmpq 0x8(%rcx), %rax
sete %al
movb %al, -0x19(%rbp)
movb -0x19(%rbp), %al
testb $0x1, %al
jne 0x4f87
jmp 0x4f91
movq -0x18(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0x4f52
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/ngkaho1234[P]ext4-extents-tree/rbtree.c
// Function: rb_first
struct rb_node *rb_first(const struct rb_root *root)
{
	struct rb_node *n;

	n = root->rb_node;
	if (!n)
		return NULL;
	while (n->rb_left)
		n = n->rb_left;
	return n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x5004
movq $0x0, -0x8(%rbp)
jmp 0x5027
jmp 0x5006
movq -0x18(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x501f
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x5006
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/ngkaho1234[P]ext4-extents-tree/rbtree.c
// Function: rb_last
struct rb_node *rb_last(const struct rb_root *root)
{
	struct rb_node *n;

	n = root->rb_node;
	if (!n)
		return NULL;
	while (n->rb_right)
		n = n->rb_right;
	return n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x5054
movq $0x0, -0x8(%rbp)
jmp 0x5077
jmp 0x5056
movq -0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x506f
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x5056
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/ngkaho1234[P]ext4-extents-tree/rbtree.c
// Function: rb_prev
struct rb_node *rb_prev(const struct rb_node *node)
{
	struct rb_node *parent;

	if (rb_parent(node) == node)
		return NULL;

	/* If we have a left-hand child, go down and then right as far
	   as we can. */
	if (node->rb_left) {
		node = node->rb_left;
		while (node->rb_right)
			node = node->rb_right;
		return (struct rb_node *)node;
	}

	/* No left-hand children. Go up till we find an ancestor which
	   is a right-hand child of its parent */
	while ((parent = rb_parent(node)) && node == parent->rb_left)
		node = parent;

	return parent;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
andq $-0x4, %rax
cmpq -0x10(%rbp), %rax
jne 0x50a6
movq $0x0, -0x8(%rbp)
jmp 0x5129
movq -0x10(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x50e0
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x50d6
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x50bd
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x5129
jmp 0x50e2
movq -0x10(%rbp), %rax
movq (%rax), %rcx
andq $-0x4, %rcx
movq %rcx, -0x18(%rbp)
xorl %eax, %eax
cmpq $0x0, %rcx
movb %al, -0x19(%rbp)
je 0x510e
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
cmpq 0x10(%rcx), %rax
sete %al
movb %al, -0x19(%rbp)
movb -0x19(%rbp), %al
testb $0x1, %al
jne 0x5117
jmp 0x5121
movq -0x18(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0x50e2
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/ngkaho1234[P]ext4-extents-tree/rbtree.c
// Function: rb_replace_node
void rb_replace_node(struct rb_node *victim, struct rb_node *new,
		       struct rb_root *root)
{
	struct rb_node *parent = rb_parent(victim);

	/* Set the surrounding nodes to point to the replacement */
	if (parent) {
		if (victim == parent->rb_left)
			parent->rb_left = new;
		else
			parent->rb_right = new;
	} else {
		root->rb_node = new;
	}
	if (victim->rb_left)
		rb_set_parent(victim->rb_left, new);
	if (victim->rb_right)
		rb_set_parent(victim->rb_right, new);

	/* Copy the pointers/colour from the victim to the replacement */
	*new = *victim;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
andq $-0x4, %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x5184
movq -0x8(%rbp), %rax
movq -0x20(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x5176
movq -0x10(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x5182
movq -0x10(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0x518f
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x51ab
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x4990
movq -0x8(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x51c7
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x4990
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rax)
movq 0x10(%rcx), %rcx
movq %rcx, 0x10(%rax)
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/ngkaho1234[P]ext4-extents-tree/rbtree.c
// Function: rb_erase
void rb_erase(struct rb_node *node, struct rb_root *root)
{
	if (node == root->rb_leftmost)
		root->rb_leftmost = rb_next(node);
	if (node == root->rb_rightmost)
		root->rb_rightmost = rb_prev(node);

	__rb_erase(node, root);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x5222
movq -0x8(%rbp), %rdi
callq 0x4ef0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x5244
movq -0x8(%rbp), %rdi
callq 0x5080
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x4780
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/ngkaho1234[P]ext4-extents-tree/rbtree.c
// Function: rb_insert
void rb_insert(struct rb_root *root, struct rb_node *node,
		 int (*cmp)(struct rb_node *, struct rb_node *))
{
	struct rb_node **new = &(root->rb_node), *parent = NULL;
	int leftmost = 1, rightmost = 1;

	/* Figure out where to put new node */
	while (*new) {
		int result = cmp(node, *new);

		parent = *new;
		if (result < 0) {
			rightmost = 0;
			new = &((*new)->rb_left);
		} else if (result > 0) {
			leftmost = 0;
			new = &((*new)->rb_right);
		} else
			return;
	}

	/* Add new node and rebalance tree. */
	if (rightmost)
		root->rb_rightmost = node;
	if (leftmost)
		root->rb_leftmost = node;
	rb_link_node(node, parent, new);
	rb_insert_color(node, root);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq $0x0, -0x28(%rbp)
movl $0x1, -0x2c(%rbp)
movl $0x1, -0x30(%rbp)
movq -0x20(%rbp), %rax
cmpq $0x0, (%rax)
je 0x52fd
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rcx
movq (%rcx), %rsi
callq *%rax
movl %eax, -0x34(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
cmpl $0x0, -0x34(%rbp)
jge 0x52d9
movl $0x0, -0x30(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
addq $0x10, %rax
movq %rax, -0x20(%rbp)
jmp 0x52fb
cmpl $0x0, -0x34(%rbp)
jle 0x52f7
movl $0x0, -0x2c(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
addq $0x8, %rax
movq %rax, -0x20(%rbp)
jmp 0x52f9
jmp 0x533f
jmp 0x52fb
jmp 0x5292
cmpl $0x0, -0x30(%rbp)
je 0x530f
movq -0x10(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
cmpl $0x0, -0x2c(%rbp)
je 0x5321
movq -0x10(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x5350
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0x43e0
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/ngkaho1234[P]ext4-extents-tree/ext4_crc32.c
// Function: ext4_crc32c
uint32_t
ext4_crc32c(uint32_t crc, const void *buf, size_t size)
{
	const uint8_t *p = buf;


	while (size--)
		crc = crc32Table[(crc ^ *p++) & 0xff] ^ (crc >> 8);

	return crc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, -0x18(%rbp)
cmpq $0x0, %rax
je 0x5423
movl -0x4(%rbp), %eax
movq -0x20(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movzbl (%rcx), %ecx
xorl %ecx, %eax
andl $0xff, %eax
movl %eax, %eax
movl %eax, %ecx
leaq 0x51ad(%rip), %rax      # 0xa5c0
movl (%rax,%rcx,4), %eax
movl -0x4(%rbp), %ecx
shrl $0x8, %ecx
xorl %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x53d7
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/ngkaho1234[P]ext4-extents-tree/db_bitmap.c
// Function: save_all_bitmap
void save_all_bitmap(struct super_block *sb, struct db_bitmap *db_bitmap)
{
	int i, err = 0;
	int bitmap_nrblocks = db_bitmap->bitmap_count;
	uint8_t *bitmap = db_bitmap->bitmap;
	ext4_fsblk_t bitmap_block = db_bitmap->bitmap_block;

	for (i = 0;i < bitmap_nrblocks;i++) {
		struct buffer_head *bh;
		if (db_bitmap->bitmap_desc[i].dirty) {
			bh = fs_bwrite(sb, bitmap_block + i, &err);
			if (err)
				goto out;

			memcpy(bh->b_data, bitmap + (i << sb->s_blocksize_bits),
				sb->s_blocksize);
			fs_mark_buffer_dirty(bh);
			fs_brelse(bh);
			db_bitmap->bitmap_desc[i].dirty = 0;
		}
	}
out:
	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x18(%rbp)
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x30(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x58f0
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x14(%rbp), %rcx
movb (%rax,%rcx,4), %al
shlb $0x7, %al
sarb $0x7, %al
movsbl %al, %eax
cmpl $0x0, %eax
je 0x58e0
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq %rax, %rsi
leaq -0x18(%rbp), %rdx
callq 0x2920
movq %rax, -0x38(%rbp)
cmpl $0x0, -0x18(%rbp)
je 0x588d
jmp 0x58f2
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x28(%rbp), %rsi
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
movl 0x8(%rcx), %ecx
shll %cl, %eax
cltq
addq %rax, %rsi
movq -0x8(%rbp), %rax
movq (%rax), %rdx
callq 0x2180
movq -0x38(%rbp), %rdi
callq 0x29b0
movq -0x38(%rbp), %rdi
callq 0x2980
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x14(%rbp), %rcx
movb (%rax,%rcx,4), %dl
andb $-0x2, %dl
orb $0x0, %dl
movb %dl, (%rax,%rcx,4)
jmp 0x58e2
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x5840
jmp 0x58f2
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/ngkaho1234[P]ext4-extents-tree/db_bitmap.c
// Function: bitmap_bits_set
void bitmap_bits_set(struct db_bitmap *db_bitmap, ext4_fsblk_t bit)
{
	uint8_t *bitmap = db_bitmap->bitmap;
	int bitmap_block = 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 %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
movq (%rcx), %rcx
movl 0x8(%rcx), %ecx
shll $0x3, %ecx
movl %ecx, %ecx
shrq %cl, %rax
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rax
andq $0x7, %rax
movl %eax, %ecx
movl $0x1, %esi
shll %cl, %esi
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
shrq $0x3, %rcx
movzbl (%rax,%rcx), %edx
orl %esi, %edx
movb %dl, (%rax,%rcx)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x1c(%rbp), %rcx
movb (%rax,%rcx,4), %dl
andb $-0x2, %dl
orb $0x1, %dl
movb %dl, (%rax,%rcx,4)
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
andq $0x7, %rax
cmpq $0x0, %rax
je 0x5a68
cmpl $0x0, -0x14(%rbp)
jne 0x5a40
jmp 0x5b4c
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x5b60
movl -0x14(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x14(%rbp)
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x5a27
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
shrq $0x3, %rax
addq -0x28(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpl $0x20, -0x14(%rbp)
jb 0x5ab3
movq -0x28(%rbp), %rax
movl $0x0, (%rax)
movq -0x28(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x28(%rbp)
movl -0x14(%rbp), %eax
subl $0x20, %eax
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x10(%rbp)
jmp 0x5a80
jmp 0x5ab5
cmpl $0x10, -0x14(%rbp)
jb 0x5ae7
movq -0x28(%rbp), %rax
movw $0x0, (%rax)
movq -0x28(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x28(%rbp)
movl -0x14(%rbp), %eax
subl $0x10, %eax
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x10(%rbp)
jmp 0x5ab5
jmp 0x5ae9
cmpl $0x8, -0x14(%rbp)
jb 0x5b19
movq -0x28(%rbp), %rax
movb $0x0, (%rax)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movl -0x14(%rbp), %eax
subl $0x8, %eax
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x10(%rbp)
jmp 0x5ae9
movq $0x0, -0x20(%rbp)
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
cmpq %rcx, %rax
jae 0x5b4c
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x5b60
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x5b21
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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 %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
movq 0x8(%rcx), %rcx
subq %rcx, %rax
movq -0x8(%rbp), %rcx
movq (%rcx), %rcx
movl 0x8(%rcx), %ecx
sarq %cl, %rax
movq -0x18(%rbp), %rdx
movq -0x8(%rbp), %rcx
movq (%rcx), %rcx
movl 0x8(%rcx), %ecx
shll $0x3, %ecx
movl %ecx, %ecx
shrq %cl, %rdx
movq %rdx, %rcx
addq %rcx, %rax
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rax
andq $0x7, %rax
movl %eax, %ecx
movl $0x1, %esi
shll %cl, %esi
xorl $-0x1, %esi
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
shrq $0x3, %rcx
movzbl (%rax,%rcx), %edx
andl %esi, %edx
movb %dl, (%rax,%rcx)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x1c(%rbp), %rcx
movb (%rax,%rcx,4), %dl
andb $-0x2, %dl
orb $0x1, %dl
movb %dl, (%rax,%rcx,4)
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/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
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl $0x0, -0x34(%rbp)
movl $0x1, %edi
movl $0x28, %esi
callq 0x2140
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x5eca
movq $0x0, -0x8(%rbp)
jmp 0x5fba
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq -0x34(%rbp), %rdx
callq 0x2860
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x5eef
movl $0xfffffff4, -0x34(%rbp) # imm = 0xFFFFFFF4
jmp 0x5f57
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x4(%rax), %rsi
movq -0x20(%rbp), %rax
movq 0xc(%rax), %rdx
callq 0x54c0
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x5f3f
movl $0xfffffff4, -0x34(%rbp) # imm = 0xFFFFFFF4
jmp 0x5f57
movq -0x30(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x18(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x20(%rax)
cmpl $0x0, -0x34(%rbp)
je 0x5fb2
cmpq $0x0, -0x30(%rbp)
je 0x5f6d
movq -0x30(%rbp), %rdi
callq 0x5730
cmpq $0x0, -0x28(%rbp)
je 0x5faa
cmpq $0x0, -0x28(%rbp)
jne 0x5f98
movq 0x8076(%rip), %rax      # 0xdff8
movq (%rax), %rdi
leaq 0x416e(%rip), %rsi      # 0xa0fa
movl $0x22, %edx
movb $0x0, %al
callq 0x2170
cmpq $0x0, -0x28(%rbp)
je 0x5fa8
movq -0x28(%rbp), %rdi
callq 0x2030
jmp 0x5faa
movq $0x0, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rsi
callq 0x5800
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x5730
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x2980
cmpq $0x0, -0x8(%rbp)
jne 0x602e
movq 0x7fe0(%rip), %rax      # 0xdff8
movq (%rax), %rdi
leaq 0x40d8(%rip), %rsi      # 0xa0fa
movl $0x2e, %edx
movb $0x0, %al
callq 0x2170
cmpq $0x0, -0x8(%rbp)
je 0x603e
movq -0x8(%rbp), %rdi
callq 0x2030
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
// File: /workspace/github_c_makefile_star2_O0/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
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
callq 0x62b0
movl %eax, -0x40(%rbp)
movl $0x48, %edi
callq 0x21c0
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
jne 0x616e
movq $0x0, -0x8(%rbp)
jmp 0x6298
movl -0x40(%rbp), %eax
addl $0x1, %eax
cltq
imulq $0x18, %rax, %rsi
movl $0x1, %edi
callq 0x2140
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0x61a5
movq -0x48(%rbp), %rdi
callq 0x2030
movq $0x0, -0x8(%rbp)
jmp 0x6298
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
cmpl -0x40(%rbp), %eax
jg 0x61d6
movq -0x30(%rbp), %rax
movslq -0x3c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq $-0x1, 0x10(%rax)
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x61ac
movq -0x10(%rbp), %rcx
movq -0x48(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rcx
movq -0x48(%rbp), %rax
movq %rcx, (%rax)
movq -0x20(%rbp), %rcx
movq -0x48(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x48(%rbp), %rax
leaq 0x7f7c(%rip), %rcx      # 0xe180
movq (%rcx), %rdx
movq %rdx, 0x18(%rax)
movq 0x8(%rcx), %rdx
movq %rdx, 0x20(%rax)
movq 0x10(%rcx), %rcx
movq %rcx, 0x28(%rax)
movq -0x30(%rbp), %rcx
movq -0x48(%rbp), %rax
movq %rcx, 0x30(%rax)
movl -0x40(%rbp), %ecx
movq -0x48(%rbp), %rax
movl %ecx, 0x40(%rax)
movq -0x28(%rbp), %rcx
movq -0x48(%rbp), %rax
movq %rcx, 0x38(%rax)
movq -0x48(%rbp), %rax
movq 0x30(%rax), %rax
movslq -0x40(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq $0x0, (%rax)
movq -0x48(%rbp), %rax
movq (%rax), %rcx
movq -0x48(%rbp), %rax
movq 0x30(%rax), %rax
movslq -0x40(%rbp), %rdx
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x8(%rax)
movq -0x48(%rbp), %rax
movq 0x30(%rax), %rax
movslq -0x40(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq $-0x1, 0x10(%rax)
movq -0x48(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq -0x8(%rbp), %rax
movl 0x40(%rax), %eax
movl %eax, -0x18(%rbp)
cmpl $0x0, -0xc(%rbp)
jge 0x6326
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x18(%rbp), %eax
jg 0x6324
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
movslq -0x14(%rbp), %rax
imulq $0x18, %rax, %rax
addq %rax, %rdi
callq 0x6380
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x62f9
jmp 0x6378
movl -0xc(%rbp), %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %ecx
xorl %eax, %eax
cmpl -0x18(%rbp), %ecx
movb %al, -0x19(%rbp)
jg 0x634a
movl -0x14(%rbp), %eax
movl -0xc(%rbp), %ecx
addl -0x10(%rbp), %ecx
cmpl %ecx, %eax
setl %al
movb %al, -0x19(%rbp)
movb -0x19(%rbp), %al
testb $0x1, %al
jne 0x6353
jmp 0x6376
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
movslq -0x14(%rbp), %rax
imulq $0x18, %rax, %rax
addq %rax, %rdi
callq 0x6380
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x632c
jmp 0x6378
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/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:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x63d0
movq -0x8(%rbp), %rax
cmpq $0x0, (%rax)
je 0x63b8
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x2980
movq -0x8(%rbp), %rax
movq $0x0, (%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x10(%rax)
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/ngkaho1234[P]ext4-extents-tree/extents.c
// Function: ext4_ext_binsearch_node
static void
ext4_ext_binsearch_node(void *buf, ext4_lblk_t lblock, ssize_t *ptr)
{
	int diff = 0;
	/* search range: @lower <= @mid <= @upper */
	ssize_t lower;
	ssize_t upper;
	ssize_t mid = 0;
	struct ext4_extent_header *hdr;
	struct ext4_extent_idx *idx;

	hdr = buf;
	lower = 0;
	upper = ext4_ext_header_entries(hdr) - 1;

	while (lower <= upper) {
		mid = (lower + upper) / 2;
		idx = EXT_FIRST_INDEX(hdr) + mid;
		diff = ext4_ext_lblock_cmp(lblock, ext4_idx_lblock(idx));
		if (!diff)
			break;
		else if (diff < 0)
			upper = mid - 1;
		else
			lower = mid + 1;
	}
	/*
	 * Decrement @mid if @lblock is smaller than the logical block of the
	 * index.
	 */
	if (diff < 0 && mid)
		--mid;
	*ptr = mid;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movq $0x0, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
movq $0x0, -0x28(%rbp)
movq -0x40(%rbp), %rdi
callq 0x69a0
movzwl %ax, %eax
subl $0x1, %eax
cltq
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jg 0x6803
movq -0x28(%rbp), %rax
addq -0x30(%rbp), %rax
movl $0x2, %ecx
cqto
idivq %rcx
movq %rax, -0x38(%rbp)
movq -0x40(%rbp), %rax
addq $0xc, %rax
imulq $0xc, -0x38(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x4c(%rbp)
movq -0x48(%rbp), %rdi
callq 0x89b0
movl -0x4c(%rbp), %edi
movl %eax, %esi
callq 0x8970
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
jne 0x67df
jmp 0x6803
cmpl $0x0, -0x1c(%rbp)
jge 0x67f3
movq -0x38(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x67ff
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x6801
jmp 0x6787
cmpl $0x0, -0x1c(%rbp)
jge 0x681c
cmpq $0x0, -0x38(%rbp)
je 0x681c
movq -0x38(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/ngkaho1234[P]ext4-extents-tree/extents.c
// Function: ext4_ext_binsearch_leaf
static void
ext4_ext_binsearch_leaf(void *buf, ext4_lblk_t lblock, ssize_t *ptr)
{
	int diff = 0;
	/* search range: @lower <= @mid <= @upper */
	ssize_t lower;
	ssize_t upper;
	ssize_t mid = 0;
	struct ext4_extent_header *hdr;
	struct ext4_extent *ext;

	hdr = buf;
	lower = 0;
	upper = ext4_ext_header_entries(hdr) - 1;

	while (lower <= upper) {
		mid = (lower + upper) / 2;
		ext = EXT_FIRST_EXTENT(hdr) + mid;
		diff = ext4_ext_lblock_cmp(lblock, ext4_ext_lblock(ext));
		if (ext4_ext_in_range(lblock, ext)) {
			diff = 0;
			break;
		} else if (diff < 0) {
			upper = mid - 1;
		} else {
			lower = mid + 1;
		}
	}
	/*
	 * Decrement @mid if @lblock is smaller than the logical block of the
	 * extent.
	 */
	if (diff < 0 && mid)
		--mid;
	*ptr = mid;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movq $0x0, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
movq $0x0, -0x28(%rbp)
movq -0x40(%rbp), %rdi
callq 0x69a0
movzwl %ax, %eax
subl $0x1, %eax
cltq
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jg 0x6943
movq -0x28(%rbp), %rax
addq -0x30(%rbp), %rax
movl $0x2, %ecx
cqto
idivq %rcx
movq %rax, -0x38(%rbp)
movq -0x40(%rbp), %rax
addq $0xc, %rax
imulq $0xc, -0x38(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x50(%rbp)
movq -0x48(%rbp), %rdi
callq 0x69c0
movl -0x50(%rbp), %edi
movl %eax, %esi
callq 0x8970
movl %eax, -0x1c(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x4c(%rbp)
movq -0x48(%rbp), %rdi
callq 0x69c0
movl %eax, %ecx
movl -0x4c(%rbp), %eax
cmpl %ecx, %eax
jb 0x691c
movl -0xc(%rbp), %eax
movl %eax, -0x54(%rbp)
movq -0x48(%rbp), %rdi
callq 0x69c0
movl %eax, -0x58(%rbp)
movq -0x48(%rbp), %rdi
callq 0x69d0
movl -0x58(%rbp), %ecx
movw %ax, %dx
movl -0x54(%rbp), %eax
movzwl %dx, %edx
addl %edx, %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
ja 0x691c
movl $0x0, -0x1c(%rbp)
jmp 0x6943
cmpl $0x0, -0x1c(%rbp)
jge 0x6930
movq -0x38(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x693c
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x693e
jmp 0x6877
cmpl $0x0, -0x1c(%rbp)
jge 0x695c
cmpq $0x0, -0x38(%rbp)
je 0x695c
movq -0x38(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/ngkaho1234[P]ext4-extents-tree/extents.c
// Function: ext4_ext_cursor_ext
struct ext4_extent *
ext4_ext_cursor_ext(struct ext4_ext_cursor *cur)
{
	struct ext4_extent_header *hdr;

	hdr = cur->c_paths[0].p_hdr;

	if (!hdr || cur->c_paths[0].p_ptr == -1)
		return NULL;
	return EXT_FIRST_EXTENT(hdr) + cur->c_paths[0].p_ptr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x6a3e
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rax
cmpq $-0x1, 0x10(%rax)
jne 0x6a48
movq $0x0, -0x8(%rbp)
jmp 0x6a64
movq -0x18(%rbp), %rax
addq $0xc, %rax
movq -0x10(%rbp), %rcx
movq 0x30(%rcx), %rcx
imulq $0xc, 0x10(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/ngkaho1234[P]ext4-extents-tree/extents.c
// Function: ext4_ext_insert
int
ext4_ext_insert(struct ext4_ext_cursor *cur, struct ext4_extent *next)
{
	int ret;

	ret = ext4_ext_ensure_unfull(cur);
	if (ret)
		return ret;

	ext4_ext_insert_item(cur, 0, (union ext4_extent_item *)next, true);
	ext4_ext_update_index(cur, 0, 0);
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0x6b10
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x6ada
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x6b02
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
xorl %esi, %esi
movl $0x1, %ecx
callq 0x6e00
movq -0x10(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x7070
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movb $0x1, -0x29(%rbp)
movq -0x8(%rbp), %rdi
callq 0x6720
movl %eax, -0x30(%rbp)
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
cmpl -0x30(%rbp), %eax
jg 0x7630
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movslq -0x18(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movslq -0x18(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x7623
cmpq $0x0, -0x28(%rbp)
je 0x7623
cmpq $-0x1, -0x28(%rbp)
je 0x7623
jmp 0x7630
jmp 0x7625
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x75ce
movl -0x18(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0x30(%rbp), %eax
jle 0x7640
jmp 0x767f
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x10(%rax)
movq -0x8(%rbp), %rdi
movl -0x1c(%rbp), %esi
movl $0x1, %edx
callq 0x7280
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x767b
jmp 0x767f
movb $0x0, -0x29(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x7692
movb -0x29(%rbp), %cl
movq -0x10(%rbp), %rax
andb $0x1, %cl
movb %cl, (%rax)
movl -0x14(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movb $0x1, -0x29(%rbp)
movq -0x8(%rbp), %rdi
callq 0x6720
movl %eax, -0x30(%rbp)
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
cmpl -0x30(%rbp), %eax
jg 0x7752
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movslq -0x18(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movslq -0x18(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x7742
cmpq $-0x1, -0x28(%rbp)
je 0x7742
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
callq 0x69a0
movw %ax, %cx
movq -0x40(%rbp), %rax
movzwl %cx, %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
cmpq %rcx, %rax
jge 0x7742
jmp 0x7752
jmp 0x7744
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x76ce
movl -0x18(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0x30(%rbp), %eax
jle 0x7762
jmp 0x779e
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x10(%rax)
movq -0x8(%rbp), %rdi
movl -0x1c(%rbp), %esi
xorl %edx, %edx
callq 0x7280
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x779a
jmp 0x779e
movb $0x0, -0x29(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x77b1
movb -0x29(%rbp), %cl
movq -0x10(%rbp), %rax
andb $0x1, %cl
movb %cl, (%rax)
movl -0x14(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/ngkaho1234[P]ext4-extents-tree/extents.c
// Function: ext4_ext_store_block
static inline void
ext4_ext_store_block(struct ext4_extent *ext, ext4_fsblk_t block)
{
	ext->ee_start_lo =
	    ext4_cpu_to_le32((unsigned long)(block & 0xffffffff));
	ext->ee_start_hi =
	    ext4_cpu_to_le16((unsigned long)((block >> 31) >> 1) & 0xffff);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movabsq $0xffffffff, %rax       # imm = 0xFFFFFFFF
andq -0x10(%rbp), %rax
movl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x10(%rbp), %rax
shrq $0x1f, %rax
shrq %rax
andq $0xffff, %rax           # imm = 0xFFFF
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, 0x6(%rax)
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/ngkaho1234[P]ext4-extents-tree/extents.c
// Function: ext4_ext_delete_node
static int
ext4_ext_delete_node(struct ext4_ext_cursor *cur,
		     int depth)
{
	int ret = 0;
	ssize_t ptr;
	ext4_fsblk_t blocknr;
	struct ext4_extent_idx *idx;
	struct ext4_extent_header *hdr;

	/*
	 * If we leave nothing in the node after
	 * deletion of an item, we free the block and
	 * delete the index of the node.
	 */

	/*
	 * Get the respective key of the node in the
	 * parent level
	 */
	hdr = cur->c_paths[depth].p_hdr;
	ext4_assert(ext4_ext_header_entries(hdr) > 0);
	ptr = cur->c_paths[depth].p_ptr;
	idx = EXT_FIRST_INDEX(hdr) + ptr;
	blocknr = ext4_idx_block(idx);

	/*
	 * Delete the index pointed to by the path.
	 */
	ext4_ext_delete_item(cur, depth);

	/*
	 * Free the block of it.
	 */
	cur->c_cursor_op.c_free_block_func(cur, blocknr);

	return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl $0x0, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movslq -0xc(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
callq 0x69a0
movzwl %ax, %eax
cmpl $0x0, %eax
jle 0x8014
jmp 0x8033
leaq 0x2d1f(%rip), %rdi      # 0xad3a
leaq 0x29b9(%rip), %rsi      # 0xa9db
movl $0x7fc, %edx            # imm = 0x7FC
leaq 0x2d2d(%rip), %rcx      # 0xad5b
callq 0x20c0
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movslq -0xc(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x30(%rbp), %rax
addq $0xc, %rax
imulq $0xc, -0x18(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
callq 0x6970
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x84d0
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq *%rax
movl -0x10(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x6720
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x40(%rcx), %eax
jle 0x8152
movq -0x10(%rbp), %rax
movl 0x40(%rax), %eax
movl %eax, -0x20(%rbp)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
cltq
imulq $0x18, %rax, %rdi
callq 0x21c0
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x8116
movl $0xc, -0x4(%rbp)
jmp 0x81ac
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rsi
movslq -0x20(%rbp), %rax
imulq $0x18, %rax, %rdx
callq 0x2180
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x2030
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x30(%rax)
movl -0x1c(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x40(%rax)
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq $0x0, (%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rax
movslq -0x1c(%rbp), %rdx
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq $-0x1, 0x10(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movslq -0xc(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movslq -0xc(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
addq $0xc, %rax
imulq $0xc, -0x18(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rdi
callq 0x69a0
cmpw $0x0, %ax
je 0x853a
jmp 0x8559
leaq 0x2852(%rip), %rdi      # 0xad93
leaq 0x2493(%rip), %rsi      # 0xa9db
movl $0x4d0, %edx            # imm = 0x4D0
leaq 0x285c(%rip), %rcx      # 0xadb0
callq 0x20c0
movq -0x28(%rbp), %rax
addq $0xc, %rax
movq -0x28(%rbp), %rcx
movzwl 0x2(%rcx), %ecx
movslq %ecx, %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
addq $-0xc, %rax
movq -0x30(%rbp), %rcx
addq $0xc, %rcx
subq %rcx, %rax
movl $0xc, %ecx
cqto
idivq %rcx
addq $0x1, %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x85dc
movq -0x30(%rbp), %rdi
movq -0x30(%rbp), %rsi
addq $0xc, %rsi
imulq $0xc, -0x20(%rbp), %rdx
callq 0x2210
movq -0x28(%rbp), %rdi
addq $0xc, %rdi
movq -0x28(%rbp), %rax
movzwl 0x2(%rax), %eax
cltq
imulq $0xc, %rax, %rax
addq %rax, %rdi
addq $-0xc, %rdi
xorl %esi, %esi
movl $0xc, %edx
callq 0x20d0
jmp 0x85ec
movq -0x30(%rbp), %rdi
xorl %esi, %esi
movl $0xc, %edx
callq 0x20d0
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x28(%rbp), %rdi
callq 0x69a0
movq -0x40(%rbp), %rdi
movzwl %ax, %eax
subl $0x1, %eax
movzwl %ax, %esi
callq 0x87e0
movl -0xc(%rbp), %eax
movl %eax, -0x34(%rbp)
movq -0x8(%rbp), %rdi
callq 0x6720
movl %eax, %ecx
movl -0x34(%rbp), %eax
cmpl %ecx, %eax
jne 0x8637
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x8(%rbp), %rdi
callq *%rax
jmp 0x8652
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movslq -0xc(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
callq 0x29b0
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/ngkaho1234[P]ext4-extents-tree/extents.c
// Function: ext4_ext_try_merge
static int
ext4_ext_try_merge(struct ext4_ext_cursor *cur, int depth,
		   struct ext4_ext_cursor **ncurp, int *mergedp)
{
	int ret;

	ret = ext4_ext_try_merge_left(cur, depth, ncurp, mergedp);
	if (ret || *mergedp)
		return ret;
	ret = ext4_ext_try_merge_right(cur, depth, ncurp, mergedp);
	return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0x8f10
movl %eax, -0x2c(%rbp)
cmpl $0x0, -0x2c(%rbp)
jne 0x869d
movq -0x28(%rbp), %rax
cmpl $0x0, (%rax)
je 0x86a5
movl -0x2c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x86c2
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0x90b0
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)