56ffe7:	85 ff                	test   %edi,%edi
56ffe9:	75 19                	jne    0x570004
56ffeb:	55                   	push   %ebp
56ffec:	8d 44 24 34          	lea    0x34(%esp),%eax
56fff0:	50                   	push   %eax
56fff1:	53                   	push   %ebx
56fff2:	53                   	push   %ebx
56fff3:	53                   	push   %ebx
56fff4:	e8 87 74 01 00       	call   0x587480
56fff9:	83 c4 14             	add    $0x14,%esp
56fffc:	85 c0                	test   %eax,%eax
56fffe:	0f 84 d3 00 00 00    	je     0x5700d7
570004:	85 f6                	test   %esi,%esi
570006:	0f 84 c3 00 00 00    	je     0x5700cf
57000c:	4e                   	dec    %esi
57000d:	89 74 24 14          	mov    %esi,0x14(%esp)
570011:	eb c3                	jmp    0x56ffd6
570013:	bd 01 00 00 00       	mov    $0x1,%ebp
570018:	33 c0                	xor    %eax,%eax
57001a:	8b fd                	mov    %ebp,%edi
57001c:	89 44 24 10          	mov    %eax,0x10(%esp)
570020:	39 7c 24 18          	cmp    %edi,0x18(%esp)
570024:	7e 3f                	jle    0x570065
570026:	8b 5c 24 28          	mov    0x28(%esp),%ebx
57002a:	4e                   	dec    %esi
57002b:	0f 1f 44 00 00       	nopl   0x0(%eax,%eax,1)
570030:	85 f6                	test   %esi,%esi
570032:	78 2d                	js     0x570061
570034:	56                   	push   %esi
570035:	53                   	push   %ebx
570036:	e8 05 32 f4 ff       	call   0x4b3240
57003b:	83 c4 08             	add    $0x8,%esp
57003e:	85 c0                	test   %eax,%eax
570040:	74 13                	je     0x570055
570042:	8b cf                	mov    %edi,%ecx
570044:	8b c7                	mov    %edi,%eax
570046:	2b 4c 24 10          	sub    0x10(%esp),%ecx
57004a:	d3 e5                	shl    %cl,%ebp
57004c:	83 cd 01             	or     $0x1,%ebp
57004f:	89 44 24 10          	mov    %eax,0x10(%esp)
570053:	eb 04                	jmp    0x570059
570055:	8b 44 24 10          	mov    0x10(%esp),%eax
570059:	47                   	inc    %edi
57005a:	4e                   	dec    %esi
57005b:	3b 7c 24 18          	cmp    0x18(%esp),%edi
57005f:	7c cf                	jl     0x570030
570061:	8b 5c 24 2c          	mov    0x2c(%esp),%ebx
570065:	83 7c 24 20 00       	cmpl   $0x0,0x20(%esp)
57006a:	8d 78 01             	lea    0x1(%eax),%edi
57006d:	75 23                	jne    0x570092
57006f:	33 f6                	xor    %esi,%esi
570071:	85 ff                	test   %edi,%edi
570073:	7e 1d                	jle    0x570092
570075:	ff 74 24 1c          	push   0x1c(%esp)
570079:	8d 44 24 34          	lea    0x34(%esp),%eax
57007d:	50                   	push   %eax
57007e:	53                   	push   %ebx
57007f:	53                   	push   %ebx
570080:	53                   	push   %ebx
570081:	e8 fa 73 01 00       	call   0x587480
570086:	83 c4 14             	add    $0x14,%esp
570089:	85 c0                	test   %eax,%eax
57008b:	74 4a                	je     0x5700d7
57008d:	46                   	inc    %esi
57008e:	3b f7                	cmp    %edi,%esi
570090:	7c e3                	jl     0x570075
570092:	ff 74 24 1c          	push   0x1c(%esp)
570096:	8d 44 24 34          	lea    0x34(%esp),%eax
57009a:	d1 fd                	sar    $1,%ebp
57009c:	50                   	push   %eax
57009d:	ff 74 ac 6c          	push   0x6c(%esp,%ebp,4)
5700a1:	53                   	push   %ebx
5700a2:	53                   	push   %ebx
5700a3:	e8 d8 73 01 00       	call   0x587480
5700a8:	83 c4 14             	add    $0x14,%esp
5700ab:	85 c0                	test   %eax,%eax
5700ad:	74 28                	je     0x5700d7
5700af:	8b 74 24 14          	mov    0x14(%esp),%esi
5700b3:	83 c8 ff             	or     $0xffffffff,%eax
5700b6:	2b 44 24 10          	sub    0x10(%esp),%eax
5700ba:	bf 00 00 00 00       	mov    $0x0,%edi
5700bf:	03 f0                	add    %eax,%esi
5700c1:	89 7c 24 20          	mov    %edi,0x20(%esp)
5700c5:	89 74 24 14          	mov    %esi,0x14(%esp)
5700c9:	0f 89 03 ff ff ff    	jns    0x56ffd2
5700cf:	c7 44 24 24 01 00 00 	movl   $0x1,0x24(%esp)
5700d6:	00
5700d7:	ff 74 24 1c          	push   0x1c(%esp)
5700db:	e8 70 7c f6 ff       	call   0x4d7d50
5700e0:	8d 44 24 34          	lea    0x34(%esp),%eax
5700e4:	50                   	push   %eax
5700e5:	e8 86 70 01 00       	call   0x587170
5700ea:	8b 8c 24 ec 00 00 00 	mov    0xec(%esp),%ecx
5700f1:	83 c4 08             	add    $0x8,%esp
5700f4:	8b 44 24 24          	mov    0x24(%esp),%eax
5700f8:	5f                   	pop    %edi
5700f9:	5e                   	pop    %esi
5700fa:	5d                   	pop    %ebp
5700fb:	5b                   	pop    %ebx
5700fc:	33 cc                	xor    %esp,%ecx
5700fe:	e8 d7 13 07 00       	call   0x5e14da
570103:	81 c4 d8 00 00 00    	add    $0xd8,%esp
570109:	c3                   	ret
57010a:	cc                   	int3
57010b:	cc                   	int3
57010c:	cc                   	int3
57010d:	cc                   	int3
57010e:	cc                   	int3
57010f:	cc                   	int3
570110:	b8 24 00 00 00       	mov    $0x24,%eax
570115:	e8 d6 13 07 00       	call   0x5e14f0
57011a:	8b 44 24 28          	mov    0x28(%esp),%eax
57011e:	53                   	push   %ebx
57011f:	55                   	push   %ebp
570120:	8b 6c 24 34          	mov    0x34(%esp),%ebp
570124:	bb 01 00 00 00       	mov    $0x1,%ebx
570129:	56                   	push   %esi
57012a:	8b 74 24 44          	mov    0x44(%esp),%esi
57012e:	8b ce                	mov    %esi,%ecx
570130:	d3 e3                	shl    %cl,%ebx
570132:	57                   	push   %edi
570133:	8b 7c 24 40          	mov    0x40(%esp),%edi
570137:	3b 68 08             	cmp    0x8(%eax),%ebp
57013a:	7e 0a                	jle    0x570146
57013c:	55                   	push   %ebp
57013d:	50                   	push   %eax
57013e:	e8 5d 35 f4 ff       	call   0x4b36a0
570143:	83 c4 08             	add    $0x8,%esp
570146:	85 c0                	test   %eax,%eax
570148:	75 08                	jne    0x570152
57014a:	5f                   	pop    %edi
57014b:	5e                   	pop    %esi
57014c:	5d                   	pop    %ebp
57014d:	5b                   	pop    %ebx
57014e:	83 c4 24             	add    $0x24,%esp
570151:	c3                   	ret
570152:	83 fe 03             	cmp    $0x3,%esi
570155:	7f 61                	jg     0x5701b8
570157:	33 c9                	xor    %ecx,%ecx
570159:	89 4c 24 3c          	mov    %ecx,0x3c(%esp)
57015d:	85 ed                	test   %ebp,%ebp
57015f:	0f 8e a9 01 00 00    	jle    0x57030e
570165:	33 f6                	xor    %esi,%esi
570167:	33 c0                	xor    %eax,%eax
570169:	85 db                	test   %ebx,%ebx
57016b:	7e 2b                	jle    0x570198
57016d:	0f 1f 00             	nopl   (%eax)
570170:	8b c8                	mov    %eax,%ecx
570172:	33 4c 24 44          	xor    0x44(%esp),%ecx
570176:	8d 51 ff             	lea    -0x1(%ecx),%edx
570179:	f7 d1                	not    %ecx
57017b:	c1 ea 1f             	shr    $0x1f,%edx
57017e:	c1 e9 1f             	shr    $0x1f,%ecx
570181:	23 d1                	and    %ecx,%edx
570183:	f7 da                	neg    %edx
570185:	83 e2 01             	and    $0x1,%edx
570188:	f7 da                	neg    %edx
57018a:	23 14 87             	and    (%edi,%eax,4),%edx
57018d:	40                   	inc    %eax
57018e:	0b f2                	or     %edx,%esi
570190:	3b c3                	cmp    %ebx,%eax
570192:	7c dc                	jl     0x570170
570194:	8b 4c 24 3c          	mov    0x3c(%esp),%ecx
570198:	8b 44 24 38          	mov    0x38(%esp),%eax
57019c:	8b 00                	mov    (%eax),%eax
57019e:	89 34 88             	mov    %esi,(%eax,%ecx,4)
5701a1:	41                   	inc    %ecx
5701a2:	8d 04 9d 00 00 00 00 	lea    0x0(,%ebx,4),%eax
5701a9:	89 4c 24 3c          	mov    %ecx,0x3c(%esp)
5701ad:	03 f8                	add    %eax,%edi
5701af:	3b cd                	cmp    %ebp,%ecx
5701b1:	7c b2                	jl     0x570165
5701b3:	e9 56 01 00 00       	jmp    0x57030e
5701b8:	8b 54 24 44          	mov    0x44(%esp),%edx
5701bc:	8d 4e fe             	lea    -0x2(%esi),%ecx
5701bf:	d3 fa                	sar    %cl,%edx
5701c1:	be 01 00 00 00       	mov    $0x1,%esi
5701c6:	d3 e6                	shl    %cl,%esi
5701c8:	8b 4c 24 44          	mov    0x44(%esp),%ecx
5701cc:	89 74 24 2c          	mov    %esi,0x2c(%esp)
5701d0:	8d 46 ff             	lea    -0x1(%esi),%eax
5701d3:	23 c8                	and    %eax,%ecx
5701d5:	8b c2                	mov    %edx,%eax
5701d7:	89 4c 24 18          	mov    %ecx,0x18(%esp)
5701db:	f7 d0                	not    %eax
5701dd:	c1 e8 1f             	shr    $0x1f,%eax
5701e0:	8d 4a ff             	lea    -0x1(%edx),%ecx
5701e3:	c1 e9 1f             	shr    $0x1f,%ecx
5701e6:	23 c8                	and    %eax,%ecx
5701e8:	8b c2                	mov    %edx,%eax
5701ea:	f7 d9                	neg    %ecx
5701ec:	83 f0 01             	xor    $0x1,%eax
5701ef:	83 e1 01             	and    $0x1,%ecx
5701f2:	f7 d9                	neg    %ecx
5701f4:	89 4c 24 28          	mov    %ecx,0x28(%esp)
5701f8:	8d 48 ff             	lea    -0x1(%eax),%ecx
5701fb:	f7 d0                	not    %eax
5701fd:	c1 e9 1f             	shr    $0x1f,%ecx
570200:	c1 e8 1f             	shr    $0x1f,%eax
570203:	23 c8                	and    %eax,%ecx
570205:	8b c2                	mov    %edx,%eax
570207:	f7 d9                	neg    %ecx
570209:	83 f0 02             	xor    $0x2,%eax
57020c:	83 e1 01             	and    $0x1,%ecx
57020f:	83 f2 03             	xor    $0x3,%edx
570212:	f7 d9                	neg    %ecx
570214:	89 4c 24 24          	mov    %ecx,0x24(%esp)
570218:	8d 48 ff             	lea    -0x1(%eax),%ecx
57021b:	f7 d0                	not    %eax
57021d:	c1 e8 1f             	shr    $0x1f,%eax
570220:	c1 e9 1f             	shr    $0x1f,%ecx
570223:	23 c8                	and    %eax,%ecx
570225:	8d 42 ff             	lea    -0x1(%edx),%eax
570228:	c1 e8 1f             	shr    $0x1f,%eax
57022b:	f7 d9                	neg    %ecx
57022d:	f7 d2                	not    %edx
57022f:	83 e1 01             	and    $0x1,%ecx
570232:	c1 ea 1f             	shr    $0x1f,%edx
570235:	f7 d9                	neg    %ecx
570237:	23 c2                	and    %edx,%eax
570239:	89 4c 24 20          	mov    %ecx,0x20(%esp)
57023d:	f7 d8                	neg    %eax
57023f:	33 c9                	xor    %ecx,%ecx
570241:	83 e0 01             	and    $0x1,%eax
570244:	89 4c 24 14          	mov    %ecx,0x14(%esp)
570248:	f7 d8                	neg    %eax
57024a:	89 44 24 1c          	mov    %eax,0x1c(%esp)
57024e:	85 ed                	test   %ebp,%ebp
570250:	0f 8e b8 00 00 00    	jle    0x57030e
570256:	c1 e3 02             	shl    $0x2,%ebx
570259:	89 5c 24 30          	mov    %ebx,0x30(%esp)
57025d:	0f 1f 00             	nopl   (%eax)
570260:	33 d2                	xor    %edx,%edx
570262:	33 db                	xor    %ebx,%ebx
570264:	89 54 24 48          	mov    %edx,0x48(%esp)
570268:	85 f6                	test   %esi,%esi
57026a:	0f 8e 84 00 00 00    	jle    0x5702f4
570270:	8d 04 76             	lea    (%esi,%esi,2),%eax
570273:	8d 0c f7             	lea    (%edi,%esi,8),%ecx
570276:	8d 04 87             	lea    (%edi,%eax,4),%eax
570279:	89 4c 24 10          	mov    %ecx,0x10(%esp)
57027d:	8d 2c b7             	lea    (%edi,%esi,4),%ebp
570280:	89 44 24 40          	mov    %eax,0x40(%esp)
570284:	8b 00                	mov    (%eax),%eax
570286:	8d 6d 04             	lea    0x4(%ebp),%ebp
570289:	8b 09                	mov    (%ecx),%ecx
57028b:	8b f3                	mov    %ebx,%esi
57028d:	23 4c 24 20          	and    0x20(%esp),%ecx
570291:	23 44 24 1c          	and    0x1c(%esp),%eax
570295:	33 74 24 18          	xor    0x18(%esp),%esi
570299:	0b c8                	or     %eax,%ecx
57029b:	8b 55 fc             	mov    -0x4(%ebp),%edx
57029e:	23 54 24 24          	and    0x24(%esp),%edx
5702a2:	8b 04 9f             	mov    (%edi,%ebx,4),%eax
5702a5:	0b d1                	or     %ecx,%edx
5702a7:	23 44 24 28          	and    0x28(%esp),%eax
5702ab:	8d 4e ff             	lea    -0x1(%esi),%ecx
5702ae:	c1 e9 1f             	shr    $0x1f,%ecx
5702b1:	f7 d6                	not    %esi
5702b3:	c1 ee 1f             	shr    $0x1f,%esi
5702b6:	0b c2                	or     %edx,%eax
5702b8:	8b 54 24 48          	mov    0x48(%esp),%edx
5702bc:	23 ce                	and    %esi,%ecx
5702be:	8b 74 24 2c          	mov    0x2c(%esp),%esi
5702c2:	f7 d9                	neg    %ecx
5702c4:	83 e1 01             	and    $0x1,%ecx
5702c7:	43                   	inc    %ebx
5702c8:	f7 d9                	neg    %ecx
5702ca:	23 c8                	and    %eax,%ecx
5702cc:	8b 44 24 40          	mov    0x40(%esp),%eax
5702d0:	0b d1                	or     %ecx,%edx
5702d2:	83 c0 04             	add    $0x4,%eax
5702d5:	8b 4c 24 10          	mov    0x10(%esp),%ecx
5702d9:	83 c1 04             	add    $0x4,%ecx
5702dc:	89 54 24 48          	mov    %edx,0x48(%esp)
5702e0:	89 44 24 40          	mov    %eax,0x40(%esp)
5702e4:	89 4c 24 10          	mov    %ecx,0x10(%esp)
5702e8:	3b de                	cmp    %esi,%ebx
5702ea:	7c 98                	jl     0x570284
5702ec:	8b 6c 24 3c          	mov    0x3c(%esp),%ebp
5702f0:	8b 4c 24 14          	mov    0x14(%esp),%ecx
5702f4:	8b 44 24 38          	mov    0x38(%esp),%eax
5702f8:	03 7c 24 30          	add    0x30(%esp),%edi
5702fc:	8b 00                	mov    (%eax),%eax
5702fe:	89 14 88             	mov    %edx,(%eax,%ecx,4)
570301:	41                   	inc    %ecx
570302:	89 4c 24 14          	mov    %ecx,0x14(%esp)
570306:	3b cd                	cmp    %ebp,%ecx
570308:	0f 8c 52 ff ff ff    	jl     0x570260
57030e:	8b 54 24 38          	mov    0x38(%esp),%edx
570312:	89 6a 04             	mov    %ebp,0x4(%edx)
570315:	85 ed                	test   %ebp,%ebp
570317:	7e 19                	jle    0x570332
570319:	8b 0a                	mov    (%edx),%ecx
57031b:	83 c1 fc             	add    $0xfffffffc,%ecx
57031e:	8d 0c a9             	lea    (%ecx,%ebp,4),%ecx
570321:	8b 01                	mov    (%ecx),%eax
570323:	8d 49 fc             	lea    -0x4(%ecx),%ecx
570326:	85 c0                	test   %eax,%eax
570328:	75 05                	jne    0x57032f
57032a:	4d                   	dec    %ebp
57032b:	85 ed                	test   %ebp,%ebp
57032d:	7f f2                	jg     0x570321
57032f:	89 6a 04             	mov    %ebp,0x4(%edx)
570332:	83 7a 04 00          	cmpl   $0x0,0x4(%edx)
570336:	75 07                	jne    0x57033f
570338:	c7 42 0c 00 00 00 00 	movl   $0x0,0xc(%edx)
57033f:	5f                   	pop    %edi
570340:	5e                   	pop    %esi
570341:	5d                   	pop    %ebp
570342:	b8 01 00 00 00       	mov    $0x1,%eax
570347:	5b                   	pop    %ebx
570348:	83 c4 24             	add    $0x24,%esp
57034b:	c3                   	ret
57034c:	cc                   	int3
57034d:	cc                   	int3
57034e:	cc                   	int3
57034f:	cc                   	int3
570350:	8b 4c 24 14          	mov    0x14(%esp),%ecx
570354:	53                   	push   %ebx
570355:	8b 5c 24 08          	mov    0x8(%esp),%ebx
570359:	55                   	push   %ebp
57035a:	57                   	push   %edi
57035b:	8b 7c 24 14          	mov    0x14(%esp),%edi
57035f:	bd 01 00 00 00       	mov    $0x1,%ebp
570364:	d3 e5                	shl    %cl,%ebp
570366:	3b 7b 04             	cmp    0x4(%ebx),%edi
570369:	0f 4f 7b 04          	cmovg  0x4(%ebx),%edi
57036d:	33 c9                	xor    %ecx,%ecx
57036f:	85 ff                	test   %edi,%edi
570371:	7e 1e                	jle    0x570391
570373:	8b 54 24 1c          	mov    0x1c(%esp),%edx
570377:	8b 44 24 18          	mov    0x18(%esp),%eax
57037b:	56                   	push   %esi
57037c:	c1 e5 02             	shl    $0x2,%ebp
57037f:	8d 34 90             	lea    (%eax,%edx,4),%esi
570382:	8b 13                	mov    (%ebx),%edx
570384:	8b 14 8a             	mov    (%edx,%ecx,4),%edx
570387:	41                   	inc    %ecx
570388:	89 16                	mov    %edx,(%esi)
57038a:	03 f5                	add    %ebp,%esi
57038c:	3b cf                	cmp    %edi,%ecx
57038e:	7c f2                	jl     0x570382
570390:	5e                   	pop    %esi
570391:	5f                   	pop    %edi
570392:	5d                   	pop    %ebp
570393:	b8 01 00 00 00       	mov    $0x1,%eax
570398:	5b                   	pop    %ebx
570399:	c3                   	ret
57039a:	cc                   	int3