Translating assembly code to the specified function
i have the following function in c

        uint	myFunction (uint	arrayLen,
    			 uint*	array
    			)
    {
      uint	i;
      uint	j;
      uint	sum = 0;
    
      for  (i = 0;  i < arrayLen/2;  i++)
        for  (j = 0;  j < arrayLen;  j++)
            if  (array[i*2] == array[j])
              sum += mySumFunction(arrayLen,array,6);
    
      mySortFunction(arrayLen,array);
    
      for  (i = 0;  i < arrayLen/2;  i++)
        for  (j = 0;  j < arrayLen;  j++)
            if  (array[i*2] == array[j])
              sum -= mySumFunction(arrayLen,array,7);
      
      return(sum);
    }


 and here's the output for the disassemble command on the function 

    Dump of assembler code for function myFunction:
    0x080486a8 <myFunction+0>:	push   %ebp
    0x080486a9 <myFunction+1>:	mov    %esp,%ebp
    0x080486ab <myFunction+3>:	sub    $0x1c,%esp
    0x080486ae <myFunction+6>:	call   0x8048418 <mcount@plt>
    0x080486b3 <myFunction+11>:	movl   $0x0,-0x4(%ebp)
    0x080486ba <myFunction+18>:	movl   $0x0,-0xc(%ebp)
    0x080486c1 <myFunction+25>:	jmp    0x8048713 <myFunction+107>
    0x080486c3 <myFunction+27>:	movl   $0x0,-0x8(%ebp)
    0x080486ca <myFunction+34>:	jmp    0x8048707 <myFunction+95>
    0x080486cc <myFunction+36>:	mov    -0xc(%ebp),%eax
    0x080486cf <myFunction+39>:	shl    $0x3,%eax
    0x080486d2 <myFunction+42>:	add    0xc(%ebp),%eax
    0x080486d5 <myFunction+45>:	mov    (%eax),%edx
    0x080486d7 <myFunction+47>:	mov    -0x8(%ebp),%eax
    0x080486da <myFunction+50>:	shl    $0x2,%eax
    0x080486dd <myFunction+53>:	add    0xc(%ebp),%eax
    0x080486e0 <myFunction+56>:	mov    (%eax),%eax
    0x080486e2 <myFunction+58>:	cmp    %eax,%edx
    0x080486e4 <myFunction+60>:	jne    0x8048703 <myFunction+91>
    0x080486e6 <myFunction+62>:	movl   $0x6,0x8(%esp)
    0x080486ee <myFunction+70>:	mov    0xc(%ebp),%eax
    0x080486f1 <myFunction+73>:	mov    %eax,0x4(%esp)

I was wondering if someone could help me read and translate the assembly instructions to the c code above.

Thanks for any help

Translating assembly code to the specified function
===

i have the following function in c

        uint	myFunction (uint	arrayLen,
    			 uint*	array
    			)
    {
      uint	i;
      uint	j;
      uint	sum = 0;
    
      for  (i = 0;  i < arrayLen/2;  i++)
        for  (j = 0;  j < arrayLen;  j++)
            if  (array[i*2] == array[j])
              sum += mySumFunction(arrayLen,array,6);
    
      mySortFunction(arrayLen,array);
    
      for  (i = 0;  i < arrayLen/2;  i++)
        for  (j = 0;  j < arrayLen;  j++)
            if  (array[i*2] == array[j])
              sum -= mySumFunction(arrayLen,array,7);
      
      return(sum);
    }


 and here's the output for the disassemble command on the function 

    Dump of assembler code for function myFunction:
    0x080486a8 <myFunction+0>:	push   %ebp
    0x080486a9 <myFunction+1>:	mov    %esp,%ebp
    0x080486ab <myFunction+3>:	sub    $0x1c,%esp
    0x080486ae <myFunction+6>:	call   0x8048418 <mcount@plt>
    0x080486b3 <myFunction+11>:	movl   $0x0,-0x4(%ebp)
    0x080486ba <myFunction+18>:	movl   $0x0,-0xc(%ebp)
    0x080486c1 <myFunction+25>:	jmp    0x8048713 <myFunction+107>
    0x080486c3 <myFunction+27>:	movl   $0x0,-0x8(%ebp)
    0x080486ca <myFunction+34>:	jmp    0x8048707 <myFunction+95>
    0x080486cc <myFunction+36>:	mov    -0xc(%ebp),%eax
    0x080486cf <myFunction+39>:	shl    $0x3,%eax
    0x080486d2 <myFunction+42>:	add    0xc(%ebp),%eax
    0x080486d5 <myFunction+45>:	mov    (%eax),%edx
    0x080486d7 <myFunction+47>:	mov    -0x8(%ebp),%eax
    0x080486da <myFunction+50>:	shl    $0x2,%eax
    0x080486dd <myFunction+53>:	add    0xc(%ebp),%eax
    0x080486e0 <myFunction+56>:	mov    (%eax),%eax
    0x080486e2 <myFunction+58>:	cmp    %eax,%edx
    0x080486e4 <myFunction+60>:	jne    0x8048703 <myFunction+91>
    0x080486e6 <myFunction+62>:	movl   $0x6,0x8(%esp)
    0x080486ee <myFunction+70>:	mov    0xc(%ebp),%eax
    0x080486f1 <myFunction+73>:	mov    %eax,0x4(%esp)

I was wondering if someone could help me read and translate the assembly instructions to the c code above.

Thanks for any help
