// File: /workspace/github_c_makefile_star2_O3/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 0xafb0
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 0x972d
movl $0x88, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x63e0
leaq 0x370(%rsp), %rdi
movl $0x88, %edx
movq %rbx, %rsi
callq 0x63e0
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 0xa28f
movl $0x1e8, %edx            # imm = 0x1E8
movq %r14, %rdi
movq %r15, %rsi
callq 0x63e0
cmpl $0x0, 0x6c(%rbx)
jne 0x7661
movq 0x218(%rsp), %rdi
movl 0x8(%rbx), %esi
movl 0xc(%rbx), %edx
leaq 0x6db3(%rip), %rcx      # 0xe407
callq 0xb2b0
movq %rax, 0x220(%rsp)
movl $0x1, %edi
movl $0x18, %esi
callq 0x62c0
movq %rax, 0x310(%rsp)
movl 0x8(%rbx), %ebp
movl 0xc(%rbx), %r14d
movq 0x218(%rsp), %r15
movl $0x28, %edi
callq 0x6100
movq %rax, %rbx
testq %rax, %rax
je 0x76c4
movq %r15, %rdi
movl %ebp, %esi
movl %r14d, %edx
callq 0xba40
movq %rax, (%rbx)
leaq 0x10(%rbx), %rsi
leaq 0x14(%rbx), %rdx
movq %rbx, %rcx
addq $0x18, %rcx
movq %rax, %rdi
callq 0xbcc0
movq %rax, 0x8(%rbx)
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 0x84ab
movq %rax, 0xe0(%r14)
movq %r14, %rdi
callq 0x81a2
movl $0x1e8, %edx            # imm = 0x1E8
movq %r14, %rdi
movq %rax, %rsi
callq 0x63e0
movl $0x48, %edi
callq 0x6100
movq %rax, 0xe8(%r14)
testq %rax, %rax
je 0x780d
movslq 0x378(%rsp), %rdi
shlq $0x3, %rdi
callq 0x6100
movq %rax, 0x2f8(%rsp)
testq %rax, %rax
je 0x780d
leaq 0x420(%rsp), %r14
leaq 0x238(%rsp), %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x9f4c
movl $0x1e8, %edx            # imm = 0x1E8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x63e0
movq %rbx, %rdi
callq 0x6f3a
movq 0x118(%rbx), %rdi
leaq 0x20d(%rip), %rcx       # 0x79a4
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %r8
callq 0xd4d0
movq 0x118(%rbx), %rdi
leaq 0x283(%rip), %rcx       # 0x7a3a
movl $0x3, %esi
movl $0x2, %edx
movq %rbx, %r8
callq 0xd4d0
movq 0x118(%rbx), %rdi
leaq 0x1ad(%rip), %rcx       # 0x7984
movl $0x21, %esi
movl $0x20000, %edx          # imm = 0x20000
movq %rbx, %r8
callq 0xd4d0
movq 0x218(%rsp), %rdi
leaq -0x3a6(%rip), %rsi      # 0x7452
movq %rbx, %rdx
callq 0xb520
movq 0x218(%rsp), %rdi
callq 0xb420
addq $0x608, %rsp            # imm = 0x608
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop