	.file	"748034.c"
	.intel_syntax noprefix
	.text
	.globl	g_interactive
	.bss
	.type	g_interactive, @object
	.size	g_interactive, 1
g_interactive:
	.zero	1
	.globl	g_port
	.data
	.align 2
	.type	g_port, @object
	.size	g_port, 2
g_port:
	.value	8080
	.globl	g_host
	.align 32
	.type	g_host, @object
	.size	g_host, 64
g_host:
	.string	"127.0.0.1"
	.zero	54
	.globl	g_send_string
	.align 32
	.type	g_send_string, @object
	.size	g_send_string, 255
g_send_string:
	.string	"test send"
	.zero	245
	.globl	g_send_repeats
	.align 4
	.type	g_send_repeats, @object
	.size	g_send_repeats, 4
g_send_repeats:
	.long	-1
	.globl	g_send_wait
	.bss
	.align 16
	.type	g_send_wait, @object
	.size	g_send_wait, 16
g_send_wait:
	.zero	16
	.globl	sockfd
	.align 4
	.type	sockfd, @object
	.size	sockfd, 4
sockfd:
	.zero	4
	.globl	g_running
	.type	g_running, @object
	.size	g_running, 1
g_running:
	.zero	1
	.text
	.type	set_sockaddr, @function
set_sockaddr:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR [rax], 2
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 4[rax], 0
	movzx	eax, WORD PTR g_port[rip]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	WORD PTR 2[rdx], ax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	set_sockaddr, .-set_sockaddr
	.section	.rodata
.LC0:
	.string	"starting thread %s\n"
.LC1:
	.string	"client recv: %s\n"
.LC2:
	.string	"exiting thread %s\n"
	.text
	.globl	recv_thread_function
	.type	recv_thread_function, @function
recv_thread_function:
.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, 304
	mov	QWORD PTR -296[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, __FUNCTION__.1[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L3:
	movzx	eax, BYTE PTR g_running[rip]
	xor	eax, 1
	test	al, al
	jne	.L3
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 32
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	mov	eax, DWORD PTR sockfd[rip]
	lea	rcx, -272[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -276[rbp], eax
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 32
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	jmp	.L4
.L6:
	mov	eax, DWORD PTR sockfd[rip]
	lea	rcx, -272[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -276[rbp], eax
	cmp	DWORD PTR -276[rbp], 0
	jle	.L5
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 32
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
.L4:
	movzx	eax, BYTE PTR g_running[rip]
	test	al, al
	jne	.L6
	lea	rsi, __FUNCTION__.1[rip]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	recv_thread_function, .-recv_thread_function
	.section	.rodata
.LC3:
	.string	"connect returned %d.\n"
	.align 8
.LC4:
	.string	"Interactive mode.\nEnter q[+newline] to quit"
.LC5:
	.string	"> "
.LC6:
	.string	"joining recv_thread at %s\n"
	.text
	.globl	client_run
	.type	client_run, @function
client_run:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 2049
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR sockfd[rip], eax
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	set_sockaddr
	mov	eax, DWORD PTR sockfd[rip]
	lea	rcx, -288[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	DWORD PTR -304[rbp], eax
	mov	eax, DWORD PTR -304[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	sleep@PLT
	mov	BYTE PTR g_running[rip], 1
	lea	rdx, -312[rbp]
	lea	rax, -296[rbp]
	mov	rcx, rdx
	lea	rdx, recv_thread_function[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	movzx	eax, BYTE PTR g_interactive[rip]
	test	al, al
	je	.L9
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L12:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -272[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	movzx	eax, BYTE PTR -272[rbp]
	cmp	al, 113
	jne	.L10
	mov	BYTE PTR g_running[rip], 0
	jmp	.L13
.L10:
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	eax, 1
	mov	DWORD PTR -300[rbp], eax
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], 0
	mov	eax, DWORD PTR -300[rbp]
	add	eax, 1
	movsx	rdx, eax
	mov	eax, DWORD PTR sockfd[rip]
	lea	rcx, -272[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L12
.L9:
	mov	DWORD PTR -308[rbp], 0
	jmp	.L14
.L15:
	lea	rax, -272[rbp]
	mov	edx, 255
	lea	rsi, g_send_string[rip]
	mov	rdi, rax
	call	strncpy@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	eax, 1
	mov	DWORD PTR -300[rbp], eax
	mov	eax, DWORD PTR -300[rbp]
	add	eax, 1
	movsx	rdx, eax
	mov	eax, DWORD PTR sockfd[rip]
	lea	rcx, -272[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	esi, 0
	lea	rdi, g_send_wait[rip]
	call	nanosleep@PLT
	add	DWORD PTR -308[rbp], 1
.L14:
	mov	eax, DWORD PTR g_send_repeats[rip]
	cmp	eax, -1
	je	.L15
	mov	eax, DWORD PTR g_send_repeats[rip]
	cmp	DWORD PTR -308[rbp], eax
	jl	.L15
.L13:
	mov	BYTE PTR g_running[rip], 0
	lea	rsi, __FUNCTION__.0[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -296[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, DWORD PTR sockfd[rip]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	client_run, .-client_run
	.section	.rodata
	.align 8
.LC7:
	.string	"usage: %s [-s send-string] [-w wait time (nanos)]\n[-r repeats (number of repeats)] [-i (interactive)]\n[h HOST] -p PORT\n"
.LC8:
	.string	"ih:p:s:r:w:"
.LC9:
	.string	"(interactive mode)"
.LC10:
	.string	"(batch mode)"
	.align 8
.LC11:
	.string	"nonblocking client using host %s port %hu %s\n"
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR g_send_wait[rip], 0
	mov	QWORD PTR g_send_wait[rip+8], 999999999
	jmp	.L18
.L28:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 104
	cmp	eax, 15
	ja	.L19
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L21[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L21[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L21:
	.long	.L26-.L21
	.long	.L25-.L21
	.long	.L19-.L21
	.long	.L19-.L21
	.long	.L19-.L21
	.long	.L19-.L21
	.long	.L19-.L21
	.long	.L19-.L21
	.long	.L24-.L21
	.long	.L19-.L21
	.long	.L23-.L21
	.long	.L22-.L21
	.long	.L19-.L21
	.long	.L19-.L21
	.long	.L19-.L21
	.long	.L20-.L21
	.text
.L25:
	mov	BYTE PTR g_interactive[rip], 1
	jmp	.L18
.L26:
	mov	rax, QWORD PTR optarg[rip]
	mov	rsi, rax
	lea	rdi, g_host[rip]
	call	strcpy@PLT
	jmp	.L18
.L24:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	WORD PTR g_port[rip], ax
	jmp	.L18
.L22:
	mov	edx, 255
	mov	esi, 0
	lea	rdi, g_send_string[rip]
	call	memset@PLT
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 254
	mov	rsi, rax
	lea	rdi, g_send_string[rip]
	call	strncpy@PLT
	jmp	.L18
.L23:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR g_send_repeats[rip], eax
	jmp	.L18
.L20:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atol@PLT
	mov	QWORD PTR g_send_wait[rip+8], rax
	mov	rax, QWORD PTR g_send_wait[rip+8]
	cmp	rax, 999999999
	jle	.L18
	mov	QWORD PTR g_send_wait[rip+8], 999999999
	jmp	.L18
.L19:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, .LC8[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L28
	movzx	eax, BYTE PTR g_interactive[rip]
	test	al, al
	je	.L29
	lea	rax, .LC9[rip]
	jmp	.L30
.L29:
	lea	rax, .LC10[rip]
.L30:
	movzx	edx, WORD PTR g_port[rip]
	movzx	edx, dx
	mov	rcx, rax
	lea	rsi, g_host[rip]
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	client_run
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 16
	.type	__FUNCTION__.1, @object
	.size	__FUNCTION__.1, 21
__FUNCTION__.1:
	.string	"recv_thread_function"
	.align 8
	.type	__FUNCTION__.0, @object
	.size	__FUNCTION__.0, 11
__FUNCTION__.0:
	.string	"client_run"
	.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	"748034.c"
	.text
	.global	g_interactive
	.bss
	.type	g_interactive, %object
	.size	g_interactive, 1
g_interactive:
	.space	1
	.global	g_port
	.data
	.align	1
	.type	g_port, %object
	.size	g_port, 2
g_port:
	.short	8080
	.global	g_host
	.align	2
	.type	g_host, %object
	.size	g_host, 64
g_host:
	.ascii	"127.0.0.1\000"
	.space	54
	.global	g_send_string
	.align	2
	.type	g_send_string, %object
	.size	g_send_string, 255
g_send_string:
	.ascii	"test send\000"
	.space	245
	.global	g_send_repeats
	.align	2
	.type	g_send_repeats, %object
	.size	g_send_repeats, 4
g_send_repeats:
	.word	-1
	.comm	g_send_wait,8,4
	.comm	sockfd,4,4
	.global	g_running
	.bss
	.type	g_running, %object
	.size	g_running, 1
g_running:
	.space	1
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_sockaddr, %function
set_sockaddr:
	@ 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]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	mov	r3, #16
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r3, [fp, #-8]
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L2
	ldrh	r3, [r3]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	strh	r2, [r3, #2]	@ movhi
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	g_port
	.size	set_sockaddr, .-set_sockaddr
	.section	.rodata
	.align	2
.LC0:
	.ascii	"starting thread %s\012\000"
	.align	2
.LC1:
	.ascii	"client recv: %s\012\000"
	.align	2
.LC2:
	.ascii	"exiting thread %s\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	recv_thread_function
	.syntax unified
	.arm
	.fpu softvfp
	.type	recv_thread_function, %function
recv_thread_function:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #272
	str	r0, [fp, #-272]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L10+4
	ldr	r0, .L10+8
	bl	printf
	nop
.L5:
	ldr	r3, .L10+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L5
	sub	r3, fp, #264
	mov	r0, r3
	mov	r3, #256
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r3, .L10+16
	ldr	r3, [r3]
	sub	r1, fp, #264
	mov	r2, #256
	mov	r0, r3
	bl	read
	str	r0, [fp, #-268]
	sub	r3, fp, #264
	mov	r0, r3
	mov	r3, #256
	mov	r2, r3
	mov	r1, #0
	bl	memset
	b	.L6
.L8:
	ldr	r3, .L10+16
	ldr	r3, [r3]
	sub	r1, fp, #264
	mov	r2, #256
	mov	r0, r3
	bl	read
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	ble	.L7
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, .L10+20
	bl	printf
.L7:
	sub	r3, fp, #264
	mov	r0, r3
	mov	r3, #256
	mov	r2, r3
	mov	r1, #0
	bl	memset
.L6:
	ldr	r3, .L10+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L8
	ldr	r1, .L10+4
	ldr	r0, .L10+24
	bl	printf
	nop
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC3
	.word	__FUNCTION__.7100
	.word	.LC0
	.word	g_running
	.word	sockfd
	.word	.LC1
	.word	.LC2
	.size	recv_thread_function, .-recv_thread_function
	.section	.rodata
	.align	2
.LC4:
	.ascii	"connect returned %d.\012\000"
	.align	2
.LC5:
	.ascii	"Interactive mode.\012Enter q[+newline] to quit\000"
	.align	2
.LC6:
	.ascii	"> \000"
	.align	2
.LC7:
	.ascii	"joining recv_thread at %s\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	client_run
	.syntax unified
	.arm
	.fpu softvfp
	.type	client_run, %function
client_run:
	@ args = 0, pretend = 0, frame = 296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #296
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	ldr	r1, .L21+4
	mov	r0, #2
	bl	socket
	mov	r3, r0
	ldr	r2, .L21+8
	str	r3, [r2]
	sub	r3, fp, #280
	mov	r0, r3
	bl	set_sockaddr
	ldr	r3, .L21+8
	ldr	r3, [r3]
	sub	r1, fp, #280
	mov	r2, #16
	mov	r0, r3
	bl	connect
	str	r0, [fp, #-288]
	ldr	r1, [fp, #-288]
	ldr	r0, .L21+12
	bl	printf
	mov	r0, #1
	bl	sleep
	ldr	r3, .L21+16
	mov	r2, #1
	strb	r2, [r3]
	sub	r3, fp, #296
	sub	r0, fp, #300
	ldr	r2, .L21+20
	mov	r1, #0
	bl	pthread_create
	ldr	r3, .L21+24
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L13
	ldr	r0, .L21+28
	bl	puts
.L16:
	ldr	r0, .L21+32
	bl	printf
	ldr	r3, .L21+36
	ldr	r2, [r3]
	sub	r3, fp, #264
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	ldrb	r3, [fp, #-264]	@ zero_extendqisi2
	cmp	r3, #113
	bne	.L14
	ldr	r3, .L21+16
	mov	r2, #0
	strb	r2, [r3]
	b	.L17
.L14:
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-284]
	sub	r2, fp, #264
	ldr	r3, [fp, #-284]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L21+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-284]
	add	r3, r3, #1
	mov	r2, r3
	sub	r3, fp, #264
	mov	r1, r3
	bl	write
	b	.L16
.L13:
	mov	r3, #0
	str	r3, [fp, #-292]
	b	.L18
.L19:
	sub	r3, fp, #264
	mov	r2, #255
	ldr	r1, .L21+40
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-284]
	ldr	r3, .L21+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-284]
	add	r3, r3, #1
	mov	r2, r3
	sub	r3, fp, #264
	mov	r1, r3
	bl	write
	mov	r1, #0
	ldr	r0, .L21+44
	bl	nanosleep
	ldr	r3, [fp, #-292]
	add	r3, r3, #1
	str	r3, [fp, #-292]
.L18:
	ldr	r3, .L21+48
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L19
	ldr	r3, .L21+48
	ldr	r3, [r3]
	ldr	r2, [fp, #-292]
	cmp	r2, r3
	blt	.L19
.L17:
	ldr	r3, .L21+16
	mov	r2, #0
	strb	r2, [r3]
	ldr	r1, .L21+52
	ldr	r0, .L21+56
	bl	printf
	ldr	r3, [fp, #-300]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, .L21+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	nop
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC8
	.word	2049
	.word	sockfd
	.word	.LC4
	.word	g_running
	.word	recv_thread_function
	.word	g_interactive
	.word	.LC5
	.word	.LC6
	.word	stdin
	.word	g_send_string
	.word	g_send_wait
	.word	g_send_repeats
	.word	__FUNCTION__.7124
	.word	.LC7
	.size	client_run, .-client_run
	.section	.rodata
	.align	2
.LC9:
	.ascii	"usage: %s [-s send-string] [-w wait time (nanos)]\012"
	.ascii	"[-r repeats (number of repeats)] [-i (interactive)]"
	.ascii	"\012[h HOST] -p PORT\012\000"
	.align	2
.LC10:
	.ascii	"ih:p:s:r:w:\000"
	.align	2
.LC11:
	.ascii	"(interactive mode)\000"
	.align	2
.LC12:
	.ascii	"(batch mode)\000"
	.align	2
.LC13:
	.ascii	"nonblocking client using host %s port %hu %s\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L38
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L38
	ldr	r2, .L38+4
	str	r2, [r3, #4]
	b	.L24
.L34:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #104
	cmp	r3, #15
	ldrls	pc, [pc, r3, asl #2]
	b	.L25
.L27:
	.word	.L32
	.word	.L31
	.word	.L25
	.word	.L25
	.word	.L25
	.word	.L25
	.word	.L25
	.word	.L25
	.word	.L30
	.word	.L25
	.word	.L29
	.word	.L28
	.word	.L25
	.word	.L25
	.word	.L25
	.word	.L26
.L31:
	ldr	r3, .L38+8
	mov	r2, #1
	strb	r2, [r3]
	b	.L24
.L32:
	ldr	r3, .L38+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L38+16
	bl	strcpy
	b	.L24
.L30:
	ldr	r3, .L38+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L38+20
	strh	r3, [r2]	@ movhi
	b	.L24
.L28:
	mov	r2, #255
	mov	r1, #0
	ldr	r0, .L38+24
	bl	memset
	ldr	r3, .L38+12
	ldr	r3, [r3]
	mov	r2, #254
	mov	r1, r3
	ldr	r0, .L38+24
	bl	strncpy
	b	.L24
.L29:
	ldr	r3, .L38+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L38+28
	str	r3, [r2]
	b	.L24
.L26:
	ldr	r3, .L38+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atol
	mov	r3, r0
	ldr	r2, .L38
	str	r3, [r2, #4]
	ldr	r3, .L38
	ldr	r3, [r3, #4]
	ldr	r2, .L38+4
	cmp	r3, r2
	ble	.L24
	ldr	r3, .L38
	ldr	r2, .L38+4
	str	r2, [r3, #4]
	b	.L24
.L25:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L38+32
	bl	printf
	mov	r0, #1
	bl	exit
.L24:
	ldr	r2, .L38+36
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	getopt
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L34
	ldr	r3, .L38+20
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, .L38+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L35
	ldr	r3, .L38+40
	b	.L36
.L35:
	ldr	r3, .L38+44
.L36:
	ldr	r1, .L38+16
	ldr	r0, .L38+48
	bl	printf
	bl	client_run
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	g_send_wait
	.word	999999999
	.word	g_interactive
	.word	optarg
	.word	g_host
	.word	g_port
	.word	g_send_string
	.word	g_send_repeats
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__FUNCTION__.7100, %object
	.size	__FUNCTION__.7100, 21
__FUNCTION__.7100:
	.ascii	"recv_thread_function\000"
	.align	2
	.type	__FUNCTION__.7124, %object
	.size	__FUNCTION__.7124, 11
__FUNCTION__.7124:
	.ascii	"client_run\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
