Google Answers Logo
View Question
 
Q: Help me convert the assembly into C ( No Answer,   2 Comments )
Question  
Subject: Help me convert the assembly into C
Category: Computers > Programming
Asked by: ligerdave-ga
List Price: $20.00
Posted: 17 Nov 2005 18:54 PST
Expires: 17 Dec 2005 18:54 PST
Question ID: 594461
Can anyone help me convert the assembly code into C code?


bomb:     file format elf32-i386

Disassembly of section .init:

080487d8 <_init>:
 80487d8:	55                   	push   %ebp
 80487d9:	89 e5                	mov    %esp,%ebp
 80487db:	83 ec 08             	sub    $0x8,%esp
 80487de:	e8 41 02 00 00       	call   8048a24 <call_gmon_start>
 80487e3:	e8 98 02 00 00       	call   8048a80 <frame_dummy>
 80487e8:	e8 e3 0f 00 00       	call   80497d0 <__do_global_ctors_aux>
 80487ed:	89 ec                	mov    %ebp,%esp
 80487ef:	5d                   	pop    %ebp
 80487f0:	c3                   	ret    
Disassembly of section .plt:

080487f4 <.plt>:
 80487f4:	ff 35 ec a7 04 08    	pushl  0x804a7ec
 80487fa:	ff 25 f0 a7 04 08    	jmp    *0x804a7f0
 8048800:	00 00                	add    %al,(%eax)
 8048802:	00 00                	add    %al,(%eax)
 8048804:	ff 25 f4 a7 04 08    	jmp    *0x804a7f4
 804880a:	68 00 00 00 00       	push   $0x0
 804880f:	e9 e0 ff ff ff       	jmp    80487f4 <_init+0x1c>
 8048814:	ff 25 f8 a7 04 08    	jmp    *0x804a7f8
 804881a:	68 08 00 00 00       	push   $0x8
 804881f:	e9 d0 ff ff ff       	jmp    80487f4 <_init+0x1c>
 8048824:	ff 25 fc a7 04 08    	jmp    *0x804a7fc
 804882a:	68 10 00 00 00       	push   $0x10
 804882f:	e9 c0 ff ff ff       	jmp    80487f4 <_init+0x1c>
 8048834:	ff 25 00 a8 04 08    	jmp    *0x804a800
 804883a:	68 18 00 00 00       	push   $0x18
 804883f:	e9 b0 ff ff ff       	jmp    80487f4 <_init+0x1c>
 8048844:	ff 25 04 a8 04 08    	jmp    *0x804a804
 804884a:	68 20 00 00 00       	push   $0x20
 804884f:	e9 a0 ff ff ff       	jmp    80487f4 <_init+0x1c>
 8048854:	ff 25 08 a8 04 08    	jmp    *0x804a808
 804885a:	68 28 00 00 00       	push   $0x28
 804885f:	e9 90 ff ff ff       	jmp    80487f4 <_init+0x1c>
 8048864:	ff 25 0c a8 04 08    	jmp    *0x804a80c
 804886a:	68 30 00 00 00       	push   $0x30
 804886f:	e9 80 ff ff ff       	jmp    80487f4 <_init+0x1c>
 8048874:	ff 25 10 a8 04 08    	jmp    *0x804a810
 804887a:	68 38 00 00 00       	push   $0x38
 804887f:	e9 70 ff ff ff       	jmp    80487f4 <_init+0x1c>
 8048884:	ff 25 14 a8 04 08    	jmp    *0x804a814
 804888a:	68 40 00 00 00       	push   $0x40
 804888f:	e9 60 ff ff ff       	jmp    80487f4 <_init+0x1c>
 8048894:	ff 25 18 a8 04 08    	jmp    *0x804a818
 804889a:	68 48 00 00 00       	push   $0x48
 804889f:	e9 50 ff ff ff       	jmp    80487f4 <_init+0x1c>
 80488a4:	ff 25 1c a8 04 08    	jmp    *0x804a81c
 80488aa:	68 50 00 00 00       	push   $0x50
 80488af:	e9 40 ff ff ff       	jmp    80487f4 <_init+0x1c>
 80488b4:	ff 25 20 a8 04 08    	jmp    *0x804a820
 80488ba:	68 58 00 00 00       	push   $0x58
 80488bf:	e9 30 ff ff ff       	jmp    80487f4 <_init+0x1c>
 80488c4:	ff 25 24 a8 04 08    	jmp    *0x804a824
 80488ca:	68 60 00 00 00       	push   $0x60
 80488cf:	e9 20 ff ff ff       	jmp    80487f4 <_init+0x1c>
 80488d4:	ff 25 28 a8 04 08    	jmp    *0x804a828
 80488da:	68 68 00 00 00       	push   $0x68
 80488df:	e9 10 ff ff ff       	jmp    80487f4 <_init+0x1c>
 80488e4:	ff 25 2c a8 04 08    	jmp    *0x804a82c
 80488ea:	68 70 00 00 00       	push   $0x70
 80488ef:	e9 00 ff ff ff       	jmp    80487f4 <_init+0x1c>
 80488f4:	ff 25 30 a8 04 08    	jmp    *0x804a830
 80488fa:	68 78 00 00 00       	push   $0x78
 80488ff:	e9 f0 fe ff ff       	jmp    80487f4 <_init+0x1c>
 8048904:	ff 25 34 a8 04 08    	jmp    *0x804a834
 804890a:	68 80 00 00 00       	push   $0x80
 804890f:	e9 e0 fe ff ff       	jmp    80487f4 <_init+0x1c>
 8048914:	ff 25 38 a8 04 08    	jmp    *0x804a838
 804891a:	68 88 00 00 00       	push   $0x88
 804891f:	e9 d0 fe ff ff       	jmp    80487f4 <_init+0x1c>
 8048924:	ff 25 3c a8 04 08    	jmp    *0x804a83c
 804892a:	68 90 00 00 00       	push   $0x90
 804892f:	e9 c0 fe ff ff       	jmp    80487f4 <_init+0x1c>
 8048934:	ff 25 40 a8 04 08    	jmp    *0x804a840
 804893a:	68 98 00 00 00       	push   $0x98
 804893f:	e9 b0 fe ff ff       	jmp    80487f4 <_init+0x1c>
 8048944:	ff 25 44 a8 04 08    	jmp    *0x804a844
 804894a:	68 a0 00 00 00       	push   $0xa0
 804894f:	e9 a0 fe ff ff       	jmp    80487f4 <_init+0x1c>
 8048954:	ff 25 48 a8 04 08    	jmp    *0x804a848
 804895a:	68 a8 00 00 00       	push   $0xa8
 804895f:	e9 90 fe ff ff       	jmp    80487f4 <_init+0x1c>
 8048964:	ff 25 4c a8 04 08    	jmp    *0x804a84c
 804896a:	68 b0 00 00 00       	push   $0xb0
 804896f:	e9 80 fe ff ff       	jmp    80487f4 <_init+0x1c>
 8048974:	ff 25 50 a8 04 08    	jmp    *0x804a850
 804897a:	68 b8 00 00 00       	push   $0xb8
 804897f:	e9 70 fe ff ff       	jmp    80487f4 <_init+0x1c>
 8048984:	ff 25 54 a8 04 08    	jmp    *0x804a854
 804898a:	68 c0 00 00 00       	push   $0xc0
 804898f:	e9 60 fe ff ff       	jmp    80487f4 <_init+0x1c>
 8048994:	ff 25 58 a8 04 08    	jmp    *0x804a858
 804899a:	68 c8 00 00 00       	push   $0xc8
 804899f:	e9 50 fe ff ff       	jmp    80487f4 <_init+0x1c>
 80489a4:	ff 25 5c a8 04 08    	jmp    *0x804a85c
 80489aa:	68 d0 00 00 00       	push   $0xd0
 80489af:	e9 40 fe ff ff       	jmp    80487f4 <_init+0x1c>
 80489b4:	ff 25 60 a8 04 08    	jmp    *0x804a860
 80489ba:	68 d8 00 00 00       	push   $0xd8
 80489bf:	e9 30 fe ff ff       	jmp    80487f4 <_init+0x1c>
 80489c4:	ff 25 64 a8 04 08    	jmp    *0x804a864
 80489ca:	68 e0 00 00 00       	push   $0xe0
 80489cf:	e9 20 fe ff ff       	jmp    80487f4 <_init+0x1c>
 80489d4:	ff 25 68 a8 04 08    	jmp    *0x804a868
 80489da:	68 e8 00 00 00       	push   $0xe8
 80489df:	e9 10 fe ff ff       	jmp    80487f4 <_init+0x1c>
 80489e4:	ff 25 6c a8 04 08    	jmp    *0x804a86c
 80489ea:	68 f0 00 00 00       	push   $0xf0
 80489ef:	e9 00 fe ff ff       	jmp    80487f4 <_init+0x1c>
Disassembly of section .text:

08048a00 <_start>:
 8048a00:	31 ed                	xor    %ebp,%ebp
 8048a02:	5e                   	pop    %esi
 8048a03:	89 e1                	mov    %esp,%ecx
 8048a05:	83 e4 f0             	and    $0xfffffff0,%esp
 8048a08:	50                   	push   %eax
 8048a09:	54                   	push   %esp
 8048a0a:	52                   	push   %edx
 8048a0b:	68 78 97 04 08       	push   $0x8049778
 8048a10:	68 30 97 04 08       	push   $0x8049730
 8048a15:	51                   	push   %ecx
 8048a16:	56                   	push   %esi
 8048a17:	68 a4 8a 04 08       	push   $0x8048aa4
 8048a1c:	e8 c3 fe ff ff       	call   80488e4 <_init+0x10c>
 8048a21:	f4                   	hlt    
 8048a22:	90                   	nop    
 8048a23:	90                   	nop    

08048a24 <call_gmon_start>:
 8048a24:	55                   	push   %ebp
 8048a25:	89 e5                	mov    %esp,%ebp
 8048a27:	83 ec 08             	sub    $0x8,%esp
 8048a2a:	89 5d fc             	mov    %ebx,0xfffffffc(%ebp)
 8048a2d:	e8 19 00 00 00       	call   8048a4b <__i686.get_pc_thunk.bx>
 8048a32:	81 c3 b6 1d 00 00    	add    $0x1db6,%ebx
 8048a38:	8b 83 88 00 00 00    	mov    0x88(%ebx),%eax
 8048a3e:	85 c0                	test   %eax,%eax
 8048a40:	74 02                	je     8048a44 <call_gmon_start+0x20>
 8048a42:	ff d0                	call   *%eax
 8048a44:	8b 5d fc             	mov    0xfffffffc(%ebp),%ebx
 8048a47:	89 ec                	mov    %ebp,%esp
 8048a49:	5d                   	pop    %ebp
 8048a4a:	c3                   	ret    

08048a4b <__i686.get_pc_thunk.bx>:
 8048a4b:	8b 1c 24             	mov    (%esp),%ebx
 8048a4e:	c3                   	ret    
 8048a4f:	90                   	nop    

08048a50 <__do_global_dtors_aux>:
 8048a50:	55                   	push   %ebp
 8048a51:	89 e5                	mov    %esp,%ebp
 8048a53:	83 ec 08             	sub    $0x8,%esp
 8048a56:	80 3d 88 a8 04 08 00 	cmpb   $0x0,0x804a888
 8048a5d:	74 0c                	je     8048a6b <__do_global_dtors_aux+0x1b>
 8048a5f:	eb 1c                	jmp    8048a7d <__do_global_dtors_aux+0x2d>
 8048a61:	83 c0 04             	add    $0x4,%eax
 8048a64:	a3 08 a0 04 08       	mov    %eax,0x804a008
 8048a69:	ff d2                	call   *%edx
 8048a6b:	a1 08 a0 04 08       	mov    0x804a008,%eax
 8048a70:	8b 10                	mov    (%eax),%edx
 8048a72:	85 d2                	test   %edx,%edx
 8048a74:	75 eb                	jne    8048a61 <__do_global_dtors_aux+0x11>
 8048a76:	c6 05 88 a8 04 08 01 	movb   $0x1,0x804a888
 8048a7d:	c9                   	leave  
 8048a7e:	c3                   	ret    
 8048a7f:	90                   	nop    

08048a80 <frame_dummy>:
 8048a80:	55                   	push   %ebp
 8048a81:	89 e5                	mov    %esp,%ebp
 8048a83:	83 ec 08             	sub    $0x8,%esp
 8048a86:	a1 e4 a7 04 08       	mov    0x804a7e4,%eax
 8048a8b:	85 c0                	test   %eax,%eax
 8048a8d:	74 12                	je     8048aa1 <frame_dummy+0x21>
 8048a8f:	b8 00 00 00 00       	mov    $0x0,%eax
 8048a94:	85 c0                	test   %eax,%eax
 8048a96:	74 09                	je     8048aa1 <frame_dummy+0x21>
 8048a98:	c7 04 24 e4 a7 04 08 	movl   $0x804a7e4,(%esp)
 8048a9f:	ff d0                	call   *%eax
 8048aa1:	c9                   	leave  
 8048aa2:	c3                   	ret    
 8048aa3:	90                   	nop    

08048aa4 <main>:
 8048aa4:	55                   	push   %ebp
 8048aa5:	89 e5                	mov    %esp,%ebp
 8048aa7:	53                   	push   %ebx
 8048aa8:	83 ec 14             	sub    $0x14,%esp
 8048aab:	8b 45 08             	mov    0x8(%ebp),%eax
 8048aae:	8b 5d 0c             	mov    0xc(%ebp),%ebx
 8048ab1:	83 e4 f0             	and    $0xfffffff0,%esp
 8048ab4:	83 ec 10             	sub    $0x10,%esp
 8048ab7:	83 f8 01             	cmp    $0x1,%eax
 8048aba:	75 0c                	jne    8048ac8 <main+0x24>
 8048abc:	a1 84 a8 04 08       	mov    0x804a884,%eax
 8048ac1:	a3 90 a8 04 08       	mov    %eax,0x804a890
 8048ac6:	eb 64                	jmp    8048b2c <main+0x88>
 8048ac8:	83 f8 02             	cmp    $0x2,%eax
 8048acb:	75 41                	jne    8048b0e <main+0x6a>
 8048acd:	c7 44 24 04 e0 9c 04 	movl   $0x8049ce0,0x4(%esp)
 8048ad4:	08 
 8048ad5:	8b 43 04             	mov    0x4(%ebx),%eax
 8048ad8:	89 04 24             	mov    %eax,(%esp)
 8048adb:	e8 94 fe ff ff       	call   8048974 <_init+0x19c>
 8048ae0:	a3 90 a8 04 08       	mov    %eax,0x804a890
 8048ae5:	85 c0                	test   %eax,%eax
 8048ae7:	75 43                	jne    8048b2c <main+0x88>
 8048ae9:	8b 43 04             	mov    0x4(%ebx),%eax
 8048aec:	89 44 24 08          	mov    %eax,0x8(%esp)
 8048af0:	8b 03                	mov    (%ebx),%eax
 8048af2:	89 44 24 04          	mov    %eax,0x4(%esp)
 8048af6:	c7 04 24 2c 98 04 08 	movl   $0x804982c,(%esp)
 8048afd:	e8 f2 fd ff ff       	call   80488f4 <_init+0x11c>
 8048b02:	c7 04 24 08 00 00 00 	movl   $0x8,(%esp)
 8048b09:	e8 36 fe ff ff       	call   8048944 <_init+0x16c>
 8048b0e:	8b 03                	mov    (%ebx),%eax
 8048b10:	89 44 24 04          	mov    %eax,0x4(%esp)
 8048b14:	c7 04 24 49 98 04 08 	movl   $0x8049849,(%esp)
 8048b1b:	e8 d4 fd ff ff       	call   80488f4 <_init+0x11c>
 8048b20:	c7 04 24 08 00 00 00 	movl   $0x8,(%esp)
 8048b27:	e8 18 fe ff ff       	call   8048944 <_init+0x16c>
 8048b2c:	e8 cd 06 00 00       	call   80491fe <initialize_bomb>
 8048b31:	c7 04 24 b0 98 04 08 	movl   $0x80498b0,(%esp)
 8048b38:	e8 57 fd ff ff       	call   8048894 <_init+0xbc>
 8048b3d:	c7 04 24 ec 98 04 08 	movl   $0x80498ec,(%esp)
 8048b44:	e8 4b fd ff ff       	call   8048894 <_init+0xbc>
 8048b49:	e8 ea 07 00 00       	call   8049338 <read_line>
 8048b4e:	89 04 24             	mov    %eax,(%esp)
 8048b51:	e8 aa 00 00 00       	call   8048c00 <phase_1>
 8048b56:	e8 35 0b 00 00       	call   8049690 <phase_defused>
 8048b5b:	c7 04 24 18 99 04 08 	movl   $0x8049918,(%esp)
 8048b62:	e8 2d fd ff ff       	call   8048894 <_init+0xbc>
 8048b67:	e8 cc 07 00 00       	call   8049338 <read_line>
 8048b6c:	89 04 24             	mov    %eax,(%esp)
 8048b6f:	e8 b0 00 00 00       	call   8048c24 <phase_2>
 8048b74:	e8 17 0b 00 00       	call   8049690 <phase_defused>
 8048b79:	c7 04 24 63 98 04 08 	movl   $0x8049863,(%esp)
 8048b80:	e8 0f fd ff ff       	call   8048894 <_init+0xbc>
 8048b85:	e8 ae 07 00 00       	call   8049338 <read_line>
 8048b8a:	89 04 24             	mov    %eax,(%esp)
 8048b8d:	e8 ec 00 00 00       	call   8048c7e <phase_3>
 8048b92:	e8 f9 0a 00 00       	call   8049690 <phase_defused>
 8048b97:	c7 04 24 81 98 04 08 	movl   $0x8049881,(%esp)
 8048b9e:	e8 f1 fc ff ff       	call   8048894 <_init+0xbc>
 8048ba3:	e8 90 07 00 00       	call   8049338 <read_line>
 8048ba8:	89 04 24             	mov    %eax,(%esp)
 8048bab:	e8 c0 01 00 00       	call   8048d70 <phase_4>
 8048bb0:	e8 db 0a 00 00       	call   8049690 <phase_defused>
 8048bb5:	c7 04 24 44 99 04 08 	movl   $0x8049944,(%esp)
 8048bbc:	e8 d3 fc ff ff       	call   8048894 <_init+0xbc>
 8048bc1:	e8 72 07 00 00       	call   8049338 <read_line>
 8048bc6:	89 04 24             	mov    %eax,(%esp)
 8048bc9:	e8 f3 01 00 00       	call   8048dc1 <phase_5>
 8048bce:	e8 bd 0a 00 00       	call   8049690 <phase_defused>
 8048bd3:	c7 04 24 90 98 04 08 	movl   $0x8049890,(%esp)
 8048bda:	e8 b5 fc ff ff       	call   8048894 <_init+0xbc>
 8048bdf:	e8 54 07 00 00       	call   8049338 <read_line>
 8048be4:	89 04 24             	mov    %eax,(%esp)
 8048be7:	e8 7c 02 00 00       	call   8048e68 <phase_6>
 8048bec:	e8 9f 0a 00 00       	call   8049690 <phase_defused>
 8048bf1:	b8 00 00 00 00       	mov    $0x0,%eax
 8048bf6:	8b 5d fc             	mov    0xfffffffc(%ebp),%ebx
 8048bf9:	c9                   	leave  
 8048bfa:	c3                   	ret    
 8048bfb:	90                   	nop    
 8048bfc:	90                   	nop    
 8048bfd:	90                   	nop    
 8048bfe:	90                   	nop    
 8048bff:	90                   	nop    

08048c00 <phase_1>:
 8048c00:	55                   	push   %ebp
 8048c01:	89 e5                	mov    %esp,%ebp
 8048c03:	83 ec 08             	sub    $0x8,%esp
 8048c06:	c7 44 24 04 68 99 04 	movl   $0x8049968,0x4(%esp)
 8048c0d:	08 
 8048c0e:	8b 45 08             	mov    0x8(%ebp),%eax
 8048c11:	89 04 24             	mov    %eax,(%esp)
 8048c14:	e8 76 04 00 00       	call   804908f <strings_not_equal>
 8048c19:	85 c0                	test   %eax,%eax
 8048c1b:	74 05                	je     8048c22 <phase_1+0x22>
 8048c1d:	e8 2c 0a 00 00       	call   804964e <explode_bomb>
 8048c22:	c9                   	leave  
 8048c23:	c3                   	ret    

08048c24 <phase_2>:
 8048c24:	55                   	push   %ebp
 8048c25:	89 e5                	mov    %esp,%ebp
 8048c27:	83 ec 38             	sub    $0x38,%esp
 8048c2a:	89 5d f4             	mov    %ebx,0xfffffff4(%ebp)
 8048c2d:	89 75 f8             	mov    %esi,0xfffffff8(%ebp)
 8048c30:	89 7d fc             	mov    %edi,0xfffffffc(%ebp)
 8048c33:	8d 45 dc             	lea    0xffffffdc(%ebp),%eax
 8048c36:	89 44 24 04          	mov    %eax,0x4(%esp)
 8048c3a:	8b 45 08             	mov    0x8(%ebp),%eax
 8048c3d:	89 04 24             	mov    %eax,(%esp)
 8048c40:	e8 db 03 00 00       	call   8049020 <read_six_numbers>
 8048c45:	bf 00 00 00 00       	mov    $0x0,%edi
 8048c4a:	8d 5d e8             	lea    0xffffffe8(%ebp),%ebx
 8048c4d:	8d 73 f4             	lea    0xfffffff4(%ebx),%esi
 8048c50:	8b 43 f4             	mov    0xfffffff4(%ebx),%eax
 8048c53:	3b 03                	cmp    (%ebx),%eax
 8048c55:	74 05                	je     8048c5c <phase_2+0x38>
 8048c57:	e8 f2 09 00 00       	call   804964e <explode_bomb>
 8048c5c:	03 3e                	add    (%esi),%edi
 8048c5e:	83 c3 04             	add    $0x4,%ebx
 8048c61:	8d 45 f4             	lea    0xfffffff4(%ebp),%eax
 8048c64:	39 c3                	cmp    %eax,%ebx
 8048c66:	75 e5                	jne    8048c4d <phase_2+0x29>
 8048c68:	85 ff                	test   %edi,%edi
 8048c6a:	75 05                	jne    8048c71 <phase_2+0x4d>
 8048c6c:	e8 dd 09 00 00       	call   804964e <explode_bomb>
 8048c71:	8b 5d f4             	mov    0xfffffff4(%ebp),%ebx
 8048c74:	8b 75 f8             	mov    0xfffffff8(%ebp),%esi
 8048c77:	8b 7d fc             	mov    0xfffffffc(%ebp),%edi
 8048c7a:	89 ec                	mov    %ebp,%esp
 8048c7c:	5d                   	pop    %ebp
 8048c7d:	c3                   	ret    

08048c7e <phase_3>:
 8048c7e:	55                   	push   %ebp
 8048c7f:	89 e5                	mov    %esp,%ebp
 8048c81:	83 ec 28             	sub    $0x28,%esp
 8048c84:	8d 45 f8             	lea    0xfffffff8(%ebp),%eax
 8048c87:	89 44 24 0c          	mov    %eax,0xc(%esp)
 8048c8b:	8d 45 fc             	lea    0xfffffffc(%ebp),%eax
 8048c8e:	89 44 24 08          	mov    %eax,0x8(%esp)
 8048c92:	c7 44 24 04 30 9c 04 	movl   $0x8049c30,0x4(%esp)
 8048c99:	08 
 8048c9a:	8b 45 08             	mov    0x8(%ebp),%eax
 8048c9d:	89 04 24             	mov    %eax,(%esp)
 8048ca0:	e8 af fc ff ff       	call   8048954 <_init+0x17c>
 8048ca5:	83 f8 01             	cmp    $0x1,%eax
 8048ca8:	7f 05                	jg     8048caf <phase_3+0x31>
 8048caa:	e8 9f 09 00 00       	call   804964e <explode_bomb>
 8048caf:	83 7d fc 07          	cmpl   $0x7,0xfffffffc(%ebp)
 8048cb3:	77 6e                	ja     8048d23 <phase_3+0xa5>
 8048cb5:	8b 45 fc             	mov    0xfffffffc(%ebp),%eax
 8048cb8:	ff 24 85 4c 9a 04 08 	jmp    *0x8049a4c(,%eax,4)
 8048cbf:	b8 00 00 00 00       	mov    $0x0,%eax
 8048cc4:	eb 56                	jmp    8048d1c <phase_3+0x9e>
 8048cc6:	b8 00 00 00 00       	mov    $0x0,%eax
 8048ccb:	90                   	nop    
 8048ccc:	8d 74 26 00          	lea    0x0(%esi),%esi
 8048cd0:	eb 45                	jmp    8048d17 <phase_3+0x99>
 8048cd2:	b8 00 00 00 00       	mov    $0x0,%eax
 8048cd7:	eb 39                	jmp    8048d12 <phase_3+0x94>
 8048cd9:	b8 00 00 00 00       	mov    $0x0,%eax
 8048cde:	89 f6                	mov    %esi,%esi
 8048ce0:	eb 2b                	jmp    8048d0d <phase_3+0x8f>
 8048ce2:	b8 00 00 00 00       	mov    $0x0,%eax
 8048ce7:	eb 1f                	jmp    8048d08 <phase_3+0x8a>
 8048ce9:	b8 00 00 00 00       	mov    $0x0,%eax
 8048cee:	89 f6                	mov    %esi,%esi
 8048cf0:	eb 11                	jmp    8048d03 <phase_3+0x85>
 8048cf2:	b8 5a 00 00 00       	mov    $0x5a,%eax
 8048cf7:	eb 05                	jmp    8048cfe <phase_3+0x80>
 8048cf9:	b8 00 00 00 00       	mov    $0x0,%eax
 8048cfe:	2d d6 00 00 00       	sub    $0xd6,%eax
 8048d03:	05 b2 01 00 00       	add    $0x1b2,%eax
 8048d08:	2d ce 00 00 00       	sub    $0xce,%eax
 8048d0d:	05 5e 01 00 00       	add    $0x15e,%eax
 8048d12:	2d a6 01 00 00       	sub    $0x1a6,%eax
 8048d17:	05 a6 01 00 00       	add    $0x1a6,%eax
 8048d1c:	2d 99 01 00 00       	sub    $0x199,%eax
 8048d21:	eb 0a                	jmp    8048d2d <phase_3+0xaf>
 8048d23:	e8 26 09 00 00       	call   804964e <explode_bomb>
 8048d28:	b8 00 00 00 00       	mov    $0x0,%eax
 8048d2d:	83 7d fc 05          	cmpl   $0x5,0xfffffffc(%ebp)
 8048d31:	7f 05                	jg     8048d38 <phase_3+0xba>
 8048d33:	3b 45 f8             	cmp    0xfffffff8(%ebp),%eax
 8048d36:	74 05                	je     8048d3d <phase_3+0xbf>
 8048d38:	e8 11 09 00 00       	call   804964e <explode_bomb>
 8048d3d:	c9                   	leave  
 8048d3e:	89 f6                	mov    %esi,%esi
 8048d40:	c3                   	ret    

08048d41 <func4>:
 8048d41:	55                   	push   %ebp
 8048d42:	89 e5                	mov    %esp,%ebp
 8048d44:	53                   	push   %ebx
 8048d45:	8b 5d 08             	mov    0x8(%ebp),%ebx
 8048d48:	b9 01 00 00 00       	mov    $0x1,%ecx
 8048d4d:	85 db                	test   %ebx,%ebx
 8048d4f:	7e 1a                	jle    8048d6b <func4+0x2a>
 8048d51:	b9 01 00 00 00       	mov    $0x1,%ecx
 8048d56:	ba 00 00 00 00       	mov    $0x0,%edx
 8048d5b:	8d 04 cd 00 00 00 00 	lea    0x0(,%ecx,8),%eax
 8048d62:	29 c8                	sub    %ecx,%eax
 8048d64:	89 c1                	mov    %eax,%ecx
 8048d66:	42                   	inc    %edx
 8048d67:	39 d3                	cmp    %edx,%ebx
 8048d69:	75 f0                	jne    8048d5b <func4+0x1a>
 8048d6b:	89 c8                	mov    %ecx,%eax
 8048d6d:	5b                   	pop    %ebx
 8048d6e:	5d                   	pop    %ebp
 8048d6f:	c3                   	ret    

08048d70 <phase_4>:
 8048d70:	55                   	push   %ebp
 8048d71:	89 e5                	mov    %esp,%ebp
 8048d73:	83 ec 28             	sub    $0x28,%esp
 8048d76:	8d 45 fc             	lea    0xfffffffc(%ebp),%eax
 8048d79:	89 44 24 08          	mov    %eax,0x8(%esp)
 8048d7d:	c7 44 24 04 33 9c 04 	movl   $0x8049c33,0x4(%esp)
 8048d84:	08 
 8048d85:	8b 45 08             	mov    0x8(%ebp),%eax
 8048d88:	89 04 24             	mov    %eax,(%esp)
 8048d8b:	e8 c4 fb ff ff       	call   8048954 <_init+0x17c>
 8048d90:	83 f8 01             	cmp    $0x1,%eax
 8048d93:	75 06                	jne    8048d9b <phase_4+0x2b>
 8048d95:	83 7d fc 00          	cmpl   $0x0,0xfffffffc(%ebp)
 8048d99:	7f 0a                	jg     8048da5 <phase_4+0x35>
 8048d9b:	90                   	nop    
 8048d9c:	8d 74 26 00          	lea    0x0(%esi),%esi
 8048da0:	e8 a9 08 00 00       	call   804964e <explode_bomb>
 8048da5:	8b 45 fc             	mov    0xfffffffc(%ebp),%eax
 8048da8:	89 04 24             	mov    %eax,(%esp)
 8048dab:	e8 91 ff ff ff       	call   8048d41 <func4>
 8048db0:	3d 61 09 00 00       	cmp    $0x961,%eax
 8048db5:	74 05                	je     8048dbc <phase_4+0x4c>
 8048db7:	e8 92 08 00 00       	call   804964e <explode_bomb>
 8048dbc:	c9                   	leave  
 8048dbd:	8d 76 00             	lea    0x0(%esi),%esi
 8048dc0:	c3                   	ret    

08048dc1 <phase_5>:
 8048dc1:	55                   	push   %ebp
 8048dc2:	89 e5                	mov    %esp,%ebp
 8048dc4:	56                   	push   %esi
 8048dc5:	53                   	push   %ebx
 8048dc6:	83 ec 10             	sub    $0x10,%esp
 8048dc9:	8b 75 08             	mov    0x8(%ebp),%esi
 8048dcc:	89 34 24             	mov    %esi,(%esp)
 8048dcf:	e8 9d 02 00 00       	call   8049071 <string_length>
 8048dd4:	83 f8 06             	cmp    $0x6,%eax
 8048dd7:	74 05                	je     8048dde <phase_5+0x1d>
 8048dd9:	e8 70 08 00 00       	call   804964e <explode_bomb>
 8048dde:	b9 00 00 00 00       	mov    $0x0,%ecx
 8048de3:	ba 01 00 00 00       	mov    $0x1,%edx
 8048de8:	bb 40 a4 04 08       	mov    $0x804a440,%ebx
 8048ded:	0f be 44 16 ff       	movsbl 0xffffffff(%esi,%edx,1),%eax
 8048df2:	83 e0 0f             	and    $0xf,%eax
 8048df5:	03 0c 83             	add    (%ebx,%eax,4),%ecx
 8048df8:	42                   	inc    %edx
 8048df9:	83 fa 07             	cmp    $0x7,%edx
 8048dfc:	75 ef                	jne    8048ded <phase_5+0x2c>
 8048dfe:	83 f9 21             	cmp    $0x21,%ecx
 8048e01:	74 05                	je     8048e08 <phase_5+0x47>
 8048e03:	e8 46 08 00 00       	call   804964e <explode_bomb>
 8048e08:	83 c4 10             	add    $0x10,%esp
 8048e0b:	5b                   	pop    %ebx
 8048e0c:	5e                   	pop    %esi
 8048e0d:	5d                   	pop    %ebp
 8048e0e:	c3                   	ret    

08048e0f <fun6>:
 8048e0f:	55                   	push   %ebp
 8048e10:	89 e5                	mov    %esp,%ebp
 8048e12:	56                   	push   %esi
 8048e13:	53                   	push   %ebx
 8048e14:	8b 45 08             	mov    0x8(%ebp),%eax
 8048e17:	8b 48 08             	mov    0x8(%eax),%ecx
 8048e1a:	c7 40 08 00 00 00 00 	movl   $0x0,0x8(%eax)
 8048e21:	89 c6                	mov    %eax,%esi
 8048e23:	85 c9                	test   %ecx,%ecx
 8048e25:	74 3b                	je     8048e62 <fun6+0x53>
 8048e27:	89 c2                	mov    %eax,%edx
 8048e29:	89 c3                	mov    %eax,%ebx
 8048e2b:	eb 28                	jmp    8048e55 <fun6+0x46>
 8048e2d:	89 d3                	mov    %edx,%ebx
 8048e2f:	8b 52 08             	mov    0x8(%edx),%edx
 8048e32:	85 d2                	test   %edx,%edx
 8048e34:	74 04                	je     8048e3a <fun6+0x2b>
 8048e36:	39 02                	cmp    %eax,(%edx)
 8048e38:	7f f3                	jg     8048e2d <fun6+0x1e>
 8048e3a:	39 da                	cmp    %ebx,%edx
 8048e3c:	75 04                	jne    8048e42 <fun6+0x33>
 8048e3e:	89 ce                	mov    %ecx,%esi
 8048e40:	eb 03                	jmp    8048e45 <fun6+0x36>
 8048e42:	89 4b 08             	mov    %ecx,0x8(%ebx)
 8048e45:	8b 41 08             	mov    0x8(%ecx),%eax
 8048e48:	89 51 08             	mov    %edx,0x8(%ecx)
 8048e4b:	89 c1                	mov    %eax,%ecx
 8048e4d:	89 f3                	mov    %esi,%ebx
 8048e4f:	89 f2                	mov    %esi,%edx
 8048e51:	85 c0                	test   %eax,%eax
 8048e53:	74 0d                	je     8048e62 <fun6+0x53>
 8048e55:	85 d2                	test   %edx,%edx
 8048e57:	74 e1                	je     8048e3a <fun6+0x2b>
 8048e59:	8b 01                	mov    (%ecx),%eax
 8048e5b:	39 02                	cmp    %eax,(%edx)
 8048e5d:	7f ce                	jg     8048e2d <fun6+0x1e>
 8048e5f:	90                   	nop    
 8048e60:	eb d8                	jmp    8048e3a <fun6+0x2b>
 8048e62:	89 f0                	mov    %esi,%eax
 8048e64:	5b                   	pop    %ebx
 8048e65:	5e                   	pop    %esi
 8048e66:	5d                   	pop    %ebp
 8048e67:	c3                   	ret    

08048e68 <phase_6>:
 8048e68:	55                   	push   %ebp
 8048e69:	89 e5                	mov    %esp,%ebp
 8048e6b:	83 ec 18             	sub    $0x18,%esp
 8048e6e:	c7 44 24 0c 00 00 00 	movl   $0x0,0xc(%esp)
 8048e75:	00 
 8048e76:	c7 44 24 08 0a 00 00 	movl   $0xa,0x8(%esp)
 8048e7d:	00 
 8048e7e:	c7 44 24 04 00 00 00 	movl   $0x0,0x4(%esp)
 8048e85:	00 
 8048e86:	8b 45 08             	mov    0x8(%ebp),%eax
 8048e89:	89 04 24             	mov    %eax,(%esp)
 8048e8c:	e8 33 fa ff ff       	call   80488c4 <_init+0xec>
 8048e91:	a3 ec a4 04 08       	mov    %eax,0x804a4ec
 8048e96:	c7 04 24 ec a4 04 08 	movl   $0x804a4ec,(%esp)
 8048e9d:	e8 6d ff ff ff       	call   8048e0f <fun6>
 8048ea2:	ba 05 00 00 00       	mov    $0x5,%edx
 8048ea7:	8b 40 08             	mov    0x8(%eax),%eax
 8048eaa:	4a                   	dec    %edx
 8048eab:	75 fa                	jne    8048ea7 <phase_6+0x3f>
 8048ead:	8b 00                	mov    (%eax),%eax
 8048eaf:	3b 05 ec a4 04 08    	cmp    0x804a4ec,%eax
 8048eb5:	74 05                	je     8048ebc <phase_6+0x54>
 8048eb7:	e8 92 07 00 00       	call   804964e <explode_bomb>
 8048ebc:	c9                   	leave  
 8048ebd:	c3                   	ret    

08048ebe <fun7>:
 8048ebe:	55                   	push   %ebp
 8048ebf:	89 e5                	mov    %esp,%ebp
 8048ec1:	53                   	push   %ebx
 8048ec2:	83 ec 08             	sub    $0x8,%esp
 8048ec5:	8b 5d 08             	mov    0x8(%ebp),%ebx
 8048ec8:	8b 4d 0c             	mov    0xc(%ebp),%ecx
 8048ecb:	b8 ff ff ff ff       	mov    $0xffffffff,%eax
 8048ed0:	85 db                	test   %ebx,%ebx
 8048ed2:	74 35                	je     8048f09 <fun7+0x4b>
 8048ed4:	8b 13                	mov    (%ebx),%edx
 8048ed6:	39 ca                	cmp    %ecx,%edx
 8048ed8:	7e 13                	jle    8048eed <fun7+0x2f>
 8048eda:	89 4c 24 04          	mov    %ecx,0x4(%esp)
 8048ede:	8b 43 04             	mov    0x4(%ebx),%eax
 8048ee1:	89 04 24             	mov    %eax,(%esp)
 8048ee4:	e8 d5 ff ff ff       	call   8048ebe <fun7>
 8048ee9:	01 c0                	add    %eax,%eax
 8048eeb:	eb 1c                	jmp    8048f09 <fun7+0x4b>
 8048eed:	b8 00 00 00 00       	mov    $0x0,%eax
 8048ef2:	39 ca                	cmp    %ecx,%edx
 8048ef4:	74 13                	je     8048f09 <fun7+0x4b>
 8048ef6:	89 4c 24 04          	mov    %ecx,0x4(%esp)
 8048efa:	8b 43 08             	mov    0x8(%ebx),%eax
 8048efd:	89 04 24             	mov    %eax,(%esp)
 8048f00:	e8 b9 ff ff ff       	call   8048ebe <fun7>
 8048f05:	8d 44 00 01          	lea    0x1(%eax,%eax,1),%eax
 8048f09:	83 c4 08             	add    $0x8,%esp
 8048f0c:	5b                   	pop    %ebx
 8048f0d:	5d                   	pop    %ebp
 8048f0e:	c3                   	ret    

08048f0f <secret_phase>:
 8048f0f:	55                   	push   %ebp
 8048f10:	89 e5                	mov    %esp,%ebp
 8048f12:	53                   	push   %ebx
 8048f13:	83 ec 14             	sub    $0x14,%esp
 8048f16:	e8 1d 04 00 00       	call   8049338 <read_line>
 8048f1b:	c7 44 24 0c 00 00 00 	movl   $0x0,0xc(%esp)
 8048f22:	00 
 8048f23:	c7 44 24 08 0a 00 00 	movl   $0xa,0x8(%esp)
 8048f2a:	00 
 8048f2b:	c7 44 24 04 00 00 00 	movl   $0x0,0x4(%esp)
 8048f32:	00 
 8048f33:	89 04 24             	mov    %eax,(%esp)
 8048f36:	e8 89 f9 ff ff       	call   80488c4 <_init+0xec>
 8048f3b:	89 c3                	mov    %eax,%ebx
 8048f3d:	8d 40 ff             	lea    0xffffffff(%eax),%eax
 8048f40:	3d e8 03 00 00       	cmp    $0x3e8,%eax
 8048f45:	76 05                	jbe    8048f4c <secret_phase+0x3d>
 8048f47:	e8 02 07 00 00       	call   804964e <explode_bomb>
 8048f4c:	89 5c 24 04          	mov    %ebx,0x4(%esp)
 8048f50:	c7 04 24 a0 a5 04 08 	movl   $0x804a5a0,(%esp)
 8048f57:	e8 62 ff ff ff       	call   8048ebe <fun7>
 8048f5c:	83 f8 06             	cmp    $0x6,%eax
 8048f5f:	74 05                	je     8048f66 <secret_phase+0x57>
 8048f61:	e8 e8 06 00 00       	call   804964e <explode_bomb>
 8048f66:	c7 04 24 a8 99 04 08 	movl   $0x80499a8,(%esp)
 8048f6d:	e8 22 f9 ff ff       	call   8048894 <_init+0xbc>
 8048f72:	c7 04 24 d0 99 04 08 	movl   $0x80499d0,(%esp)
 8048f79:	e8 16 f9 ff ff       	call   8048894 <_init+0xbc>
 8048f7e:	c7 04 24 10 9a 04 08 	movl   $0x8049a10,(%esp)
 8048f85:	e8 0a f9 ff ff       	call   8048894 <_init+0xbc>
 8048f8a:	e8 01 07 00 00       	call   8049690 <phase_defused>
 8048f8f:	83 c4 14             	add    $0x14,%esp
 8048f92:	5b                   	pop    %ebx
 8048f93:	5d                   	pop    %ebp
 8048f94:	c3                   	ret    
 8048f95:	90                   	nop    
 8048f96:	90                   	nop    
 8048f97:	90                   	nop    
 8048f98:	90                   	nop    
 8048f99:	90                   	nop    
 8048f9a:	90                   	nop    
 8048f9b:	90                   	nop    
 8048f9c:	90                   	nop    
 8048f9d:	90                   	nop    
 8048f9e:	90                   	nop    
 8048f9f:	90                   	nop    

08048fa0 <sig_handler>:
 8048fa0:	55                   	push   %ebp
 8048fa1:	89 e5                	mov    %esp,%ebp
 8048fa3:	83 ec 08             	sub    $0x8,%esp
 8048fa6:	c7 04 24 40 9e 04 08 	movl   $0x8049e40,(%esp)
 8048fad:	e8 e2 f8 ff ff       	call   8048894 <_init+0xbc>
 8048fb2:	c7 04 24 03 00 00 00 	movl   $0x3,(%esp)
 8048fb9:	e8 f6 f8 ff ff       	call   80488b4 <_init+0xdc>
 8048fbe:	c7 04 24 03 9c 04 08 	movl   $0x8049c03,(%esp)
 8048fc5:	e8 2a f9 ff ff       	call   80488f4 <_init+0x11c>
 8048fca:	a1 80 a8 04 08       	mov    0x804a880,%eax
 8048fcf:	89 04 24             	mov    %eax,(%esp)
 8048fd2:	e8 7d f8 ff ff       	call   8048854 <_init+0x7c>
 8048fd7:	c7 04 24 01 00 00 00 	movl   $0x1,(%esp)
 8048fde:	e8 d1 f8 ff ff       	call   80488b4 <_init+0xdc>
 8048fe3:	c7 04 24 0b 9c 04 08 	movl   $0x8049c0b,(%esp)
 8048fea:	e8 a5 f8 ff ff       	call   8048894 <_init+0xbc>
 8048fef:	c7 04 24 10 00 00 00 	movl   $0x10,(%esp)
 8048ff6:	e8 49 f9 ff ff       	call   8048944 <_init+0x16c>

08048ffb <invalid_phase>:
 8048ffb:	55                   	push   %ebp
 8048ffc:	89 e5                	mov    %esp,%ebp
 8048ffe:	83 ec 08             	sub    $0x8,%esp
 8049001:	8b 45 08             	mov    0x8(%ebp),%eax
 8049004:	89 44 24 04          	mov    %eax,0x4(%esp)
 8049008:	c7 04 24 13 9c 04 08 	movl   $0x8049c13,(%esp)
 804900f:	e8 e0 f8 ff ff       	call   80488f4 <_init+0x11c>
 8049014:	c7 04 24 08 00 00 00 	movl   $0x8,(%esp)
 804901b:	e8 24 f9 ff ff       	call   8048944 <_init+0x16c>

08049020 <read_six_numbers>:
 8049020:	55                   	push   %ebp
 8049021:	89 e5                	mov    %esp,%ebp
 8049023:	83 ec 28             	sub    $0x28,%esp
 8049026:	8b 55 0c             	mov    0xc(%ebp),%edx
 8049029:	8d 42 14             	lea    0x14(%edx),%eax
 804902c:	89 44 24 1c          	mov    %eax,0x1c(%esp)
 8049030:	8d 42 10             	lea    0x10(%edx),%eax
 8049033:	89 44 24 18          	mov    %eax,0x18(%esp)
 8049037:	8d 42 0c             	lea    0xc(%edx),%eax
 804903a:	89 44 24 14          	mov    %eax,0x14(%esp)
 804903e:	8d 42 08             	lea    0x8(%edx),%eax
 8049041:	89 44 24 10          	mov    %eax,0x10(%esp)
 8049045:	8d 42 04             	lea    0x4(%edx),%eax
 8049048:	89 44 24 0c          	mov    %eax,0xc(%esp)
 804904c:	89 54 24 08          	mov    %edx,0x8(%esp)
 8049050:	c7 44 24 04 24 9c 04 	movl   $0x8049c24,0x4(%esp)
 8049057:	08 
 8049058:	8b 45 08             	mov    0x8(%ebp),%eax
 804905b:	89 04 24             	mov    %eax,(%esp)
 804905e:	e8 f1 f8 ff ff       	call   8048954 <_init+0x17c>
 8049063:	83 f8 05             	cmp    $0x5,%eax
 8049066:	7f 05                	jg     804906d <read_six_numbers+0x4d>
 8049068:	e8 e1 05 00 00       	call   804964e <explode_bomb>
 804906d:	c9                   	leave  
 804906e:	89 f6                	mov    %esi,%esi
 8049070:	c3                   	ret    

08049071 <string_length>:
 8049071:	55                   	push   %ebp
 8049072:	89 e5                	mov    %esp,%ebp
 8049074:	8b 55 08             	mov    0x8(%ebp),%edx
 8049077:	b8 00 00 00 00       	mov    $0x0,%eax
 804907c:	80 3a 00             	cmpb   $0x0,(%edx)
 804907f:	74 0c                	je     804908d <string_length+0x1c>
 8049081:	b8 00 00 00 00       	mov    $0x0,%eax
 8049086:	40                   	inc    %eax
 8049087:	80 3c 02 00          	cmpb   $0x0,(%edx,%eax,1)
 804908b:	75 f9                	jne    8049086 <string_length+0x15>
 804908d:	5d                   	pop    %ebp
 804908e:	c3                   	ret    

0804908f <strings_not_equal>:
 804908f:	55                   	push   %ebp
 8049090:	89 e5                	mov    %esp,%ebp
 8049092:	83 ec 10             	sub    $0x10,%esp
 8049095:	89 5d f4             	mov    %ebx,0xfffffff4(%ebp)
 8049098:	89 75 f8             	mov    %esi,0xfffffff8(%ebp)
 804909b:	89 7d fc             	mov    %edi,0xfffffffc(%ebp)
 804909e:	8b 75 08             	mov    0x8(%ebp),%esi
 80490a1:	8b 7d 0c             	mov    0xc(%ebp),%edi
 80490a4:	89 34 24             	mov    %esi,(%esp)
 80490a7:	e8 c5 ff ff ff       	call   8049071 <string_length>
 80490ac:	89 c3                	mov    %eax,%ebx
 80490ae:	89 3c 24             	mov    %edi,(%esp)
 80490b1:	e8 bb ff ff ff       	call   8049071 <string_length>
 80490b6:	39 c3                	cmp    %eax,%ebx
 80490b8:	75 16                	jne    80490d0 <strings_not_equal+0x41>
 80490ba:	eb 26                	jmp    80490e2 <strings_not_equal+0x53>
 80490bc:	0f b6 42 01          	movzbl 0x1(%edx),%eax
 80490c0:	41                   	inc    %ecx
 80490c1:	42                   	inc    %edx
 80490c2:	38 c3                	cmp    %al,%bl
 80490c4:	75 0a                	jne    80490d0 <strings_not_equal+0x41>
 80490c6:	0f b6 59 01          	movzbl 0x1(%ecx),%ebx
 80490ca:	84 db                	test   %bl,%bl
 80490cc:	75 ee                	jne    80490bc <strings_not_equal+0x2d>
 80490ce:	eb 07                	jmp    80490d7 <strings_not_equal+0x48>
 80490d0:	b8 01 00 00 00       	mov    $0x1,%eax
 80490d5:	eb 1c                	jmp    80490f3 <strings_not_equal+0x64>
 80490d7:	b8 00 00 00 00       	mov    $0x0,%eax
 80490dc:	8d 74 26 00          	lea    0x0(%esi),%esi
 80490e0:	eb 11                	jmp    80490f3 <strings_not_equal+0x64>
 80490e2:	0f b6 06             	movzbl (%esi),%eax
 80490e5:	84 c0                	test   %al,%al
 80490e7:	74 ee                	je     80490d7 <strings_not_equal+0x48>
 80490e9:	3a 07                	cmp    (%edi),%al
 80490eb:	75 e3                	jne    80490d0 <strings_not_equal+0x41>
 80490ed:	89 f1                	mov    %esi,%ecx
 80490ef:	89 fa                	mov    %edi,%edx
 80490f1:	eb d3                	jmp    80490c6 <strings_not_equal+0x37>
 80490f3:	8b 5d f4             	mov    0xfffffff4(%ebp),%ebx
 80490f6:	8b 75 f8             	mov    0xfffffff8(%ebp),%esi
 80490f9:	8b 7d fc             	mov    0xfffffffc(%ebp),%edi
 80490fc:	89 ec                	mov    %ebp,%esp
 80490fe:	5d                   	pop    %ebp
 80490ff:	c3                   	ret    

08049100 <open_clientfd>:
 8049100:	55                   	push   %ebp
 8049101:	89 e5                	mov    %esp,%ebp
 8049103:	83 ec 28             	sub    $0x28,%esp
 8049106:	89 5d f4             	mov    %ebx,0xfffffff4(%ebp)
 8049109:	89 75 f8             	mov    %esi,0xfffffff8(%ebp)
 804910c:	89 7d fc             	mov    %edi,0xfffffffc(%ebp)
 804910f:	8b 7d 0c             	mov    0xc(%ebp),%edi
 8049112:	c7 44 24 08 00 00 00 	movl   $0x0,0x8(%esp)
 8049119:	00 
 804911a:	c7 44 24 04 01 00 00 	movl   $0x1,0x4(%esp)
 8049121:	00 
 8049122:	c7 04 24 02 00 00 00 	movl   $0x2,(%esp)
 8049129:	e8 86 f8 ff ff       	call   80489b4 <_init+0x1dc>
 804912e:	89 c6                	mov    %eax,%esi
 8049130:	85 c0                	test   %eax,%eax
 8049132:	79 18                	jns    804914c <open_clientfd+0x4c>
 8049134:	c7 04 24 36 9c 04 08 	movl   $0x8049c36,(%esp)
 804913b:	e8 54 f7 ff ff       	call   8048894 <_init+0xbc>
 8049140:	c7 04 24 08 00 00 00 	movl   $0x8,(%esp)
 8049147:	e8 f8 f7 ff ff       	call   8048944 <_init+0x16c>
 804914c:	8b 45 08             	mov    0x8(%ebp),%eax
 804914f:	89 04 24             	mov    %eax,(%esp)
 8049152:	e8 cd f7 ff ff       	call   8048924 <_init+0x14c>
 8049157:	89 c1                	mov    %eax,%ecx
 8049159:	85 c0                	test   %eax,%eax
 804915b:	75 18                	jne    8049175 <open_clientfd+0x75>
 804915d:	c7 04 24 44 9c 04 08 	movl   $0x8049c44,(%esp)
 8049164:	e8 2b f7 ff ff       	call   8048894 <_init+0xbc>
 8049169:	c7 04 24 08 00 00 00 	movl   $0x8,(%esp)
 8049170:	e8 cf f7 ff ff       	call   8048944 <_init+0x16c>
 8049175:	8d 5d e4             	lea    0xffffffe4(%ebp),%ebx
 8049178:	c7 45 e4 00 00 00 00 	movl   $0x0,0xffffffe4(%ebp)
 804917f:	c7 45 e8 00 00 00 00 	movl   $0x0,0xffffffe8(%ebp)
 8049186:	c7 45 ec 00 00 00 00 	movl   $0x0,0xffffffec(%ebp)
 804918d:	c7 45 f0 00 00 00 00 	movl   $0x0,0xfffffff0(%ebp)
 8049194:	66 c7 45 e4 02 00    	movw   $0x2,0xffffffe4(%ebp)
 804919a:	8d 55 e8             	lea    0xffffffe8(%ebp),%edx
 804919d:	8b 40 0c             	mov    0xc(%eax),%eax
 80491a0:	89 44 24 08          	mov    %eax,0x8(%esp)
 80491a4:	89 54 24 04          	mov    %edx,0x4(%esp)
 80491a8:	8b 41 10             	mov    0x10(%ecx),%eax
 80491ab:	8b 00                	mov    (%eax),%eax
 80491ad:	89 04 24             	mov    %eax,(%esp)
 80491b0:	e8 af f6 ff ff       	call   8048864 <_init+0x8c>
 80491b5:	89 f8                	mov    %edi,%eax
 80491b7:	66 c1 c8 08          	ror    $0x8,%ax
 80491bb:	66 89 45 e6          	mov    %ax,0xffffffe6(%ebp)
 80491bf:	c7 44 24 08 10 00 00 	movl   $0x10,0x8(%esp)
 80491c6:	00 
 80491c7:	89 5c 24 04          	mov    %ebx,0x4(%esp)
 80491cb:	89 34 24             	mov    %esi,(%esp)
 80491ce:	e8 91 f7 ff ff       	call   8048964 <_init+0x18c>
 80491d3:	85 c0                	test   %eax,%eax
 80491d5:	79 18                	jns    80491ef <open_clientfd+0xef>
 80491d7:	c7 04 24 52 9c 04 08 	movl   $0x8049c52,(%esp)
 80491de:	e8 b1 f6 ff ff       	call   8048894 <_init+0xbc>
 80491e3:	c7 04 24 08 00 00 00 	movl   $0x8,(%esp)
 80491ea:	e8 55 f7 ff ff       	call   8048944 <_init+0x16c>
 80491ef:	89 f0                	mov    %esi,%eax
 80491f1:	8b 5d f4             	mov    0xfffffff4(%ebp),%ebx
 80491f4:	8b 75 f8             	mov    0xfffffff8(%ebp),%esi
 80491f7:	8b 7d fc             	mov    0xfffffffc(%ebp),%edi
 80491fa:	89 ec                	mov    %ebp,%esp
 80491fc:	5d                   	pop    %ebp
 80491fd:	c3                   	ret    

080491fe <initialize_bomb>:
 80491fe:	55                   	push   %ebp
 80491ff:	89 e5                	mov    %esp,%ebp
 8049201:	56                   	push   %esi
 8049202:	53                   	push   %ebx
 8049203:	83 ec 50             	sub    $0x50,%esp
 8049206:	c7 44 24 04 a0 8f 04 	movl   $0x8048fa0,0x4(%esp)
 804920d:	08 
 804920e:	c7 04 24 02 00 00 00 	movl   $0x2,(%esp)
 8049215:	e8 2a f6 ff ff       	call   8048844 <_init+0x6c>
 804921a:	c7 44 24 04 40 00 00 	movl   $0x40,0x4(%esp)
 8049221:	00 
 8049222:	8d 45 b8             	lea    0xffffffb8(%ebp),%eax
 8049225:	89 04 24             	mov    %eax,(%esp)
 8049228:	e8 e7 f6 ff ff       	call   8048914 <_init+0x13c>
 804922d:	85 c0                	test   %eax,%eax
 804922f:	74 77                	je     80492a8 <initialize_bomb+0xaa>
 8049231:	c7 04 24 60 9c 04 08 	movl   $0x8049c60,(%esp)
 8049238:	e8 57 f6 ff ff       	call   8048894 <_init+0xbc>
 804923d:	c7 04 24 08 00 00 00 	movl   $0x8,(%esp)
 8049244:	e8 fb f6 ff ff       	call   8048944 <_init+0x16c>
 8049249:	bb c0 a5 04 08       	mov    $0x804a5c0,%ebx
 804924e:	8d 75 b8             	lea    0xffffffb8(%ebp),%esi
 8049251:	89 74 24 04          	mov    %esi,0x4(%esp)
 8049255:	89 04 24             	mov    %eax,(%esp)
 8049258:	e8 d7 f6 ff ff       	call   8048934 <_init+0x15c>
 804925d:	85 c0                	test   %eax,%eax
 804925f:	74 0c                	je     804926d <initialize_bomb+0x6f>
 8049261:	8b 43 04             	mov    0x4(%ebx),%eax
 8049264:	83 c3 04             	add    $0x4,%ebx
 8049267:	85 c0                	test   %eax,%eax
 8049269:	74 25                	je     8049290 <initialize_bomb+0x92>
 804926b:	eb e4                	jmp    8049251 <initialize_bomb+0x53>
 804926d:	c7 44 24 04 50 00 00 	movl   $0x50,0x4(%esp)
 8049274:	00 
 8049275:	c7 04 24 6d 9c 04 08 	movl   $0x8049c6d,(%esp)
 804927c:	e8 7f fe ff ff       	call   8049100 <open_clientfd>
 8049281:	89 04 24             	mov    %eax,(%esp)
 8049284:	e8 7b f5 ff ff       	call   8048804 <_init+0x2c>
 8049289:	83 c4 50             	add    $0x50,%esp
 804928c:	5b                   	pop    %ebx
 804928d:	5e                   	pop    %esi
 804928e:	5d                   	pop    %ebp
 804928f:	c3                   	ret    
 8049290:	c7 04 24 7c 9c 04 08 	movl   $0x8049c7c,(%esp)
 8049297:	e8 f8 f5 ff ff       	call   8048894 <_init+0xbc>
 804929c:	c7 04 24 08 00 00 00 	movl   $0x8,(%esp)
 80492a3:	e8 9c f6 ff ff       	call   8048944 <_init+0x16c>
 80492a8:	a1 c0 a5 04 08       	mov    0x804a5c0,%eax
 80492ad:	85 c0                	test   %eax,%eax
 80492af:	75 98                	jne    8049249 <initialize_bomb+0x4b>
 80492b1:	eb dd                	jmp    8049290 <initialize_bomb+0x92>

080492b3 <blank_line>:
 80492b3:	55                   	push   %ebp
 80492b4:	89 e5                	mov    %esp,%ebp
 80492b6:	53                   	push   %ebx
 80492b7:	83 ec 04             	sub    $0x4,%esp
 80492ba:	8b 5d 08             	mov    0x8(%ebp),%ebx
 80492bd:	eb 1a                	jmp    80492d9 <blank_line+0x26>
 80492bf:	e8 00 f7 ff ff       	call   80489c4 <_init+0x1ec>
 80492c4:	43                   	inc    %ebx
 80492c5:	0f be 55 fb          	movsbl 0xfffffffb(%ebp),%edx
 80492c9:	8b 00                	mov    (%eax),%eax
 80492cb:	f6 44 50 01 20       	testb  $0x20,0x1(%eax,%edx,2)
 80492d0:	75 07                	jne    80492d9 <blank_line+0x26>
 80492d2:	b8 00 00 00 00       	mov    $0x0,%eax
 80492d7:	eb 0f                	jmp    80492e8 <blank_line+0x35>
 80492d9:	0f b6 03             	movzbl (%ebx),%eax
 80492dc:	88 45 fb             	mov    %al,0xfffffffb(%ebp)
 80492df:	84 c0                	test   %al,%al
 80492e1:	75 dc                	jne    80492bf <blank_line+0xc>
 80492e3:	b8 01 00 00 00       	mov    $0x1,%eax
 80492e8:	83 c4 04             	add    $0x4,%esp
 80492eb:	5b                   	pop    %ebx
 80492ec:	5d                   	pop    %ebp
 80492ed:	c3                   	ret    

080492ee <skip>:
 80492ee:	55                   	push   %ebp
 80492ef:	89 e5                	mov    %esp,%ebp
 80492f1:	53                   	push   %ebx
 80492f2:	83 ec 14             	sub    $0x14,%esp
 80492f5:	a1 90 a8 04 08       	mov    0x804a890,%eax
 80492fa:	89 44 24 08          	mov    %eax,0x8(%esp)
 80492fe:	c7 44 24 04 50 00 00 	movl   $0x50,0x4(%esp)
 8049305:	00 
 8049306:	a1 8c a8 04 08       	mov    0x804a88c,%eax
 804930b:	8d 04 80             	lea    (%eax,%eax,4),%eax
 804930e:	c1 e0 04             	shl    $0x4,%eax
 8049311:	05 a0 a8 04 08       	add    $0x804a8a0,%eax
 8049316:	89 04 24             	mov    %eax,(%esp)
 8049319:	e8 86 f5 ff ff       	call   80488a4 <_init+0xcc>
 804931e:	89 c3                	mov    %eax,%ebx
 8049320:	85 c0                	test   %eax,%eax
 8049322:	74 0c                	je     8049330 <skip+0x42>
 8049324:	89 04 24             	mov    %eax,(%esp)
 8049327:	e8 87 ff ff ff       	call   80492b3 <blank_line>
 804932c:	85 c0                	test   %eax,%eax
 804932e:	75 c5                	jne    80492f5 <skip+0x7>
 8049330:	89 d8                	mov    %ebx,%eax
 8049332:	83 c4 14             	add    $0x14,%esp
 8049335:	5b                   	pop    %ebx
 8049336:	5d                   	pop    %ebp
 8049337:	c3                   	ret    

08049338 <read_line>:
 8049338:	55                   	push   %ebp
 8049339:	89 e5                	mov    %esp,%ebp
 804933b:	57                   	push   %edi
 804933c:	83 ec 04             	sub    $0x4,%esp
 804933f:	e8 aa ff ff ff       	call   80492ee <skip>
 8049344:	85 c0                	test   %eax,%eax
 8049346:	75 60                	jne    80493a8 <read_line+0x70>
 8049348:	a1 90 a8 04 08       	mov    0x804a890,%eax
 804934d:	3b 05 84 a8 04 08    	cmp    0x804a884,%eax
 8049353:	75 13                	jne    8049368 <read_line+0x30>
 8049355:	c7 04 24 8a 9c 04 08 	movl   $0x8049c8a,(%esp)
 804935c:	e8 33 f5 ff ff       	call   8048894 <_init+0xbc>
 8049361:	e8 e8 02 00 00       	call   804964e <explode_bomb>
 8049366:	eb 40                	jmp    80493a8 <read_line+0x70>
 8049368:	c7 04 24 a8 9c 04 08 	movl   $0x8049ca8,(%esp)
 804936f:	e8 c0 f4 ff ff       	call   8048834 <_init+0x5c>
 8049374:	85 c0                	test   %eax,%eax
 8049376:	74 0c                	je     8049384 <read_line+0x4c>
 8049378:	c7 04 24 00 00 00 00 	movl   $0x0,(%esp)
 804937f:	e8 c0 f5 ff ff       	call   8048944 <_init+0x16c>
 8049384:	a1 84 a8 04 08       	mov    0x804a884,%eax
 8049389:	a3 90 a8 04 08       	mov    %eax,0x804a890
 804938e:	e8 5b ff ff ff       	call   80492ee <skip>
 8049393:	85 c0                	test   %eax,%eax
 8049395:	75 11                	jne    80493a8 <read_line+0x70>
 8049397:	c7 04 24 8a 9c 04 08 	movl   $0x8049c8a,(%esp)
 804939e:	e8 f1 f4 ff ff       	call   8048894 <_init+0xbc>
 80493a3:	e8 a6 02 00 00       	call   804964e <explode_bomb>
 80493a8:	a1 8c a8 04 08       	mov    0x804a88c,%eax
 80493ad:	8d 04 80             	lea    (%eax,%eax,4),%eax
 80493b0:	c1 e0 04             	shl    $0x4,%eax
 80493b3:	8d b8 a0 a8 04 08    	lea    0x804a8a0(%eax),%edi
 80493b9:	fc                   	cld    
 80493ba:	b9 ff ff ff ff       	mov    $0xffffffff,%ecx
 80493bf:	b0 00                	mov    $0x0,%al
 80493c1:	f2 ae                	repnz scas %es:(%edi),%al
 80493c3:	f7 d1                	not    %ecx
 80493c5:	8d 79 ff             	lea    0xffffffff(%ecx),%edi
 80493c8:	83 ff 4f             	cmp    $0x4f,%edi
 80493cb:	75 11                	jne    80493de <read_line+0xa6>
 80493cd:	c7 04 24 b3 9c 04 08 	movl   $0x8049cb3,(%esp)
 80493d4:	e8 bb f4 ff ff       	call   8048894 <_init+0xbc>
 80493d9:	e8 70 02 00 00       	call   804964e <explode_bomb>
 80493de:	8b 15 8c a8 04 08    	mov    0x804a88c,%edx
 80493e4:	8d 04 92             	lea    (%edx,%edx,4),%eax
 80493e7:	c1 e0 04             	shl    $0x4,%eax
 80493ea:	05 a0 a8 04 08       	add    $0x804a8a0,%eax
 80493ef:	c6 44 38 ff 00       	movb   $0x0,0xffffffff(%eax,%edi,1)
 80493f4:	42                   	inc    %edx
 80493f5:	89 15 8c a8 04 08    	mov    %edx,0x804a88c
 80493fb:	83 c4 04             	add    $0x4,%esp
 80493fe:	5f                   	pop    %edi
 80493ff:	5d                   	pop    %ebp
 8049400:	c3                   	ret    

08049401 <send_msg>:
 8049401:	55                   	push   %ebp
 8049402:	89 e5                	mov    %esp,%ebp
 8049404:	57                   	push   %edi
 8049405:	56                   	push   %esi
 8049406:	53                   	push   %ebx
 8049407:	83 ec 7c             	sub    $0x7c,%esp
 804940a:	c7 04 24 00 00 00 00 	movl   $0x0,(%esp)
 8049411:	e8 6e f5 ff ff       	call   8048984 <_init+0x1ac>
 8049416:	89 45 a0             	mov    %eax,0xffffffa0(%ebp)
 8049419:	83 f8 ff             	cmp    $0xffffffff,%eax
 804941c:	75 18                	jne    8049436 <send_msg+0x35>
 804941e:	c7 04 24 ce 9c 04 08 	movl   $0x8049cce,(%esp)
 8049425:	e8 6a f4 ff ff       	call   8048894 <_init+0xbc>
 804942a:	c7 04 24 08 00 00 00 	movl   $0x8,(%esp)
 8049431:	e8 0e f5 ff ff       	call   8048944 <_init+0x16c>
 8049436:	c7 04 24 00 00 00 00 	movl   $0x0,(%esp)
 804943d:	e8 c2 f3 ff ff       	call   8048804 <_init+0x2c>
 8049442:	83 f8 ff             	cmp    $0xffffffff,%eax
 8049445:	75 18                	jne    804945f <send_msg+0x5e>
 8049447:	c7 04 24 e2 9c 04 08 	movl   $0x8049ce2,(%esp)
 804944e:	e8 41 f4 ff ff       	call   8048894 <_init+0xbc>
 8049453:	c7 04 24 08 00 00 00 	movl   $0x8,(%esp)
 804945a:	e8 e5 f4 ff ff       	call   8048944 <_init+0x16c>
 804945f:	e8 c0 f3 ff ff       	call   8048824 <_init+0x4c>
 8049464:	89 c7                	mov    %eax,%edi
 8049466:	85 c0                	test   %eax,%eax
 8049468:	75 18                	jne    8049482 <send_msg+0x81>
 804946a:	c7 04 24 f5 9c 04 08 	movl   $0x8049cf5,(%esp)
 8049471:	e8 1e f4 ff ff       	call   8048894 <_init+0xbc>
 8049476:	c7 04 24 08 00 00 00 	movl   $0x8,(%esp)
 804947d:	e8 c2 f4 ff ff       	call   8048944 <_init+0x16c>
 8049482:	89 44 24 0c          	mov    %eax,0xc(%esp)
 8049486:	c7 44 24 08 1b 00 00 	movl   $0x1b,0x8(%esp)
 804948d:	00 
 804948e:	c7 44 24 04 01 00 00 	movl   $0x1,0x4(%esp)
 8049495:	00 
 8049496:	c7 04 24 0a 9d 04 08 	movl   $0x8049d0a,(%esp)
 804949d:	e8 02 f5 ff ff       	call   80489a4 <_init+0x1cc>
 80494a2:	89 7c 24 04          	mov    %edi,0x4(%esp)
 80494a6:	c7 04 24 0a 00 00 00 	movl   $0xa,(%esp)
 80494ad:	e8 22 f4 ff ff       	call   80488d4 <_init+0xfc>
 80494b2:	c7 04 24 00 00 00 00 	movl   $0x0,(%esp)
 80494b9:	e8 16 f5 ff ff       	call   80489d4 <_init+0x1fc>
 80494be:	85 c0                	test   %eax,%eax
 80494c0:	75 13                	jne    80494d5 <send_msg+0xd4>
 80494c2:	c7 45 a4 6e 6f 62 6f 	movl   $0x6f626f6e,0xffffffa4(%ebp)
 80494c9:	66 c7 45 a8 64 79    	movw   $0x7964,0xffffffa8(%ebp)
 80494cf:	c6 45 aa 00          	movb   $0x0,0xffffffaa(%ebp)
 80494d3:	eb 0f                	jmp    80494e4 <send_msg+0xe3>
 80494d5:	89 44 24 04          	mov    %eax,0x4(%esp)
 80494d9:	8d 45 a4             	lea    0xffffffa4(%ebp),%eax
 80494dc:	89 04 24             	mov    %eax,(%esp)
 80494df:	e8 00 f5 ff ff       	call   80489e4 <_init+0x20c>
 80494e4:	a1 8c a8 04 08       	mov    0x804a88c,%eax
 80494e9:	ba 26 9d 04 08       	mov    $0x8049d26,%edx
 80494ee:	83 7d 08 00          	cmpl   $0x0,0x8(%ebp)
 80494f2:	75 05                	jne    80494f9 <send_msg+0xf8>
 80494f4:	ba 2e 9d 04 08       	mov    $0x8049d2e,%edx
 80494f9:	89 44 24 18          	mov    %eax,0x18(%esp)
 80494fd:	89 54 24 14          	mov    %edx,0x14(%esp)
 8049501:	8d 45 a4             	lea    0xffffffa4(%ebp),%eax
 8049504:	89 44 24 10          	mov    %eax,0x10(%esp)
 8049508:	a1 20 a0 04 08       	mov    0x804a020,%eax
 804950d:	89 44 24 0c          	mov    %eax,0xc(%esp)
 8049511:	c7 44 24 08 40 a0 04 	movl   $0x804a040,0x8(%esp)
 8049518:	08 
 8049519:	c7 44 24 04 37 9d 04 	movl   $0x8049d37,0x4(%esp)
 8049520:	08 
 8049521:	89 3c 24             	mov    %edi,(%esp)
 8049524:	e8 eb f2 ff ff       	call   8048814 <_init+0x3c>
 8049529:	83 3d 8c a8 04 08 00 	cmpl   $0x0,0x804a88c
 8049530:	7e 46                	jle    8049578 <send_msg+0x177>
 8049532:	be a0 a8 04 08       	mov    $0x804a8a0,%esi
 8049537:	bb 00 00 00 00       	mov    $0x0,%ebx
 804953c:	43                   	inc    %ebx
 804953d:	89 74 24 18          	mov    %esi,0x18(%esp)
 8049541:	89 5c 24 14          	mov    %ebx,0x14(%esp)
 8049545:	8d 45 a4             	lea    0xffffffa4(%ebp),%eax
 8049548:	89 44 24 10          	mov    %eax,0x10(%esp)
 804954c:	a1 20 a0 04 08       	mov    0x804a020,%eax
 8049551:	89 44 24 0c          	mov    %eax,0xc(%esp)
 8049555:	c7 44 24 08 40 a0 04 	movl   $0x804a040,0x8(%esp)
 804955c:	08 
 804955d:	c7 44 24 04 53 9d 04 	movl   $0x8049d53,0x4(%esp)
 8049564:	08 
 8049565:	89 3c 24             	mov    %edi,(%esp)
 8049568:	e8 a7 f2 ff ff       	call   8048814 <_init+0x3c>
 804956d:	83 c6 50             	add    $0x50,%esi
 8049570:	3b 1d 8c a8 04 08    	cmp    0x804a88c,%ebx
 8049576:	7c c4                	jl     804953c <send_msg+0x13b>
 8049578:	89 3c 24             	mov    %edi,(%esp)
 804957b:	e8 f4 f2 ff ff       	call   8048874 <_init+0x9c>
 8049580:	c7 44 24 10 6f 9d 04 	movl   $0x8049d6f,0x10(%esp)
 8049587:	08 
 8049588:	c7 44 24 0c 7a 9d 04 	movl   $0x8049d7a,0xc(%esp)
 804958f:	08 
 8049590:	c7 44 24 08 88 9d 04 	movl   $0x8049d88,0x8(%esp)
 8049597:	08 
 8049598:	c7 44 24 04 9f 9d 04 	movl   $0x8049d9f,0x4(%esp)
 804959f:	08 
 80495a0:	c7 04 24 e0 ae 04 08 	movl   $0x804aee0,(%esp)
 80495a7:	e8 e8 f3 ff ff       	call   8048994 <_init+0x1bc>
 80495ac:	c7 04 24 e0 ae 04 08 	movl   $0x804aee0,(%esp)
 80495b3:	e8 cc f2 ff ff       	call   8048884 <_init+0xac>
 80495b8:	85 c0                	test   %eax,%eax
 80495ba:	74 18                	je     80495d4 <send_msg+0x1d3>
 80495bc:	c7 04 24 a8 9d 04 08 	movl   $0x8049da8,(%esp)
 80495c3:	e8 cc f2 ff ff       	call   8048894 <_init+0xbc>
 80495c8:	c7 04 24 08 00 00 00 	movl   $0x8,(%esp)
 80495cf:	e8 70 f3 ff ff       	call   8048944 <_init+0x16c>
 80495d4:	89 3c 24             	mov    %edi,(%esp)
 80495d7:	e8 28 f3 ff ff       	call   8048904 <_init+0x12c>
 80495dc:	85 c0                	test   %eax,%eax
 80495de:	74 18                	je     80495f8 <send_msg+0x1f7>
 80495e0:	c7 04 24 c2 9d 04 08 	movl   $0x8049dc2,(%esp)
 80495e7:	e8 a8 f2 ff ff       	call   8048894 <_init+0xbc>
 80495ec:	c7 04 24 08 00 00 00 	movl   $0x8,(%esp)
 80495f3:	e8 4c f3 ff ff       	call   8048944 <_init+0x16c>
 80495f8:	8b 45 a0             	mov    0xffffffa0(%ebp),%eax
 80495fb:	89 04 24             	mov    %eax,(%esp)
 80495fe:	e8 81 f3 ff ff       	call   8048984 <_init+0x1ac>
 8049603:	85 c0                	test   %eax,%eax
 8049605:	74 18                	je     804961f <send_msg+0x21e>
 8049607:	c7 04 24 db 9d 04 08 	movl   $0x8049ddb,(%esp)
 804960e:	e8 81 f2 ff ff       	call   8048894 <_init+0xbc>
 8049613:	c7 04 24 08 00 00 00 	movl   $0x8,(%esp)
 804961a:	e8 25 f3 ff ff       	call   8048944 <_init+0x16c>
 804961f:	8b 45 a0             	mov    0xffffffa0(%ebp),%eax
 8049622:	89 04 24             	mov    %eax,(%esp)
 8049625:	e8 da f1 ff ff       	call   8048804 <_init+0x2c>
 804962a:	85 c0                	test   %eax,%eax
 804962c:	74 18                	je     8049646 <send_msg+0x245>
 804962e:	c7 04 24 f6 9d 04 08 	movl   $0x8049df6,(%esp)
 8049635:	e8 5a f2 ff ff       	call   8048894 <_init+0xbc>
 804963a:	c7 04 24 08 00 00 00 	movl   $0x8,(%esp)
 8049641:	e8 fe f2 ff ff       	call   8048944 <_init+0x16c>
 8049646:	83 c4 7c             	add    $0x7c,%esp
 8049649:	5b                   	pop    %ebx
 804964a:	5e                   	pop    %esi
 804964b:	5f                   	pop    %edi
 804964c:	5d                   	pop    %ebp
 804964d:	c3                   	ret    

0804964e <explode_bomb>:
 804964e:	55                   	push   %ebp
 804964f:	89 e5                	mov    %esp,%ebp
 8049651:	83 ec 08             	sub    $0x8,%esp
 8049654:	c7 04 24 0d 9e 04 08 	movl   $0x8049e0d,(%esp)
 804965b:	e8 34 f2 ff ff       	call   8048894 <_init+0xbc>
 8049660:	c7 04 24 16 9e 04 08 	movl   $0x8049e16,(%esp)
 8049667:	e8 28 f2 ff ff       	call   8048894 <_init+0xbc>
 804966c:	c7 04 24 00 00 00 00 	movl   $0x0,(%esp)
 8049673:	e8 89 fd ff ff       	call   8049401 <send_msg>
 8049678:	c7 04 24 78 9e 04 08 	movl   $0x8049e78,(%esp)
 804967f:	e8 10 f2 ff ff       	call   8048894 <_init+0xbc>
 8049684:	c7 04 24 08 00 00 00 	movl   $0x8,(%esp)
 804968b:	e8 b4 f2 ff ff       	call   8048944 <_init+0x16c>

08049690 <phase_defused>:
 8049690:	55                   	push   %ebp
 8049691:	89 e5                	mov    %esp,%ebp
 8049693:	53                   	push   %ebx
 8049694:	83 ec 74             	sub    $0x74,%esp
 8049697:	c7 04 24 01 00 00 00 	movl   $0x1,(%esp)
 804969e:	e8 5e fd ff ff       	call   8049401 <send_msg>
 80496a3:	83 3d 8c a8 04 08 06 	cmpl   $0x6,0x804a88c
 80496aa:	75 7c                	jne    8049728 <phase_defused+0x98>
 80496ac:	8d 5d ac             	lea    0xffffffac(%ebp),%ebx
 80496af:	89 5c 24 0c          	mov    %ebx,0xc(%esp)
 80496b3:	8d 45 a8             	lea    0xffffffa8(%ebp),%eax
 80496b6:	89 44 24 08          	mov    %eax,0x8(%esp)
 80496ba:	c7 44 24 04 2d 9e 04 	movl   $0x8049e2d,0x4(%esp)
 80496c1:	08 
 80496c2:	c7 04 24 90 a9 04 08 	movl   $0x804a990,(%esp)
 80496c9:	e8 86 f2 ff ff       	call   8048954 <_init+0x17c>
 80496ce:	83 f8 02             	cmp    $0x2,%eax
 80496d1:	75 3d                	jne    8049710 <phase_defused+0x80>
 80496d3:	c7 44 24 04 33 9e 04 	movl   $0x8049e33,0x4(%esp)
 80496da:	08 
 80496db:	89 1c 24             	mov    %ebx,(%esp)
 80496de:	e8 ac f9 ff ff       	call   804908f <strings_not_equal>
 80496e3:	85 c0                	test   %eax,%eax
 80496e5:	75 29                	jne    8049710 <phase_defused+0x80>
 80496e7:	c7 04 24 9c 9e 04 08 	movl   $0x8049e9c,(%esp)
 80496ee:	e8 a1 f1 ff ff       	call   8048894 <_init+0xbc>
 80496f3:	c7 04 24 c4 9e 04 08 	movl   $0x8049ec4,(%esp)
 80496fa:	e8 95 f1 ff ff       	call   8048894 <_init+0xbc>
 80496ff:	c7 04 24 fc 9e 04 08 	movl   $0x8049efc,(%esp)
 8049706:	e8 89 f1 ff ff       	call   8048894 <_init+0xbc>
 804970b:	e8 ff f7 ff ff       	call   8048f0f <secret_phase>
 8049710:	c7 04 24 44 9f 04 08 	movl   $0x8049f44,(%esp)
 8049717:	e8 78 f1 ff ff       	call   8048894 <_init+0xbc>
 804971c:	c7 04 24 70 9f 04 08 	movl   $0x8049f70,(%esp)
 8049723:	e8 6c f1 ff ff       	call   8048894 <_init+0xbc>
 8049728:	83 c4 74             	add    $0x74,%esp
 804972b:	5b                   	pop    %ebx
 804972c:	5d                   	pop    %ebp
 804972d:	c3                   	ret    
 804972e:	90                   	nop    
 804972f:	90                   	nop    

08049730 <__libc_csu_init>:
 8049730:	55                   	push   %ebp
 8049731:	89 e5                	mov    %esp,%ebp
 8049733:	57                   	push   %edi
 8049734:	56                   	push   %esi
 8049735:	31 f6                	xor    %esi,%esi
 8049737:	53                   	push   %ebx
 8049738:	e8 0e f3 ff ff       	call   8048a4b <__i686.get_pc_thunk.bx>
 804973d:	81 c3 ab 10 00 00    	add    $0x10ab,%ebx
 8049743:	83 ec 0c             	sub    $0xc,%esp
 8049746:	e8 8d f0 ff ff       	call   80487d8 <_init>
 804974b:	8d 83 18 f8 ff ff    	lea    0xfffff818(%ebx),%eax
 8049751:	8d 93 18 f8 ff ff    	lea    0xfffff818(%ebx),%edx
 8049757:	29 c2                	sub    %eax,%edx
 8049759:	c1 fa 02             	sar    $0x2,%edx
 804975c:	39 d6                	cmp    %edx,%esi
 804975e:	73 10                	jae    8049770 <__libc_csu_init+0x40>
 8049760:	89 d7                	mov    %edx,%edi
 8049762:	ff 94 b3 18 f8 ff ff 	call   *0xfffff818(%ebx,%esi,4)
 8049769:	83 c6 01             	add    $0x1,%esi
 804976c:	39 fe                	cmp    %edi,%esi
 804976e:	72 f2                	jb     8049762 <__libc_csu_init+0x32>
 8049770:	83 c4 0c             	add    $0xc,%esp
 8049773:	5b                   	pop    %ebx
 8049774:	5e                   	pop    %esi
 8049775:	5f                   	pop    %edi
 8049776:	5d                   	pop    %ebp
 8049777:	c3                   	ret    

08049778 <__libc_csu_fini>:
 8049778:	55                   	push   %ebp
 8049779:	89 e5                	mov    %esp,%ebp
 804977b:	83 ec 08             	sub    $0x8,%esp
 804977e:	89 1c 24             	mov    %ebx,(%esp)
 8049781:	89 74 24 04          	mov    %esi,0x4(%esp)
 8049785:	e8 c1 f2 ff ff       	call   8048a4b <__i686.get_pc_thunk.bx>
 804978a:	81 c3 5e 10 00 00    	add    $0x105e,%ebx
 8049790:	8d 83 18 f8 ff ff    	lea    0xfffff818(%ebx),%eax
 8049796:	8d 93 18 f8 ff ff    	lea    0xfffff818(%ebx),%edx
 804979c:	29 d0                	sub    %edx,%eax
 804979e:	c1 f8 02             	sar    $0x2,%eax
 80497a1:	85 c0                	test   %eax,%eax
 80497a3:	8d 70 ff             	lea    0xffffffff(%eax),%esi
 80497a6:	75 10                	jne    80497b8 <__libc_csu_fini+0x40>
 80497a8:	e8 57 00 00 00       	call   8049804 <_fini>
 80497ad:	8b 74 24 04          	mov    0x4(%esp),%esi
 80497b1:	8b 1c 24             	mov    (%esp),%ebx
 80497b4:	89 ec                	mov    %ebp,%esp
 80497b6:	5d                   	pop    %ebp
 80497b7:	c3                   	ret    
 80497b8:	ff 94 b3 18 f8 ff ff 	call   *0xfffff818(%ebx,%esi,4)
 80497bf:	89 f0                	mov    %esi,%eax
 80497c1:	83 ee 01             	sub    $0x1,%esi
 80497c4:	85 c0                	test   %eax,%eax
 80497c6:	75 f0                	jne    80497b8 <__libc_csu_fini+0x40>
 80497c8:	eb de                	jmp    80497a8 <__libc_csu_fini+0x30>
 80497ca:	90                   	nop    
 80497cb:	90                   	nop    
 80497cc:	90                   	nop    
 80497cd:	90                   	nop    
 80497ce:	90                   	nop    
 80497cf:	90                   	nop    

080497d0 <__do_global_ctors_aux>:
 80497d0:	55                   	push   %ebp
 80497d1:	89 e5                	mov    %esp,%ebp
 80497d3:	53                   	push   %ebx
 80497d4:	83 ec 04             	sub    $0x4,%esp
 80497d7:	a1 d4 a7 04 08       	mov    0x804a7d4,%eax
 80497dc:	83 f8 ff             	cmp    $0xffffffff,%eax
 80497df:	74 1c                	je     80497fd <__do_global_ctors_aux+0x2d>
 80497e1:	bb d4 a7 04 08       	mov    $0x804a7d4,%ebx
 80497e6:	8d 76 00             	lea    0x0(%esi),%esi
 80497e9:	8d bc 27 00 00 00 00 	lea    0x0(%edi),%edi
 80497f0:	ff d0                	call   *%eax
 80497f2:	8b 43 fc             	mov    0xfffffffc(%ebx),%eax
 80497f5:	83 eb 04             	sub    $0x4,%ebx
 80497f8:	83 f8 ff             	cmp    $0xffffffff,%eax
 80497fb:	75 f3                	jne    80497f0 <__do_global_ctors_aux+0x20>
 80497fd:	58                   	pop    %eax
 80497fe:	5b                   	pop    %ebx
 80497ff:	5d                   	pop    %ebp
 8049800:	c3                   	ret    
 8049801:	90                   	nop    
 8049802:	90                   	nop    
 8049803:	90                   	nop    
Disassembly of section .fini:

08049804 <_fini>:
 8049804:	55                   	push   %ebp
 8049805:	89 e5                	mov    %esp,%ebp
 8049807:	83 ec 08             	sub    $0x8,%esp
 804980a:	89 5d fc             	mov    %ebx,0xfffffffc(%ebp)
 804980d:	e8 39 f2 ff ff       	call   8048a4b <__i686.get_pc_thunk.bx>
 8049812:	81 c3 d6 0f 00 00    	add    $0xfd6,%ebx
 8049818:	e8 33 f2 ff ff       	call   8048a50 <__do_global_dtors_aux>
 804981d:	8b 5d fc             	mov    0xfffffffc(%ebp),%ebx
 8049820:	89 ec                	mov    %ebp,%esp
 8049822:	5d                   	pop    %ebp
 8049823:	c3                   	ret

Clarification of Question by ligerdave-ga on 17 Nov 2005 19:25 PST
will be expired on 21st
Answer  
There is no answer at this time.

Comments  
Subject: Re: Help me convert the assembly into C
From: mathtalk-ga on 22 Nov 2005 11:11 PST
 
Before I make suggestions that might not be helpful, what is the
purpose of converting the assembly language code into C?  Will it need
to run on non-Intel hardware, for example?  A lot of issues come up
with porting across hardware platforms, so it's a good idea to know
how deep the rewrite needs to go.

regards, mathtalk-ga
Subject: Re: Help me convert the assembly into C
From: bbstech-ga on 25 Dec 2005 20:01 PST
 
This is a pre-fabricated lab assignment which accompanies "Computer
Systems -- A Programmers Perspective".  Unfortunately obtaining the
answers to this lab via google answers will most likely constitute
academic dishonesty no matter which university the OP attends.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy