// File: /workspace/github_c_makefile_star2_O0/pvineet44[P]minishell/src/ms_process.c
// Function: process_builtin
int						process_builtin(t_minishell_meta *ms, int i, char *line)
{
	int stat;

	stat = 0;
	if (ft_strcmp(ms->piped_cmds->cmds[i], CMD_EXIT) == 0 && (stat = 1))
		ms_exit(ms, line, i);
	else if (ft_strcmp(ms->piped_cmds->cmds[i], CMD_PWD) == 0 && (stat = 1))
		ms_pwd();
	else if (ft_strcmp(ms->piped_cmds->cmds[i], CMD_CD) == 0 && (stat = 1))
		ms_cd(ms->piped_cmds->args1[i][0], ms);
	else if (ft_strcmp(ms->piped_cmds->cmds[i], CMD_ENV) == 0 && (stat = 1))
		ms_env(ms->env);
	else if (ft_strcmp(ms->piped_cmds->cmds[i], CMD_ECHO) == 0 && (stat = 1))
		ms_echo(ms->piped_cmds->args1[i]);
	else if (ft_strcmp(ms->piped_cmds->cmds[i], CMD_UNSET) == 0 && (stat = 1))
		ms_unset(ms, i);
	else if (ft_strcmp(ms->piped_cmds->cmds[i], CMD_EXPORT) == 0 && (stat = 1))
		ms_export(ms, i);
	return (stat);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x2cb6(%rip), %rsi      # 0x800a
callq 0x73c0
cmpl $0x0, %eax
jne 0x5382
movl $0x1, -0x1c(%rbp)
movb $0x1, %al
testb $0x1, %al
jne 0x536d
jmp 0x5382
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0xc(%rbp), %edx
callq 0x2980
jmp 0x553b
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x2d6d(%rip), %rsi      # 0x8109
callq 0x73c0
cmpl $0x0, %eax
jne 0x53c1
movl $0x1, -0x1c(%rbp)
movb $0x1, %al
testb $0x1, %al
jne 0x53b5
jmp 0x53c1
movb $0x0, %al
callq 0x56a0
jmp 0x5539
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x2c73(%rip), %rsi      # 0x804e
callq 0x73c0
cmpl $0x0, %eax
jne 0x5419
movl $0x1, -0x1c(%rbp)
movb $0x1, %al
testb $0x1, %al
jne 0x53f4
jmp 0x5419
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movq 0x8(%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rdi
movq -0x8(%rbp), %rsi
callq 0x2220
jmp 0x5537
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x2cda(%rip), %rsi      # 0x810d
callq 0x73c0
cmpl $0x0, %eax
jne 0x545e
movl $0x1, -0x1c(%rbp)
movb $0x1, %al
testb $0x1, %al
jne 0x544c
jmp 0x545e
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x25c0
jmp 0x5535
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x2c99(%rip), %rsi      # 0x8111
callq 0x73c0
cmpl $0x0, %eax
jne 0x54af
movl $0x1, -0x1c(%rbp)
movb $0x1, %al
testb $0x1, %al
jne 0x5491
jmp 0x54af
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movq 0x8(%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x24e0
jmp 0x5533
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x2be7(%rip), %rsi      # 0x80b0
callq 0x73c0
cmpl $0x0, %eax
jne 0x54f0
movl $0x1, -0x1c(%rbp)
movb $0x1, %al
testb $0x1, %al
jne 0x54e2
jmp 0x54f0
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x5b40
jmp 0x5531
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x2bac(%rip), %rsi      # 0x80b6
callq 0x73c0
cmpl $0x0, %eax
jne 0x552f
movl $0x1, -0x1c(%rbp)
movb $0x1, %al
testb $0x1, %al
jne 0x5523
jmp 0x552f
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x2fa0
jmp 0x5531
jmp 0x5533
jmp 0x5535
jmp 0x5537
jmp 0x5539
jmp 0x553b
movl -0x1c(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)