	.file	"420982.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Host : %s | Service : %s\n"
	.text
	.globl	open_client_fd
	.type	open_client_fd, @function
open_client_fd:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 3824
	mov	QWORD PTR -16104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16096[rbp], 1
	mov	DWORD PTR -16084[rbp], 3
	mov	DWORD PTR -16088[rbp], 0
	lea	rax, -16064[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -16056[rbp], 1
	mov	DWORD PTR -16064[rbp], 1057
	lea	rcx, -16080[rbp]
	lea	rdx, -16064[rbp]
	mov	rax, QWORD PTR -16104[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	getaddrinfo@PLT
	mov	rax, QWORD PTR -16080[rbp]
	mov	QWORD PTR -16072[rbp], rax
	jmp	.L2
.L7:
	mov	rax, QWORD PTR -16072[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -16072[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -16072[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -16092[rbp], eax
	cmp	DWORD PTR -16092[rbp], 0
	js	.L14
	lea	rdx, -16096[rbp]
	mov	eax, DWORD PTR -16092[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	mov	rax, QWORD PTR -16072[rbp]
	mov	esi, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -16072[rbp]
	mov	rax, QWORD PTR 24[rax]
	lea	rdi, -8016[rbp]
	lea	rdx, -16016[rbp]
	sub	rsp, 8
	mov	ecx, DWORD PTR -16084[rbp]
	push	rcx
	mov	r9d, 8000
	mov	r8, rdi
	mov	ecx, 8000
	mov	rdi, rax
	call	getnameinfo@PLT
	add	rsp, 16
	lea	rdx, -8016[rbp]
	lea	rax, -16016[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16072[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -16072[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -16092[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L15
	mov	eax, DWORD PTR -16092[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -16088[rbp], -2
	jmp	.L4
.L14:
	nop
.L4:
	mov	rax, QWORD PTR -16072[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -16072[rbp], rax
.L2:
	cmp	QWORD PTR -16072[rbp], 0
	jne	.L7
	jmp	.L6
.L15:
	nop
.L6:
	mov	rax, QWORD PTR -16080[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	mov	eax, DWORD PTR -16092[rbp]
	mov	esi, 1000
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L8
	mov	eax, DWORD PTR -16092[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	jne	.L8
	mov	DWORD PTR -16088[rbp], -3
	jmp	.L9
.L8:
	cmp	QWORD PTR -16072[rbp], 0
	jne	.L10
.L9:
	mov	eax, DWORD PTR -16088[rbp]
	jmp	.L12
.L10:
	mov	eax, DWORD PTR -16092[rbp]
.L12:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	open_client_fd, .-open_client_fd
	.section	.rodata
	.align 8
.LC1:
	.string	"Waiting for a client to connect"
	.text
	.globl	GetClientFD
	.type	GetClientFD, @function
GetClientFD:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 3888
	mov	DWORD PTR -16164[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -16164[rbp], 0
	jns	.L17
	mov	eax, DWORD PTR -16164[rbp]
	jmp	.L19
.L17:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	DWORD PTR -16152[rbp], 128
	lea	rdx, -16152[rbp]
	lea	rcx, -16144[rbp]
	mov	eax, DWORD PTR -16164[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -16148[rbp], eax
	mov	esi, DWORD PTR -16152[rbp]
	lea	rcx, -8016[rbp]
	lea	rdx, -16016[rbp]
	lea	rax, -16144[rbp]
	sub	rsp, 8
	push	0
	mov	r9d, 8000
	mov	r8, rcx
	mov	ecx, 8000
	mov	rdi, rax
	call	getnameinfo@PLT
	add	rsp, 16
	mov	eax, DWORD PTR -16148[rbp]
.L19:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	GetClientFD, .-GetClientFD
	.section	.rodata
.LC2:
	.string	"Read : \033[32m%s\033[0m"
.LC3:
	.string	"rb"
	.text
	.globl	FileTransferTrial
	.type	FileTransferTrial, @function
FileTransferTrial:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 3968
	mov	DWORD PTR -8052[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -8052[rbp], 0
	jns	.L24
	mov	eax, DWORD PTR -8052[rbp]
	jmp	.L26
.L25:
	lea	rdx, -8016[rbp]
	mov	rax, QWORD PTR -8032[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	lea	rax, -8016[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -8016[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -8016[rbp+rax], 0
	lea	rax, -8016[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8024[rbp], rax
	mov	rax, QWORD PTR -8024[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -8024[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -8036[rbp], eax
	mov	rax, QWORD PTR -8024[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR -8036[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -8024[rbp]
	lea	rax, -8016[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -8024[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -8016[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -8016[rbp]
	mov	eax, DWORD PTR -8052[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
.L24:
	lea	rcx, -8016[rbp]
	mov	eax, DWORD PTR -8052[rbp]
	mov	edx, 8000
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -8032[rbp], rax
	cmp	QWORD PTR -8032[rbp], 0
	jne	.L25
	mov	eax, DWORD PTR -8052[rbp]
.L26:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	FileTransferTrial, .-FileTransferTrial
	.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	open_client_fd
	mov	edi, eax
	call	GetClientFD
	mov	edi, eax
	call	FileTransferTrial
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	jns	.L29
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	open_client_fd
	mov	edi, eax
	call	GetClientFD
	mov	edi, eax
	call	FileTransferTrial
	mov	edi, eax
	call	close@PLT
	neg	eax
	jmp	.L32
.L29:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	open_client_fd
	mov	edi, eax
	call	GetClientFD
	mov	edi, eax
	call	FileTransferTrial
	mov	edi, eax
	call	close@PLT
.L32:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"420982.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Host : %s | Service : %s\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	open_client_fd
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_client_fd, %function
open_client_fd:
	@ args = 0, pretend = 0, frame = 16072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #16064
	sub	sp, sp, #28
	sub	r3, fp, #12288
	sub	r3, r3, #12
	str	r0, [r3, #-3780]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-3768]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #3
	str	r3, [r2, #-3752]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3756]
	sub	r3, fp, #16000
	sub	r3, r3, #12
	sub	r3, r3, #36
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-3740]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L16+4
	str	r3, [r2, #-3748]
	sub	r3, fp, #16000
	sub	r3, r3, #12
	sub	r3, r3, #60
	sub	r2, fp, #16000
	sub	r2, r2, #12
	sub	r2, r2, #36
	sub	r1, fp, #12288
	sub	r1, r1, #12
	ldr	r1, [r1, #-3780]
	mov	r0, #0
	bl	getaddrinfo
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3772]
	str	r3, [r2, #-3764]
	b	.L2
.L7:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3764]
	ldr	r0, [r3, #4]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3764]
	ldr	r1, [r3, #8]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3764]
	ldr	r3, [r3, #12]
	sub	r2, fp, #12288
	sub	r2, r2, #12
	mov	r4, r2
	mov	r2, r3
	bl	socket
	str	r0, [r4, #-3760]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3760]
	cmp	r3, #0
	blt	.L14
	sub	r3, fp, #16000
	sub	r3, r3, #12
	sub	r3, r3, #56
	sub	r2, fp, #12288
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [r0, #-3760]
	bl	setsockopt
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3764]
	ldr	r0, [r3, #20]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3764]
	ldr	r1, [r3, #16]
	sub	r2, fp, #16000
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3752]
	str	r3, [sp, #8]
	mov	r3, #8000
	str	r3, [sp, #4]
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #8000
	bl	getnameinfo
	sub	r2, fp, #8000
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #16000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L16+8
	bl	printf
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3764]
	ldr	r1, [r3, #20]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3764]
	ldr	r3, [r3, #16]
	sub	r2, fp, #12288
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r0, [r0, #-3760]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r0, [r3, #-3760]
	bl	close
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mvn	r3, #1
	str	r3, [r2, #-3756]
	b	.L4
.L14:
	nop
.L4:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3764]
	ldr	r3, [r3, #28]
	str	r3, [r2, #-3764]
.L2:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3764]
	cmp	r3, #0
	bne	.L7
	b	.L6
.L15:
	nop
.L6:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3772]
	mov	r0, r3
	bl	freeaddrinfo
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r1, #1000
	ldr	r0, [r3, #-3760]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L8
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r0, [r3, #-3760]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mvn	r3, #2
	str	r3, [r2, #-3756]
	b	.L9
.L8:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3764]
	cmp	r3, #0
	bne	.L10
.L9:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3756]
	b	.L12
.L10:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3760]
.L12:
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC1
	.word	1057
	.word	.LC0
	.size	open_client_fd, .-open_client_fd
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Waiting for a client to connect\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	GetClientFD
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetClientFD, %function
GetClientFD:
	@ args = 0, pretend = 0, frame = 16152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #16128
	sub	sp, sp, #44
	sub	r3, fp, #12288
	sub	r3, r3, #12
	str	r0, [r3, #-3860]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3860]
	cmp	r3, #0
	bge	.L19
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3860]
	b	.L21
.L19:
	ldr	r0, .L23+4
	bl	puts
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #128
	str	r3, [r2, #-3852]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r4, r3
	sub	r2, fp, #16128
	sub	r2, r2, #12
	sub	r2, r2, #12
	sub	r3, fp, #16128
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #12288
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-3860]
	bl	accept
	str	r0, [r4, #-3848]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r1, [r3, #-3852]
	sub	r2, fp, #16000
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r0, fp, #16128
	sub	r0, r0, #12
	sub	r0, r0, #4
	mov	r3, #0
	str	r3, [sp, #8]
	mov	r3, #8000
	str	r3, [sp, #4]
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #8000
	bl	getnameinfo
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3848]
.L21:
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC3
	.word	.LC2
	.size	GetClientFD, .-GetClientFD
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Read : \033[32m%s\033[0m\000"
	.align	2
.LC5:
	.ascii	"rb\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	FileTransferTrial
	.syntax unified
	.arm
	.fpu softvfp
	.type	FileTransferTrial, %function
FileTransferTrial:
	@ args = 0, pretend = 0, frame = 8024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8000
	sub	sp, sp, #28
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-3924]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3924]
	cmp	r3, #0
	bge	.L28
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3924]
	b	.L30
.L29:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3920]
	add	r3, r2, r3
	sub	r3, r3, #3904
	sub	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L32+4
	bl	printf
	ldr	r3, .L32+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-3908]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L32+12
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-3916]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [r3, #-3916]
	bl	fseek
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-3916]
	bl	ftell
	str	r0, [r4, #-3912]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [r3, #-3916]
	bl	fseek
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-3912]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #8000
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-3916]
	mov	r1, #1
	bl	fread
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-3916]
	bl	fclose
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-3924]
	bl	write
.L28:
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #8000
	mov	r1, r3
	ldr	r0, [r0, #-3924]
	bl	read
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-3920]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3920]
	cmp	r3, #0
	bne	.L29
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3924]
.L30:
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC6
	.word	.LC4
	.word	stdin
	.word	.LC5
	.size	FileTransferTrial, .-FileTransferTrial
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	open_client_fd
	mov	r3, r0
	mov	r0, r3
	bl	GetClientFD
	mov	r3, r0
	mov	r0, r3
	bl	FileTransferTrial
	mov	r3, r0
	mov	r0, r3
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bge	.L35
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	open_client_fd
	mov	r3, r0
	mov	r0, r3
	bl	GetClientFD
	mov	r3, r0
	mov	r0, r3
	bl	FileTransferTrial
	mov	r3, r0
	mov	r0, r3
	bl	close
	mov	r3, r0
	rsb	r3, r3, #0
	b	.L38
.L35:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	open_client_fd
	mov	r3, r0
	mov	r0, r3
	bl	GetClientFD
	mov	r3, r0
	mov	r0, r3
	bl	FileTransferTrial
	mov	r3, r0
	mov	r0, r3
	bl	close
	mov	r3, r0
.L38:
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
