section .text
    global _start
    extern __libc_csu_init
    extern __libc_csu_fini
    global _init
    extern main
    extern __main
    extern exit
    extern add_code_ptr

code_start:
_init:
	push ebp
	mov ebp,esp
	leave
	ret

_start:
	push ebp
	mov ebp,esp
	sub esp,24

	mov eax,ebp
   add eax,12

	mov [ebp - 4],eax
	mov [ebp + 8],eax
	mov edx,eax

   mov eax,edx
   imul eax,5

	mov edx,eax
	add edx,[ebp - 4]

   push dword 0
   push dword 0
   push dword 0
   call __libc_csu_init
   add esp,12

	mov eax,[ebp - 8]
	add esp,-4

	mov eax,[ebp - 8]
	push eax
	mov eax,[ebp - 4]
	push eax
	mov eax,[ebp + 8]
	push eax
	call __main
	add esp,12

   push eax

   call __libc_csu_fini

	call exit
	add esp,4

	mov eax,0
	leave
	ret
code_end:


