	.file	"906295.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"export"
	.section	.data.rel.local,"aw"
	.align 8
	.type	desc_export, @object
	.size	desc_export, 8
desc_export:
	.quad	.LC0
	.section	.rodata
.LC1:
	.string	"PS3LOAD"
	.section	.data.rel.local
	.align 8
	.type	envvar, @object
	.size	envvar, 8
envvar:
	.quad	.LC1
	.section	.rodata
.LC2:
	.string	"send failed"
	.text
	.type	tcp_write, @function
tcp_write:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -24[rbp], edx
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rsi, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L3
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -12[rbp]
	sub	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	QWORD PTR -8[rbp], rax
.L2:
	cmp	DWORD PTR -16[rbp], 0
	jne	.L5
	mov	eax, 1
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	tcp_write, .-tcp_write
	.section	.rodata
.LC3:
	.string	"resolving %s\n"
.LC4:
	.string	"error resolving hostname"
.LC5:
	.string	"unsupported address"
.LC6:
	.string	"error creating socket"
.LC7:
	.string	"connecting to %s:%d\n"
.LC8:
	.string	"error connecting"
.LC9:
	.string	"sending upload request"
.LC10:
	.string	"sending file size (%u bytes)\n"
.LC11:
	.string	"sending data"
.LC12:
	.string	"sending arguments (%u bytes)\n"
	.text
	.type	send_tcp, @function
send_tcp:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	mov	DWORD PTR -100[rbp], edx
	mov	DWORD PTR -104[rbp], ecx
	mov	QWORD PTR -112[rbp], r8
	mov	eax, r9d
	mov	WORD PTR -116[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, -1
	jne	.L7
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L8
	lea	rdi, .LC4[rip]
	call	herror@PLT
	mov	eax, 0
	jmp	.L22
.L8:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 2
	je	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L22
.L10:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -28[rbp], eax
.L7:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 0
	jns	.L11
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L22
.L11:
	mov	edi, 4299
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	WORD PTR -32[rbp], 2
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	edx, 4299
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	cmp	eax, -1
	jne	.L12
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	jmp	.L22
.L12:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	BYTE PTR -12[rbp], 72
	mov	BYTE PTR -11[rbp], 65
	mov	BYTE PTR -10[rbp], 88
	mov	BYTE PTR -9[rbp], 88
	lea	rcx, -12[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	tcp_write
	test	eax, eax
	jne	.L13
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	jmp	.L22
.L13:
	mov	BYTE PTR -12[rbp], 0
	mov	BYTE PTR -11[rbp], 5
	movzx	eax, WORD PTR -116[rbp]
	shr	ax, 8
	mov	BYTE PTR -10[rbp], al
	movzx	eax, WORD PTR -116[rbp]
	mov	BYTE PTR -9[rbp], al
	lea	rcx, -12[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	tcp_write
	test	eax, eax
	jne	.L14
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	jmp	.L22
.L14:
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -100[rbp]
	shr	eax, 24
	mov	BYTE PTR -12[rbp], al
	mov	eax, DWORD PTR -100[rbp]
	shr	eax, 16
	mov	BYTE PTR -11[rbp], al
	mov	eax, DWORD PTR -100[rbp]
	shr	eax, 8
	mov	BYTE PTR -10[rbp], al
	mov	eax, DWORD PTR -100[rbp]
	mov	BYTE PTR -9[rbp], al
	lea	rcx, -12[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	tcp_write
	test	eax, eax
	jne	.L15
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	jmp	.L22
.L15:
	mov	eax, DWORD PTR -104[rbp]
	shr	eax, 24
	mov	BYTE PTR -12[rbp], al
	mov	eax, DWORD PTR -104[rbp]
	shr	eax, 16
	mov	BYTE PTR -11[rbp], al
	mov	eax, DWORD PTR -104[rbp]
	shr	eax, 8
	mov	BYTE PTR -10[rbp], al
	mov	eax, DWORD PTR -104[rbp]
	mov	BYTE PTR -9[rbp], al
	lea	rcx, -12[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	tcp_write
	test	eax, eax
	jne	.L16
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	jmp	.L22
.L16:
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, DWORD PTR -100[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -72[rbp], 0
	jmp	.L17
.L20:
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 4096
	jle	.L18
	mov	QWORD PTR -56[rbp], 4096
.L18:
	mov	rax, QWORD PTR -56[rbp]
	sub	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, eax
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	tcp_write
	test	eax, eax
	jne	.L19
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	jmp	.L22
.L19:
	mov	rax, QWORD PTR -56[rbp]
	add	QWORD PTR -48[rbp], rax
	add	DWORD PTR -72[rbp], 1
	mov	eax, DWORD PTR -72[rbp]
	and	eax, 15
	test	eax, eax
	jne	.L17
	mov	edi, 46
	call	putchar@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L17:
	cmp	QWORD PTR -64[rbp], 0
	jne	.L20
	mov	edi, 10
	call	putchar@PLT
	cmp	WORD PTR -116[rbp], 0
	je	.L21
	movzx	eax, WORD PTR -116[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	edx, WORD PTR -116[rbp]
	mov	rcx, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	tcp_write
	test	eax, eax
	jne	.L21
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	jmp	.L22
.L21:
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
.L22:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	send_tcp, .-send_tcp
	.section	.rodata
	.align 8
.LC13:
	.string	"set the environment variable %s to a valid destination.\n\nexamples:\n\ttcp mode:\n\t\t%s %s=tcp:wii\n\t\t%s %s=tcp:192.168.0.30\n\nusage:\n\t%s <filename> <application arguments>\n\n"
	.text
	.type	usage, @function
usage:
.LFB8:
	.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	rsi, QWORD PTR envvar[rip]
	mov	r8, QWORD PTR desc_export[rip]
	mov	rdi, QWORD PTR envvar[rip]
	mov	rcx, QWORD PTR desc_export[rip]
	mov	rdx, QWORD PTR envvar[rip]
	mov	rax, QWORD PTR stderr[rip]
	push	QWORD PTR -8[rbp]
	push	rsi
	mov	r9, r8
	mov	r8, rdi
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	usage, .-usage
	.section	.rodata
	.align 8
.LC14:
	.string	"ps3load v%u.%u\ncoded by dhewg, #wiidev efnet\n\n"
.LC15:
	.string	"error opening the file"
.LC16:
	.string	"error stat'ing the file"
.LC17:
	.string	"error: invalid file size\n"
.LC18:
	.string	"out of memory\n"
.LC19:
	.string	"error reading the file"
.LC20:
	.string	"PK\003\004"
.LC23:
	.string	"compressing %u bytes..."
.LC24:
	.string	"error compressing data: %d\n"
.LC26:
	.string	" %.2f%%\n"
	.align 8
.LC27:
	.string	" compressed size gained size, discarding"
.LC28:
	.string	"%s"
.LC29:
	.string	"argument string too long\n"
.LC30:
	.string	"tcp:"
.LC31:
	.string	"done."
.LC32:
	.string	"transfer failed."
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1280
	mov	DWORD PTR -1268[rbp], edi
	mov	QWORD PTR -1280[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1260[rbp], 1
	mov	QWORD PTR -1232[rbp], 0
	mov	edx, 5
	mov	esi, 0
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -1268[rbp], 1
	jg	.L26
	mov	rax, QWORD PTR -1280[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
.L26:
	mov	rax, QWORD PTR envvar[rip]
	mov	rdi, rax
	call	getenv@PLT
	mov	QWORD PTR -1208[rbp], rax
	cmp	QWORD PTR -1208[rbp], 0
	jne	.L27
	mov	rax, QWORD PTR -1280[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
.L27:
	mov	rax, QWORD PTR -1280[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1240[rbp], eax
	cmp	DWORD PTR -1240[rbp], 0
	jns	.L28
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L28:
	lea	rdx, -1184[rbp]
	mov	eax, DWORD PTR -1240[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	test	eax, eax
	je	.L29
	mov	eax, DWORD PTR -1240[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC16[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L29:
	mov	rax, QWORD PTR -1136[rbp]
	mov	QWORD PTR -1200[rbp], rax
	cmp	QWORD PTR -1200[rbp], 511
	jle	.L30
	cmp	QWORD PTR -1200[rbp], 201326592
	jle	.L31
.L30:
	mov	eax, DWORD PTR -1240[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L31:
	mov	rax, QWORD PTR -1200[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1224[rbp], rax
	cmp	QWORD PTR -1224[rbp], 0
	jne	.L32
	mov	eax, DWORD PTR -1240[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L32:
	mov	rdx, QWORD PTR -1200[rbp]
	mov	rcx, QWORD PTR -1224[rbp]
	mov	eax, DWORD PTR -1240[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	QWORD PTR -1200[rbp], rax
	je	.L33
	mov	eax, DWORD PTR -1240[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -1224[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, .LC19[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L33:
	mov	eax, DWORD PTR -1240[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -1200[rbp]
	mov	DWORD PTR -1256[rbp], eax
	mov	DWORD PTR -1252[rbp], 0
	mov	rax, QWORD PTR -1224[rbp]
	mov	edx, 4
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L34
	mov	DWORD PTR -1260[rbp], 0
.L34:
	cmp	DWORD PTR -1260[rbp], 0
	je	.L35
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, QWORD PTR -1200[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC21[rip]
	mulsd	xmm0, xmm1
	comisd	xmm0, QWORD PTR .LC22[rip]
	jnb	.L36
	cvttsd2si	rax, xmm0
	jmp	.L37
.L36:
	movsd	xmm1, QWORD PTR .LC22[rip]
	subsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	movabs	rdx, -9223372036854775808
	xor	rax, rdx
.L37:
	mov	QWORD PTR -1232[rbp], rax
	mov	rax, QWORD PTR -1232[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1192[rbp], rax
	cmp	QWORD PTR -1192[rbp], 0
	jne	.L38
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L38:
	mov	rax, QWORD PTR -1200[rbp]
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rcx, QWORD PTR -1200[rbp]
	mov	rdx, QWORD PTR -1224[rbp]
	lea	rsi, -1232[rbp]
	mov	rax, QWORD PTR -1192[rbp]
	mov	r8d, 6
	mov	rdi, rax
	call	compress2@PLT
	mov	DWORD PTR -1244[rbp], eax
	cmp	DWORD PTR -1244[rbp], 0
	je	.L39
	mov	rax, QWORD PTR -1224[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -1192[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -1244[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L39:
	mov	rax, QWORD PTR -1200[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -1232[rbp]
	cmp	rdx, rax
	jbe	.L40
	mov	rax, QWORD PTR -1232[rbp]
	test	rax, rax
	js	.L41
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	jmp	.L42
.L41:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rdx
	addss	xmm0, xmm0
.L42:
	movss	xmm1, DWORD PTR .LC25[rip]
	mulss	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, QWORD PTR -1200[rbp]
	divss	xmm0, xmm1
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC26[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -1232[rbp]
	mov	DWORD PTR -1256[rbp], eax
	mov	rax, QWORD PTR -1200[rbp]
	mov	DWORD PTR -1252[rbp], eax
	mov	rax, QWORD PTR -1224[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -1192[rbp]
	mov	QWORD PTR -1224[rbp], rax
	jmp	.L35
.L40:
	lea	rdi, .LC27[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -1192[rbp]
	mov	rdi, rax
	call	free@PLT
.L35:
	mov	WORD PTR -1262[rbp], 0
	lea	rax, -1040[rbp]
	mov	QWORD PTR -1216[rbp], rax
	mov	WORD PTR -1264[rbp], 1024
	mov	rax, QWORD PTR -1280[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	__xpg_basename@PLT
	mov	rdx, rax
	movzx	esi, WORD PTR -1264[rbp]
	mov	rax, QWORD PTR -1216[rbp]
	mov	rcx, rdx
	lea	rdx, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -1236[rbp], eax
	mov	eax, DWORD PTR -1236[rbp]
	cdqe
	add	rax, 1
	add	QWORD PTR -1216[rbp], rax
	mov	eax, DWORD PTR -1236[rbp]
	mov	edx, eax
	movzx	eax, WORD PTR -1264[rbp]
	sub	eax, edx
	sub	eax, 1
	mov	WORD PTR -1264[rbp], ax
	cmp	DWORD PTR -1268[rbp], 2
	jle	.L43
	mov	DWORD PTR -1248[rbp], 2
	jmp	.L44
.L46:
	mov	eax, DWORD PTR -1248[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1280[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	movzx	esi, WORD PTR -1264[rbp]
	mov	rax, QWORD PTR -1216[rbp]
	mov	rcx, rdx
	lea	rdx, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -1236[rbp], eax
	movzx	eax, WORD PTR -1264[rbp]
	cmp	DWORD PTR -1236[rbp], eax
	jl	.L45
	mov	rax, QWORD PTR -1224[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC29[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L45:
	mov	eax, DWORD PTR -1236[rbp]
	cdqe
	add	rax, 1
	add	QWORD PTR -1216[rbp], rax
	mov	eax, DWORD PTR -1236[rbp]
	mov	edx, eax
	movzx	eax, WORD PTR -1264[rbp]
	sub	eax, edx
	sub	eax, 1
	mov	WORD PTR -1264[rbp], ax
	add	DWORD PTR -1248[rbp], 1
.L44:
	mov	eax, DWORD PTR -1248[rbp]
	cmp	eax, DWORD PTR -1268[rbp]
	jl	.L46
	cmp	WORD PTR -1264[rbp], 0
	jne	.L43
	mov	rax, QWORD PTR -1224[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC29[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L43:
	mov	rax, QWORD PTR -1216[rbp]
	mov	BYTE PTR [rax], 0
	mov	eax, 1025
	sub	ax, WORD PTR -1264[rbp]
	mov	WORD PTR -1262[rbp], ax
	mov	rax, QWORD PTR -1208[rbp]
	mov	edx, 4
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L47
	mov	rax, QWORD PTR -1280[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
	jmp	.L48
.L47:
	mov	rax, QWORD PTR -1208[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 4
	ja	.L49
	mov	rax, QWORD PTR -1280[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
.L49:
	movzx	r8d, WORD PTR -1262[rbp]
	mov	rax, QWORD PTR -1208[rbp]
	lea	rdi, 4[rax]
	lea	rsi, -1040[rbp]
	mov	ecx, DWORD PTR -1252[rbp]
	mov	edx, DWORD PTR -1256[rbp]
	mov	rax, QWORD PTR -1224[rbp]
	mov	r9d, r8d
	mov	r8, rsi
	mov	rsi, rax
	call	send_tcp
	mov	DWORD PTR -1244[rbp], eax
.L48:
	cmp	DWORD PTR -1244[rbp], 0
	je	.L50
	lea	rdi, .LC31[rip]
	call	puts@PLT
	jmp	.L51
.L50:
	lea	rdi, .LC32[rip]
	call	puts@PLT
.L51:
	mov	rax, QWORD PTR -1224[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L53
	call	__stack_chk_fail@PLT
.L53:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC21:
	.long	-2061584302
	.long	1072714219
	.align 8
.LC22:
	.long	0
	.long	1138753536
	.align 4
.LC25:
	.long	1120403456
	.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	"906295.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"export\000"
	.data
	.align	2
	.type	desc_export, %object
	.size	desc_export, 4
desc_export:
	.word	.LC0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"PS3LOAD\000"
	.data
	.align	2
	.type	envvar, %object
	.size	envvar, 4
envvar:
	.word	.LC1
	.section	.rodata
	.align	2
.LC2:
	.ascii	"send failed\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tcp_write, %function
tcp_write:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-12]
	b	.L2
.L5:
	ldr	r2, [fp, #-16]
	mov	r3, #0
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	send
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L6
	bl	perror
	mov	r3, #0
	b	.L4
.L3:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L5
	mov	r3, #1
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC2
	.size	tcp_write, .-tcp_write
	.section	.rodata
	.align	2
.LC3:
	.ascii	"resolving %s\012\000"
	.align	2
.LC4:
	.ascii	"error resolving hostname\000"
	.align	2
.LC5:
	.ascii	"unsupported address\000"
	.align	2
.LC6:
	.ascii	"error creating socket\000"
	.align	2
.LC7:
	.ascii	"connecting to %s:%d\012\000"
	.align	2
.LC8:
	.ascii	"error connecting\000"
	.align	2
.LC9:
	.ascii	"sending upload request\000"
	.align	2
.LC10:
	.ascii	"sending file size (%u bytes)\012\000"
	.align	2
.LC11:
	.ascii	"sending data\000"
	.align	2
.LC12:
	.ascii	"sending arguments (%u bytes)\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_tcp, %function
send_tcp:
	@ args = 8, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-72]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #28
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, [fp, #-56]
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L9
	ldr	r1, [fp, #-56]
	ldr	r0, .L26+4
	bl	printf
	ldr	r0, [fp, #-56]
	bl	gethostbyname
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L26+8
	bl	herror
	mov	r3, #0
	b	.L24
.L10:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #8]
	cmp	r3, #2
	beq	.L12
	ldr	r3, .L26+12
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L26+16
	bl	fwrite
	mov	r3, #0
	b	.L24
.L12:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #16]
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-24]
.L9:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L13
	ldr	r0, .L26+20
	bl	perror
	mov	r3, #0
	b	.L24
.L13:
	ldr	r0, .L26+24
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-26]	@ movhi
	mov	r3, #2
	strh	r3, [fp, #-28]	@ movhi
	ldr	r0, [fp, #-24]
	bl	inet_ntoa
	mov	r3, r0
	ldr	r2, .L26+24
	mov	r1, r3
	ldr	r0, .L26+28
	bl	printf
	sub	r3, fp, #28
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	connect
	mov	r3, r0
	cmn	r3, #1
	bne	.L14
	ldr	r0, .L26+32
	bl	perror
	ldr	r0, [fp, #-32]
	bl	close
	mov	r3, #0
	b	.L24
.L14:
	ldr	r0, .L26+36
	bl	puts
	mov	r3, #72
	strb	r3, [fp, #-12]
	mov	r3, #65
	strb	r3, [fp, #-11]
	mov	r3, #88
	strb	r3, [fp, #-10]
	mov	r3, #88
	strb	r3, [fp, #-9]
	sub	r3, fp, #12
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	tcp_write
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldr	r0, [fp, #-32]
	bl	close
	mov	r3, #0
	b	.L24
.L15:
	mov	r3, #0
	strb	r3, [fp, #-12]
	mov	r3, #5
	strb	r3, [fp, #-11]
	ldrh	r3, [fp, #8]
	lsr	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #255
	strb	r3, [fp, #-10]
	ldrh	r3, [fp, #8]	@ movhi
	and	r3, r3, #255
	strb	r3, [fp, #-9]
	sub	r3, fp, #12
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	tcp_write
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	ldr	r0, [fp, #-32]
	bl	close
	mov	r3, #0
	b	.L24
.L16:
	ldr	r1, [fp, #-64]
	ldr	r0, .L26+40
	bl	printf
	ldr	r3, [fp, #-64]
	lsr	r3, r3, #24
	and	r3, r3, #255
	strb	r3, [fp, #-12]
	ldr	r3, [fp, #-64]
	lsr	r3, r3, #16
	and	r3, r3, #255
	strb	r3, [fp, #-11]
	ldr	r3, [fp, #-64]
	lsr	r3, r3, #8
	and	r3, r3, #255
	strb	r3, [fp, #-10]
	ldr	r3, [fp, #-64]
	and	r3, r3, #255
	strb	r3, [fp, #-9]
	sub	r3, fp, #12
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	tcp_write
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	ldr	r0, [fp, #-32]
	bl	close
	mov	r3, #0
	b	.L24
.L17:
	ldr	r3, [fp, #-68]
	lsr	r3, r3, #24
	and	r3, r3, #255
	strb	r3, [fp, #-12]
	ldr	r3, [fp, #-68]
	lsr	r3, r3, #16
	and	r3, r3, #255
	strb	r3, [fp, #-11]
	ldr	r3, [fp, #-68]
	lsr	r3, r3, #8
	and	r3, r3, #255
	strb	r3, [fp, #-10]
	ldr	r3, [fp, #-68]
	and	r3, r3, #255
	strb	r3, [fp, #-9]
	sub	r3, fp, #12
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	tcp_write
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r0, [fp, #-32]
	bl	close
	mov	r3, #0
	b	.L24
.L18:
	ldr	r0, .L26+44
	bl	printf
	ldr	r3, .L26+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L19
.L22:
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #4096
	ble	.L20
	mov	r3, #4096
	str	r3, [fp, #-44]
.L20:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-44]
	sub	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-44]
	mov	r2, r3
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-32]
	bl	tcp_write
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r0, [fp, #-32]
	bl	close
	mov	r3, #0
	b	.L24
.L21:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	and	r3, r3, #15
	cmp	r3, #0
	bne	.L19
	mov	r0, #46
	bl	putchar
	ldr	r3, .L26+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L19:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L22
	mov	r0, #10
	bl	putchar
	ldrh	r3, [fp, #8]
	cmp	r3, #0
	beq	.L23
	ldrh	r3, [fp, #8]
	mov	r1, r3
	ldr	r0, .L26+52
	bl	printf
	ldrh	r3, [fp, #8]
	mov	r2, r3
	ldr	r1, [fp, #-72]
	ldr	r0, [fp, #-32]
	bl	tcp_write
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	ldr	r0, [fp, #-32]
	bl	close
	mov	r3, #0
	b	.L24
.L23:
	ldr	r0, [fp, #-32]
	bl	close
	mov	r3, #1
.L24:
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC13
	.word	.LC3
	.word	.LC4
	.word	stderr
	.word	.LC5
	.word	.LC6
	.word	4299
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	stdout
	.word	.LC12
	.size	send_tcp, .-send_tcp
	.section	.rodata
	.align	2
.LC14:
	.ascii	"set the environment variable %s to a valid destinat"
	.ascii	"ion.\012\012examples:\012\011tcp mode:\012\011\011%"
	.ascii	"s %s=tcp:wii\012\011\011%s %s=tcp:192.168.0.30\012\012"
	.ascii	"usage:\012\011%s <filename> <application arguments>"
	.ascii	"\012\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	ldr	r3, .L29
	ldr	ip, [r3]
	ldr	r3, .L29+4
	ldr	lr, [r3]
	ldr	r3, .L29+8
	ldr	r4, [r3]
	ldr	r3, .L29+4
	ldr	r3, [r3]
	ldr	r2, .L29+8
	ldr	r2, [r2]
	ldr	r1, .L29+4
	ldr	r1, [r1]
	ldr	r0, [fp, #-16]
	str	r0, [sp, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r4
	mov	r2, lr
	ldr	r1, .L29+12
	mov	r0, ip
	bl	fprintf
	mov	r0, #1
	bl	exit
.L30:
	.align	2
.L29:
	.word	stderr
	.word	envvar
	.word	desc_export
	.word	.LC14
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC15:
	.ascii	"ps3load v%u.%u\012coded by dhewg, #wiidev efnet\012"
	.ascii	"\012\000"
	.align	2
.LC16:
	.ascii	"error opening the file\000"
	.align	2
.LC17:
	.ascii	"error stat'ing the file\000"
	.align	2
.LC18:
	.ascii	"error: invalid file size\012\000"
	.align	2
.LC19:
	.ascii	"out of memory\012\000"
	.align	2
.LC20:
	.ascii	"error reading the file\000"
	.align	2
.LC21:
	.ascii	"PK\003\004\000"
	.global	__aeabi_i2f
	.global	__aeabi_f2d
	.global	__aeabi_dmul
	.global	__aeabi_d2uiz
	.align	2
.LC22:
	.ascii	"compressing %u bytes...\000"
	.align	2
.LC23:
	.ascii	"error compressing data: %d\012\000"
	.global	__aeabi_ui2f
	.global	__aeabi_fmul
	.global	__aeabi_fdiv
	.align	2
.LC24:
	.ascii	" %.2f%%\012\000"
	.align	2
.LC25:
	.ascii	" compressed size gained size, discarding\000"
	.align	2
.LC26:
	.ascii	"%s\000"
	.align	2
.LC27:
	.ascii	"argument string too long\012\000"
	.align	2
.LC28:
	.ascii	"tcp:\000"
	.align	2
.LC29:
	.ascii	"done.\000"
	.align	2
.LC30:
	.ascii	"transfer failed.\000"
	.align	2
.LC31:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1184
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1184
	sub	sp, sp, #12
	str	r0, [fp, #-1192]
	str	r1, [fp, #-1196]
	ldr	r3, .L56
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-1180]
	mov	r3, #0
	str	r3, [fp, #-1184]
	mov	r2, #5
	mov	r1, #0
	ldr	r0, .L56+4
	bl	printf
	ldr	r3, [fp, #-1192]
	cmp	r3, #1
	bgt	.L32
	ldr	r3, [fp, #-1196]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
.L32:
	ldr	r3, .L56+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	getenv
	str	r0, [fp, #-1152]
	ldr	r3, [fp, #-1152]
	cmp	r3, #0
	bne	.L33
	ldr	r3, [fp, #-1196]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
.L33:
	ldr	r3, [fp, #-1196]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-1148]
	ldr	r3, [fp, #-1148]
	cmp	r3, #0
	bge	.L34
	ldr	r0, .L56+12
	bl	perror
	mov	r0, #1
	bl	exit
.L34:
	sub	r3, fp, #1120
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, [fp, #-1148]
	bl	fstat
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	ldr	r0, [fp, #-1148]
	bl	close
	ldr	r0, .L56+16
	bl	perror
	mov	r0, #1
	bl	exit
.L35:
	ldr	r3, [fp, #-1088]
	str	r3, [fp, #-1144]
	ldr	r3, [fp, #-1144]
	cmp	r3, #512
	blt	.L36
	ldr	r3, [fp, #-1144]
	cmp	r3, #201326592
	ble	.L37
.L36:
	ldr	r0, [fp, #-1148]
	bl	close
	ldr	r3, .L56+20
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L56+24
	bl	fwrite
	mov	r0, #1
	bl	exit
.L37:
	ldr	r3, [fp, #-1144]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1176]
	ldr	r3, [fp, #-1176]
	cmp	r3, #0
	bne	.L38
	ldr	r0, [fp, #-1148]
	bl	close
	ldr	r3, .L56+20
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L56+28
	bl	fwrite
	mov	r0, #1
	bl	exit
.L38:
	ldr	r3, [fp, #-1144]
	mov	r2, r3
	ldr	r1, [fp, #-1176]
	ldr	r0, [fp, #-1148]
	bl	read
	mov	r2, r0
	ldr	r3, [fp, #-1144]
	cmp	r3, r2
	beq	.L39
	ldr	r0, [fp, #-1148]
	bl	close
	ldr	r0, [fp, #-1176]
	bl	free
	ldr	r0, .L56+32
	bl	perror
	mov	r0, #1
	bl	exit
.L39:
	ldr	r0, [fp, #-1148]
	bl	close
	ldr	r3, [fp, #-1144]
	str	r3, [fp, #-1172]
	mov	r3, #0
	str	r3, [fp, #-1168]
	mov	r2, #4
	ldr	r1, .L56+36
	ldr	r0, [fp, #-1176]
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L40
	mov	r3, #0
	str	r3, [fp, #-1180]
.L40:
	ldr	r3, [fp, #-1180]
	cmp	r3, #0
	beq	.L41
	ldr	r0, [fp, #-1144]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	ldr	r2, .L56+40
	ldr	r3, .L56+44
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	str	r3, [fp, #-1184]
	ldr	r3, [fp, #-1184]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1140]
	ldr	r3, [fp, #-1140]
	cmp	r3, #0
	bne	.L42
	ldr	r3, .L56+20
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L56+28
	bl	fwrite
	mov	r0, #1
	bl	exit
.L42:
	ldr	r3, [fp, #-1144]
	mov	r1, r3
	ldr	r0, .L56+48
	bl	printf
	ldr	r3, .L56+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-1144]
	sub	r1, fp, #1168
	sub	r1, r1, #12
	sub	r1, r1, #4
	mov	r2, #6
	str	r2, [sp]
	ldr	r2, [fp, #-1176]
	ldr	r0, [fp, #-1140]
	bl	compress2
	mov	r3, r0
	str	r3, [fp, #-1156]
	ldr	r3, [fp, #-1156]
	cmp	r3, #0
	beq	.L43
	ldr	r0, [fp, #-1176]
	bl	free
	ldr	r0, [fp, #-1140]
	bl	free
	ldr	r3, .L56+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-1156]
	ldr	r1, .L56+56
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L43:
	ldr	r2, [fp, #-1184]
	ldr	r3, [fp, #-1144]
	cmp	r2, r3
	bcs	.L44
	ldr	r3, [fp, #-1184]
	mov	r0, r3
	bl	__aeabi_ui2f
	mov	r3, r0
	ldr	r1, .L56+60
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r0, [fp, #-1144]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L56+64
	bl	printf
	ldr	r3, [fp, #-1184]
	str	r3, [fp, #-1172]
	ldr	r3, [fp, #-1144]
	str	r3, [fp, #-1168]
	ldr	r0, [fp, #-1176]
	bl	free
	ldr	r3, [fp, #-1140]
	str	r3, [fp, #-1176]
	b	.L41
.L44:
	ldr	r0, .L56+68
	bl	puts
	ldr	r0, [fp, #-1140]
	bl	free
.L41:
	sub	r3, fp, #12
	sub	r3, r3, #1168
	sub	r3, r3, #6
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [fp, #-1160]
	sub	r3, fp, #12
	sub	r3, r3, #1168
	sub	r3, r3, #8
	mov	r2, #1024
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #12
	sub	r3, r3, #1168
	sub	r3, r3, #8
	ldrh	r4, [r3]
	ldr	r3, [fp, #-1196]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	__xpg_basename
	mov	r3, r0
	ldr	r2, .L56+72
	mov	r1, r4
	ldr	r0, [fp, #-1160]
	bl	snprintf
	str	r0, [fp, #-1136]
	ldr	r3, [fp, #-1136]
	add	r3, r3, #1
	ldr	r2, [fp, #-1160]
	add	r3, r2, r3
	str	r3, [fp, #-1160]
	ldr	r3, [fp, #-1136]
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	sub	r3, fp, #12
	sub	r3, r3, #1168
	sub	r3, r3, #8
	ldrh	r3, [r3]	@ movhi
	sub	r3, r3, r2
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	sub	r3, fp, #12
	sub	r3, r3, #1168
	sub	r3, r3, #8
	sub	r2, r2, #1
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-1192]
	cmp	r3, #2
	ble	.L45
	mov	r3, #2
	str	r3, [fp, #-1164]
	b	.L46
.L48:
	sub	r3, fp, #12
	sub	r3, r3, #1168
	sub	r3, r3, #8
	ldrh	r1, [r3]
	ldr	r3, [fp, #-1164]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1196]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L56+72
	ldr	r0, [fp, #-1160]
	bl	snprintf
	str	r0, [fp, #-1136]
	sub	r3, fp, #12
	sub	r3, r3, #1168
	sub	r3, r3, #8
	ldrh	r3, [r3]
	ldr	r2, [fp, #-1136]
	cmp	r2, r3
	blt	.L47
	ldr	r0, [fp, #-1176]
	bl	free
	ldr	r3, .L56+20
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L56+76
	bl	fwrite
	mov	r0, #1
	bl	exit
.L47:
	ldr	r3, [fp, #-1136]
	add	r3, r3, #1
	ldr	r2, [fp, #-1160]
	add	r3, r2, r3
	str	r3, [fp, #-1160]
	ldr	r3, [fp, #-1136]
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	sub	r3, fp, #12
	sub	r3, r3, #1168
	sub	r3, r3, #8
	ldrh	r3, [r3]	@ movhi
	sub	r3, r3, r2
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	sub	r3, fp, #12
	sub	r3, r3, #1168
	sub	r3, r3, #8
	sub	r2, r2, #1
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-1164]
	add	r3, r3, #1
	str	r3, [fp, #-1164]
.L46:
	ldr	r2, [fp, #-1164]
	ldr	r3, [fp, #-1192]
	cmp	r2, r3
	blt	.L48
	sub	r3, fp, #12
	sub	r3, r3, #1168
	sub	r3, r3, #8
	ldrh	r3, [r3]
	cmp	r3, #0
	bne	.L45
	ldr	r0, [fp, #-1176]
	bl	free
	ldr	r3, .L56+20
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L56+76
	bl	fwrite
	mov	r0, #1
	bl	exit
.L45:
	ldr	r3, [fp, #-1160]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #12
	sub	r3, r3, #1168
	sub	r3, r3, #6
	sub	r2, fp, #12
	sub	r2, r2, #1168
	sub	r2, r2, #8
	ldrh	r2, [r2]	@ movhi
	rsb	r2, r2, #1024
	add	r2, r2, #1
	strh	r2, [r3]	@ movhi
	mov	r2, #4
	ldr	r1, .L56+80
	ldr	r0, [fp, #-1152]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-1196]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
	b	.L50
.L49:
	ldr	r0, [fp, #-1152]
	bl	strlen
	mov	r3, r0
	cmp	r3, #4
	bhi	.L51
	ldr	r3, [fp, #-1196]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
.L51:
	ldr	r3, [fp, #-1152]
	add	r0, r3, #4
	sub	r3, fp, #12
	sub	r3, r3, #1168
	sub	r3, r3, #6
	ldrh	r3, [r3]
	str	r3, [sp, #4]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [sp]
	ldr	r3, [fp, #-1168]
	ldr	r2, [fp, #-1172]
	ldr	r1, [fp, #-1176]
	bl	send_tcp
	str	r0, [fp, #-1156]
.L50:
	ldr	r3, [fp, #-1156]
	cmp	r3, #0
	beq	.L52
	ldr	r0, .L56+84
	bl	puts
	b	.L53
.L52:
	ldr	r0, .L56+88
	bl	puts
.L53:
	ldr	r0, [fp, #-1176]
	bl	free
	mov	r3, #0
	ldr	r2, .L56
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L55
	bl	__stack_chk_fail
.L55:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC31
	.word	.LC15
	.word	envvar
	.word	.LC16
	.word	.LC17
	.word	stderr
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	-2061584302
	.word	1072714219
	.word	.LC22
	.word	stdout
	.word	.LC23
	.word	1120403456
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
