// File: /workspace/github_c_makefile_star2_O2/ffoissey[P]filler_42/srcs/get_board.c
// Function: get_line_board
int						get_line_board(t_game *game, char *line)
{
	size_t	y;
	char	row_str[5];

	y = 0;
	row_str[4] = '\0';
	row_str[3] = ' ';
	row_str[2] = game->row % 10 + '0';
	row_str[1] = (game->row / 10) % 10 + '0';
	row_str[0] = game->row / 100 + '0';
	if (ft_strnequ(row_str, line, 4) == FALSE)
		return (FAILURE);
	line += 4;
	if (((int)ft_strlen(line) != game->board.size.y)
			|| (game->row > game->board.size.x))
		return (FAILURE);
	while (line[y] != '\0')
	{
		game->board.mx[game->row][y] = board_char_is_ok(game,
											line[y], game->row, y);
		if (game->board.mx[game->row][y] == E_UNKNOW)
			return (FAILURE);
		y++;
	}
	return (SUCCESS);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x13(%rsp), %rdi
movw $0x20, 0x3(%rdi)
movl 0x30(%r14), %ecx
pushq $0xa
popq %rsi
movl %ecx, %eax
cltd
idivl %esi
addb $0x30, %dl
movb %dl, 0x2(%rdi)
cltd
idivl %esi
addb $0x30, %dl
movb %dl, 0x1(%rdi)
pushq $0x64
popq %rsi
movl %ecx, %eax
cltd
idivl %esi
addb $0x30, %al
movb %al, (%rdi)
pushq $0x4
popq %rdx
movq %rbx, %rsi
callq 0x255c
pushq $-0x1
popq %rbp
testl %eax, %eax
je 0x15b8
addq $0x4, %rbx
movq %rbx, %rdi
callq 0x2638
cmpl %eax, 0xc(%r14)
jne 0x15b8
movl 0x30(%r14), %ecx
cmpl 0x8(%r14), %ecx
jle 0x15c9
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x38(%r14), %r12
leaq 0x58(%r14), %rbp
xorl %r13d, %r13d
pushq $0x6
popq %r8
movabsq $0x100000000, %r9       # imm = 0x100000000
movabsq $0x20100000201, %r10    # imm = 0x20100000201
pushq $0x2
popq %r11
xorl %r15d, %r15d
movzbl (%rbx,%r15), %eax
leal -0x4f(%rax), %edx
cmpl $0x29, %edx
ja 0x166c
btq %rdx, %r10
jae 0x166c
movl %ecx, %edx
leaq (%rdx,%r13), %rcx
movq %rcx, 0x8(%rsp)
cmpb %al, 0x36(%r14)
je 0x161d
cmpb %al, 0x37(%r14)
jne 0x1682
cmpl $0x0, (%rbp)
jne 0x1632
cmpl $0x0, 0x5c(%r14)
jne 0x1632
movq %rcx, 0x48(%r14)
movq %rcx, 0x58(%r14)
xorl %edx, %edx
cmpb %al, 0x37(%r14)
sete %dl
addl $0x3, %edx
movl 0x30(%r14), %ecx
movq 0x10(%r14), %rax
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rcx
movl %edx, (%rcx,%r15,4)
movslq 0x30(%r14), %rcx
movq (%rax,%rcx,8), %rax
addq %r9, %r13
cmpl $0x6, (%rax,%r15,4)
leaq 0x1(%r15), %r15
jne 0x15f3
jmp 0x1729
cmpl $0x2e, %eax
je 0x167e
testl %eax, %eax
je 0x15ba
movl %r8d, %edx
jmp 0x1642
xorl %edx, %edx
jmp 0x1642
cmpl $0x0, 0x50(%r14)
jne 0x1694
cmpl $0x0, 0x54(%r14)
je 0x1719
movq 0x10(%r14), %rdi
movslq %edx, %rdx
movq (%rdi,%rdx,8), %rdx
movq %r13, %rdi
sarq $0x1e, %rdi
cmpl $0x0, (%rdx,%rdi)
je 0x16b5
pushq $0x1
popq %rdx
cmpb %al, 0x35(%r14)
jne 0x163e
cmpl $0x0, (%r12)
jne 0x16c3
cmpl $0x0, 0x3c(%r14)
je 0x170d
leaq 0x8(%rsp), %rdi
movq %rbp, %rsi
callq 0x1a92
movl %eax, 0x4(%rsp)
movq %r12, %rdi
movq %rbp, %rsi
callq 0x1a92
pushq $0x2
popq %r11
movabsq $0x20100000201, %r10    # imm = 0x20100000201
movabsq $0x100000000, %r9       # imm = 0x100000000
pushq $0x6
popq %r8
movl %r11d, %edx
cmpl %eax, 0x4(%rsp)
jge 0x163e
movq 0x8(%rsp), %rcx
movq %rcx, (%r12)
movl %r11d, %edx
jmp 0x163e
movq %rcx, 0x38(%r14)
movq %rcx, 0x50(%r14)
pushq $0x1
popq %rdx
jmp 0x163e
pushq $-0x1
popq %rax
jmp 0x15ba