// File: /workspace/github_c_makefile_star2_O1/MikeyLHolm[P]Hive-lem-in/source/lem_in.c
// Function: main
int				main(int ac, char **av)
{
	t_info		*info;

	if (!(info = (t_info*)malloc(sizeof(t_info))))
		exit_error_no_info(ERR_MALLOC);
	parse_flags(ac, av, info);
	if (ac > 0 && !(info->flag_storage & HELP))
	{
		if (info->flag_storage & VERBOSE)
			ft_printf(BOLD_MAGENTA "Verbose mode activated!\n" RESET);
		lem_in(ac, av[1], info);
	}
	else if (info->flag_storage & HELP)
		help_print();
	else
		exit_error(ERR_USAGE, info);
	if (info->flag_storage & LEAKS)
		system("leaks lem-in");
	return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r15
movl %edi, %r14d
movl $0x18b0, %edi           # imm = 0x18B0
callq 0x1080
movq %rax, %rbx
testq %rax, %rax
jne 0x27f9
leaq 0x4db5(%rip), %rdi      # 0x75a9
callq 0x34ac
movl %r14d, %edi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x17f5
testl %r14d, %r14d
jle 0x29e3
movl 0x1040(%rbx), %eax
testb $0x4, %al
jne 0x29e3
testb $0x40, %al
je 0x2830
leaq 0x4e07(%rip), %rdi      # 0x7630
xorl %eax, %eax
callq 0x4b78
movl $0x10, %edi
callq 0x1080
movq %rax, %r15
testq %rax, %rax
jne 0x2851
leaq 0x4d60(%rip), %rdi      # 0x75a9
movq %rbx, %rsi
callq 0x34cb
movl $0x0, 0x1880(%rbx)
movq %rbx, %rdi
addq $0x107c, %rdi           # imm = 0x107C
movl $0x804, %edx            # imm = 0x804
movl $0xff, %esi
callq 0x1060
testb $0x1, 0x1040(%rbx)
jne 0x2884
movl $0xffffffff, 0x28(%rbx) # imm = 0xFFFFFFFF
xorl %r14d, %r14d
movq %r14, 0x2c(%rbx)
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0x1888(%rbx)
movaps 0x4d6d(%rip), %xmm0     # 0x7610
movups %xmm0, 0x1060(%rbx)
movaps 0x4d6f(%rip), %xmm0     # 0x7620
movups %xmm0, 0x1050(%rbx)
movl $0x8, %edi
callq 0x1080
movq %rax, 0x8(%rbx)
movq %r14, (%rax)
movl $0x0, 0x1070(%rbx)
movq %r14, 0x1890(%rbx)
leaq -0x30(%rbp), %rsi
xorl %edi, %edi
callq 0x4dac
testl %eax, %eax
jne 0x28f8
leaq 0x4d8a(%rip), %rdi      # 0x767a
movq %rbx, %rsi
callq 0x34cb
movq -0x30(%rbp), %rdi
callq 0x47cc
movq %rax, (%r15)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1b3e
movq -0x30(%rbp), %rdi
callq 0x1030
movq %r15, %rdi
movq %rbx, %rsi
callq 0x3730
cmpl $0x0, 0x1884(%rbx)
je 0x2a0a
movq %r15, -0x38(%rbp)
leaq 0x4d9c(%rip), %rsi      # 0x76d7
movl $0x1, %edx
movl $0x1, %edi
callq 0x1040
cmpl $0x0, 0x28(%rbx)
jle 0x29b7
xorl %r15d, %r15d
leaq 0x50f8(%rip), %r12      # 0x7a52
leaq 0x50df(%rip), %r13      # 0x7a40
leaq 0x507d(%rip), %r14      # 0x79e5
incl %r15d
movl $0x1, %edx
movl $0x1, %edi
movq %r12, %rsi
callq 0x1040
movl %r15d, %edi
callq 0x46b0
movl $0x1, %edx
movl $0x1, %edi
movq %r13, %rsi
callq 0x1040
movq (%rbx), %rdi
callq 0x4720
movl $0x1, %edx
movl $0x1, %edi
movq %r14, %rsi
callq 0x1040
cmpl 0x28(%rbx), %r15d
jl 0x2968
leaq 0x4d19(%rip), %rsi      # 0x76d7
movl $0x1, %edx
movl $0x1, %edi
callq 0x1040
movl 0x30(%rbx), %eax
movl %eax, 0x2c(%rbx)
movl $0x0, 0x30(%rbx)
movq -0x38(%rbp), %r15
jmp 0x2a6c
testb $0x4, 0x1040(%rbx)
jne 0x2a00
leaq 0x4c61(%rip), %rdi      # 0x7654
movq %rbx, %rsi
callq 0x34cb
jmp 0x2a9b
callq 0x16d4
jmp 0x2a9b
movq %rbx, %rdi
callq 0x366e
movq %rbx, %rdi
callq 0x1e73
movq %rbx, %rdi
callq 0x1d64
movq %rbx, %rdi
callq 0x43f7
testb $0x20, 0x1040(%rbx)
jne 0x2a4b
leaq 0x4c9d(%rip), %rsi      # 0x76d7
movl $0x1, %edx
movl $0x1, %edi
callq 0x1040
jmp 0x2a64
movl 0x28(%rbx), %esi
leaq 0x4c69(%rip), %rdi      # 0x76be
xorl %eax, %eax
callq 0x4b78
movq %rbx, %rdi
callq 0x3c18
movq %rbx, %rdi
callq 0x119c
testb $0x10, 0x1040(%rbx)
je 0x2a93
movl 0x1890(%rbx), %esi
movl 0x1054(%rbx), %edx
movl %edx, %ecx
subl %esi, %ecx
leaq 0x4c02(%rip), %rdi      # 0x768e
xorl %eax, %eax
callq 0x4b78
movq %r15, %rdi
callq 0x2744
testb $0x8, 0x1040(%rbx)
je 0x2ab0
leaq 0x4bc2(%rip), %rdi      # 0x766d
callq 0x1050
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)