LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/create_edge.c
// Function: linking
static void     linking(t_room *room, t_room *to_link,
                        t_edge *edge, t_edge *edge_link)
{
  edge_link->connect = room;
  edge_link->next = to_link->edges;
  to_link->edges = edge_link;
  edge->connect = to_link;
  edge->next = room->edges;
  room->edges = edge;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x20(%rax)
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/check_info.c
// Function: check_number
int     check_number(const char *str)
{
  int   i;

  i = 0;
  while (str[i])
    {
      if (str[i] >= '0' && str[i] <= '9')
	i++;
      else
	return (ERROR);
    }
  return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
cmpb $0x0, (%rax,%rcx)
je 0x2065
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x30, %eax
jl 0x205a
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x39, %eax
jg 0x205a
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x2063
movl $0x1, -0x4(%rbp)
jmp 0x206c
jmp 0x201f
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/check_info.c
// Function: check_twice
int             check_twice(t_anthill *anthill,
			    const char *name,
			    const int x, const int y)
{
  t_room	*room;

  room = anthill->first;
  while (room)
    {
      if ((my_strcmp(room->name, name) == 0 ||
           (x == room->x && y == room->y)))
        return (ERROR);
      room = room->next;
    }
  return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movl %ecx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x20ee
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x18(%rbp), %rsi
callq 0x1410
cmpl $0x0, %eax
je 0x20d7
movl -0x1c(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl 0x18(%rcx), %eax
jne 0x20e0
movl -0x20(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl 0x1c(%rcx), %eax
jne 0x20e0
movl $0x1, -0x4(%rbp)
jmp 0x20f5
movq -0x28(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x28(%rbp)
jmp 0x20a2
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/check_info.c
// Function: check_pos
int     check_pos(const char *s)
{
  int   i;

  i = 0;
  while (s[i])
    {
      if ((s[i] >= '0' && s[i] <= '9') || s[i] == '-')
        i++;
      else
	return (ERROR);
    }
  return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
cmpb $0x0, (%rax,%rcx)
je 0x2166
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x30, %eax
jl 0x213f
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x39, %eax
jle 0x2150
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x2d, %eax
jne 0x215b
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x2164
movl $0x1, -0x4(%rbp)
jmp 0x216d
jmp 0x210f
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/check_info.c
// Function: setup_room
int     setup_room(char **tab, t_anthill *anthill,
		   t_room *room)
{
  room->ants = 0;
  room->mark = FALSE;
  room->distance = -1;
  if ((check_pos(tab[1]) == ERROR) ||
      (check_pos(tab[2]) == ERROR))
    return (ERROR);
  room->x = my_getnbr(tab[1]);
  room->y = my_getnbr(tab[2]);
  if (check_twice(anthill, room->name,
		  room->x, room->y) == ERROR)
    return (0);
  room->next = anthill->first;
  anthill->first = room;
  room->edges = NULL;
  return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
movq -0x20(%rbp), %rax
movl $0x0, 0xc(%rax)
movq -0x20(%rbp), %rax
movl $0xffffffff, 0x8(%rax)  # imm = 0xFFFFFFFF
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x2100
cmpl $0x1, %eax
je 0x21d8
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x2100
cmpl $0x1, %eax
jne 0x21e4
movl $0x1, -0x4(%rbp)
jmp 0x226c
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x2e80
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x18(%rax)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x2e80
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x1c(%rax)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x20(%rbp), %rax
movl 0x18(%rax), %edx
movq -0x20(%rbp), %rax
movl 0x1c(%rax), %ecx
callq 0x2080
cmpl $0x1, %eax
jne 0x223d
movl $0x0, -0x4(%rbp)
jmp 0x226c
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x20(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x20(%rbp), %rax
movq $0x0, 0x20(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/print_info.c
// Function: printf_info
void	printf_info(t_list *list, t_anthill *anthill)
{
  my_printf("#number_of_ants\n");
  my_printf("%i\n", anthill->ants);
  my_printf("#rooms\n");
  print_rooms(anthill->first, anthill);
  my_printf("#tunnels\n");
  print_tunnels(list);
  my_printf("#moves\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq 0x1d94(%rip), %rdi      # 0x402b
movb $0x0, %al
callq 0x3920
movq -0x10(%rbp), %rax
movl (%rax), %esi
leaq 0x1dc1(%rip), %rdi      # 0x406c
movb $0x0, %al
callq 0x3920
leaq 0x1d83(%rip), %rdi      # 0x403c
movb $0x0, %al
callq 0x3920
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x2300
leaq 0x1d6c(%rip), %rdi      # 0x4044
movb $0x0, %al
callq 0x3920
movq -0x8(%rbp), %rdi
callq 0x23b0
leaq 0x1d5f(%rip), %rdi      # 0x404e
movb $0x0, %al
callq 0x3920
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/print_info.c
// Function: print_rooms
static void	print_rooms(t_room *room, t_anthill *anthill)
{
  if (room && anthill)
    {
      if (room->next)
	print_rooms(room->next, anthill);
      if (room == anthill->entry)
	my_printf("##start\n");
      else if (room == anthill->exit)
	my_printf("##end\n");
      my_printf("%s %i %i\n", room->name, room->x, room->y);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x239e
cmpq $0x0, -0x10(%rbp)
je 0x239e
movq -0x8(%rbp), %rax
cmpq $0x0, 0x28(%rax)
je 0x233e
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x2300
movq -0x8(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x235c
leaq 0x1d03(%rip), %rdi      # 0x4056
movb $0x0, %al
callq 0x3920
jmp 0x237a
movq -0x8(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x2378
leaq 0x1cee(%rip), %rdi      # 0x405f
movb $0x0, %al
callq 0x3920
jmp 0x237a
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x8(%rbp), %rax
movl 0x18(%rax), %edx
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %ecx
leaq 0x1ccf(%rip), %rdi      # 0x4066
movb $0x0, %al
callq 0x3920
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/print_info.c
// Function: print_tunnels
static void		print_tunnels(t_list *list)
{
  t_line		*lines;
  int			i;
  int			c;
  int			h;

  lines = list->first;
  while (lines)
    {
      i = 0;
      c = 0;
      h = 0;
      while (lines->line[i])
	{
	  if (lines->line[i] == EDGE_CHAR)
	    c++;
	  if (lines->line[i] == ' ')
	    h++;
	  i++;
	}
      if (c == 1 && h == 0 && lines->bool == TRUE)
	my_printf("%s\n", lines->line);
      lines = lines->next;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x247a
movl $0x0, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x14(%rbp), %rcx
cmpb $0x0, (%rax,%rcx)
je 0x243e
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x2d, %eax
jne 0x2416
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x20, %eax
jne 0x2433
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x23e8
cmpl $0x1, -0x18(%rbp)
jne 0x2469
cmpl $0x0, -0x1c(%rbp)
jne 0x2469
movq -0x10(%rbp), %rax
cmpl $0x1, 0x8(%rax)
jne 0x2469
movq -0x10(%rbp), %rax
movq (%rax), %rsi
leaq 0x1c0e(%rip), %rdi      # 0x4070
movb $0x0, %al
callq 0x3920
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x23c8
addq $0x20, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/clear_list.c
// Function: del_in_list
t_line		*del_in_list(t_list *list, t_line *element)
{
  t_line	*temp;

  temp = NULL;
  if (element->next == NULL)
    {
      list->last = element->prev;
      if (list->last != NULL)
	list->last->next = NULL;
    }
  else if (element->prev == NULL)
    {
      list->first = element->next;
      if (list->first != NULL)
	list->first->prev = NULL;
    }
  else
    {
      element->next->prev = element->prev;
      element->prev->next = element->next;
    }
  temp = element->next;
  free(element->line);
  list->len--;
  return (temp);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq $0x0, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x24d0
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x24ce
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq $0x0, 0x10(%rax)
jmp 0x2532
movq -0x10(%rbp), %rax
cmpq $0x0, 0x18(%rax)
jne 0x2508
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x2506
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq $0x0, 0x18(%rax)
jmp 0x2530
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rcx, 0x18(%rax)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rcx, 0x10(%rax)
jmp 0x2532
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x1030
movq -0x8(%rbp), %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/clear_list.c
// Function: get_without_hashtag
char	*get_without_hashtag(char *str)
{
  int	i;

  i = 0;
  while (str[i] != '#' && str[i] != '\0')
    i++;
  if (str[i] == '\0')
    return (str);
  if (my_compare("##start", str + i, 3) == 0)
    i = i + 7;
  else if (my_compare("##end", str + i, 3) == 0)
    i = i + 5;
  while (str[i] != '\0')
    {
      if (str[i] == '#')
	{
	  str[i] = '\0';
	  return (str);
	}
      i++;
    }
  return (str);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x23, %ecx
movb %al, -0x15(%rbp)
je 0x259e
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x15(%rbp)
movb -0x15(%rbp), %al
testb $0x1, %al
jne 0x25a7
jmp 0x25b2
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x2573
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
jne 0x25d0
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x2675
movq -0x10(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq %rax, %rsi
leaq 0x1a3b(%rip), %rdi      # 0x401d
movl $0x3, %edx
callq 0x15b0
cmpl $0x0, %eax
jne 0x25fc
movl -0x14(%rbp), %eax
addl $0x7, %eax
movl %eax, -0x14(%rbp)
jmp 0x2628
movq -0x10(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq %rax, %rsi
leaq 0x1a17(%rip), %rdi      # 0x4025
movl $0x3, %edx
callq 0x15b0
cmpl $0x0, %eax
jne 0x2626
movl -0x14(%rbp), %eax
addl $0x5, %eax
movl %eax, -0x14(%rbp)
jmp 0x2628
jmp 0x262a
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0x266d
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x23, %eax
jne 0x2662
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x2675
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x262a
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/clear_list.c
// Function: clear_list
int             clear_list(t_list *list)
{
  t_line     *element;

  if (list != NULL)
    {
      element = list->first;
      while (element)
        {
	  if (my_strlen(element->line) == 0)
	    del_in_list(list, element);
          else if (element->line[0] == '#' &&
		   my_compare(element->line, "##start", 7) != 0
		   && my_compare(element->line, "##end", 5) != 0)
	    del_in_list(list, element);
	  else
	    element->line = get_without_hashtag(element->line);
	  element = element->next;
        }
    }
  return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x2751
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x274f
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x3470
cmpl $0x0, %eax
jne 0x26ce
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x2480
jmp 0x273e
movq -0x10(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $0x23, %eax
jne 0x2726
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq 0x1932(%rip), %rsi      # 0x401d
movl $0x7, %edx
callq 0x15b0
cmpl $0x0, %eax
je 0x2726
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq 0x191d(%rip), %rsi      # 0x4025
movl $0x5, %edx
callq 0x15b0
cmpl $0x0, %eax
je 0x2726
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x2480
jmp 0x273c
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x2560
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
jmp 0x273e
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x26a3
jmp 0x2751
xorl %eax, %eax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/free_list.c
// Function: free_list
int		free_list(t_list *list)
{
  t_line	*element;
  t_line	*element_prev;

  if (list)
    {
      element = list->first;
      while (element)
	{
	  element_prev = element;
	  element = element->next;
	  free(element_prev->line);
	  free(element_prev);
	}
    }
  return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x27b3
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x27b1
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rdi
callq 0x1030
movq -0x18(%rbp), %rdi
callq 0x1030
jmp 0x277f
jmp 0x27b3
xorl %eax, %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/algo.c
// Function: move_ants
int      move_ants(t_ant *ants, t_anthill *anthill)
{
  int	i;
  int	is_beginning;

  while (is_end(ants, anthill) == FALSE)
    {
      i = 0;
      is_beginning = TRUE;
      while (i < anthill->entry->ants)
	{
	  if (ants[i].now != anthill->exit)
	    is_beginning = find_a_way(ants, anthill, is_beginning, i);
	  i += 1;
	}
      if (is_beginning == TRUE)
	return (84);
      my_printf("\n");
    }
  return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x2bc0
cmpl $0x0, %eax
jne 0x285e
movl $0x0, -0x1c(%rbp)
movl $0x1, -0x20(%rbp)
movl -0x1c(%rbp), %eax
movq -0x18(%rbp), %rcx
movq 0x8(%rcx), %rcx
cmpl (%rcx), %eax
jge 0x283c
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x10(%rcx), %rax
je 0x2831
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x20(%rbp), %edx
movl -0x1c(%rbp), %ecx
callq 0x2870
movl %eax, -0x20(%rbp)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x27f0
cmpl $0x1, -0x20(%rbp)
jne 0x284b
movl $0x54, -0x4(%rbp)
jmp 0x2865
leaq 0x1812(%rip), %rdi      # 0x4064
movb $0x0, %al
callq 0x3920
jmp 0x27d0
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/algo.c
// Function: find_a_way
static int	find_a_way(t_ant *ants, t_anthill *anthill,
			   int is_beginning, int i)
{
  t_room        *shortest;

  if (ants[i].next &&
      is_empty(ants, ants[i].next, anthill->entry->ants, anthill) == TRUE)
    {
      ants[i].now = ants[i].next;
      ants[i].next = NULL;
      is_beginning = print_path(is_beginning, i + 1, ants[i].now->name);
    }
  else if (!ants[i].next)
    {
      if ((shortest = find_shortest(ants[i].now, ants,
				    anthill->entry->ants, anthill)))
	{
	  if (is_empty(ants, shortest, anthill->entry->ants, anthill) == TRUE)
	    {
	      ants[i].now = shortest;
	      ants[i].next = NULL;
	      is_beginning = print_path(is_beginning, i + 1, ants[i].now->name);
	    }
	  else
	    ants[i].next = shortest;
	}
    }
  return (is_beginning);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
cmpq $0x0, 0x8(%rax)
je 0x2937
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rsi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movl (%rax), %edx
movq -0x10(%rbp), %rcx
callq 0x2c40
cmpl $0x1, %eax
jne 0x2937
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rcx
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq $0x0, 0x8(%rax)
movl -0x14(%rbp), %edi
movl -0x18(%rbp), %esi
addl $0x1, %esi
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq 0x10(%rax), %rdx
callq 0x2a30
movl %eax, -0x14(%rbp)
jmp 0x2a1b
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
cmpq $0x0, 0x8(%rax)
jne 0x2a19
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq -0x8(%rbp), %rsi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movl (%rax), %edx
movq -0x10(%rbp), %rcx
callq 0x2a90
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
je 0x2a17
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movl (%rax), %edx
movq -0x10(%rbp), %rcx
callq 0x2c40
cmpl $0x1, %eax
jne 0x29fe
movq -0x20(%rbp), %rcx
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq $0x0, 0x8(%rax)
movl -0x14(%rbp), %edi
movl -0x18(%rbp), %esi
addl $0x1, %esi
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq 0x10(%rax), %rdx
callq 0x2a30
movl %eax, -0x14(%rbp)
jmp 0x2a15
movq -0x20(%rbp), %rcx
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq %rcx, 0x8(%rax)
jmp 0x2a17
jmp 0x2a19
jmp 0x2a1b
movl -0x14(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/algo.c
// Function: print_path
static int     print_path(int is_beginning, int nb, char *name)
{
  if (name)
    {
      if (is_beginning == TRUE)
	{
	  is_beginning = FALSE;
	  my_printf("P%d-%s", nb, name);
	}
      else
	my_printf(" P%d-%s", nb, name);
    }
  return (is_beginning);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movq %rdx, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x2a84
cmpl $0x1, -0x4(%rbp)
jne 0x2a6d
movl $0x0, -0x4(%rbp)
movl -0x8(%rbp), %esi
movq -0x10(%rbp), %rdx
leaq 0x1611(%rip), %rdi      # 0x4075
movb $0x0, %al
callq 0x3920
jmp 0x2a82
movl -0x8(%rbp), %esi
movq -0x10(%rbp), %rdx
leaq 0x15f9(%rip), %rdi      # 0x4074
movb $0x0, %al
callq 0x3920
jmp 0x2a84
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/algo.c
// Function: find_shortest
static t_room	*find_shortest(t_room *now, t_ant *ants,
			       int nb_ants, t_anthill *anthill)
{
  int           distance;
  t_room        *shortest;
  t_edge        *temp;
  int           ants_in_room;

  temp = now->edges;
  distance = -1;
  while (temp)
    {
      ants_in_room = nb_now_and__next(temp->connect, ants, nb_ants, anthill);
      if ((distance == -1
	   || distance > (temp->connect->distance + ants_in_room))
	  && temp->connect->distance != -1)
	{
	  distance = (temp->connect->distance + ants_in_room);
	  shortest = temp->connect;
	}
      temp = temp->next;
    }
  if (distance == -1)
    return (NULL);
  return (shortest);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x40(%rbp)
movl $0xffffffff, -0x2c(%rbp) # imm = 0xFFFFFFFF
cmpq $0x0, -0x40(%rbp)
je 0x2b2b
movq -0x40(%rbp), %rax
movq (%rax), %rdi
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
movq -0x28(%rbp), %rcx
callq 0x2b50
movl %eax, -0x44(%rbp)
cmpl $-0x1, -0x2c(%rbp)
je 0x2af5
movl -0x2c(%rbp), %eax
movq -0x40(%rbp), %rcx
movq (%rcx), %rcx
movl 0x8(%rcx), %ecx
addl -0x44(%rbp), %ecx
cmpl %ecx, %eax
jle 0x2b1d
movq -0x40(%rbp), %rax
movq (%rax), %rax
cmpl $-0x1, 0x8(%rax)
je 0x2b1d
movq -0x40(%rbp), %rax
movq (%rax), %rax
movl 0x8(%rax), %eax
addl -0x44(%rbp), %eax
movl %eax, -0x2c(%rbp)
movq -0x40(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x40(%rbp)
jmp 0x2aba
cmpl $-0x1, -0x2c(%rbp)
jne 0x2b3b
movq $0x0, -0x8(%rbp)
jmp 0x2b43
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/algo.c
// Function: nb_now_and__next
static int	nb_now_and__next(t_room *temp, t_ant *ants,
				 int nb_ants, t_anthill *anthill)
{
  int           nb;

  nb = 0;
  if (is_empty(ants, temp, nb_ants, anthill) == FALSE)
    nb++;
  nb = nb + nb_in_next(ants, temp, nb_ants);
  return (nb);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rsi
movl -0x14(%rbp), %edx
movq -0x20(%rbp), %rcx
callq 0x2c40
cmpl $0x0, %eax
jne 0x2b90
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rsi
movl -0x14(%rbp), %edx
callq 0x2cd0
movl %eax, %ecx
movl -0x28(%rbp), %eax
addl %ecx, %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/algo_fcts.c
// Function: is_end
int      is_end(t_ant *ants, t_anthill *anthill)
{
  int	i;

  if (!ants || !anthill)
    return (TRUE);
  i = 0;
  while (i < anthill->entry->ants)
    {
      if (ants[i].now != anthill->exit)
	return (FALSE);
      i += 1;
    }
  return (TRUE);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x2bda
cmpq $0x0, -0x18(%rbp)
jne 0x2be3
movl $0x1, -0x4(%rbp)
jmp 0x2c30
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x18(%rbp), %rcx
movq 0x8(%rcx), %rcx
cmpl (%rcx), %eax
jge 0x2c29
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x10(%rcx), %rax
je 0x2c1e
movl $0x0, -0x4(%rbp)
jmp 0x2c30
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x2bea
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/algo_fcts.c
// Function: is_empty
int      is_empty(t_ant *ants, t_room *room, int nb, t_anthill *anthill)
{
  int	i;

  if (!ants || !room)
    return (TRUE);
  if (room == anthill->exit)
    return (TRUE);
  i = 0;
  while (i < nb)
    {
      if (ants[i].now == room)
	return (FALSE);
      i += 1;
    }
  return (TRUE);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x2c61
cmpq $0x0, -0x18(%rbp)
jne 0x2c6a
movl $0x1, -0x4(%rbp)
jmp 0x2cc3
movq -0x18(%rbp), %rax
movq -0x28(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x2c81
movl $0x1, -0x4(%rbp)
jmp 0x2cc3
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x2cbc
movq -0x10(%rbp), %rax
movslq -0x2c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
cmpq -0x18(%rbp), %rax
jne 0x2cb1
movl $0x0, -0x4(%rbp)
jmp 0x2cc3
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x2c88
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/algo_fcts.c
// Function: nb_in_next
int      nb_in_next(t_ant *ants, t_room *room, int nb)
{
  int	i;
  int	nb_in_next;

  if (!ants || !room)
    return (-1);
  i = 0;
  nb_in_next = 0;
  while (i < nb)
    {
      if (ants[i].next == room)
	nb_in_next++;
      i += 1;
    }
  return (nb_in_next);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x2ced
cmpq $0x0, -0x18(%rbp)
jne 0x2cf6
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x2d3f
movl $0x0, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x2d39
movq -0x10(%rbp), %rax
movslq -0x20(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
cmpq -0x18(%rbp), %rax
jne 0x2d2e
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x2d04
movl -0x24(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/resolve.c
// Function: explore
void		explore(t_room *room, int i,
			t_anthill *anthill)
{
  t_edge	*edge;

  room->mark = TRUE;
  edge = room->edges;
  if (anthill->exit == room)
    room->distance = 0;
  while (edge)
    {
      if (i != -1 && (edge->connect->distance > i ||
		      edge->connect->distance == -1))
	edge->connect->distance = i;
      edge = edge->next;
    }
  edge = room->edges;
  while (edge)
    {
      if (edge->connect->mark == FALSE ||
	  edge->connect->distance >= i)
	{
	  edge->connect->mark = TRUE;
	  explore(edge->connect, i + 1, anthill);
	}
      edge = edge->next;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl $0x1, 0xc(%rax)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
cmpq -0x8(%rbp), %rax
jne 0x2d93
movq -0x8(%rbp), %rax
movl $0x0, 0x8(%rax)
jmp 0x2d95
cmpq $0x0, -0x20(%rbp)
je 0x2dd9
cmpl $-0x1, -0xc(%rbp)
je 0x2dcb
movq -0x20(%rbp), %rax
movq (%rax), %rax
movl 0x8(%rax), %eax
cmpl -0xc(%rbp), %eax
jg 0x2dbe
movq -0x20(%rbp), %rax
movq (%rax), %rax
cmpl $-0x1, 0x8(%rax)
jne 0x2dcb
movl -0xc(%rbp), %ecx
movq -0x20(%rbp), %rax
movq (%rax), %rax
movl %ecx, 0x8(%rax)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0x2d95
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x2e3a
movq -0x20(%rbp), %rax
movq (%rax), %rax
cmpl $0x0, 0xc(%rax)
je 0x2e08
movq -0x20(%rbp), %rax
movq (%rax), %rax
movl 0x8(%rax), %eax
cmpl -0xc(%rbp), %eax
jl 0x2e2c
movq -0x20(%rbp), %rax
movq (%rax), %rax
movl $0x1, 0xc(%rax)
movq -0x20(%rbp), %rax
movq (%rax), %rdi
movl -0xc(%rbp), %esi
addl $0x1, %esi
movq -0x18(%rbp), %rdx
callq 0x2d50
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0x2de5
addq $0x20, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/my_getnbr.c
// Function: my_getnbr
int	my_getnbr(const char *str)
{
  int	var;
  int	inv;
  int	i;

  if (!str)
    return (0);
  inv = 1;
  var = 0;
  i = 0;
  while ((str[i] < 48 || str[i] > 57) && str[i] != 0)
    i = i + 1;
  if (i > 0 && str[i - 1] == 45)
    inv = -1;
  while (str[i] != 0 && str[i] >= '0' && str[i] <= '9')
    {
      var = var * 10;
      var = var + str[i] - 48;
      i = i + 1;
    }
  var = var * inv;
  return (var);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x2e9b
movl $0x0, -0x4(%rbp)
jmp 0x2fa8
movl $0x1, -0x18(%rbp)
movl $0x0, -0x14(%rbp)
movl $0x0, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x30, %eax
jl 0x2ed7
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x39, %ecx
movb %al, -0x1d(%rbp)
jle 0x2eec
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x1d(%rbp)
movb -0x1d(%rbp), %al
testb $0x1, %al
jne 0x2ef5
jmp 0x2f00
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x2eb0
cmpl $0x0, -0x1c(%rbp)
jle 0x2f23
movq -0x10(%rbp), %rax
movl -0x1c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x2d, %eax
jne 0x2f23
movl $0xffffffff, -0x18(%rbp) # imm = 0xFFFFFFFF
jmp 0x2f25
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x1e(%rbp)
je 0x2f66
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x30, %ecx
movb %al, -0x1e(%rbp)
jl 0x2f66
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x39, %eax
setle %al
movb %al, -0x1e(%rbp)
movb -0x1e(%rbp), %al
testb $0x1, %al
jne 0x2f6f
jmp 0x2f98
imull $0xa, -0x14(%rbp), %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
movslq -0x1c(%rbp), %rdx
movsbl (%rcx,%rdx), %ecx
addl %ecx, %eax
subl $0x30, %eax
movl %eax, -0x14(%rbp)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x2f25
movl -0x14(%rbp), %eax
imull -0x18(%rbp), %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/recup_info.c
// Function: recup_info
int		recup_info(t_list *list, t_anthill *anthill)
{
  t_line	*new_element;
  char		*s;

  while ((s = get_next_line(0)))
    {
      if (s[0] == 0)
	return (ERROR);
      epur_str(s);
      if (!(new_element = malloc(sizeof(*new_element))) ||
	  (!(new_element->line = my_strdup(s))))
	return (ERROR);
      setup_list(new_element, list);
      free(s);
    }
  clear_list(list);
  if (list->first == NULL)
    return (ERROR);
  return (parse_info(list, anthill));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
xorl %edi, %edi
callq 0x1710
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
je 0x303d
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x2fe9
movl $0x1, -0x4(%rbp)
jmp 0x306a
movq -0x28(%rbp), %rdi
callq 0x1970
movl $0x20, %edi
callq 0x1060
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
je 0x301c
movq -0x28(%rbp), %rdi
callq 0x1520
movq -0x20(%rbp), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
jne 0x3025
movl $0x1, -0x4(%rbp)
jmp 0x306a
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x3080
movq -0x28(%rbp), %rdi
callq 0x1030
jmp 0x2fc0
movq -0x10(%rbp), %rdi
callq 0x2680
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x305a
movl $0x1, -0x4(%rbp)
jmp 0x306a
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x1aa0
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/recup_info.c
// Function: setup_list
static void		setup_list(t_line *new_element,
				   t_list *list)
{
   list->len++;
   new_element->bool = FALSE;
   new_element->prev = list->last;
   new_element->next = NULL;
   if (list->last)
     list->last->next = new_element;
   else
     list->first = new_element;
   list->last = new_element;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x8(%rax)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x10(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x30db
movq -0x8(%rbp), %rcx
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rcx, 0x10(%rax)
jmp 0x30e7
movq -0x8(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/src/my_str_to_wordtab.c
// Function: count_words
static int	count_words(const char *str, char const separator)
{
  int		i;
  int		nb;

  i = 0;
  nb = 0;
  while (str[i])
    {
      while (str[i] && str[i] != separator)
	i++;
      nb++;
      while (str[i] && str[i] == separator)
	i++;
    }
  nb++;
  return (nb);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movb %sil, %al
movq %rdi, -0x8(%rbp)
movb %al, -0x9(%rbp)
movl $0x0, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movq -0x8(%rbp), %rax
movslq -0x10(%rbp), %rcx
cmpb $0x0, (%rax,%rcx)
je 0x33c2
jmp 0x3330
movq -0x8(%rbp), %rax
movslq -0x10(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x15(%rbp)
je 0x335e
movq -0x8(%rbp), %rax
movslq -0x10(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movsbl -0x9(%rbp), %ecx
cmpl %ecx, %eax
setne %al
movb %al, -0x15(%rbp)
movb -0x15(%rbp), %al
testb $0x1, %al
jne 0x3367
jmp 0x3372
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x3330
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
movslq -0x10(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x16(%rbp)
je 0x33a9
movq -0x8(%rbp), %rax
movslq -0x10(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movsbl -0x9(%rbp), %ecx
cmpl %ecx, %eax
sete %al
movb %al, -0x16(%rbp)
movb -0x16(%rbp), %al
testb $0x1, %al
jne 0x33b2
jmp 0x33bd
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x337b
jmp 0x331c
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/my_printf/my_strlen.c
// Function: my_strlen
int     my_strlen(const char *str)
{
  int	i;

  i = 0;
  while (str[i])
    i++;
  return (i);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
cmpb $0x0, (%rax,%rcx)
je 0x3498
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x347f
movl -0xc(%rbp), %eax
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/my_printf/my_printable.c
// Function: my_printable
static int	my_printable(const char *str)
{
  int		c;

  c = 0;
  while (str[c] != '\0')
    {
      if (str[c] < 7)
	{
	  my_putstr("\\00");
	  my_base(str[c++], "01234567");
	}
      else if (str[c] > 7 && str[c] < 32)
	{
	  my_putstr("\\0");
	  my_base(str[c++], "01234567");
	}
      else if (str[c] >= 127)
	{
	  my_putstr("\\");
	  my_base(str[c++], "01234567");
	}
      else
	my_putchar(str[c++]);
    }
  return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0x3633
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x7, %eax
jge 0x357c
leaq 0xb2c(%rip), %rdi       # 0x407c
callq 0x3640
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0xc(%rbp)
movslq %ecx, %rcx
movsbl (%rax,%rcx), %edi
leaq 0xb0e(%rip), %rsi       # 0x4080
callq 0x3b70
jmp 0x362e
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x7, %eax
jle 0x35ce
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x20, %eax
jge 0x35ce
leaq 0xae4(%rip), %rdi       # 0x4089
callq 0x3640
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0xc(%rbp)
movslq %ecx, %rcx
movsbl (%rax,%rcx), %edi
leaq 0xab9(%rip), %rsi       # 0x4080
callq 0x3b70
jmp 0x362c
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x7f, %eax
jl 0x360f
leaq 0xaa6(%rip), %rdi       # 0x408c
callq 0x3640
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0xc(%rbp)
movslq %ecx, %rcx
movsbl (%rax,%rcx), %edi
leaq 0xa78(%rip), %rsi       # 0x4080
callq 0x3b70
jmp 0x362a
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0xc(%rbp)
movslq %ecx, %rcx
movsbl (%rax,%rcx), %edi
callq 0x33d0
jmp 0x362c
jmp 0x362e
jmp 0x3523
xorl %eax, %eax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/my_printf/my_putstr.c
// Function: my_putstr
void	my_putstr(const char *str)
{
  int	i;

  i = 0;
  while (str[i])
    {
      my_putchar(str[i]);
      i++;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
cmpb $0x0, (%rax,%rcx)
je 0x367d
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movsbl (%rax,%rcx), %edi
callq 0x33d0
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x3653
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/my_printf/my_put_nbr.c
// Function: my_put_nbr
int	my_put_nbr(int nb)
{
  int	modulo;

  if (nb < 0)
    {
      my_putchar('-');
      nb = nb * -1;
    }
  if (nb == 0)
    {
      my_putchar('0');
      return (0);
    }
  if (nb > 0)
    {
      if (nb > 9)
	{
	  modulo = nb % 10;
	  nb = (nb - modulo) / 10;
	  my_put_nbr(nb);
	  my_putchar(48 + modulo);
	}
      else
	my_putchar(nb + 48);
    }
  return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x8(%rbp)
cmpl $0x0, -0x8(%rbp)
jge 0x3722
movl $0x2d, %edi
callq 0x33d0
imull $-0x1, -0x8(%rbp), %eax
movl %eax, -0x8(%rbp)
cmpl $0x0, -0x8(%rbp)
jne 0x373b
movl $0x30, %edi
callq 0x33d0
movl $0x0, -0x4(%rbp)
jmp 0x3795
cmpl $0x0, -0x8(%rbp)
jle 0x378e
cmpl $0x9, -0x8(%rbp)
jle 0x377e
movl -0x8(%rbp), %eax
movl $0xa, %ecx
cltd
idivl %ecx
movl %edx, -0xc(%rbp)
movl -0x8(%rbp), %eax
subl -0xc(%rbp), %eax
movl $0xa, %ecx
cltd
idivl %ecx
movl %eax, -0x8(%rbp)
movl -0x8(%rbp), %edi
callq 0x3700
movl -0xc(%rbp), %eax
addl $0x30, %eax
movsbl %al, %edi
callq 0x33d0
jmp 0x378c
movl -0x8(%rbp), %eax
addl $0x30, %eax
movsbl %al, %edi
callq 0x33d0
jmp 0x378e
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/my_printf/my_put_long.c
// Function: my_put_long
static long	my_put_long(long nb)
{
  long		modulo;

  if (nb < 0)
    {
      my_putchar('-');
      nb = nb * -1;
    }
  if (nb > 0)
    {
      if (nb > 9)
	{
	  modulo = nb % 10;
	  nb = (nb - modulo) / 10;
	  my_put_long(nb);
	  my_putchar(48 + modulo);
	}
      else
	my_putchar(nb + 48);
    }
  return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
jge 0x38a6
movl $0x2d, %edi
callq 0x33d0
imulq $-0x1, -0x8(%rbp), %rax
movq %rax, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
jle 0x3909
cmpq $0x9, -0x8(%rbp)
jle 0x38f7
movq -0x8(%rbp), %rax
movl $0xa, %ecx
cqto
idivq %rcx
movq %rdx, -0x10(%rbp)
movq -0x8(%rbp), %rax
subq -0x10(%rbp), %rax
movl $0xa, %ecx
cqto
idivq %rcx
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3880
movq -0x10(%rbp), %rax
addq $0x30, %rax
movsbl %al, %edi
callq 0x33d0
jmp 0x3907
movq -0x8(%rbp), %rax
addq $0x30, %rax
movsbl %al, %edi
callq 0x33d0
jmp 0x3909
xorl %eax, %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/my_printf/my_printf.c
// Function: my_printf
int		my_printf(const char *flag, ...)
{
  va_list	ap;
  int		i;

  i = 0;
  va_start(ap, flag);
  if (flag == NULL)
    return (0);
  else
    while (flag[i] != '\0')
      {
	while (flag[i] == '%')
	  {
	    i++;
	    my_flag(flag[i++], ap, "dilcsboxSpy");
	  }
	if (flag[i] == '\0')
	  return (0);
	else if (flag[i] != '%')
	  my_putchar(flag[i]);
	i++;
      }
  return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
testb %al, %al
je 0x395b
movaps %xmm0, -0xc0(%rbp)
movaps %xmm1, -0xb0(%rbp)
movaps %xmm2, -0xa0(%rbp)
movaps %xmm3, -0x90(%rbp)
movaps %xmm4, -0x80(%rbp)
movaps %xmm5, -0x70(%rbp)
movaps %xmm6, -0x60(%rbp)
movaps %xmm7, -0x50(%rbp)
movq %r9, -0xc8(%rbp)
movq %r8, -0xd0(%rbp)
movq %rcx, -0xd8(%rbp)
movq %rdx, -0xe0(%rbp)
movq %rsi, -0xe8(%rbp)
movq %rdi, -0x10(%rbp)
movl $0x0, -0x34(%rbp)
leaq -0x30(%rbp), %rax
leaq -0xf0(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x8, (%rax)
cmpq $0x0, -0x10(%rbp)
jne 0x39c0
movl $0x0, -0x4(%rbp)
jmp 0x3a72
jmp 0x39c2
movq -0x10(%rbp), %rax
movslq -0x34(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0x3a69
jmp 0x39d9
movq -0x10(%rbp), %rax
movslq -0x34(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x25, %eax
jne 0x3a1d
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
movq -0x10(%rbp), %rax
movl -0x34(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x34(%rbp)
movslq %ecx, %rcx
movb (%rax,%rcx), %al
leaq -0x30(%rbp), %rsi
leaq 0x67b(%rip), %rdx       # 0x408e
movsbl %al, %edi
callq 0x3a80
jmp 0x39d9
movq -0x10(%rbp), %rax
movslq -0x34(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
jne 0x3a37
movl $0x0, -0x4(%rbp)
jmp 0x3a72
movq -0x10(%rbp), %rax
movslq -0x34(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x25, %eax
je 0x3a59
movq -0x10(%rbp), %rax
movslq -0x34(%rbp), %rcx
movsbl (%rax,%rcx), %edi
callq 0x33d0
jmp 0x3a5b
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x39c2
jmp 0x3a6b
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xf0, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/my_printf/my_printf.c
// Function: my_flag
static void     my_flag(const char flag, va_list ap,
			const char *tab)
{
  void		(*foncs[11]) (va_list, const char);
  int		i;

  i = 0;
  foncs[0] = my_put_nbr_pointer;
  foncs[1] = my_put_nbr_pointer;
  foncs[2] = my_put_long_pointer;
  foncs[3] = my_putchar_pointer;
  foncs[4] = my_putstr_pointer;
  foncs[5] = my_base_pointer;
  foncs[6] = my_base_pointer;
  foncs[7] = my_base_pointer;
  foncs[8] = my_printable_pointer;
  foncs[9] = my_put_pointers;
  foncs[10] = my_put_unsigned_pointer;
  while (i != 10)
    {
      if (flag == '%')
	my_putchar('%');
      if (flag == tab[i])
	foncs[i](ap, flag);
      i++;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movb %dil, %al
movb %al, -0x1(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl $0x0, -0x74(%rbp)
leaq -0x307(%rip), %rax      # 0x37a0
movq %rax, -0x70(%rbp)
leaq -0x312(%rip), %rax      # 0x37a0
movq %rax, -0x68(%rbp)
leaq -0x2ad(%rip), %rax      # 0x3810
movq %rax, -0x60(%rbp)
leaq -0x6c8(%rip), %rax      # 0x3400
movq %rax, -0x58(%rbp)
leaq -0x443(%rip), %rax      # 0x3690
movq %rax, -0x50(%rbp)
leaq 0x122(%rip), %rax       # 0x3c00
movq %rax, -0x48(%rbp)
leaq 0x117(%rip), %rax       # 0x3c00
movq %rax, -0x40(%rbp)
leaq 0x10c(%rip), %rax       # 0x3c00
movq %rax, -0x38(%rbp)
leaq -0x65f(%rip), %rax      # 0x34a0
movq %rax, -0x30(%rbp)
leaq 0x236(%rip), %rax       # 0x3d40
movq %rax, -0x28(%rbp)
leaq 0x3bb(%rip), %rax       # 0x3ed0
movq %rax, -0x20(%rbp)
cmpl $0xa, -0x74(%rbp)
je 0x3b64
movsbl -0x1(%rbp), %eax
cmpl $0x25, %eax
jne 0x3b32
movl $0x25, %edi
callq 0x33d0
movsbl -0x1(%rbp), %eax
movq -0x18(%rbp), %rcx
movslq -0x74(%rbp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
jne 0x3b59
movslq -0x74(%rbp), %rax
movq -0x70(%rbp,%rax,8), %rax
movq -0x10(%rbp), %rdi
movsbl -0x1(%rbp), %esi
callq *%rax
movl -0x74(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x74(%rbp)
jmp 0x3b19
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/Vatoth[P]CPE_2016_Lemin/my_printf/my_base.c
// Function: my_base
int	my_base(int nb, const char *base)
{
  int	result;
  int	modulo;

  if (nb < 0)
    {
      my_putchar('-');
      nb = nb * -1;
    }
  result = nb / my_strlen(base);
  modulo = nb % my_strlen(base);
  if (result > 0)
    my_base(result, base);
  my_putchar(base[modulo]);
  return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
cmpl $0x0, -0x4(%rbp)
jge 0x3b96
movl $0x2d, %edi
callq 0x33d0
imull $-0x1, -0x4(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
movl %eax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3470
movl %eax, %ecx
movl -0x20(%rbp), %eax
cltd
idivl %ecx
movl %eax, -0x14(%rbp)
movl -0x4(%rbp), %eax
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3470
movl %eax, %ecx
movl -0x1c(%rbp), %eax
cltd
idivl %ecx
movl %edx, -0x18(%rbp)
cmpl $0x0, -0x14(%rbp)
jle 0x3bdc
movl -0x14(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x3b70
movq -0x10(%rbp), %rax
movslq -0x18(%rbp), %rcx
movsbl (%rax,%rcx), %edi
callq 0x33d0
xorl %eax, %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)