// File: /workspace/github_c_makefile_star2_O0/Gaurang18[P]Compiler-Project-BITS-Pilani/./parser.c
// Function: findfirst
void findfirst(int result[150], int n, int G[][14]){  //find first set of a given non-terminal
int i, k, j = 0, l;

if(n > 51)
    result[0] = n;

else{

for(i = 0; i < 94; i++)
    if(G[i][0] == n){

        
        if (G[i][1] > 51)
            {if(!presentIn(result, G[i][1])){
                    result[j++] = G[i][1];
                }}

        else{
        for(k = 1; k < size_of(G[i]); k++){
            int flag = 0;
            int subresult[150] = {0};

            findfirst(subresult, G[i][k], G);

            for(l = 0; subresult[l]!=0; l++){
                if(subresult[l] == 109)
                    flag = 1;
                else
                if(!presentIn(result, subresult[l])){
                    result[j++] = subresult[l];
                }
                
            }
            
            if(flag!=1)
                break;



        }
            }


    }}

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2a0, %rsp            # imm = 0x2A0
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl $0x0, -0x24(%rbp)
cmpl $0x33, -0xc(%rbp)
jle 0x4481
movl -0xc(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, (%rax)
jmp 0x4623
movl $0x0, -0x1c(%rbp)
cmpl $0x5e, -0x1c(%rbp)
jge 0x4621
movq -0x18(%rbp), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %eax
cmpl -0xc(%rbp), %eax
jne 0x4611
movq -0x18(%rbp), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
cmpl $0x33, 0x4(%rax)
jle 0x450d
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %esi
callq 0x4330
cmpl $0x0, %eax
jne 0x4508
movq -0x18(%rbp), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %edx
movq -0x8(%rbp), %rax
movl -0x24(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x24(%rbp)
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x460f
movl $0x1, -0x20(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x294(%rbp)
movq -0x18(%rbp), %rdi
movslq -0x1c(%rbp), %rax
imulq $0x38, %rax, %rax
addq %rax, %rdi
callq 0x42f0
movl %eax, %ecx
movl -0x294(%rbp), %eax
cmpl %ecx, %eax
jge 0x460d
movl $0x0, -0x2c(%rbp)
leaq -0x290(%rbp), %rdi
xorl %esi, %esi
movl $0x258, %edx            # imm = 0x258
callq 0x20c0
leaq -0x290(%rbp), %rdi
movq -0x18(%rbp), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movslq -0x20(%rbp), %rcx
movl (%rax,%rcx,4), %esi
movq -0x18(%rbp), %rdx
callq 0x4450
movl $0x0, -0x28(%rbp)
movslq -0x28(%rbp), %rax
cmpl $0x0, -0x290(%rbp,%rax,4)
je 0x45f5
movslq -0x28(%rbp), %rax
cmpl $0x6d, -0x290(%rbp,%rax,4)
jne 0x45ad
movl $0x1, -0x2c(%rbp)
jmp 0x45e8
movq -0x8(%rbp), %rdi
movslq -0x28(%rbp), %rax
movl -0x290(%rbp,%rax,4), %esi
callq 0x4330
cmpl $0x0, %eax
jne 0x45e6
movslq -0x28(%rbp), %rax
movl -0x290(%rbp,%rax,4), %edx
movq -0x8(%rbp), %rax
movl -0x24(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x24(%rbp)
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x45e8
jmp 0x45ea
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x4588
cmpl $0x1, -0x2c(%rbp)
je 0x45fd
jmp 0x460d
jmp 0x45ff
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x4514
jmp 0x460f
jmp 0x4611
jmp 0x4613
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x4488
jmp 0x4623
addq $0x2a0, %rsp            # imm = 0x2A0
popq %rbp
retq
nopl (%rax)