	.file	"410889.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"rb+"
.LC1:
	.string	"aaa file size: %d \n"
	.text
	.globl	read_dat
	.type	read_dat, @function
read_dat:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	read_dat, .-read_dat
	.section	.rodata
.LC2:
	.string	"./agps_data/%s_agps.dat"
	.text
	.globl	genAgpsFilePathName
	.type	genAgpsFilePathName, @function
genAgpsFilePathName:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	genAgpsFilePathName, .-genAgpsFilePathName
	.section	.rodata
	.align 8
.LC3:
	.string	"header[30]: %d, header[31]:%d, total:%d\n"
	.text
	.globl	takeDataPacket
	.type	takeDataPacket, @function
takeDataPacket:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -32768[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 96
	mov	QWORD PTR -32840[rbp], rdi
	mov	QWORD PTR -32848[rbp], rsi
	mov	QWORD PTR -32856[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -32832[rbp], 0
	mov	DWORD PTR -32828[rbp], 0
	mov	DWORD PTR -32824[rbp], 0
	lea	rcx, -32784[rbp]
	mov	rax, QWORD PTR -32840[rbp]
	mov	edx, 32768
	mov	rsi, rcx
	mov	rdi, rax
	call	read_dat
	mov	DWORD PTR -32820[rbp], eax
	movabs	rax, 4793856833360363606
	movabs	rdx, 8590529936
	mov	QWORD PTR -32816[rbp], rax
	mov	QWORD PTR -32808[rbp], rdx
	mov	QWORD PTR -32800[rbp], 0
	mov	QWORD PTR -32792[rbp], 0
	mov	DWORD PTR -32832[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -32832[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32856[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -32832[rbp]
	add	eax, 1
	cdqe
	mov	BYTE PTR -32816[rbp+rax], dl
	add	DWORD PTR -32832[rbp], 1
.L5:
	cmp	DWORD PTR -32832[rbp], 7
	jle	.L6
	mov	eax, DWORD PTR -32820[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -2078209981
	shr	rdx, 32
	add	edx, eax
	sar	edx, 9
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 992
	sub	eax, ecx
	mov	edx, eax
	test	edx, edx
	je	.L7
	mov	eax, DWORD PTR -32820[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -2078209981
	shr	rdx, 32
	add	edx, eax
	sar	edx, 9
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	add	eax, 1
	mov	BYTE PTR -32787[rbp], al
	jmp	.L8
.L7:
	mov	eax, DWORD PTR -32820[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -2078209981
	shr	rdx, 32
	add	edx, eax
	sar	edx, 9
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	BYTE PTR -32787[rbp], al
.L8:
	mov	DWORD PTR -32832[rbp], 0
	jmp	.L9
.L14:
	mov	eax, DWORD PTR -32832[rbp]
	mov	BYTE PTR -32803[rbp], al
	mov	BYTE PTR -32786[rbp], 3
	mov	BYTE PTR -32785[rbp], -32
	movzx	eax, BYTE PTR -32785[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -32786[rbp]
	movzx	eax, al
	mov	ecx, 992
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -32824[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -32828[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -32828[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -32848[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -32824[rbp]
	cdqe
	movzx	eax, BYTE PTR -32816[rbp+rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -32824[rbp], 1
.L10:
	cmp	DWORD PTR -32824[rbp], 31
	jle	.L11
	mov	DWORD PTR -32824[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -32832[rbp]
	imul	edx, eax, 992
	mov	eax, DWORD PTR -32824[rbp]
	lea	ecx, [rdx+rax]
	mov	eax, DWORD PTR -32828[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -32828[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -32848[rbp]
	add	rdx, rax
	movsx	rax, ecx
	movzx	eax, BYTE PTR -32784[rbp+rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -32824[rbp], 1
.L12:
	cmp	DWORD PTR -32824[rbp], 991
	jle	.L13
	add	DWORD PTR -32832[rbp], 1
.L9:
	mov	eax, DWORD PTR -32820[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -2078209981
	shr	rdx, 32
	add	edx, eax
	sar	edx, 9
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	cmp	DWORD PTR -32832[rbp], eax
	jl	.L14
	mov	eax, DWORD PTR -32820[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -2078209981
	shr	rdx, 32
	add	edx, eax
	sar	edx, 9
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 992
	sub	eax, ecx
	mov	edx, eax
	test	edx, edx
	je	.L15
	mov	eax, DWORD PTR -32832[rbp]
	mov	BYTE PTR -32803[rbp], al
	mov	eax, DWORD PTR -32820[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -2078209981
	shr	rdx, 32
	add	edx, eax
	sar	edx, 9
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 992
	sub	eax, ecx
	mov	edx, eax
	mov	eax, edx
	lea	edx, 255[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 8
	mov	BYTE PTR -32786[rbp], al
	mov	edx, DWORD PTR -32820[rbp]
	movsx	rax, edx
	imul	rax, rax, -2078209981
	shr	rax, 32
	add	eax, edx
	sar	eax, 9
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 992
	mov	eax, edx
	sub	eax, ecx
	cdq
	shr	edx, 24
	add	eax, edx
	movzx	eax, al
	sub	eax, edx
	mov	BYTE PTR -32785[rbp], al
	mov	edx, DWORD PTR -32820[rbp]
	movsx	rax, edx
	imul	rax, rax, -2078209981
	shr	rax, 32
	add	eax, edx
	sar	eax, 9
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 992
	mov	eax, edx
	sub	eax, ecx
	movzx	edx, BYTE PTR -32785[rbp]
	movzx	edx, dl
	movzx	ecx, BYTE PTR -32786[rbp]
	movzx	esi, cl
	mov	ecx, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -32824[rbp], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -32828[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -32828[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -32848[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -32824[rbp]
	cdqe
	movzx	eax, BYTE PTR -32816[rbp+rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -32824[rbp], 1
.L16:
	cmp	DWORD PTR -32824[rbp], 31
	jle	.L17
	mov	DWORD PTR -32824[rbp], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -32832[rbp]
	imul	edx, eax, 992
	mov	eax, DWORD PTR -32824[rbp]
	lea	ecx, [rdx+rax]
	mov	eax, DWORD PTR -32828[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -32828[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -32848[rbp]
	add	rdx, rax
	movsx	rax, ecx
	movzx	eax, BYTE PTR -32784[rbp+rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -32824[rbp], 1
.L18:
	mov	eax, DWORD PTR -32820[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -2078209981
	shr	rdx, 32
	add	edx, eax
	sar	edx, 9
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 992
	sub	eax, ecx
	mov	edx, eax
	cmp	DWORD PTR -32824[rbp], edx
	jl	.L19
.L15:
	mov	eax, DWORD PTR -32828[rbp]
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	takeDataPacket, .-takeDataPacket
	.globl	takeDataPacketFlag
	.type	takeDataPacketFlag, @function
takeDataPacketFlag:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	eax, edx
	mov	BYTE PTR -32[rbp], al
	mov	DWORD PTR -4[rbp], 0
	jmp	.L23
.L24:
	mov	eax, DWORD PTR -4[rbp]
	sal	eax, 10
	cdqe
	lea	rdx, 20[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -32[rbp]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -4[rbp], 1
.L23:
	mov	eax, DWORD PTR -4[rbp]
	sal	eax, 10
	cmp	DWORD PTR -28[rbp], eax
	jg	.L24
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	takeDataPacketFlag, .-takeDataPacketFlag
	.section	.rodata
.LC4:
	.string	"socket creating error"
.LC5:
	.string	"224.0.243.12"
.LC6:
	.string	"Bind error"
.LC7:
	.string	"total:%d, sendBuf[0]:%x\n"
.LC8:
	.string	" %x\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -32768[rsp]
.LPSRL1:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL1
	sub	rsp, 352
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -33040[rbp], 0
	mov	QWORD PTR -33032[rbp], 0
	mov	QWORD PTR -33024[rbp], 0
	mov	QWORD PTR -33016[rbp], 0
	mov	QWORD PTR -33008[rbp], 0
	mov	QWORD PTR -33000[rbp], 0
	mov	QWORD PTR -32992[rbp], 0
	mov	QWORD PTR -32984[rbp], 0
	mov	QWORD PTR -32976[rbp], 0
	mov	QWORD PTR -32968[rbp], 0
	mov	QWORD PTR -32960[rbp], 0
	mov	QWORD PTR -32952[rbp], 0
	mov	QWORD PTR -32944[rbp], 0
	mov	QWORD PTR -32936[rbp], 0
	mov	QWORD PTR -32928[rbp], 0
	mov	QWORD PTR -32920[rbp], 0
	mov	QWORD PTR -32912[rbp], 0
	mov	QWORD PTR -32904[rbp], 0
	mov	QWORD PTR -32896[rbp], 0
	mov	QWORD PTR -32888[rbp], 0
	mov	QWORD PTR -32880[rbp], 0
	mov	QWORD PTR -32872[rbp], 0
	mov	QWORD PTR -32864[rbp], 0
	mov	QWORD PTR -32856[rbp], 0
	mov	QWORD PTR -32848[rbp], 0
	mov	QWORD PTR -32840[rbp], 0
	mov	QWORD PTR -32832[rbp], 0
	mov	QWORD PTR -32824[rbp], 0
	mov	QWORD PTR -32816[rbp], 0
	mov	QWORD PTR -32808[rbp], 0
	mov	QWORD PTR -32800[rbp], 0
	mov	QWORD PTR -32792[rbp], 0
	movabs	rax, 1441151880842516000
	mov	QWORD PTR -33048[rbp], rax
	mov	DWORD PTR -33096[rbp], 0
	mov	DWORD PTR -33100[rbp], 0
	mov	DWORD PTR -33104[rbp], 0
	mov	BYTE PTR -33105[rbp], -1
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -33092[rbp], eax
	cmp	DWORD PTR -33092[rbp], 0
	jns	.L26
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	lea	rax, -33088[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -33088[rbp], 2
	mov	edi, 8882
	call	htons@PLT
	mov	WORD PTR -33086[rbp], ax
	lea	rax, -33088[rbp]
	add	rax, 4
	mov	rdx, rax
	lea	rsi, .LC5[rip]
	mov	edi, 2
	call	inet_pton@PLT
	lea	rax, -33072[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -33072[rbp], 2
	mov	edi, 8881
	call	htons@PLT
	mov	WORD PTR -33070[rbp], ax
	mov	DWORD PTR -33068[rbp], 0
	lea	rdx, -33104[rbp]
	mov	eax, DWORD PTR -33092[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 34
	mov	esi, 0
	mov	edi, eax
	call	setsockopt@PLT
	lea	rdx, -33105[rbp]
	mov	eax, DWORD PTR -33092[rbp]
	mov	r8d, 1
	mov	rcx, rdx
	mov	edx, 33
	mov	esi, 0
	mov	edi, eax
	call	setsockopt@PLT
	lea	rcx, -33072[rbp]
	mov	eax, DWORD PTR -33092[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L27
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L27:
	lea	rax, -33040[rbp]
	movabs	rsi, 3832617366029676594
	movabs	rdi, 3760840147356102704
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	mov	BYTE PTR 16[rax], 0
	lea	rdx, -32912[rbp]
	lea	rax, -33040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	genAgpsFilePathName
	lea	rax, -32912[rbp]
	mov	rdi, rax
	call	puts@PLT
	lea	rdx, -33048[rbp]
	lea	rcx, -32784[rbp]
	lea	rax, -32912[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	takeDataPacket
	mov	DWORD PTR -33096[rbp], eax
	movzx	eax, BYTE PTR -32784[rbp]
	movsx	edx, al
	mov	eax, DWORD PTR -33096[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ecx, DWORD PTR -33096[rbp]
	lea	rax, -32784[rbp]
	mov	edx, 50
	mov	esi, ecx
	mov	rdi, rax
	call	takeDataPacketFlag
	jmp	.L28
.L30:
	mov	eax, DWORD PTR -33100[rbp]
	cdqe
	lea	rdx, -32784[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -33096[rbp]
	sub	eax, DWORD PTR -33100[rbp]
	cmp	eax, 1023
	jle	.L29
	mov	eax, DWORD PTR -33100[rbp]
	cdqe
	lea	rdx, -32784[rbp]
	lea	rsi, [rdx+rax]
	lea	rdx, -33088[rbp]
	mov	eax, DWORD PTR -33092[rbp]
	mov	r9d, 16
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 1024
	mov	edi, eax
	call	sendto@PLT
	add	DWORD PTR -33100[rbp], 1024
	jmp	.L28
.L29:
	mov	eax, DWORD PTR -33096[rbp]
	sub	eax, DWORD PTR -33100[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -33100[rbp]
	cdqe
	lea	rcx, -32784[rbp]
	lea	rsi, [rcx+rax]
	lea	rcx, -33088[rbp]
	mov	eax, DWORD PTR -33092[rbp]
	mov	r9d, 16
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	mov	eax, DWORD PTR -33096[rbp]
	mov	DWORD PTR -33100[rbp], eax
.L28:
	mov	eax, DWORD PTR -33100[rbp]
	cmp	eax, DWORD PTR -33096[rbp]
	jl	.L30
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"410889.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"rb+\000"
	.align	2
.LC1:
	.ascii	"aaa file size: %d \012\000"
	.text
	.align	2
	.global	read_dat
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_dat, %function
read_dat:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r1, .L3
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	mov	r1, #1
	ldr	r0, [fp, #-20]
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L3+4
	bl	printf
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	.LC1
	.size	read_dat, .-read_dat
	.section	.rodata
	.align	2
.LC2:
	.ascii	"./agps_data/%s_agps.dat\000"
	.text
	.align	2
	.global	genAgpsFilePathName
	.syntax unified
	.arm
	.fpu softvfp
	.type	genAgpsFilePathName, %function
genAgpsFilePathName:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r1, .L6
	ldr	r0, [fp, #-12]
	bl	sprintf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC2
	.size	genAgpsFilePathName, .-genAgpsFilePathName
	.section	.rodata
	.align	2
.LC4:
	.ascii	"header[30]: %d, header[31]:%d, total:%d\012\000"
	.align	2
.LC3:
	.ascii	"V\000\206\030d3\207B\220\025\011\000\002\000\000\000"
	.ascii	"\000\000\000\000\000\000\000\000\000\000\000\000\000"
	.ascii	"\000\000\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	takeDataPacket
	.syntax unified
	.arm
	.fpu softvfp
	.type	takeDataPacket, %function
takeDataPacket:
	@ args = 0, pretend = 0, frame = 32840
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #32768
	sub	sp, sp, #76
	sub	r3, fp, #32768
	sub	r3, r3, #12
	str	r0, [r3, #-60]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	str	r1, [r3, #-64]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	str	r2, [r3, #-68]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-52]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-48]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-44]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #32768
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #32768
	mov	r1, r3
	ldr	r0, [r0, #-60]
	bl	read_dat
	str	r0, [r4, #-40]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r2, .L26+4
	sub	ip, r3, #36
	mov	lr, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-52]
	b	.L9
.L10:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	sub	r2, fp, #32768
	sub	r2, r2, #12
	ldr	r2, [r2, #-68]
	add	r2, r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	add	r3, r3, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	sub	r1, fp, #32768
	sub	r1, r1, #12
	add	r3, r1, r3
	strb	r2, [r3, #-36]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	add	r3, r3, #1
	str	r3, [r2, #-52]
.L9:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	cmp	r3, #7
	ble	.L10
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r2, [r3, #-40]
	ldr	r3, .L26+8
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #9
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #5
	sub	r1, r2, r3
	cmp	r1, #0
	beq	.L11
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	ldr	r2, .L26+8
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #9
	asr	r3, r3, #31
	sub	r3, r2, r3
	and	r3, r3, #255
	add	r3, r3, #1
	and	r2, r3, #255
	sub	r3, fp, #32768
	sub	r3, r3, #12
	strb	r2, [r3, #-7]
	b	.L12
.L11:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	ldr	r2, .L26+8
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #9
	asr	r3, r3, #31
	sub	r3, r2, r3
	and	r2, r3, #255
	sub	r3, fp, #32768
	sub	r3, r3, #12
	strb	r2, [r3, #-7]
.L12:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-52]
	b	.L13
.L18:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	and	r2, r3, #255
	sub	r3, fp, #32768
	sub	r3, r3, #12
	strb	r2, [r3, #-23]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, #3
	strb	r2, [r3, #-6]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mvn	r2, #31
	strb	r2, [r3, #-5]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldrb	r3, [r3, #-6]	@ zero_extendqisi2
	mov	r1, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldrb	r3, [r3, #-5]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, #992
	ldr	r0, .L26+12
	bl	printf
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-44]
	b	.L14
.L15:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	sub	r2, fp, #32768
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-48]
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	add	r3, r3, r2
	sub	r2, fp, #32768
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #32768
	sub	r2, r2, #12
	ldr	r2, [r2, #-44]
	add	r2, r1, r2
	sub	r2, r2, #36
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	add	r3, r3, #1
	str	r3, [r2, #-44]
.L14:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #31
	ble	.L15
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-44]
	b	.L16
.L17:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r2, [r3, #-52]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	add	r2, r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	sub	r1, fp, #32768
	sub	r1, r1, #12
	mov	r0, r1
	add	r1, r3, #1
	str	r1, [r0, #-48]
	mov	r1, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	add	r3, r3, r1
	sub	r1, fp, #32768
	sub	r1, r1, #12
	add	r2, r1, r2
	ldrb	r2, [r2, #-4]	@ zero_extendqisi2
	strb	r2, [r3]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	add	r3, r3, #1
	str	r3, [r2, #-44]
.L16:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #992
	blt	.L17
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	add	r3, r3, #1
	str	r3, [r2, #-52]
.L13:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	ldr	r2, .L26+8
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #9
	asr	r3, r3, #31
	sub	r3, r2, r3
	sub	r2, fp, #32768
	sub	r2, r2, #12
	ldr	r2, [r2, #-52]
	cmp	r2, r3
	blt	.L18
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r2, [r3, #-40]
	ldr	r3, .L26+8
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #9
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #5
	sub	r1, r2, r3
	cmp	r1, #0
	beq	.L19
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	and	r2, r3, #255
	sub	r3, fp, #32768
	sub	r3, r3, #12
	strb	r2, [r3, #-23]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r2, [r3, #-40]
	ldr	r3, .L26+8
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #9
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #5
	sub	r1, r2, r3
	mov	r3, r1
	add	r2, r3, #255
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #8
	and	r2, r3, #255
	sub	r3, fp, #32768
	sub	r3, r3, #12
	strb	r2, [r3, #-6]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r1, [r3, #-40]
	ldr	r3, .L26+8
	smull	r2, r3, r1, r3
	add	r3, r3, r1
	asr	r2, r3, #9
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #5
	sub	r2, r1, r3
	rsbs	r1, r2, #0
	and	r3, r2, #255
	and	r2, r1, #255
	rsbpl	r3, r2, #0
	and	r2, r3, #255
	sub	r3, fp, #32768
	sub	r3, r3, #12
	strb	r2, [r3, #-5]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldrb	r3, [r3, #-6]	@ zero_extendqisi2
	mov	r0, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldrb	r3, [r3, #-5]	@ zero_extendqisi2
	mov	ip, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r2, [r3, #-40]
	ldr	r3, .L26+8
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #9
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #5
	sub	r1, r2, r3
	mov	r3, r1
	mov	r2, ip
	mov	r1, r0
	ldr	r0, .L26+12
	bl	printf
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-44]
	b	.L20
.L21:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	sub	r2, fp, #32768
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-48]
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	add	r3, r3, r2
	sub	r2, fp, #32768
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #32768
	sub	r2, r2, #12
	ldr	r2, [r2, #-44]
	add	r2, r1, r2
	sub	r2, r2, #36
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	add	r3, r3, #1
	str	r3, [r2, #-44]
.L20:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #31
	ble	.L21
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-44]
	b	.L22
.L23:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r2, [r3, #-52]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	add	r2, r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	sub	r1, fp, #32768
	sub	r1, r1, #12
	mov	r0, r1
	add	r1, r3, #1
	str	r1, [r0, #-48]
	mov	r1, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	add	r3, r3, r1
	sub	r1, fp, #32768
	sub	r1, r1, #12
	add	r2, r1, r2
	ldrb	r2, [r2, #-4]	@ zero_extendqisi2
	strb	r2, [r3]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	add	r3, r3, #1
	str	r3, [r2, #-44]
.L22:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r2, [r3, #-40]
	ldr	r3, .L26+8
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #9
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #5
	sub	r1, r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, r1
	blt	.L23
.L19:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC5
	.word	.LC3
	.word	-2078209981
	.word	.LC4
	.size	takeDataPacket, .-takeDataPacket
	.align	2
	.global	takeDataPacketFlag
	.syntax unified
	.arm
	.fpu softvfp
	.type	takeDataPacketFlag, %function
takeDataPacketFlag:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, r2
	strb	r3, [fp, #-21]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L29
.L30:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #10
	add	r3, r3, #20
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [fp, #-21]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L29:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #10
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bgt	.L30
	nop
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	takeDataPacketFlag, .-takeDataPacketFlag
	.section	.rodata
	.align	2
.LC7:
	.ascii	"socket creating error\000"
	.align	2
.LC8:
	.ascii	"224.0.243.12\000"
	.align	2
.LC9:
	.ascii	"Bind error\000"
	.align	2
.LC10:
	.ascii	"2016010500000014\000"
	.align	2
.LC11:
	.ascii	"total:%d, sendBuf[0]:%x\012\000"
	.align	2
.LC12:
	.ascii	" %x\012\000"
	.align	2
.LC6:
	.ascii	" \026\001\005\000\000\000\024"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 33088
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #33024
	sub	sp, sp, #76
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, #0
	str	r2, [r3, #-260]
	sub	r3, r3, #256
	mov	r2, #124
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, #0
	str	r2, [r3, #-132]
	sub	r3, r3, #128
	mov	r2, #124
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r2, .L39+4
	sub	r3, r3, #268
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-308]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-312]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-316]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mvn	r2, #0
	strb	r2, [r3, #-317]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-304]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-304]
	cmp	r3, #0
	bge	.L32
	ldr	r0, .L39+8
	bl	puts
	mov	r0, #1
	bl	exit
.L32:
	sub	r3, fp, #33024
	sub	r3, r3, #12
	sub	r3, r3, #44
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #300
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L39+12
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #300
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #33024
	sub	r3, r3, #12
	sub	r3, r3, #44
	add	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L39+16
	mov	r0, #2
	bl	inet_pton
	sub	r3, fp, #33024
	sub	r3, r3, #12
	sub	r3, r3, #28
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #284
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L39+20
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #284
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-280]
	sub	r3, fp, #33024
	sub	r3, r3, #12
	sub	r3, r3, #60
	sub	r2, fp, #32768
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #34
	mov	r1, #0
	ldr	r0, [r0, #-304]
	bl	setsockopt
	sub	r3, fp, #33024
	sub	r3, r3, #12
	sub	r3, r3, #61
	sub	r2, fp, #32768
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #1
	str	r2, [sp]
	mov	r2, #33
	mov	r1, #0
	ldr	r0, [r0, #-304]
	bl	setsockopt
	sub	r3, fp, #33024
	sub	r3, r3, #12
	sub	r3, r3, #28
	sub	r2, fp, #32768
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-304]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L33
	ldr	r0, .L39+24
	bl	puts
	mov	r0, #0
	bl	exit
.L33:
	sub	r3, fp, #33024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L39+28
	mov	ip, r3
	mov	lr, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	strb	r3, [ip]
	sub	r2, fp, #32768
	sub	r2, r2, #12
	sub	r2, r2, #132
	sub	r3, fp, #33024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	genAgpsFilePathName
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #132
	mov	r0, r3
	bl	puts
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r4, r3
	sub	r2, fp, #33024
	sub	r2, r2, #12
	sub	r2, r2, #12
	sub	r1, fp, #32768
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #132
	mov	r0, r3
	bl	takeDataPacket
	str	r0, [r4, #-308]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldrb	r3, [r3, #-4]	@ zero_extendqisi2
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r1, [r3, #-308]
	ldr	r0, .L39+32
	bl	printf
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #50
	ldr	r1, [r1, #-308]
	mov	r0, r3
	bl	takeDataPacketFlag
	b	.L34
.L36:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r2, [r3, #-312]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L39+36
	bl	printf
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r2, [r2, #-308]
	ldr	r3, [r3, #-312]
	sub	r3, r2, r3
	cmp	r3, #1024
	blt	.L35
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r2, [r3, #-312]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r1, r3, r2
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #33024
	sub	r3, r3, #12
	sub	r3, r3, #44
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1024
	ldr	r0, [r0, #-304]
	bl	sendto
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-312]
	add	r3, r3, #1024
	str	r3, [r2, #-312]
	b	.L34
.L35:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r2, [r3, #-312]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r1, r3, r2
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r2, [r2, #-308]
	ldr	r3, [r3, #-312]
	sub	r3, r2, r3
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #33024
	sub	r3, r3, #12
	sub	r3, r3, #44
	str	r3, [sp]
	mov	r3, #0
	ldr	r0, [r0, #-304]
	bl	sendto
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-308]
	str	r3, [r2, #-312]
.L34:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r2, [r2, #-312]
	ldr	r3, [r3, #-308]
	cmp	r2, r3
	blt	.L36
	mov	r3, #0
	ldr	r2, .L39
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L38
	bl	__stack_chk_fail
.L38:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC13
	.word	.LC6
	.word	.LC7
	.word	8882
	.word	.LC8
	.word	8881
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
