// File: /workspace/github_c_makefile_star2_O2/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 0xa930
movq %rax, 0x218(%rsp)
pushq $0x11
popq %rcx
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 0x9327
movl $0x88, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x63e0
leaq 0x370(%rsp), %rdi
movl $0x88, %edx
movq %rbx, %rsi
callq 0x63e0
pushq $0x3d
popq %rcx
leaq 0x238(%rsp), %r14
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 0x9dba
movl $0x1e8, %edx            # imm = 0x1E8
movq %r14, %rdi
movq %r15, %rsi
callq 0x63e0
cmpl $0x0, 0x6c(%rbx)
jne 0x75be
movq 0x218(%rsp), %rdi
movl 0x8(%rbx), %esi
movl 0xc(%rbx), %edx
leaq 0x6e56(%rip), %rcx      # 0xe407
callq 0xac30
movq %rax, 0x220(%rsp)
callq 0x73aa
leaq 0x238(%rsp), %r14
movq %rax, 0xd8(%r14)
leaq 0x20(%rsp), %rdi
pushq $0x11
popq %rcx
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
movups 0x218(%rsp), %xmm0
movups 0x228(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x7461
movq %rax, 0x130(%r14)
movups 0x218(%rsp), %xmm0
movups 0x228(%rsp), %xmm1
movups %xmm0, 0x110(%r14)
movups %xmm1, 0x120(%r14)
movq %r14, %rdi
callq 0x830d
movq %rax, 0xe0(%r14)
movq %r14, %rdi
callq 0x807a
movl $0x1e8, %edx            # imm = 0x1E8
movq %r14, %rdi
movq %rax, %rsi
callq 0x63e0
pushq $0x48
popq %rdi
callq 0x6100
movq %rax, 0xe8(%r14)
testq %rax, %rax
je 0x7734
movslq 0x378(%rsp), %rdi
shlq $0x3, %rdi
callq 0x6100
movq %rax, 0x2f8(%rsp)
testq %rax, %rax
je 0x7734
leaq 0x420(%rsp), %r14
leaq 0x238(%rsp), %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x9ad8
movl $0x1e8, %edx            # imm = 0x1E8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x63e0
movq %rbx, %rdi
callq 0x6eea
movq 0x118(%rbx), %rdi
leaq 0x1f4(%rip), %rcx       # 0x78bb
pushq $0x2
popq %rbp
pushq $0x1
popq %rdx
movl %ebp, %esi
movq %rbx, %r8
callq 0xce50
movq 0x118(%rbx), %rdi
leaq 0x25d(%rip), %rcx       # 0x7942
pushq $0x3
popq %rsi
movl %ebp, %edx
movq %rbx, %r8
callq 0xce50
movq 0x118(%rbx), %rdi
leaq 0x19b(%rip), %rcx       # 0x789b
pushq $0x21
popq %rsi
movl $0x20000, %edx          # imm = 0x20000
movq %rbx, %r8
callq 0xce50
movq 0x218(%rsp), %rdi
leaq -0x36a(%rip), %rsi      # 0x73b5
movq %rbx, %rdx
callq 0xaea0
movq 0x218(%rsp), %rdi
callq 0xada0
addq $0x608, %rsp            # imm = 0x608
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop