	.file	"182798.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/proc/tcp_params"
	.align 8
.LC1:
	.string	"dhd_priv wl tcpka_conn_sess_info 1"
.LC2:
	.string	"dhd_priv wl tcpka_conn_dump 1"
	.text
	.type	prepare_set_wifi, @function
prepare_set_wifi:
.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, 224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -216[rbp], eax
	lea	rax, -208[rbp]
	mov	edx, 200
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -208[rbp]
	mov	eax, DWORD PTR -216[rbp]
	mov	edx, 200
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -212[rbp], eax
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	edi, 30000
	call	usleep@PLT
	lea	rdi, .LC1[rip]
	call	system@PLT
	mov	edi, 30000
	call	usleep@PLT
	lea	rdi, .LC2[rip]
	call	system@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L2
	call	__stack_chk_fail@PLT
.L2:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	prepare_set_wifi, .-prepare_set_wifi
	.section	.rodata
.LC3:
	.string	"usage: ./client <ipaddress>"
	.align 8
.LC4:
	.string	"create socket error: %s(errno: %d)\n"
.LC5:
	.string	"inet_pton error for %s\n"
	.align 8
.LC6:
	.string	"connect error: %s (errno: %d)\n"
.LC7:
	.string	"connected to server "
.LC8:
	.string	"dhd_priv wl tcpka_conn_dump 0"
	.align 8
.LC9:
	.string	"dhd_priv wl tcpka_conn_enable 1 1 30 3 8"
.LC10:
	.string	"dhd_priv setsuspendmode 1"
.LC11:
	.string	"tb_poweroff &"
.LC12:
	.string	"hellp tcp"
	.align 8
.LC13:
	.string	"send msg error: %s(errno: %d)\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	DWORD PTR -4164[rbp], edi
	mov	QWORD PTR -4176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4152[rbp], 0
	mov	WORD PTR -4128[rbp], 192
	cmp	DWORD PTR -4164[rbp], 2
	je	.L4
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L13
.L4:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -4148[rbp], eax
	cmp	DWORD PTR -4148[rbp], 0
	jns	.L6
	call	__errno_location@PLT
	mov	ebx, DWORD PTR [rax]
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L13
.L6:
	lea	rax, -4144[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -4144[rbp], 2
	mov	edi, 5150
	call	htons@PLT
	mov	WORD PTR -4142[rbp], ax
	mov	rax, QWORD PTR -4176[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -4144[rbp]
	add	rdx, 4
	mov	rsi, rax
	mov	edi, 2
	call	inet_pton@PLT
	test	eax, eax
	jg	.L7
	mov	rax, QWORD PTR -4176[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L13
.L7:
	mov	BYTE PTR -4153[rbp], 0
	lea	rdx, -4153[rbp]
	mov	eax, DWORD PTR -4148[rbp]
	mov	r8d, 1
	mov	rcx, rdx
	mov	edx, 29
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	lea	rcx, -4144[rbp]
	mov	eax, DWORD PTR -4148[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L8
	call	__errno_location@PLT
	mov	ebx, DWORD PTR [rax]
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L13
.L8:
	call	prepare_set_wifi
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L12:
	cmp	DWORD PTR -4152[rbp], 5
	jne	.L9
	lea	rdi, .LC1[rip]
	call	system@PLT
	mov	edi, 10000
	call	usleep@PLT
	lea	rdi, .LC8[rip]
	call	system@PLT
	mov	edi, 10000
	call	usleep@PLT
	lea	rdi, .LC9[rip]
	call	system@PLT
	mov	edi, 10000
	call	usleep@PLT
	lea	rdi, .LC10[rip]
	call	system@PLT
	mov	edi, 10000
	call	usleep@PLT
	lea	rdi, .LC11[rip]
	call	system@PLT
.L10:
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -4148[rbp]
	mov	ecx, 0
	mov	edx, 9
	lea	rsi, .LC12[rip]
	mov	edi, eax
	call	send@PLT
	cmp	rax, 9
	je	.L11
	call	__errno_location@PLT
	mov	ebx, DWORD PTR [rax]
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L13
.L11:
	add	DWORD PTR -4152[rbp], 1
	mov	edi, 1
	call	sleep@PLT
	jmp	.L12
.L13:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"182798.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/proc/tcp_params\000"
	.align	2
.LC1:
	.ascii	"dhd_priv wl tcpka_conn_sess_info 1\000"
	.align	2
.LC2:
	.ascii	"dhd_priv wl tcpka_conn_dump 1\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prepare_set_wifi, %function
prepare_set_wifi:
	@ args = 0, pretend = 0, frame = 216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #216
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #0
	ldr	r0, .L3+4
	bl	open
	str	r0, [fp, #-216]
	sub	r3, fp, #208
	mov	r2, #200
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #208
	mov	r2, #200
	mov	r1, r3
	ldr	r0, [fp, #-216]
	bl	read
	str	r0, [fp, #-212]
	sub	r3, fp, #208
	mov	r0, r3
	bl	system
	ldr	r0, .L3+8
	bl	usleep
	ldr	r0, .L3+12
	bl	system
	ldr	r0, .L3+8
	bl	usleep
	ldr	r0, .L3+16
	bl	system
	nop
	ldr	r3, .L3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L2
	bl	__stack_chk_fail
.L2:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC3
	.word	.LC0
	.word	30000
	.word	.LC1
	.word	.LC2
	.size	prepare_set_wifi, .-prepare_set_wifi
	.section	.rodata
	.align	2
.LC4:
	.ascii	"usage: ./client <ipaddress>\000"
	.align	2
.LC5:
	.ascii	"create socket error: %s(errno: %d)\012\000"
	.align	2
.LC6:
	.ascii	"inet_pton error for %s\012\000"
	.align	2
.LC7:
	.ascii	"connect error: %s (errno: %d)\012\000"
	.align	2
.LC8:
	.ascii	"connected to server \000"
	.align	2
.LC9:
	.ascii	"dhd_priv wl tcpka_conn_dump 0\000"
	.align	2
.LC10:
	.ascii	"dhd_priv wl tcpka_conn_enable 1 1 30 3 8\000"
	.align	2
.LC11:
	.ascii	"dhd_priv setsuspendmode 1\000"
	.align	2
.LC12:
	.ascii	"tb_poweroff &\000"
	.align	2
.LC13:
	.ascii	"hellp tcp\000"
	.align	2
.LC14:
	.ascii	"send msg error: %s(errno: %d)\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #52
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-36]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-40]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-28]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #192
	strh	r2, [r3, #-4]	@ movhi
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	cmp	r3, #2
	beq	.L6
	ldr	r0, .L17+4
	bl	puts
	mov	r3, #0
	b	.L15
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-24]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	cmp	r3, #0
	bge	.L8
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r4, r0
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L17+8
	bl	printf
	mov	r3, #0
	b	.L15
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #2
	strh	r2, [r3, #-20]	@ movhi
	ldr	r0, .L17+12
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	strh	r2, [r3, #-18]	@ movhi
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	add	r3, r3, #4
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #20
	add	r3, r3, #4
	mov	r2, r3
	mov	r0, #2
	bl	inet_pton
	mov	r3, r0
	cmp	r3, #0
	bgt	.L9
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L17+16
	bl	printf
	mov	r3, #0
	b	.L15
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	strb	r2, [r3, #-29]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #29
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #1
	str	r2, [sp]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, [r0, #-24]
	bl	setsockopt
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-24]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L10
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r4, r0
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L17+20
	bl	printf
	mov	r3, #0
	b	.L15
.L10:
	bl	prepare_set_wifi
	ldr	r0, .L17+24
	bl	puts
.L14:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	cmp	r3, #5
	bne	.L11
	ldr	r0, .L17+28
	bl	system
	ldr	r0, .L17+32
	bl	usleep
	ldr	r0, .L17+36
	bl	system
	ldr	r0, .L17+32
	bl	usleep
	ldr	r0, .L17+40
	bl	system
	ldr	r0, .L17+32
	bl	usleep
	ldr	r0, .L17+44
	bl	system
	ldr	r0, .L17+32
	bl	usleep
	ldr	r0, .L17+48
	bl	system
.L12:
	b	.L12
.L11:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	mov	r2, #9
	ldr	r1, .L17+52
	ldr	r0, [r0, #-24]
	bl	send
	mov	r3, r0
	cmp	r3, #9
	beq	.L13
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r4, r0
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L17+56
	bl	printf
	mov	r3, #0
	b	.L15
.L13:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	add	r3, r3, #1
	str	r3, [r2, #-28]
	mov	r0, #1
	bl	sleep
	b	.L14
.L15:
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC15
	.word	.LC4
	.word	.LC5
	.word	5150
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC1
	.word	10000
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
