	.file	"26701589.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Setup:"
.LC1:
	.string	"<missing>"
.LC2:
	.string	"   mode:  %s;\n"
.LC3:
	.string	"   spec:  \"%s\";\n"
.LC4:
	.string	"   chunk: %i [byte];\n"
	.align 8
.LC5:
	.string	"   freq:  %i [chunks/millisec];\n"
	.align 8
.LC6:
	.string	"command line argument 1: mode 'string' or 'file' not specified."
.LC7:
	.string	"string"
.LC8:
	.string	"file"
	.align 8
.LC9:
	.string	"command line argument 2: missing specification of file or string."
.LC10:
	.string	"Chunk size must be > 0!"
	.text
	.globl	main
	.type	main, @function
main:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -36[rbp], 0
	mov	BYTE PTR -9[rbp], 0
	cmp	DWORD PTR -52[rbp], 2
	jle	.L2
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 16[rax]
	jmp	.L3
.L2:
	lea	rax, -9[rbp]
.L3:
	mov	QWORD PTR -24[rbp], rax
	cmp	DWORD PTR -52[rbp], 3
	jle	.L4
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	jmp	.L5
.L4:
	mov	eax, 3
.L5:
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -52[rbp], 4
	jle	.L6
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	jmp	.L7
.L6:
	mov	eax, 1
.L7:
	mov	DWORD PTR -28[rbp], eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	cmp	DWORD PTR -52[rbp], 1
	jle	.L8
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 8[rax]
	jmp	.L9
.L8:
	lea	rax, .LC1[rip]
.L9:
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	cmp	DWORD PTR -52[rbp], 1
	jg	.L10
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
	mov	DWORD PTR -40[rbp], 0
	jmp	.L12
.L11:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L13
	mov	DWORD PTR -40[rbp], 1
	jmp	.L12
.L13:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L12:
	cmp	DWORD PTR -52[rbp], 2
	jg	.L14
	lea	rdi, .LC9[rip]
	call	puts@PLT
.L14:
	mov	eax, 0
	call	connect_to_server
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L15
	mov	eax, -1
	jmp	.L21
.L15:
	cmp	DWORD PTR -32[rbp], 0
	jne	.L17
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L21
.L17:
	cmp	DWORD PTR -40[rbp], 0
	je	.L18
	cmp	DWORD PTR -40[rbp], 1
	je	.L19
	jmp	.L23
.L18:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	ecx, DWORD PTR -28[rbp]
	mov	esi, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	feed_string_to_socket
	mov	eax, 0
	jmp	.L21
.L19:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	ecx, DWORD PTR -28[rbp]
	mov	esi, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	feed_file_to_socket
	mov	eax, 0
	jmp	.L21
.L23:
	mov	eax, -1
.L21:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC11:
	.string	"client: socket() terminates with failure."
.LC12:
	.string	"127.0.0.1"
	.align 8
.LC13:
	.string	"client: connect() terminates with failure."
	.text
	.type	connect_to_server, @function
connect_to_server:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L25
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L28
.L25:
	mov	WORD PTR -32[rbp], 2
	mov	edi, 18193
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rdi, .LC12[rip]
	call	inet_addr@PLT
	mov	DWORD PTR -28[rbp], eax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	cmp	eax, -1
	jne	.L27
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L28
.L27:
	mov	eax, DWORD PTR -36[rbp]
.L28:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	connect_to_server, .-connect_to_server
	.section	.rodata
.LC14:
	.string	"rb"
.LC15:
	.string	"could not open file '%s'.\n"
.LC16:
	.string	"the_stack_data/26701589.c"
.LC17:
	.string	"ChunkSize <= 256"
.LC18:
	.string	"flush: %i: [%s]\n"
	.align 8
.LC19:
	.string	"client: write() terminates with failure."
.LC20:
	.string	"<done>"
	.text
	.type	feed_file_to_socket, @function
feed_file_to_socket:
.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, 320
	mov	QWORD PTR -296[rbp], rdi
	mov	DWORD PTR -300[rbp], esi
	mov	QWORD PTR -312[rbp], rdx
	mov	DWORD PTR -304[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -296[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -288[rbp], rax
	cmp	QWORD PTR -288[rbp], 0
	jne	.L31
	mov	rax, QWORD PTR -296[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L30
.L31:
	cmp	QWORD PTR -312[rbp], 256
	jle	.L33
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 163
	lea	rsi, .LC16[rip]
	lea	rdi, .LC17[rip]
	call	__assert_fail@PLT
.L33:
	mov	rdx, QWORD PTR -312[rbp]
	mov	rcx, QWORD PTR -288[rbp]
	lea	rax, -272[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -280[rbp], rax
	lea	rdx, -272[rbp]
	mov	rax, QWORD PTR -280[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -280[rbp]
	mov	ecx, eax
	lea	rax, -272[rbp]
	mov	rdx, rax
	mov	esi, ecx
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -280[rbp], 0
	je	.L40
	mov	rdx, QWORD PTR -280[rbp]
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -300[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, -1
	jne	.L36
	lea	rdi, .LC19[rip]
	call	puts@PLT
	jmp	.L30
.L36:
	mov	eax, DWORD PTR -304[rbp]
	imul	eax, eax, 1000
	mov	edi, eax
	call	usleep@PLT
	jmp	.L33
.L40:
	nop
	lea	rdi, .LC20[rip]
	call	puts@PLT
.L30:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	feed_file_to_socket, .-feed_file_to_socket
	.type	feed_string_to_socket, @function
feed_string_to_socket:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	QWORD PTR -56[rbp], rdx
	mov	DWORD PTR -48[rbp], ecx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -56[rbp], 256
	jle	.L42
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 193
	lea	rsi, .LC16[rip]
	lea	rdi, .LC17[rip]
	call	__assert_fail@PLT
.L42:
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L43
.L46:
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, QWORD PTR -24[rbp]
	cmp	QWORD PTR -56[rbp], rax
	cmovle	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -25[rbp], al
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, rax
	mov	esi, ecx
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -25[rbp]
	mov	BYTE PTR [rdx], al
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, -1
	jne	.L44
	lea	rdi, .LC19[rip]
	call	puts@PLT
	jmp	.L41
.L44:
	mov	eax, DWORD PTR -48[rbp]
	imul	eax, eax, 1000
	mov	edi, eax
	call	usleep@PLT
	mov	rax, QWORD PTR -56[rbp]
	add	QWORD PTR -24[rbp], rax
.L43:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jb	.L46
	lea	rdi, .LC20[rip]
	call	puts@PLT
.L41:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	feed_string_to_socket, .-feed_string_to_socket
	.section	.rodata
	.align 16
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 20
__PRETTY_FUNCTION__.1:
	.string	"feed_file_to_socket"
	.align 16
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 22
__PRETTY_FUNCTION__.0:
	.string	"feed_string_to_socket"
	.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	"26701589.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Setup:\000"
	.align	2
.LC1:
	.ascii	"<missing>\000"
	.align	2
.LC2:
	.ascii	"   mode:  %s;\012\000"
	.align	2
.LC3:
	.ascii	"   spec:  \"%s\";\012\000"
	.align	2
.LC4:
	.ascii	"   chunk: %i [byte];\012\000"
	.align	2
.LC5:
	.ascii	"   freq:  %i [chunks/millisec];\012\000"
	.align	2
.LC6:
	.ascii	"command line argument 1: mode 'string' or 'file' no"
	.ascii	"t specified.\000"
	.align	2
.LC7:
	.ascii	"string\000"
	.align	2
.LC8:
	.ascii	"file\000"
	.align	2
.LC9:
	.ascii	"command line argument 2: missing specification of f"
	.ascii	"ile or string.\000"
	.align	2
.LC10:
	.ascii	"Chunk size must be > 0!\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	strb	r3, [fp, #-12]
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	ble	.L2
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #8]
	b	.L3
.L2:
	sub	r3, fp, #12
.L3:
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	cmp	r3, #3
	ble	.L4
	ldr	r3, [fp, #-44]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	b	.L5
.L4:
	mov	r3, #3
.L5:
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-40]
	cmp	r3, #4
	ble	.L6
	ldr	r3, [fp, #-44]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	b	.L7
.L6:
	mov	r3, #1
.L7:
	str	r3, [fp, #-16]
	ldr	r0, .L24+4
	bl	puts
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	ble	.L8
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #4]
	b	.L9
.L8:
	ldr	r3, .L24+8
.L9:
	mov	r1, r3
	ldr	r0, .L24+12
	bl	printf
	ldr	r1, [fp, #-24]
	ldr	r0, .L24+16
	bl	printf
	ldr	r1, [fp, #-20]
	ldr	r0, .L24+20
	bl	printf
	ldr	r1, [fp, #-16]
	ldr	r0, .L24+24
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	bgt	.L10
	ldr	r0, .L24+28
	bl	puts
	mvn	r0, #0
	bl	exit
.L10:
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L24+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L12
.L11:
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L24+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L12
.L13:
	ldr	r0, .L24+28
	bl	puts
	mvn	r0, #0
	bl	exit
.L12:
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	bgt	.L14
	ldr	r0, .L24+40
	bl	puts
.L14:
	bl	connect_to_server
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L15
	mvn	r3, #0
	b	.L21
.L15:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L17
	ldr	r0, .L24+44
	bl	puts
	mvn	r3, #0
	b	.L21
.L17:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	beq	.L19
	b	.L23
.L18:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	feed_string_to_socket
	mov	r3, #0
	b	.L21
.L19:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	feed_file_to_socket
	mov	r3, #0
	b	.L21
.L23:
	mvn	r3, #0
.L21:
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.section	.rodata
	.align	2
.LC12:
	.ascii	"client: socket() terminates with failure.\000"
	.align	2
.LC13:
	.ascii	"127.0.0.1\000"
	.align	2
.LC14:
	.ascii	"client: connect() terminates with failure.\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	connect_to_server, %function
connect_to_server:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L27
	ldr	r0, .L32+4
	bl	puts
	mvn	r3, #0
	b	.L30
.L27:
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r0, .L32+8
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	ldr	r0, .L32+12
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-20]
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	connect
	mov	r3, r0
	cmn	r3, #1
	bne	.L29
	ldr	r0, .L32+16
	bl	puts
	mvn	r3, #0
	b	.L30
.L29:
	ldr	r3, [fp, #-28]
.L30:
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC15
	.word	.LC12
	.word	18193
	.word	.LC13
	.word	.LC14
	.size	connect_to_server, .-connect_to_server
	.section	.rodata
	.align	2
.LC16:
	.ascii	"rb\000"
	.align	2
.LC17:
	.ascii	"could not open file '%s'.\012\000"
	.align	2
.LC18:
	.ascii	"the_stack_data/26701589.c\000"
	.align	2
.LC19:
	.ascii	"ChunkSize <= 256\000"
	.align	2
.LC20:
	.ascii	"flush: %i: [%s]\012\000"
	.align	2
.LC21:
	.ascii	"client: write() terminates with failure.\000"
	.align	2
.LC22:
	.ascii	"<done>\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	feed_file_to_socket, %function
feed_file_to_socket:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	str	r0, [fp, #-280]
	str	r1, [fp, #-284]
	str	r2, [fp, #-288]
	str	r3, [fp, #-292]
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L45+4
	ldr	r0, [fp, #-280]
	bl	fopen
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bne	.L35
	ldr	r1, [fp, #-280]
	ldr	r0, .L45+8
	bl	printf
	b	.L34
.L35:
	ldr	r3, [fp, #-288]
	cmp	r3, #256
	ble	.L37
	ldr	r3, .L45+12
	mov	r2, #163
	ldr	r1, .L45+16
	ldr	r0, .L45+20
	bl	__assert_fail
.L37:
	ldr	r2, [fp, #-288]
	sub	r0, fp, #264
	ldr	r3, [fp, #-272]
	mov	r1, #1
	bl	fread
	str	r0, [fp, #-268]
	sub	r2, fp, #264
	ldr	r3, [fp, #-268]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-268]
	sub	r2, fp, #264
	mov	r1, r3
	ldr	r0, .L45+24
	bl	printf
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	beq	.L44
	sub	r3, fp, #264
	ldr	r2, [fp, #-268]
	mov	r1, r3
	ldr	r0, [fp, #-284]
	bl	write
	mov	r3, r0
	cmn	r3, #1
	bne	.L40
	ldr	r0, .L45+28
	bl	puts
	b	.L34
.L40:
	ldr	r2, [fp, #-292]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r0, r3
	bl	usleep
	b	.L37
.L44:
	nop
	ldr	r0, .L45+32
	bl	puts
.L34:
	ldr	r3, .L45
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC23
	.word	.LC16
	.word	.LC17
	.word	__PRETTY_FUNCTION__.6345
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	feed_file_to_socket, .-feed_file_to_socket
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	feed_string_to_socket, %function
feed_string_to_socket:
	@ 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]
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	cmp	r3, #256
	ble	.L48
	ldr	r3, .L53
	mov	r2, #193
	ldr	r1, .L53+4
	ldr	r0, .L53+8
	bl	__assert_fail
.L48:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	b	.L49
.L52:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-8]
	ldr	r0, .L53+12
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [fp, #-17]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-28]
	bl	write
	mov	r3, r0
	cmn	r3, #1
	bne	.L50
	ldr	r0, .L53+16
	bl	puts
	b	.L47
.L50:
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r0, r3
	bl	usleep
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
.L49:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bcc	.L52
	ldr	r0, .L53+20
	bl	puts
.L47:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	__PRETTY_FUNCTION__.6358
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	feed_string_to_socket, .-feed_string_to_socket
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6345, %object
	.size	__PRETTY_FUNCTION__.6345, 20
__PRETTY_FUNCTION__.6345:
	.ascii	"feed_file_to_socket\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6358, %object
	.size	__PRETTY_FUNCTION__.6358, 22
__PRETTY_FUNCTION__.6358:
	.ascii	"feed_string_to_socket\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
