LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/raphifou15[P]cub3d/src/ft_recup_resolution.c
// Function: ft_recup_resolution
int	ft_recup_resolution(t_map *map, char *line, int i)
{
	if ((map->res_x != 0 || map->res_y != 0) && ft_free(line) == NULL)
		return (ft_error(6) + 1);
	while (line[++i] == ' ')
		;
	i++;
	map->res_x = ft_modif_atoi(line + i);
	while (line[i] == ' ')
		i++;
	while (line[i] > 47 && line[i] < 58)
		i++;
	if (line[i] != ' ' && ft_free(line) == NULL)
		return (ft_error(7) + 1);
	map->res_y = ft_modif_atoi(line + i);
	while (line[i] == ' ')
		i++;
	while (line[i] > 47 && line[i] < 58)
		i++;
	while (line[i] == ' ')
		i++;
	if (line[i] != '\0' && ft_free(line) == NULL)
		return (ft_error(7) + 1);
	if ((map->res_x < 150 || map->res_y < 100) && ft_free(line) == NULL)
		return (ft_error(8) + 1);
	return (0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
cmpl $0x0, 0x18(%rdi)
jne 0x95cc
cmpl $0x0, 0x1c(%r14)
je 0x95dd
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x96b7
movabsq $0x100000000, %rax      # imm = 0x100000000
movslq %ebp, %rdi
leal 0x1(%rdi), %ebp
leaq (%rdi,%rbx), %rcx
incq %rcx
shlq $0x20, %rdi
addq %rax, %rdi
incl %ebp
addq %rax, %rdi
cmpb $0x20, (%rcx)
leaq 0x1(%rcx), %rcx
je 0x95fb
sarq $0x20, %rdi
addq %rbx, %rdi
callq 0x8424
movl %eax, 0x18(%r14)
movslq %ebp, %rax
leaq (%rbx,%rax), %r15
addq $-0x3, %r15
cmpb $0x20, 0x3(%r15)
leaq 0x1(%r15), %r15
je 0x9624
movb 0x2(%r15), %al
leal -0x30(%rax), %ecx
incq %r15
cmpb $0xa, %cl
jb 0x962f
cmpb $0x20, %al
je 0x964f
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x96be
leaq 0x1(%r15), %rdi
callq 0x8424
movl %eax, 0x1c(%r14)
cmpb $0x20, 0x1(%r15)
leaq 0x1(%r15), %r15
je 0x965c
movb (%r15), %al
leal -0x30(%rax), %ecx
incq %r15
cmpb $0xa, %cl
jb 0x9667
jmp 0x967d
movb (%r15), %al
incq %r15
cmpb $0x20, %al
je 0x9677
movzbl %al, %eax
testl %eax, %eax
je 0x9695
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x96be
cmpl $0x96, 0x18(%r14)
jl 0x96a6
cmpl $0x63, 0x1c(%r14)
jg 0x96b3
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x96c5
xorl %eax, %eax
jmp 0x96d1
movl $0x6, %edi
jmp 0x96ca
movl $0x7, %edi
jmp 0x96ca
movl $0x8, %edi
callq 0x81d0
incl %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/raphifou15[P]cub3d/src/ft_recup_text_east.c
// Function: ft_recup_text_east
int	ft_recup_text_east(t_map *map, char *line, int i)
{
	char	*line2;
	int		fd;

	if (map->east_text != NULL && ft_free(line) == NULL)
		return (ft_error3(24) + 1);
	line2 = NULL;
	while (line[++i] == ' ')
		;
	i += 2;
	while (line[i] == ' ')
		i++;
	if (ft_check_line2(line + i) == 1 && ft_free(line) == NULL)
		return (ft_error3(25) + 1);
	if (((line2 = ft_modif_strcpy(line + i)) == NULL) && ft_free(line) == NULL)
		return (ft_error3(26) + 1);
	map->east_text = line2;
	if ((fd = open(map->east_text, O_RDONLY)) == -1 && ft_free(line) == NULL)
		return (ft_error3(27) + 1);
	if (close(fd) == -1 && ft_free(line) == NULL)
		return (ft_error3(28) + 1);
	return (0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
cmpq $0x0, 0x68(%rdi)
je 0x9703
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x97ad
movslq %ebp, %rcx
leal 0x2(%rcx), %eax
addq %rbx, %rcx
incq %rcx
incl %eax
cmpb $0x20, (%rcx)
leaq 0x1(%rcx), %rcx
je 0x970f
cltq
leaq (%rbx,%rax), %r15
decq %r15
cmpb $0x20, 0x1(%r15)
leaq 0x1(%r15), %r15
je 0x9723
movq %r15, %rdi
callq 0x7710
cmpl $0x1, %eax
jne 0x9748
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x97b4
movq %r15, %rdi
callq 0x8478
movq %rax, %r15
testq %rax, %rax
jne 0x9765
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x97bb
movq %r15, 0x68(%r14)
xorl %ebp, %ebp
movq %r15, %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x7400
movl %eax, %r14d
cmpl $-0x1, %eax
jne 0x978c
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x97c2
movl %r14d, %edi
callq 0x7040
cmpl $-0x1, %eax
jne 0x97d0
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
jne 0x97d0
movl $0x1c, %edi
jmp 0x97c7
movl $0x18, %edi
jmp 0x97c7
movl $0x19, %edi
jmp 0x97c7
movl $0x1a, %edi
jmp 0x97c7
movl $0x1b, %edi
callq 0x8100
movl %eax, %ebp
incl %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/raphifou15[P]cub3d/src/ft_recup_text_north.c
// Function: ft_recup_text_north
int	ft_recup_text_north(t_map *map, char *line, int i)
{
	char	*line2;
	int		fd;

	if (map->north_text != NULL && ft_free(line) == NULL)
		return (ft_error(10) + 1);
	line2 = NULL;
	while (line[++i] == ' ')
		;
	i += 2;
	while (line[i] == ' ')
		i++;
	if (ft_check_line2(line + i) == 1 && ft_free(line) == NULL)
		return (ft_error2(17) + 1);
	if (((line2 = ft_modif_strcpy(line + i)) == NULL) && ft_free(line) == NULL)
		return (ft_error(9) + 1);
	map->north_text = line2;
	if ((fd = open(map->north_text, O_RDONLY)) == -1 && ft_free(line) == NULL)
		return (ft_error(11) + 1);
	if (close(fd) == -1 && ft_free(line) == NULL)
		return (ft_error2(12) + 1);
	return (0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
cmpq $0x0, 0x50(%rdi)
je 0x9807
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x98b1
movslq %ebp, %rcx
leal 0x2(%rcx), %eax
addq %rbx, %rcx
incq %rcx
incl %eax
cmpb $0x20, (%rcx)
leaq 0x1(%rcx), %rcx
je 0x9813
cltq
leaq (%rbx,%rax), %r15
decq %r15
cmpb $0x20, 0x1(%r15)
leaq 0x1(%r15), %r15
je 0x9827
movq %r15, %rdi
callq 0x7710
cmpl $0x1, %eax
jne 0x984c
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x98b8
movq %r15, %rdi
callq 0x8478
movq %rax, %r15
testq %rax, %rax
jne 0x9869
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x98c4
movq %r15, 0x50(%r14)
xorl %ebp, %ebp
movq %r15, %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x7400
movl %eax, %r14d
cmpl $-0x1, %eax
jne 0x9890
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x98cb
movl %r14d, %edi
callq 0x7040
cmpl $-0x1, %eax
jne 0x98d9
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
jne 0x98d9
movl $0xc, %edi
jmp 0x98bd
movl $0xa, %edi
jmp 0x98d0
movl $0x11, %edi
callq 0x80d8
jmp 0x98d5
movl $0x9, %edi
jmp 0x98d0
movl $0xb, %edi
callq 0x81d0
movl %eax, %ebp
incl %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/raphifou15[P]cub3d/src/ft_recup_text_south.c
// Function: ft_recup_text_south
int	ft_recup_text_south(t_map *map, char *line, int i)
{
	char	*line2;
	int		fd;

	if (map->south_text != NULL && ft_free(line) == NULL)
		return (ft_error2(13) + 1);
	line2 = NULL;
	while (line[++i] == ' ')
		;
	i += 2;
	while (line[i] == ' ')
		i++;
	if (ft_check_line2(line + i) == 1 && ft_free(line) == NULL)
		return (ft_error2(18) + 1);
	if (((line2 = ft_modif_strcpy(line + i)) == NULL) && ft_free(line) == NULL)
		return (ft_error2(14) + 1);
	map->south_text = line2;
	if ((fd = open(map->south_text, O_RDONLY)) == -1 && ft_free(line) == NULL)
		return (ft_error2(15) + 1);
	if (close(fd) == -1 && ft_free(line) == NULL)
		return (ft_error2(16) + 1);
	return (0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
cmpq $0x0, 0x58(%rdi)
je 0x990f
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x99b9
movslq %ebp, %rcx
leal 0x2(%rcx), %eax
addq %rbx, %rcx
incq %rcx
incl %eax
cmpb $0x20, (%rcx)
leaq 0x1(%rcx), %rcx
je 0x991b
cltq
leaq (%rbx,%rax), %r15
decq %r15
cmpb $0x20, 0x1(%r15)
leaq 0x1(%r15), %r15
je 0x992f
movq %r15, %rdi
callq 0x7710
cmpl $0x1, %eax
jne 0x9954
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x99c0
movq %r15, %rdi
callq 0x8478
movq %rax, %r15
testq %rax, %rax
jne 0x9971
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x99c7
movq %r15, 0x58(%r14)
xorl %ebp, %ebp
movq %r15, %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x7400
movl %eax, %r14d
cmpl $-0x1, %eax
jne 0x9998
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x99ce
movl %r14d, %edi
callq 0x7040
cmpl $-0x1, %eax
jne 0x99dc
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
jne 0x99dc
movl $0x10, %edi
jmp 0x99d3
movl $0xd, %edi
jmp 0x99d3
movl $0x12, %edi
jmp 0x99d3
movl $0xe, %edi
jmp 0x99d3
movl $0xf, %edi
callq 0x80d8
movl %eax, %ebp
incl %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/raphifou15[P]cub3d/src/ft_recup_text_sprite.c
// Function: ft_recup_text_sprite
int	ft_recup_text_sprite(t_map *map, char *line, int i)
{
	char	*line2;
	int		fd;

	if (map->sprite_text != NULL && ft_free(line) == NULL)
		return (ft_error3(29) + 1);
	line2 = NULL;
	while (line[++i] == ' ')
		;
	i += 2;
	while (line[i] == ' ')
		i++;
	if (ft_check_line2(line + i) == 1 && ft_free(line) == NULL)
		return (ft_error3(30) + 1);
	if (((line2 = ft_modif_strcpy(line + i)) == NULL) && ft_free(line) == NULL)
		return (ft_error3(31) + 1);
	map->sprite_text = line2;
	if ((fd = open(map->sprite_text, O_RDONLY)) == -1 && ft_free(line) == NULL)
		return (ft_error3(32) + 1);
	if (close(fd) == -1 && ft_free(line) == NULL)
		return (ft_error3(33) + 1);
	return (0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
cmpq $0x0, 0x70(%rdi)
je 0x9a13
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x9abd
movslq %ebp, %rcx
leal 0x2(%rcx), %eax
addq %rbx, %rcx
incq %rcx
incl %eax
cmpb $0x20, (%rcx)
leaq 0x1(%rcx), %rcx
je 0x9a1f
cltq
leaq (%rbx,%rax), %r15
decq %r15
cmpb $0x20, 0x1(%r15)
leaq 0x1(%r15), %r15
je 0x9a33
movq %r15, %rdi
callq 0x7710
cmpl $0x1, %eax
jne 0x9a58
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x9ac4
movq %r15, %rdi
callq 0x8478
movq %rax, %r15
testq %rax, %rax
jne 0x9a75
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x9acb
movq %r15, 0x70(%r14)
xorl %ebp, %ebp
movq %r15, %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x7400
movl %eax, %r14d
cmpl $-0x1, %eax
jne 0x9a9c
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x9ad2
movl %r14d, %edi
callq 0x7040
cmpl $-0x1, %eax
jne 0x9ae0
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
jne 0x9ae0
movl $0x21, %edi
jmp 0x9ad7
movl $0x1d, %edi
jmp 0x9ad7
movl $0x1e, %edi
jmp 0x9ad7
movl $0x1f, %edi
jmp 0x9ad7
movl $0x20, %edi
callq 0x8100
movl %eax, %ebp
incl %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/raphifou15[P]cub3d/src/ft_recup_text_west.c
// Function: ft_recup_text_west
int	ft_recup_text_west(t_map *map, char *line, int i)
{
	char	*line2;
	int		fd;

	if (map->west_text != NULL && ft_free(line) == NULL)
		return (ft_error2(19) + 1);
	line2 = NULL;
	while (line[++i] == ' ')
		;
	i += 2;
	while (line[i] == ' ')
		i++;
	if (ft_check_line2(line + i) == 1 && ft_free(line) == NULL)
		return (ft_error2(20) + 1);
	if (((line2 = ft_modif_strcpy(line + i)) == NULL) && ft_free(line) == NULL)
		return (ft_error2(21) + 1);
	map->west_text = line2;
	if ((fd = open(map->west_text, O_RDONLY)) == -1 && ft_free(line) == NULL)
		return (ft_error2(22) + 1);
	if (close(fd) == -1 && ft_free(line) == NULL)
		return (ft_error2(23) + 1);
	return (0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
cmpq $0x0, 0x60(%rdi)
je 0x9b17
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x9bc1
movslq %ebp, %rcx
leal 0x2(%rcx), %eax
addq %rbx, %rcx
incq %rcx
incl %eax
cmpb $0x20, (%rcx)
leaq 0x1(%rcx), %rcx
je 0x9b23
cltq
leaq (%rbx,%rax), %r15
decq %r15
cmpb $0x20, 0x1(%r15)
leaq 0x1(%r15), %r15
je 0x9b37
movq %r15, %rdi
callq 0x7710
cmpl $0x1, %eax
jne 0x9b5c
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x9bc8
movq %r15, %rdi
callq 0x8478
movq %rax, %r15
testq %rax, %rax
jne 0x9b79
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x9bcf
movq %r15, 0x60(%r14)
xorl %ebp, %ebp
movq %r15, %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x7400
movl %eax, %r14d
cmpl $-0x1, %eax
jne 0x9ba0
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
je 0x9bd6
movl %r14d, %edi
callq 0x7040
cmpl $-0x1, %eax
jne 0x9be4
movq %rbx, %rdi
callq 0xa39b
testq %rax, %rax
jne 0x9be4
movl $0x17, %edi
jmp 0x9bdb
movl $0x13, %edi
jmp 0x9bdb
movl $0x14, %edi
jmp 0x9bdb
movl $0x15, %edi
jmp 0x9bdb
movl $0x16, %edi
callq 0x80d8
movl %eax, %ebp
incl %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/raphifou15[P]cub3d/src/ft_save2.c
// Function: ft_save2
void	ft_save2(t_map *map, int fd)
{
	int	file_size;
	int	offset;
	int	size;
	int	nbr_plan;
	int	end;

	end = -1;
	nbr_plan = 1;
	offset = 58;
	file_size = (map->res_y * map->res_x * 4) + 58;
	size = 40;
	write(fd, "BM", 2);
	write(fd, &file_size, 4);
	write(fd, "\0\0\0\0", 4);
	write(fd, &offset, 4);
	write(fd, &size, 4);
	write(fd, &map->res_x, 4);
	write(fd, &map->res_y, 4);
	write(fd, &nbr_plan, 2);
	write(fd, &map->mlx.img->bpp, 2);
	while (++end < 28)
		write(fd, "\0", 1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, %ebx
movq %rdi, %r14
leaq 0x8(%rsp), %rax
movl $0x1, (%rax)
leaq 0xc(%rsp), %rax
movl $0x3a, (%rax)
leaq 0x1c(%rdi), %r12
movl 0x1c(%rdi), %eax
leaq 0x18(%rdi), %r13
imull 0x18(%rdi), %eax
leal 0x3a(,%rax,4), %eax
leaq 0x14(%rsp), %rbp
movl %eax, (%rbp)
leaq 0x10(%rsp), %r15
movl $0x28, (%r15)
leaq 0x5f92(%rip), %rsi      # 0xfbe0
movl $0x2, %edx
movl %ebx, %edi
callq 0x73d0
movl $0x4, %edx
movl %ebx, %edi
movq %rbp, %rsi
callq 0x73d0
leaq 0x5f73(%rip), %rsi      # 0xfbe3
movl $0x4, %edx
movl %ebx, %edi
callq 0x73d0
movl $0x4, %edx
movl %ebx, %edi
leaq 0xc(%rsp), %rsi
callq 0x73d0
movl $0x4, %edx
movl %ebx, %edi
movq %r15, %rsi
callq 0x73d0
movl $0x4, %edx
movl %ebx, %edi
movq %r13, %rsi
callq 0x73d0
movl $0x4, %edx
movl %ebx, %edi
movq %r12, %rsi
callq 0x73d0
movl $0x2, %edx
movl %ebx, %edi
leaq 0x8(%rsp), %rsi
callq 0x73d0
movq 0x90(%r14), %rsi
addq $0x1c, %rsi
movl $0x2, %edx
movl %ebx, %edi
callq 0x73d0
movl $0x1c, %ebp
leaq 0x5efa(%rip), %r14      # 0xfbe8
movl $0x1, %edx
movl %ebx, %edi
movq %r14, %rsi
callq 0x73d0
decl %ebp
jne 0x9cee
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/raphifou15[P]cub3d/src/ft_save.c
// Function: ft_save
void	ft_save(t_map *map)
{
	int	*addr;
	int	fd;
	int	y;
	int	x;

	fd = open("img.bmp", O_TRUNC | O_WRONLY | O_CREAT, S_IWUSR | S_IRUSR |
			S_IWGRP | S_IRGRP | S_IWOTH | S_IROTH);
	if (fd == -1)
		return (ft_error5(53));
	ft_save2(map, fd);
	y = map->res_y;
	addr = (int *)map->mlx.img->data;
	while (--y >= 0)
	{
		x = -1;
		while (++x < map->res_x)
			write(fd, &addr[y * map->mlx.img->size_line / 4 + x], 4);
	}
	if (close(fd) == -1)
		return (ft_error5(54));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x5ec5(%rip), %rdi      # 0xfbea
movl $0x241, %esi            # imm = 0x241
movl $0x1b6, %edx            # imm = 0x1B6
xorl %eax, %eax
callq 0x7400
cmpl $-0x1, %eax
je 0x9dcc
movl %eax, %ebp
movq %rbx, %rdi
movl %eax, %esi
callq 0x9bf4
movl 0x1c(%rbx), %r14d
testl %r14d, %r14d
jle 0x9db1
movq 0x90(%rbx), %rax
movq 0x30(%rax), %r15
movl 0x18(%rbx), %eax
movl %r14d, %r12d
leal -0x1(%r12), %r14d
testl %eax, %eax
jle 0x9dab
xorl %r13d, %r13d
movq 0x90(%rbx), %rax
movl 0x18(%rax), %eax
imull %r14d, %eax
leal 0x3(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
sarl $0x2, %ecx
movslq %ecx, %rax
addq %r13, %rax
leaq (%r15,%rax,4), %rsi
movl $0x4, %edx
movl %ebp, %edi
callq 0x73d0
movl 0x18(%rbx), %eax
incq %r13
cmpl %eax, %r13d
jl 0x9d71
cmpl $0x2, %r12d
jge 0x9d62
movl %ebp, %edi
callq 0x7040
cmpl $-0x1, %eax
je 0x9dd3
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x35, %edi
jmp 0x9dd8
movl $0x36, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8150
nop
// File: /workspace/github_c_makefile_star2_O3/raphifou15[P]cub3d/src/ft_split2.c
// Function: ft_split2
char	**ft_split2(t_map *map, char c)
{
	char	**tab;
	int		i;
	int		j;

	j = -1;
	i = 0;
	tab = NULL;
	if ((tab = malloc(sizeof(char *) * (map->line_map + 1))) == NULL)
		return (NULL);
	while (++j < map->line_map)
	{
		if ((tab[j] = ft_put_in_tab(map->first_map + i, c)) == NULL)
		{
			ft_free2(tab, j);
			return (NULL);
		}
		while (map->first_map[i++] != c)
			;
	}
	tab[j] = NULL;
	return (tab);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %r14
movslq 0x14(%rdi), %r15
leaq 0x8(,%r15,8), %rdi
callq 0x7100
testq %rax, %rax
je 0x9e77
movq %rax, %rbx
testl %r15d, %r15d
jle 0x9e60
movq 0x8(%r14), %rdi
xorl %r15d, %r15d
movsbl %bpl, %r12d
xorl %r13d, %r13d
movslq %r13d, %r13
addq %r13, %rdi
movl %r12d, %esi
callq 0x8e60
movq %rax, (%rbx,%r15,8)
testq %rax, %rax
je 0x9e6c
movq 0x8(%r14), %rdi
movq %r13, %rax
incq %r13
cmpb %bpl, (%rdi,%rax)
jne 0x9e43
incq %r15
movslq 0x14(%r14), %rax
cmpq %rax, %r15
jl 0x9e28
movslq %r15d, %rax
jmp 0x9e62
xorl %eax, %eax
movq $0x0, (%rbx,%rax,8)
jmp 0x9e79
movq %rbx, %rdi
movl %r15d, %esi
callq 0x82d8
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/raphifou15[P]cub3d/src/ft_sprite.c
// Function: ft_sprite
void	ft_sprite(t_map *map, double *z_buffer)
{
	t_sprite	*temp;

	ft_sprite_distance(map->sprite, map);
	ft_sprite_order(&map->sprite);
	ft_stock_data2(map);
	temp = map->sprite;
	while (temp)
	{
		ft_point_sprite(temp, map);
		--temp->draw_start_x;
		while (++temp->draw_start_x < temp->draw_end_x)
		{
			temp->tex_x = (int)(256 * (temp->draw_start_x - (-temp->sprite_width
			/ 2 + temp->sprite_screen_x)) * 64 / temp->sprite_width) / 256;
			if (temp->transform_y > 0 && temp->draw_start_x > 0 &&
			temp->draw_start_x < map->res_x && temp->transform_y <
			z_buffer[temp->draw_start_x])
				ft_draw_sprite(temp, map);
		}
		temp = temp->next;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x158(%rdi), %r15
movq 0x158(%rdi), %rdi
movq %r14, %rsi
callq 0x9f90
movq %r15, %rdi
callq 0x9fd4
movq %r14, %rdi
callq 0xa004
movq 0x158(%r14), %r15
testq %r15, %r15
je 0x9f6b
movq %r15, %rdi
movq %r14, %rsi
callq 0x8c64
xorpd %xmm2, %xmm2
movl 0x54(%r15), %esi
movl 0x58(%r15), %ecx
cmpl %ecx, %esi
jge 0x9f62
leal -0x1(%rsi), %edi
movl 0x50(%r15), %r8d
movl %r8d, %edx
shrl $0x1f, %edx
addl %r8d, %edx
shrl %edx
movl %esi, %eax
subl 0x40(%r15), %eax
addl %edx, %eax
shll $0xe, %eax
cltd
idivl %r8d
leal 0xff(%rax), %edx
testl %eax, %eax
cmovnsl %eax, %edx
sarl $0x8, %edx
movl %edx, 0x5c(%r15)
testl %edi, %edi
js 0x9f55
movsd 0x38(%r15), %xmm0
ucomisd %xmm2, %xmm0
jbe 0x9f55
cmpl 0x18(%r14), %esi
jge 0x9f55
movl %esi, %eax
movsd (%rbx,%rax,8), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x9f55
movq %r15, %rdi
movq %r14, %rsi
callq 0x7e4c
xorpd %xmm2, %xmm2
movl 0x54(%r15), %esi
movl 0x58(%r15), %ecx
movl %esi, %edi
leal 0x1(%rdi), %esi
movl %esi, 0x54(%r15)
cmpl %ecx, %esi
jl 0x9eeb
movq 0x68(%r15), %r15
jmp 0x9ec4
popq %rbx
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/raphifou15[P]cub3d/src/ft_sprite_clear.c
// Function: ft_sprite_clear
void	ft_sprite_clear(t_sprite *sprite)
{
	t_sprite	*temp;

	temp = NULL;
	while (sprite)
	{
		temp = sprite;
		sprite = sprite->next;
		ft_free(temp);
	}
}

// Assembly:
testq %rdi, %rdi
je 0x9f8c
pushq %rbx
movq 0x68(%rdi), %rbx
callq 0xa39b
movq %rbx, %rdi
testq %rbx, %rbx
jne 0x9f7a
popq %rbx
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/raphifou15[P]cub3d/src/ft_sprite_distance.c
// Function: ft_sprite_distance
void	ft_sprite_distance(t_sprite *sprite, t_map *map)
{
	t_sprite	*temp;

	temp = sprite;
	while (temp)
	{
		temp->dist = ((map->player.pos_x - temp->pos_x) * (map->player.pos_x -
		temp->pos_x) + (map->player.pos_y - temp->pos_y) * (map->player.pos_y -
		temp->pos_y));
		temp = temp->next;
	}
}

// Assembly:
testq %rdi, %rdi
je 0x9fd0
movsd 0x98(%rsi), %xmm0
movsd 0xa0(%rsi), %xmm1
movapd %xmm0, %xmm2
subsd 0x8(%rdi), %xmm2
movapd %xmm1, %xmm3
subsd 0x10(%rdi), %xmm3
mulsd %xmm3, %xmm3
mulsd %xmm2, %xmm2
addsd %xmm3, %xmm2
movsd %xmm2, (%rdi)
movq 0x68(%rdi), %rdi
testq %rdi, %rdi
jne 0x9fa5
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/raphifou15[P]cub3d/src/ft_stock_data.c
// Function: ft_stock_data
void	ft_stock_data(t_map *map)
{
	if (map->point.side == 0 && map->ray.ray_dir_x < 0)
	{
		map->data = map->img_e->data;
		map->size_line = map->img_e->size_line;
	}
	if (map->point.side == 0 && map->ray.ray_dir_x >= 0)
	{
		map->data = map->img_w->data;
		map->size_line = map->img_w->size_line;
	}
	if (map->point.side == 1 && map->ray.ray_dir_y < 0)
	{
		map->data = map->img_n->data;
		map->size_line = map->img_n->size_line;
	}
	if (map->point.side == 1 && map->ray.ray_dir_y >= 0)
	{
		map->data = map->img_s->data;
		map->size_line = map->img_s->size_line;
	}
}

// Assembly:
movl 0x12c(%rdi), %eax
cmpl $0x1, %eax
je 0xa064
testl %eax, %eax
jne 0xa0b1
movsd 0xe0(%rdi), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jbe 0xa05d
movq 0x40(%rdi), %rax
movq 0x30(%rax), %rcx
movq %rcx, 0x160(%rdi)
movl 0x18(%rax), %eax
movl %eax, 0x168(%rdi)
movl $0x38, %eax
jmp 0xa093
movsd 0xe8(%rdi), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jbe 0xa08e
movq 0x30(%rdi), %rax
movq 0x30(%rax), %rcx
movq %rcx, 0x160(%rdi)
movl 0x18(%rax), %eax
movl %eax, 0x168(%rdi)
movl $0x28, %eax
ucomisd %xmm1, %xmm0
jb 0xa0b1
movq (%rdi,%rax), %rax
movq 0x30(%rax), %rcx
movq %rcx, 0x160(%rdi)
movl 0x18(%rax), %eax
movl %eax, 0x168(%rdi)
retq
nop
// File: /workspace/github_c_makefile_star2_O3/raphifou15[P]cub3d/src/ft_strcmp.c
// Function: ft_strcmp
int	ft_strcmp(char *s1, char *s2)
{
	int	i;

	i = 0;
	while (s1[i] && s2[i] && s1[i] == s2[i])
		++i;
	return (s1[i] - s2[i]);
}

// Assembly:
movb (%rdi), %al
xorl %ecx, %ecx
testb %al, %al
je 0xa0d3
cmpb (%rsi,%rcx), %al
jne 0xa0ce
movb 0x1(%rdi,%rcx), %al
incq %rcx
testb %al, %al
jne 0xa0bc
xorl %eax, %eax
movsbl %al, %eax
jmp 0xa0d5
xorl %eax, %eax
movsbl (%rsi,%rcx), %ecx
subl %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/raphifou15[P]cub3d/src/ft_wall_hit.c
// Function: ft_wall_hit
void	ft_wall_hit(t_map *map)
{
	while (map->point.hit == 0)
	{
		if (map->point.side_dist_x < map->point.side_dist_y)
		{
			map->point.side_dist_x += map->point.delta_dist_x;
			map->point.map_x += map->point.step_x;
			map->point.side = 0;
		}
		else
		{
			map->point.side_dist_y += map->point.delta_dist_y;
			map->point.map_y += map->point.step_y;
			map->point.side = 1;
		}
		if (map->map[map->point.map_y][map->point.map_x] == '1')
			map->point.hit = 1;
	}
}

// Assembly:
cmpl $0x0, 0x128(%rdi)
je 0xa0e6
retq
movq (%rdi), %rax
movsd 0xf8(%rdi), %xmm0
movsd 0x100(%rdi), %xmm1
movl 0xf4(%rdi), %ecx
movl 0xf0(%rdi), %edx
ucomisd %xmm0, %xmm1
jbe 0xa12b
addsd 0x108(%rdi), %xmm0
movsd %xmm0, 0xf8(%rdi)
addl 0x120(%rdi), %edx
movl %edx, 0xf0(%rdi)
xorl %esi, %esi
jmp 0xa14c
addsd 0x110(%rdi), %xmm1
movsd %xmm1, 0x100(%rdi)
addl 0x124(%rdi), %ecx
movl %ecx, 0xf4(%rdi)
movl $0x1, %esi
movl %esi, 0x12c(%rdi)
movslq %ecx, %rsi
movq (%rax,%rsi,8), %rsi
movslq %edx, %r8
cmpb $0x31, (%rsi,%r8)
jne 0xa105
movl $0x1, 0x128(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/raphifou15[P]cub3d/src/init_player2.c
// Function: init_player2
void	init_player2(t_map *map)
{
	if (map->orientation == 'N')
		map->player.dir_y = -1;
	if (map->orientation == 'N')
		map->player.plane_x = -0.66;
	if (map->orientation == 'S')
		map->player.dir_y = 1;
	if (map->orientation == 'S')
		map->player.plane_x = 0.66;
	if (map->orientation == 'E')
		map->player.dir_x = -1;
	if (map->orientation == 'E')
		map->player.plane_y = 0.66;
	if (map->orientation == 'W')
		map->player.dir_x = 1;
	if (map->orientation == 'W')
		map->player.plane_y = -0.66;
}

// Assembly:
movzbl 0x10(%rdi), %edx
movsd 0x53e0(%rip), %xmm0     # 0xfbf8
movl $0xb8, %eax
movl $0xb0, %ecx
cmpl $0x52, %edx
jg 0xa83a
movsd 0x5391(%rip), %xmm1     # 0xfbc0
cmpl $0x45, %edx
je 0xa856
cmpl $0x4e, %edx
je 0xa877
retq
cmpl $0x57, %edx
je 0xa865
cmpl $0x53, %edx
jne 0xa839
movsd 0x53b4(%rip), %xmm0     # 0xfc00
movsd 0x5364(%rip), %xmm1     # 0xfbb8
jmp 0xa877
movsd 0x53a2(%rip), %xmm0     # 0xfc00
movl $0xc0, %eax
jmp 0xa872
movl $0xc0, %eax
movsd 0x5346(%rip), %xmm1     # 0xfbb8
movl $0xa8, %ecx
movsd %xmm1, (%rdi,%rcx)
movsd %xmm0, (%rdi,%rax)
retq
nop
// File: /workspace/github_c_makefile_star2_O3/raphifou15[P]cub3d/src/init_player.c
// Function: init_player
void	init_player(t_map *map)
{
	map->player.dir_x = 0;
	map->player.dir_y = 0;
	map->player.plane_x = 0;
	map->player.plane_y = 0;
	init_player2(map);
	map->player.move_speed = 0.05;
	map->player.rotate_speed = 0.02;
	map->text_width = 64;
	map->text_height = 64;
	map->nbr_sprites = 0;
	map->sprite = NULL;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0xb8(%rdi)
movups %xmm0, 0xa8(%rdi)
callq 0xa80c
movaps 0x536b(%rip), %xmm0     # 0xfc10
movups %xmm0, 0xc8(%rbx)
movabsq $0x4000000040, %rax     # imm = 0x4000000040
movq %rax, 0x20(%rbx)
movl $0x0, 0x178(%rbx)
movq $0x0, 0x158(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/raphifou15[P]cub3d/src/init_texture.c
// Function: init_texture
int	init_texture(t_map *map)
{
	int	g;

	if ((map->img_s =
		mlx_xpm_file_to_image(map->mlx.mlx, map->south_text, &g, &g)) == NULL)
		return (1);
	if ((map->img_n =
		mlx_xpm_file_to_image(map->mlx.mlx, map->north_text, &g, &g)) == NULL)
	{
		mlx_destroy_image(map->mlx.mlx, map->img_s);
		return (1);
	}
	if ((map->img_w =
		mlx_xpm_file_to_image(map->mlx.mlx, map->west_text, &g, &g)) == NULL)
	{
		mlx_destroy_image(map->mlx.mlx, map->img_s);
		mlx_destroy_image(map->mlx.mlx, map->img_n);
		return (1);
	}
	if (init_texture2(map) == 1)
		return (1);
	return (0);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x58(%rdi), %rsi
movq 0x80(%rdi), %rdi
leaq 0x4(%rsp), %rcx
movq %rcx, %rdx
callq 0xcbb0
movq %rax, 0x28(%r14)
movl $0x1, %ebx
testq %rax, %rax
je 0xab07
movq 0x50(%r14), %rsi
movq 0x80(%r14), %rdi
leaq 0x4(%rsp), %rcx
movq %rcx, %rdx
callq 0xcbb0
movq %rax, 0x30(%r14)
movq 0x80(%r14), %rdi
testq %rax, %rax
je 0xaae1
movq 0x60(%r14), %rsi
leaq 0x4(%rsp), %rcx
movq %rcx, %rdx
callq 0xcbb0
movq %rax, 0x38(%r14)
testq %rax, %rax
je 0xaae7
movq %r14, %rdi
callq 0xa8d1
xorl %ebx, %ebx
cmpl $0x1, %eax
sete %bl
jmp 0xab07
movq 0x28(%r14), %rsi
jmp 0xab02
movq 0x28(%r14), %rsi
movq 0x80(%r14), %rdi
callq 0xe5f0
movq 0x30(%r14), %rsi
movq 0x80(%r14), %rdi
callq 0xe5f0
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/rakitzis[P]rc/mkstatval.c
// Function: main
int main(void) {
	int cstatus, pstatus;
	pid_t pid;
	
	for (cstatus = 0; cstatus < 2; ++cstatus) {
		switch (pid = fork()) {
		case -1:
			perror("fork");
			return 1;
		case 0:
			_exit(cstatus);
		default:
			if (wait(&pstatus) != pid) {
				perror("wait");
				return 1;
			}
			printf("#define STATUS%d %d\n", cstatus, pstatus);
		}
	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
xorl %ebp, %ebp
movb $0x1, %r13b
leaq 0xe71(%rip), %rbx       # 0x2004
leaq 0x4(%rsp), %r14
leaq 0xe6f(%rip), %r15       # 0x200e
callq 0x1070
cmpl $-0x1, %eax
je 0x11fa
movl %eax, %r12d
testl %eax, %eax
je 0x120a
movq %r14, %rdi
callq 0x1060
cmpl %r12d, %eax
jne 0x11f3
movl 0x4(%rsp), %edx
xorl %r12d, %r12d
movq %r15, %rdi
movl %ebp, %esi
xorl %eax, %eax
callq 0x1040
movl $0x1, %ebp
testb $0x1, %r13b
movl $0x0, %r13d
jne 0x119f
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xe0f(%rip), %rbx       # 0x2009
movq %rbx, %rdi
callq 0x1050
movl $0x1, %r12d
jmp 0x11e1
movl %ebp, %edi
callq 0x1030
// File: /workspace/github_c_makefile_star2_O3/Joy-Division[P]tools-mgs/gcx-decompile.c
// Function: gcx_param
uint16_t gcx_param(unsigned char *data, FILE *out) {
	unsigned int i;
	uint16_t size = 0;
	gcxdef blank;
	blank.name = 0;
	blank.off = 0;
	printf("gcx_param == type %04x == size ????\n", data[0]);
	switch(data[0]) {
		case 0x30: {
			size = data[1];
			fprintf(out, "STACKOP!\n");
			break;
		}
		case 0x40: {
			gcx_proc(blank, data, out);
			break;
		}
		case 0x50: {
			// size of params plus param letter
			size = data[2] + 1;
			switch(data[1]) {
				case 'm': {
					fprintf(out, "-m [%02x]:%04x\n", data[3], bswap_16(*(uint16_t *)(data+4)));
					break;
				}
				case 's': {
					fprintf(out, "-s [%02x]:%02x\n", data[3], data[4]);
					break;
				}
				default: {
					fprintf(out, "-%c ", *(char *)(data+1));
					for(i = 0; i < (size-1); size++) fprintf(out, "%02x", data[3+i]);
					fprintf(out, "\n");
					break;
				}
			}
			break;
		}
		default: {
			printf("unknown param %02x size %04x\n", data[0], size);
			break;
		}
	}
	return size+1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movzbl (%rdi), %esi
leaq 0xdb8(%rip), %rdi       # 0x2004
xorl %eax, %eax
callq 0x1090
movzbl (%r14), %esi
cmpl $0x50, %esi
je 0x129d
cmpl $0x40, %esi
je 0x1289
cmpl $0x30, %esi
jne 0x12d0
movzbl 0x1(%r14), %ebp
leaq 0xdb7(%rip), %rdi       # 0x2029
movl $0x9, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x1100
jmp 0x134a
xorl %ebp, %ebp
xorl %edi, %edi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1358
jmp 0x134a
movzbl 0x2(%r14), %r12d
leal 0x1(%r12), %ebp
movzbl 0x1(%r14), %eax
cmpl $0x73, %eax
je 0x12e4
cmpl $0x6d, %eax
jne 0x1301
movzbl 0x3(%r14), %edx
movzwl 0x4(%r14), %eax
rolw $0x8, %ax
movzwl %ax, %ecx
leaq 0xd65(%rip), %rsi       # 0x2033
jmp 0x12f5
leaq 0xd86(%rip), %rdi       # 0x205d
xorl %ebp, %ebp
xorl %edx, %edx
xorl %eax, %eax
callq 0x1090
jmp 0x134a
movzbl 0x3(%r14), %edx
movzbl 0x4(%r14), %ecx
leaq 0xd4e(%rip), %rsi       # 0x2043
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10b0
jmp 0x134a
movsbl %al, %edx
leaq 0xd48(%rip), %rsi       # 0x2053
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10b0
testb %r12b, %r12b
je 0x1339
leaq 0xd37(%rip), %r15       # 0x2058
movzbl 0x3(%r14), %edx
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x10b0
incw %r12w
jne 0x1321
movl $0xa, %edi
movq %rbx, %rsi
callq 0x10a0
movw $0x1, %bp
movzwl %bp, %eax
incl %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/Joy-Division[P]tools-mgs/gcx-decompile.c
// Function: gcx_proc
uint16_t gcx_proc(gcxdef def, unsigned char *data, FILE *out) {
	uint16_t size = bswap_16(*(uint16_t *)(data + 1)), cur = 0;
	printf("gcx_proc == type %02x == size %04x\n", data[0], size);
	switch(data[0]) {
		case 0x40: {
			fprintf(out, "proc %04x {\n", def.name);
			cur = 3;
			while(data[cur]) cur += gcx_proc(def, data+cur, out);
			fprintf(out, "}\n");
			break;
		}
		case 0x60: {
			fprintf(out, "begin {\n");
			cur = 3;
			while(gcx_iscommand(data+cur) > -1) cur += gcx_cmd(data+cur, out);
			fprintf(out, "}\n");
			break;
		}
		case 0x70: {
			size >>= 8;
			fprintf(out, "call %04x\n", bswap_16(*(uint16_t *)(data+2)));
			break;
		}
		default: {
			printf("unknown type %02x size %04x\n", data[0], size);
			break;
		}
	}
	return (size+1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movl %edi, %ebp
movzwl 0x1(%rsi), %ebx
rolw $0x8, %bx
movzbl (%rsi), %esi
movzwl %bx, %r12d
leaq 0xd4d(%rip), %rdi       # 0x20ce
movl %r12d, %edx
xorl %eax, %eax
callq 0x1090
movzbl (%r15), %esi
cmpl $0x70, %esi
je 0x1463
cmpl $0x60, %esi
je 0x1404
cmpl $0x40, %esi
jne 0x1489
movzwl %bp, %edx
leaq 0xd42(%rip), %rsi       # 0x20f2
movq %r14, %rdi
xorl %eax, %eax
callq 0x10b0
cmpb $0x0, 0x3(%r15)
je 0x13e6
leaq 0x3(%r15), %rsi
movw $0x3, %r12w
movl %ebp, %edi
movq %r14, %rdx
callq 0x1358
addl %eax, %r12d
movzwl %r12w, %eax
leaq (%r15,%rax), %rsi
cmpb $0x0, (%r15,%rax)
jne 0x13ca
leaq 0xd12(%rip), %rdi       # 0x20ff
movl $0x2, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x1100
jmp 0x149a
leaq 0xcf7(%rip), %rdi       # 0x2102
movl $0x8, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x1100
movl $0x3, %r12d
leaq 0x2c76(%rip), %r13      # 0x40a0
movzwl %r12w, %r12d
leaq (%r15,%r12), %rdi
movzwl (%r15,%r12), %eax
rolw $0x8, %ax
xorl %ecx, %ecx
cmpw %ax, (%rcx,%r13)
je 0x1453
addq $0x22, %rcx
cmpq $0x1ba, %rcx            # imm = 0x1BA
jne 0x143d
jmp 0x13e6
movq %r14, %rsi
callq 0x14ad
movzwl %ax, %eax
addl %eax, %r12d
jmp 0x142a
shrl $0x8, %r12d
movzwl 0x2(%r15), %eax
rolw $0x8, %ax
movzwl %ax, %edx
leaq 0xc91(%rip), %rsi       # 0x210b
movq %r14, %rdi
xorl %eax, %eax
callq 0x10b0
movl %r12d, %ebx
jmp 0x149a
leaq 0xc86(%rip), %rdi       # 0x2116
movl %r12d, %edx
xorl %eax, %eax
callq 0x1090
incl %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/Joy-Division[P]tools-mgs/gcx-decompile.c
// Function: gcx_cmd
uint16_t gcx_cmd(unsigned char *data, FILE *out) {
	int cmd = gcx_iscommand(data);
	uint16_t size = bswap_16(*(uint16_t *)(data+2)) >> 8, cur = 0;
	printf("gcx_cmd == cmd %s (%d) == size %04x\n", gcxcommands[cmd].name, cmd, size);
	fprintf(out, "%s(", gcxcommands[cmd].name);
	cur = 3;
	switch(cmd) {
		case 0: // eval
		case 3:
		case 1: { // if
			while(data[cur]) cur += gcx_param(data+cur, out);
			break;
		}
		case 2: { // load
			fprintf(out, "%02x \"%s\"\n", data[cur], (char *)(data+cur+2));
			cur += data[cur];
			while(data[cur]) cur += gcx_param(data+cur, out);
			break;
		}
		default: {
			printf("unknown cmd %02x size %04x\n", cmd, size);
			break;
		}
	}
	fprintf(out, ")\n");
	return size+2;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movzwl (%rdi), %eax
rolw $0x8, %ax
leaq 0x2bd4(%rip), %rcx      # 0x40a0
xorl %r15d, %r15d
cmpw %ax, (%rcx)
je 0x14e7
incq %r15
addq $0x22, %rcx
cmpq $0xd, %r15
jne 0x14cf
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movzbl 0x2(%r14), %ebp
movslq %r15d, %r12
movq %r12, %rax
shlq $0x5, %rax
leaq (%rax,%r12,2), %rax
leaq 0x2b9f(%rip), %rcx      # 0x40a0
leaq (%rcx,%rax), %r13
addq $0x2, %r13
leaq 0xb6b(%rip), %rdi       # 0x207b
movq %r13, %rsi
movl %r12d, %edx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x1090
leaq 0xb7a(%rip), %rsi       # 0x20a0
movq %rbx, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x10b0
cmpl $0x2, %r12d
jb 0x1541
je 0x1571
cmpl $0x3, %r15d
jne 0x15c0
cmpb $0x0, 0x3(%r14)
je 0x15d3
leaq 0x3(%r14), %rdi
movw $0x3, %r15w
movq %rbx, %rsi
callq 0x1234
addl %eax, %r15d
movzwl %r15w, %eax
leaq (%r14,%rax), %rdi
cmpb $0x0, (%r14,%rax)
jne 0x1555
jmp 0x15d3
movzbl 0x3(%r14), %edx
leaq 0x5(%r14), %rcx
leaq 0xb23(%rip), %rsi       # 0x20a4
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10b0
movzbl 0x3(%r14), %r15d
cmpb $0x0, 0x3(%r14,%r15)
je 0x15d3
leaq (%r14,%r15), %rdi
addq $0x3, %rdi
addq $0x3, %r15
movq %rbx, %rsi
callq 0x1234
addl %eax, %r15d
movzwl %r15w, %eax
leaq (%r14,%rax), %rdi
cmpb $0x0, (%r14,%rax)
jne 0x15a4
jmp 0x15d3
leaq 0xae8(%rip), %rdi       # 0x20af
movl %r15d, %esi
movl %ebp, %edx
xorl %eax, %eax
callq 0x1090
leaq 0xaf1(%rip), %rdi       # 0x20cb
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x1100
movzwl %bp, %eax
addl $0x2, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]spiped/tests/nc-server/main.c
// Function: main
int
main(int argc, char ** argv)
{
	struct nc_cookie cookie;
	struct nc_cookie * C = &cookie;
	const char * sockname;
	const char * filename;

	WARNP_INIT;

	/* Parse command-line arguments. */
	if (argc < 3) {
		fprintf(stderr, "usage: %s ADDRESS FILENAME [ECHO_BPS]\n",
		    argv[0]);
		goto err0;
	}
	sockname = argv[1];
	filename = argv[2];
	if (argc > 3) {
		/* Allow up to 1 MB per second of echoing. */
		if (PARSENUM(&C->bps, argv[3], 0, 1000000)) {
			warnp("parsenum");
			goto err0;
		}
		if ((C->bps % 100) != 0) {
			warn0("BPS must be a multiple of 100");
			goto err0;
		}
	} else
		C->bps = 0;

	/* Open the output file; can be /dev/null. */
	if ((C->out = fopen(filename, "wb")) == NULL) {
		warnp("fopen");
		goto err0;
	}

	/* Run the server. */
	if (simple_server(sockname, MAX_CONNECTIONS, SHUTDOWN_AFTER,
	    &callback_snc_response, C)) {
		warn0("simple_server failed");
		goto err1;
	}

	/* Write the output file. */
	if (fclose(C->out) != 0) {
		warnp("fclose");
		goto err0;
	}

	/* Success! */
	exit(0);

err1:
	if (fclose(C->out))
		warnp("fclose");
err0:
	/* Failure! */
	exit(1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r12
movl %edi, %ebp
movq (%rsi), %rdi
testq %rdi, %rdi
je 0x257a
callq 0x5c78
cmpl $0x2, %ebp
jg 0x25a5
movq 0x8a72(%rip), %rax      # 0xaff8
movq (%rax), %rdi
movq (%r12), %rdx
leaq 0x4aac(%rip), %rsi      # 0x7040
xorl %eax, %eax
callq 0x21c0
movl $0x1, %edi
callq 0x22c0
movq 0x8(%r12), %rbx
movq 0x10(%r12), %r15
cmpl $0x3, %ebp
jne 0x25ef
movq $0x0, 0x8(%rsp)
leaq 0x4aca(%rip), %rsi      # 0x708e
movq %r15, %rdi
callq 0x2270
movq %rax, (%rsp)
testq %rax, %rax
jne 0x2643
callq 0x2090
cmpl $0x0, (%rax)
jne 0x2691
leaq 0x4aa7(%rip), %rdi      # 0x7091
jmp 0x26e2
callq 0x2090
movq %rax, %r14
movl $0x0, (%rax)
movq 0x18(%r12), %rdi
callq 0x270a
movq %rax, 0x8(%rsp)
cmpl $0x0, (%r14)
jne 0x2677
movabsq $-0x70a3d70a3d70a3d7, %rcx # imm = 0x8F5C28F5C28F5C29
imulq %rcx, %rax
rorq $0x2, %rax
movabsq $0x28f5c28f5c28f5d, %rcx # imm = 0x28F5C28F5C28F5D
cmpq %rcx, %rax
jb 0x25bd
leaq 0x4a36(%rip), %rdi      # 0x7070
xorl %eax, %eax
callq 0x5e17
jmp 0x2685
leaq 0x133(%rip), %rcx       # 0x277d
movq %rsp, %r8
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rdi
callq 0x2934
testl %eax, %eax
jne 0x269d
movq (%rsp), %rdi
callq 0x2100
testl %eax, %eax
jne 0x26d1
xorl %edi, %edi
callq 0x22c0
leaq 0x49e9(%rip), %rdi      # 0x7067
xorl %eax, %eax
callq 0x5cf8
movl $0x0, (%r14)
jmp 0x259b
movq %rax, %rbx
leaq 0x49f6(%rip), %rdi      # 0x7091
jmp 0x26f8
leaq 0x49f3(%rip), %rdi      # 0x7097
xorl %eax, %eax
callq 0x5e17
callq 0x2090
movq %rax, %rbx
movl $0x0, (%rax)
movq (%rsp), %rdi
callq 0x2100
testl %eax, %eax
je 0x259b
cmpl $0x0, (%rbx)
je 0x26db
jmp 0x26f1
callq 0x2090
cmpl $0x0, (%rax)
jne 0x26ee
leaq 0x49ca(%rip), %rdi      # 0x70ac
xorl %eax, %eax
callq 0x5e17
jmp 0x259b
movq %rax, %rbx
leaq 0x49b4(%rip), %rdi      # 0x70ac
xorl %eax, %eax
callq 0x5cf8
movl $0x0, (%rbx)
jmp 0x259b
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]spiped/tests/nc-server/main.c
// Function: callback_snc_response
static int
callback_snc_response(void * cookie, uint8_t * buf, size_t buflen, int sock)
{
	struct nc_cookie * C = cookie;

	/* Write buffer to the previously-opened file. */
	if (fwrite(buf, sizeof(uint8_t), buflen, C->out) != buflen) {
		warnp("fwrite");
		goto err0;
	}

	/* Echo to the client (if applicable). */
	if ((C->bps > 0) && (write_bps(sock, buf, buflen, C->bps)))
		goto err0;

	/* Success! */
	return (0);

err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq (%rdi), %rcx
movl $0x1, %esi
movq %r15, %rdi
callq 0x22e0
cmpq %r14, %rax
jne 0x27e2
movq 0x8(%r12), %r12
testq %r12, %r12
je 0x28fd
leaq 0x10(%rsp), %rdi
callq 0x4a38
testl %eax, %eax
je 0x281d
leaq 0x496d(%rip), %rdi      # 0x713b
xorl %eax, %eax
callq 0x5e17
callq 0x2090
movl $0x0, (%rax)
jmp 0x2813
callq 0x2090
cmpl $0x0, (%rax)
je 0x2805
movq %rax, %rbx
leaq 0x493e(%rip), %rdi      # 0x7134
xorl %eax, %eax
callq 0x5cf8
movl $0x0, (%rbx)
jmp 0x2813
leaq 0x4928(%rip), %rdi      # 0x7134
xorl %eax, %eax
callq 0x5e17
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x28ff
movq %r12, %xmm0
punpckldq 0x47e6(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x47ee(%rip), %xmm0     # 0x7020
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movapd %xmm1, 0x30(%rsp)
xorl %r12d, %r12d
movq %rsp, %r13
movq $0x0, 0x20(%rsp)
movq $0x989680, 0x28(%rsp)   # imm = 0x989680
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
callq 0x2130
movq %r13, %rdi
callq 0x4a38
testl %eax, %eax
jne 0x27c7
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
subq 0x18(%rsp), %rcx
xorps %xmm1, %xmm1
cvtsi2sd %rcx, %xmm1
mulsd 0x478d(%rip), %xmm1     # 0x7030
addsd %xmm0, %xmm1
mulsd 0x30(%rsp), %xmm1
cvttsd2si %xmm1, %rax
movq %rax, %rcx
subsd 0x477b(%rip), %xmm1     # 0x7038
cvttsd2si %xmm1, %rbp
sarq $0x3f, %rcx
andq %rcx, %rbp
orq %rax, %rbp
subq %r12, %rbp
jbe 0x28f4
cmpq %r14, %rbp
cmovaeq %r14, %rbp
movl %ebx, %edi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x20f0
cmpq $-0x1, %rax
je 0x290e
subq %rbp, %r14
addq %rbp, %r15
addq %rbp, %r12
testq %r14, %r14
jne 0x284a
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2090
cmpl $0x0, (%rax)
je 0x2927
movq %rax, %rbx
leaq 0x4813(%rip), %rdi      # 0x7135
jmp 0x27f6
leaq 0x4807(%rip), %rdi      # 0x7135
jmp 0x280c
nop
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]spiped/tests/nc-server/simple_server.c
// Function: doaccept
static int
doaccept(struct accept_state * A)
{
	int rc = 0;

	/* If we can, accept a new connection. */
	if ((A->nconn < A->nconn_max) && (A->accept_cookie == NULL) &&
	    !A->shutdown_requested) {
		if ((A->accept_cookie =
		    network_accept(A->s, callback_gotconn, A)) == NULL) {
			warnp("network_accept");
			rc = -1;
		}
	}

	/* Return success/fail status. */
	return (rc);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0x20(%rdi), %rax
xorl %ebx, %ebx
cmpq 0x28(%rdi), %rax
jae 0x2c49
movq %rdi, %r14
cmpq $0x0, 0x30(%rdi)
jne 0x2c49
cmpl $0x0, 0x8(%r14)
jne 0x2c49
movl (%r14), %edi
leaq 0x51(%rip), %rsi        # 0x2c53
movq %r14, %rdx
callq 0x4434
movq %rax, 0x30(%r14)
testq %rax, %rax
jne 0x2c49
callq 0x2090
cmpl $0x0, (%rax)
je 0x2c36
movq %rax, %rbx
leaq 0x4571(%rip), %rdi      # 0x7198
xorl %eax, %eax
callq 0x5cf8
movl $0x0, (%rbx)
jmp 0x2c44
leaq 0x455b(%rip), %rdi      # 0x7198
xorl %eax, %eax
callq 0x5e17
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]spiped/tests/nc-server/simple_server.c
// Function: callback_read
static int
callback_read(void * cookie, ssize_t lenread)
{
	struct conn_list_node * R = cookie;
	struct accept_state * A = R->A;
	int sock = R->sock_read;

	/* Cookie is no longer valid. */
	R->network_read_cookie = NULL;

	/* If we have a message. */
	if (lenread > 0) {
		/* Handle it with the parent code. */
		if (A->callback_nc_message(A->caller_cookie, R->buf,
		    (size_t)lenread, sock))
			goto err0;

		/* Try to read some more data. */
		if ((R->network_read_cookie = network_read(R->sock_read,
		    R->buf, BUFLEN, 1, callback_read, R)) == NULL) {
			warnp("network_read");
			goto err0;
		}
	} else if (lenread == 0) {
		if (drop(R)) {
			warn0("drop");
			goto err0;
		}
	} else {
		warn0("Failed to read from network");
		A->conndone = 1;
		goto err0;
	}

	/* Success! */
	return (0);

err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
movq 0x10(%rdi), %rbx
movl 0x18(%rdi), %ecx
movq $0x0, 0x2020(%rdi)
testq %rsi, %rsi
jle 0x2e7b
movq %rsi, %rdx
movq 0x40(%rbx), %rdi
leaq 0x1c(%r14), %r15
movq %r15, %rsi
callq *0x48(%rbx)
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x2ecd
movl 0x18(%r14), %edi
leaq -0x48(%rip), %r8        # 0x2dee
movl $0x2000, %edx           # imm = 0x2000
movl $0x1, %ecx
movq %r15, %rsi
movq %r14, %r9
callq 0x450c
movq %rax, 0x2020(%r14)
testq %rax, %rax
jne 0x2ecb
callq 0x2090
cmpl $0x0, (%rax)
je 0x2ed5
movq %rax, %r14
leaq 0x433c(%rip), %rdi      # 0x71a7
xorl %eax, %eax
callq 0x5cf8
movl $0x0, (%r14)
jmp 0x2ecd
je 0x2e9f
leaq 0x4335(%rip), %rdi      # 0x71b9
xorl %eax, %eax
callq 0x5e17
callq 0x2090
movl $0x0, (%rax)
movl $0x1, 0x4(%rbx)
jmp 0x2ec4
movq %r14, %rdi
callq 0x2ee5
testl %eax, %eax
je 0x2ecb
leaq 0x4302(%rip), %rdi      # 0x71b4
xorl %eax, %eax
callq 0x5e17
callq 0x2090
movl $0x0, (%rax)
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x2ecd
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x42cb(%rip), %rdi      # 0x71a7
xorl %eax, %eax
callq 0x5e17
jmp 0x2ecd
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]spiped/tests/nc-server/simple_server.c
// Function: drop
static int
drop(struct conn_list_node * node_ptr)
{

	/* If we still have an active read cookie, cancel it. */
	if (node_ptr->network_read_cookie != NULL)
		network_read_cancel(node_ptr->network_read_cookie);

	/* Close the incoming connection. */
	if (close(node_ptr->sock_read) == -1) {
		warnp("close");
		goto err0;
	}

	/* Clean up the node. */
	conndied(node_ptr);

	/* Success! */
	return (0);

err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x2020(%rdi), %rdi
testq %rdi, %rdi
je 0x2efd
callq 0x47c4
movl 0x18(%rbx), %edi
callq 0x2180
cmpl $-0x1, %eax
je 0x2f7b
movq 0x10(%rbx), %r14
cmpq $0x0, 0x38(%r14)
je 0x2fb9
decq 0x20(%r14)
movq 0x10(%r14), %rax
testq %rax, %rax
je 0x2f3e
movq 0x18(%r14), %rcx
incq %rcx
movq %rcx, 0x18(%r14)
cmpq %rax, %rcx
jb 0x2f3e
movl $0x1, 0x8(%r14)
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
testq %rax, %rax
je 0x2f4e
movq %rcx, 0x8(%rax)
movq %rax, (%rcx)
movq %rbx, %rdi
callq 0x2040
cmpl $0x0, 0x8(%r14)
je 0x2f6f
cmpq $0x0, 0x20(%r14)
jne 0x2f6f
movl $0x1, 0x4(%r14)
movq %r14, %rdi
callq 0x2bd7
xorl %eax, %eax
jmp 0x2fb1
callq 0x2090
cmpl $0x0, (%rax)
je 0x2f9e
movq %rax, %rbx
leaq 0x411e(%rip), %rdi      # 0x70ad
xorl %eax, %eax
callq 0x5cf8
movl $0x0, (%rbx)
jmp 0x2fac
leaq 0x4108(%rip), %rdi      # 0x70ad
xorl %eax, %eax
callq 0x5e17
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x4215(%rip), %rdi      # 0x71d5
leaq 0x422c(%rip), %rsi      # 0x71f3
leaq 0x4235(%rip), %rcx      # 0x7203
movl $0x4c, %edx
callq 0x2160
// File: /workspace/github_c_makefile_star2_O3/samtools[P]htslib/test/hfile.c
// Function: fail
void HTS_FORMAT(HTS_PRINTF_FMT, 1, 2) HTS_NORETURN
fail(const char *format, ...)
{
    int err = errno;
    va_list args;
    va_start(args, format);
    vfprintf(stderr, format, args);
    va_end(args);
    if (err != 0) fprintf(stderr, ": %s", strerror(err));
    fprintf(stderr, "\n");
    exit(EXIT_FAILURE);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xd0, %rsp
movq %rdi, %r14
leaq 0x20(%rsp), %r15
movq %rsi, 0x8(%r15)
movq %rdx, 0x10(%r15)
movq %rcx, 0x18(%r15)
movq %r8, 0x20(%r15)
movq %r9, 0x28(%r15)
testb %al, %al
je 0x5e2f
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
callq 0x4050
movl (%rax), %ebx
movq %rsp, %rdx
movq %r15, 0x10(%rdx)
leaq 0xf0(%rsp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rdx)
movq 0xac183(%rip), %r15     # 0xb1fe0
movq (%r15), %rdi
movq %r14, %rsi
callq 0x4680
testl %ebx, %ebx
je 0x5e8a
movq (%r15), %r14
movl %ebx, %edi
callq 0x4140
leaq 0x8ebf0(%rip), %rsi     # 0x94a6d
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x46f0
movq (%r15), %rsi
movl $0xa, %edi
callq 0x4620
movl $0x1, %edi
callq 0x45d0
// File: /workspace/github_c_makefile_star2_O3/samtools[P]htslib/test/hfile.c
// Function: check_offset
void check_offset(hFILE *f, off_t off, const char *message)
{
    off_t ret = htell(f);
    if (ret < 0) fail("htell(%s)", message);
    if (ret == off) return;

    fprintf(stderr, "%s offset incorrect: expected %ld but got %ld\n",
            message, (long)off, (long)ret);
    exit(EXIT_FAILURE);
}

// Assembly:
pushq %rax
movq 0x28(%rdi), %r8
addq 0x8(%rdi), %r8
subq (%rdi), %r8
js 0x5eb9
movq %rsi, %rcx
cmpq %rsi, %r8
jne 0x5eca
popq %rax
retq
leaq 0x8a170(%rip), %rdi     # 0x90030
movq %rdx, %rsi
xorl %eax, %eax
callq 0x5dcc
movq 0xac10f(%rip), %rax     # 0xb1fe0
movq (%rax), %rdi
leaq 0x8a15f(%rip), %rsi     # 0x9003a
xorl %eax, %eax
callq 0x46f0
movl $0x1, %edi
callq 0x45d0