	.file	"161080695.c"
	.intel_syntax noprefix
	.text
	.globl	tout
	.bss
	.align 16
	.type	tout, @object
	.size	tout, 16
tout:
	.zero	16
	.section	.rodata
.LC0:
	.string	"-t"
.LC1:
	.string	"%d"
.LC2:
	.string	"--timeout="
.LC3:
	.string	"--timeout=%d"
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -32[rbp], 2
	cmp	DWORD PTR -36[rbp], 2
	jg	.L2
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_help
	jmp	.L14
.L2:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	edi, eax
	call	ntohl@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	edi, eax
	call	ntohl@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -28[rbp], -1
	je	.L4
	cmp	DWORD PTR -12[rbp], -1
	jne	.L5
.L4:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_help
	jmp	.L14
.L5:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jbe	.L6
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_help
	jmp	.L14
.L6:
	mov	DWORD PTR -28[rbp], 3
	jmp	.L7
.L11:
	mov	eax, DWORD PTR -28[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	edx, DWORD PTR -28[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -48[rbp]
	add	rdx, rcx
	mov	rdx, QWORD PTR [rdx]
	cmp	rax, rdx
	jne	.L8
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -36[rbp]
	cmp	edx, eax
	jnb	.L9
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, -32[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, -1
	jne	.L10
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_help
	jmp	.L14
.L9:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_help
	jmp	.L14
.L8:
	mov	eax, DWORD PTR -28[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L10
	mov	eax, DWORD PTR -28[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, -32[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, -1
	jne	.L10
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_help
	jmp	.L14
.L10:
	add	DWORD PTR -28[rbp], 1
.L7:
	mov	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jb	.L11
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	set_timeout
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -24[rbp], eax
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	htonl@PLT
	mov	edi, eax
	call	scan_ip
	add	DWORD PTR -24[rbp], 1
.L12:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jbe	.L13
	mov	eax, 0
.L14:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC4:
	.string	"IP: %s \n"
.LC5:
	.string	"scanning %d\r"
.LC6:
	.string	"\rPort%7d: OPEN\n"
	.text
	.globl	scan_ip
	.type	scan_ip, @function
scan_ip:
.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, 2048
	mov	DWORD PTR -2036[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -2036[rbp]
	mov	DWORD PTR -2028[rbp], eax
	mov	eax, DWORD PTR -2028[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -2024[rbp], 0
	jmp	.L17
.L23:
	mov	DWORD PTR -2020[rbp], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -2020[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	lea	rdx, -1216[rax]
	mov	eax, DWORD PTR -2036[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -2024[rbp]
	imul	edx, eax, 100
	mov	eax, DWORD PTR -2020[rbp]
	add	eax, 1
	lea	ecx, [rdx+rax]
	mov	eax, DWORD PTR -2020[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 1212
	mov	DWORD PTR [rax], ecx
	mov	eax, DWORD PTR -2020[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 1212
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, DWORD PTR -2020[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, -1216[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -2020[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, -2016[rbp]
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, connect_scan[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -2020[rbp], 1
.L18:
	cmp	DWORD PTR -2020[rbp], 99
	jle	.L19
	mov	DWORD PTR -2020[rbp], 0
	jmp	.L20
.L22:
	mov	eax, DWORD PTR -2020[rbp]
	cdqe
	mov	rax, QWORD PTR -2016[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, DWORD PTR -2020[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 1208
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L21
	mov	eax, DWORD PTR -2020[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 1212
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L21:
	add	DWORD PTR -2020[rbp], 1
.L20:
	cmp	DWORD PTR -2020[rbp], 99
	jle	.L22
	add	DWORD PTR -2024[rbp], 1
.L17:
	cmp	DWORD PTR -2024[rbp], 599
	jle	.L23
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	scan_ip, .-scan_ip
	.section	.rodata
	.align 8
.LC7:
	.string	"Usage: %s start_ip end_ip [options]\n"
.LC8:
	.string	"\t-t n"
	.align 8
.LC9:
	.string	"\t--timeout=n\t\t Set timeout to n, default: 2."
	.text
	.globl	print_help
	.type	print_help, @function
print_help:
.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	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	print_help, .-print_help
	.globl	connect_scan
	.type	connect_scan, @function
connect_scan:
.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, edx
	mov	edi, eax
	call	do_connect_scan
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rdx], eax
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	connect_scan, .-connect_scan
	.globl	set_timeout
	.type	set_timeout, @function
set_timeout:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	QWORD PTR tout[rip], rax
	mov	QWORD PTR tout[rip+8], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	set_timeout, .-set_timeout
	.globl	do_connect_scan
	.type	do_connect_scan, @function
do_connect_scan:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 224
	mov	DWORD PTR -212[rbp], edi
	mov	DWORD PTR -216[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -188[rbp], 1
	mov	edx, 6
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -184[rbp], eax
	mov	eax, DWORD PTR -212[rbp]
	mov	DWORD PTR -156[rbp], eax
	mov	WORD PTR -160[rbp], 2
	mov	eax, DWORD PTR -216[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -158[rbp], ax
	mov	eax, DWORD PTR -184[rbp]
	mov	edx, 0
	mov	esi, 3
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	cdqe
	mov	QWORD PTR -168[rbp], rax
	or	QWORD PTR -168[rbp], 2048
	mov	rdx, QWORD PTR -168[rbp]
	mov	eax, DWORD PTR -184[rbp]
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	lea	rcx, -160[rbp]
	mov	eax, DWORD PTR -184[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	jns	.L41
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 115
	jne	.L33
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -144[rbp]
	mov	rdi, rdx
#APP
# 143 "the_stack_data/161080695.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -176[rbp], edx
	mov	DWORD PTR -172[rbp], eax
	mov	eax, DWORD PTR -184[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -144[rbp+rax*8]
	mov	eax, DWORD PTR -184[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -144[rbp+rax*8], rdx
	mov	eax, DWORD PTR -184[rbp]
	lea	edi, 1[rax]
	lea	rax, -144[rbp]
	lea	r8, tout[rip]
	mov	ecx, 0
	mov	rdx, rax
	mov	esi, 0
	call	select@PLT
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	jns	.L34
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L34
	mov	DWORD PTR -188[rbp], 0
	jmp	.L32
.L34:
	cmp	DWORD PTR -180[rbp], 0
	jle	.L35
	mov	DWORD PTR -192[rbp], 4
	lea	rcx, -192[rbp]
	lea	rdx, -196[rbp]
	mov	eax, DWORD PTR -184[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 4
	mov	esi, 1
	mov	edi, eax
	call	getsockopt@PLT
	test	eax, eax
	jns	.L36
	mov	DWORD PTR -188[rbp], 0
	jmp	.L32
.L36:
	mov	eax, DWORD PTR -196[rbp]
	test	eax, eax
	je	.L42
	mov	DWORD PTR -188[rbp], 0
	jmp	.L32
.L35:
	mov	DWORD PTR -188[rbp], 0
	jmp	.L32
.L33:
	mov	DWORD PTR -188[rbp], 0
	jmp	.L32
.L41:
	nop
	jmp	.L32
.L42:
	nop
.L32:
	mov	eax, DWORD PTR -184[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -188[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	do_connect_scan, .-do_connect_scan
	.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	"161080695.c"
	.text
	.comm	tout,8,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-t\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"--timeout=\000"
	.align	2
.LC3:
	.ascii	"--timeout=%d\000"
	.align	2
.LC4:
	.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, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	bgt	.L2
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_help
	mov	r3, r0
	b	.L14
.L2:
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	inet_addr
	mov	r3, r0
	mov	r0, r3
	bl	ntohl
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-44]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	inet_addr
	mov	r3, r0
	mov	r0, r3
	bl	ntohl
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	beq	.L4
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L5
.L4:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_help
	mov	r3, r0
	b	.L14
.L5:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bls	.L6
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_help
	mov	r3, r0
	b	.L14
.L6:
	mov	r3, #3
	str	r3, [fp, #-28]
	b	.L7
.L11:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L16+4
	mov	r0, r3
	bl	strstr
	mov	r1, r0
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r1, r3
	bne	.L8
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bcs	.L9
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #32
	ldr	r1, .L16+8
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_help
	mov	r3, r0
	b	.L14
.L9:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_help
	mov	r3, r0
	b	.L14
.L8:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L16+12
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #32
	ldr	r1, .L16+16
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_help
	mov	r3, r0
	b	.L14
.L10:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L7:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bcc	.L11
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	set_timeout
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-24]
	b	.L12
.L13:
	ldr	r0, [fp, #-24]
	bl	htonl
	mov	r3, r0
	mov	r0, r3
	bl	scan_ip
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L12:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bls	.L13
	mov	r3, #0
.L14:
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.section	.rodata
	.align	2
.LC5:
	.ascii	"IP: %s \012\000"
	.align	2
.LC6:
	.ascii	"scanning %d\015\000"
	.align	2
.LC7:
	.ascii	"\015Port%7d: OPEN\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	scan_ip
	.syntax unified
	.arm
	.fpu softvfp
	.type	scan_ip, %function
scan_ip:
	@ args = 0, pretend = 0, frame = 1624
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1616
	sub	sp, sp, #8
	str	r0, [fp, #-1624]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1624]
	str	r3, [fp, #-1620]
	ldr	r0, [fp, #-1620]
	bl	inet_ntoa
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L28+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-1616]
	b	.L19
.L25:
	mov	r3, #0
	str	r3, [fp, #-1612]
	b	.L20
.L21:
	ldr	r2, [fp, #-1612]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #1200
	sub	r3, r3, #4
	ldr	r2, [fp, #-1624]
	str	r2, [r3]
	ldr	r2, [fp, #-1616]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-1612]
	add	r3, r3, #1
	add	r1, r2, r3
	ldr	r2, [fp, #-1612]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #1200
	str	r1, [r3]
	ldr	r2, [fp, #-1612]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #1200
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L28+8
	bl	printf
	ldr	r3, .L28+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-1612]
	lsl	r2, r3, #2
	sub	r3, fp, #1600
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r2, [fp, #-1612]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	sub	r3, fp, #1200
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L28+16
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-1612]
	add	r3, r3, #1
	str	r3, [fp, #-1612]
.L20:
	ldr	r3, [fp, #-1612]
	cmp	r3, #99
	ble	.L21
	mov	r3, #0
	str	r3, [fp, #-1612]
	b	.L22
.L24:
	ldr	r3, [fp, #-1612]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1604]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r2, [fp, #-1612]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #1184
	sub	r3, r3, #12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L23
	ldr	r2, [fp, #-1612]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #1200
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L28+20
	bl	printf
.L23:
	ldr	r3, [fp, #-1612]
	add	r3, r3, #1
	str	r3, [fp, #-1612]
.L22:
	ldr	r3, [fp, #-1612]
	cmp	r3, #99
	ble	.L24
	ldr	r3, [fp, #-1616]
	add	r3, r3, #1
	str	r3, [fp, #-1616]
.L19:
	ldr	r3, [fp, #-1616]
	cmp	r3, #600
	blt	.L25
	mov	r3, #0
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC8
	.word	.LC5
	.word	.LC6
	.word	stdin
	.word	connect_scan
	.word	.LC7
	.size	scan_ip, .-scan_ip
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Usage: %s start_ip end_ip [options]\012\000"
	.align	2
.LC10:
	.ascii	"\011-t n\000"
	.align	2
.LC11:
	.ascii	"\011--timeout=n\011\011 Set timeout to n, default: "
	.ascii	"2.\000"
	.text
	.align	2
	.global	print_help
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_help, %function
print_help:
	@ 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	r1, [fp, #-8]
	ldr	r0, .L32
	bl	printf
	ldr	r0, .L32+4
	bl	puts
	ldr	r0, .L32+8
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	print_help, .-print_help
	.align	2
	.global	connect_scan
	.syntax unified
	.arm
	.fpu softvfp
	.type	connect_scan, %function
connect_scan:
	@ 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]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r1, r3
	mov	r0, r2
	bl	do_connect_scan
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	connect_scan, .-connect_scan
	.align	2
	.global	set_timeout
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_timeout, %function
set_timeout:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r2, .L37
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r3, .L37
	mov	r2, #0
	str	r2, [r3, #4]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L38:
	.align	2
.L37:
	.word	tout
	.size	set_timeout, .-set_timeout
	.section	.rodata
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	do_connect_scan
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_connect_scan, %function
do_connect_scan:
	@ args = 0, pretend = 0, frame = 192
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #200
	str	r0, [fp, #-192]
	str	r1, [fp, #-196]
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-176]
	mov	r2, #6
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-168]
	ldr	r3, [fp, #-192]
	str	r3, [fp, #-148]
	mov	r3, #2
	strh	r3, [fp, #-152]	@ movhi
	ldr	r3, [fp, #-196]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-150]	@ movhi
	mov	r2, #0
	mov	r1, #3
	ldr	r0, [fp, #-168]
	bl	fcntl
	str	r0, [fp, #-164]
	ldr	r3, [fp, #-164]
	orr	r3, r3, #2048
	str	r3, [fp, #-164]
	ldr	r2, [fp, #-164]
	mov	r1, #4
	ldr	r0, [fp, #-168]
	bl	fcntl
	sub	r3, fp, #152
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-168]
	bl	connect
	str	r0, [fp, #-160]
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	bge	.L51
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #115
	bne	.L41
	sub	r3, fp, #136
	str	r3, [fp, #-156]
	mov	r3, #0
	str	r3, [fp, #-172]
	b	.L42
.L43:
	ldr	r3, [fp, #-156]
	ldr	r2, [fp, #-172]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-172]
	add	r3, r3, #1
	str	r3, [fp, #-172]
.L42:
	ldr	r3, [fp, #-172]
	cmp	r3, #31
	bls	.L43
	ldr	r3, [fp, #-168]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-132]
	ldr	r3, [fp, #-168]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-132]
	ldr	r3, [fp, #-168]
	add	r0, r3, #1
	sub	r2, fp, #136
	ldr	r3, .L53+4
	str	r3, [sp]
	mov	r3, #0
	mov	r1, #0
	bl	select
	str	r0, [fp, #-160]
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	bge	.L44
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L44
	mov	r3, #0
	str	r3, [fp, #-176]
	b	.L40
.L44:
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	ble	.L45
	mov	r3, #4
	str	r3, [fp, #-180]
	sub	r2, fp, #184
	sub	r3, fp, #180
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #4
	mov	r1, #1
	ldr	r0, [fp, #-168]
	bl	getsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L46
	mov	r3, #0
	str	r3, [fp, #-176]
	b	.L40
.L46:
	ldr	r3, [fp, #-184]
	cmp	r3, #0
	beq	.L52
	mov	r3, #0
	str	r3, [fp, #-176]
	b	.L40
.L45:
	mov	r3, #0
	str	r3, [fp, #-176]
	b	.L40
.L41:
	mov	r3, #0
	str	r3, [fp, #-176]
	b	.L40
.L51:
	nop
	b	.L40
.L52:
	nop
.L40:
	ldr	r0, [fp, #-168]
	bl	close
	ldr	r3, [fp, #-176]
	ldr	r2, .L53
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L50
	bl	__stack_chk_fail
.L50:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC12
	.word	tout
	.size	do_connect_scan, .-do_connect_scan
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
