// File: /workspace/github_c_makefile_star2_O1/florianne1212[P]Cub3D_42/srcs/graph.c
// Function: ft_graph
void			ft_graph(t_args argy, t_map mapy)
{
	t_mlx_coord	xco;
	t_img_coord	imgco;

	xco.mlx = mlx_init();
	argy = check_resolution(argy, xco);
	imgco.argi = argy;
	imgco = init_imgco(imgco, mapy);
	if (argy.save == 0)
		xco.mlx_win = mlx_new_window(xco.mlx, argy.reso_x, argy.reso_y, "cub");
	imgco.key = init_key();
	imgco.img = init_img(xco, argy);
	imgco.mlx = xco;
	imgco.text_sp = load_sprite(&imgco);
	imgco = *load_textures(&imgco);
	if (!(imgco.calc = malloc(sizeof(t_calc_sprite))))
		return ;
	if (!(imgco.buf_sprit = malloc(sizeof(double) * imgco.argi.reso_x)))
		return ;
	imgco = manage_3d(&imgco);
	save(&imgco);
	mlx_hook(imgco.mlx.mlx_win, 2, 1L << 0, key_pressed, &imgco);
	mlx_hook(imgco.mlx.mlx_win, 3, 1L << 1, key_released, &imgco);
	mlx_hook(imgco.mlx.mlx_win, 33, 1L << 17, stop_all, &imgco);
	mlx_loop_hook(xco.mlx, &my_loop, &imgco);
	mlx_loop(xco.mlx);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x608, %rsp            # imm = 0x608
leaq 0x630(%rsp), %rbx
xorl %eax, %eax
callq 0xc0e0
movq %rax, 0x218(%rsp)
movl $0x11, %ecx
movq %rsp, %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
movups 0x218(%rsp), %xmm0
movups 0x228(%rsp), %xmm1
movups %xmm1, 0x98(%rsp)
movups %xmm0, 0x88(%rsp)
leaq 0x238(%rsp), %r14
movq %r14, %rdi
callq 0xa7c9
movl $0x88, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x73f0
leaq 0x370(%rsp), %rdi
movl $0x88, %edx
movq %rbx, %rsi
callq 0x73f0
leaq 0x238(%rsp), %r14
movl $0x3d, %ecx
movq %rsp, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq 0x6d8(%rsp), %rax
movq %rax, 0x208(%rsp)
movups 0x6b8(%rsp), %xmm0
movups 0x6c8(%rsp), %xmm1
movups %xmm1, 0x1f8(%rsp)
movups %xmm0, 0x1e8(%rsp)
leaq 0x420(%rsp), %r15
movq %r15, %rdi
callq 0xb397
movl $0x1e8, %edx            # imm = 0x1E8
movq %r14, %rdi
movq %r15, %rsi
callq 0x73f0
cmpl $0x0, 0x6c(%rbx)
jne 0x8696
movq 0x218(%rsp), %rdi
movl 0x8(%rbx), %esi
movl 0xc(%rbx), %edx
leaq 0x6d7e(%rip), %rcx      # 0xf407
callq 0xc3e0
movq %rax, 0x220(%rsp)
movl $0x18, %edi
callq 0x7100
testq %rax, %rax
je 0x86b5
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
jmp 0x86b7
xorl %eax, %eax
movq %rax, 0x310(%rsp)
movl 0x8(%rbx), %ebp
movl 0xc(%rbx), %r14d
movq 0x218(%rsp), %r15
movl $0x28, %edi
callq 0x7100
testq %rax, %rax
je 0x870d
movq %rax, %rbx
movq %r15, %rdi
movl %ebp, %esi
movl %r14d, %edx
callq 0xcb70
movq %rax, (%rbx)
leaq 0x10(%rbx), %rsi
leaq 0x14(%rbx), %rdx
movq %rbx, %rcx
addq $0x18, %rcx
movq %rax, %rdi
callq 0xcdf0
movq %rax, 0x8(%rbx)
jmp 0x870f
xorl %ebx, %ebx
leaq 0x238(%rsp), %r14
movq %rbx, 0x130(%r14)
movups 0x218(%rsp), %xmm0
movups 0x228(%rsp), %xmm1
movups %xmm0, 0x110(%r14)
movups %xmm1, 0x120(%r14)
movq %r14, %rdi
callq 0x957d
movq %rax, 0xe0(%r14)
movq %r14, %rdi
callq 0x920a
movl $0x1e8, %edx            # imm = 0x1E8
movq %r14, %rdi
movq %rax, %rsi
callq 0x73f0
movl $0x48, %edi
callq 0x7100
movq %rax, 0xe8(%r14)
testq %rax, %rax
je 0x8858
movslq 0x378(%rsp), %rdi
shlq $0x3, %rdi
callq 0x7100
movq %rax, 0x2f8(%rsp)
testq %rax, %rax
je 0x8858
leaq 0x420(%rsp), %r14
leaq 0x238(%rsp), %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xb038
movl $0x1e8, %edx            # imm = 0x1E8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x73f0
movq %rbx, %rdi
callq 0x7f56
movq 0x118(%rbx), %rdi
leaq 0x20e(%rip), %rcx       # 0x89f0
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %r8
callq 0xe600
movq 0x118(%rbx), %rdi
leaq 0x284(%rip), %rcx       # 0x8a86
movl $0x3, %esi
movl $0x2, %edx
movq %rbx, %r8
callq 0xe600
movq 0x118(%rbx), %rdi
leaq 0x1ae(%rip), %rcx       # 0x89d0
movl $0x21, %esi
movl $0x20000, %edx          # imm = 0x20000
movq %rbx, %r8
callq 0xe600
movq 0x218(%rsp), %rdi
leaq -0x3c0(%rip), %rsi      # 0x8483
movq %rbx, %rdx
callq 0xc650
movq 0x218(%rsp), %rdi
callq 0xc550
addq $0x608, %rsp            # imm = 0x608
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop