	.file	"243958.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"gethostbyname"
.LC1:
	.string	"setsockopt"
.LC2:
	.string	"connect"
	.text
	.globl	socket_connect
	.type	socket_connect, @function
socket_connect:
.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	QWORD PTR -56[rbp], rdi
	mov	eax, esi
	mov	WORD PTR -60[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -48[rbp], 1
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L2
	lea	rdi, .LC0[rip]
	call	herror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -32[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memmove@PLT
	movzx	eax, WORD PTR -60[rbp]
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	WORD PTR -32[rbp], 2
	mov	edx, 6
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -44[rbp], eax
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 6
	mov	edi, eax
	call	setsockopt@PLT
	cmp	DWORD PTR -44[rbp], -1
	jne	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	cmp	eax, -1
	jne	.L4
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	eax, DWORD PTR -44[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	socket_connect, .-socket_connect
	.section	.rodata
.LC3:
	.string	"10.0.1.1"
.LC4:
	.string	"GET /authenticated/%s/%s\r\n\r\n"
	.text
	.globl	authenticated
	.type	authenticated, @function
authenticated:
.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, 1080
	.cfi_offset 3, -24
	mov	QWORD PTR -1080[rbp], rdi
	mov	QWORD PTR -1088[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	esi, 8080
	lea	rdi, .LC3[rip]
	call	socket_connect
	mov	DWORD PTR -1072[rbp], eax
	mov	rax, QWORD PTR -1080[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -1088[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	eax, ebx
	add	eax, 28
	mov	DWORD PTR -1068[rbp], eax
	mov	eax, DWORD PTR -1068[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1064[rbp], rax
	mov	rcx, QWORD PTR -1088[rbp]
	mov	rdx, QWORD PTR -1080[rbp]
	mov	rax, QWORD PTR -1064[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -1064[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -1064[rbp]
	mov	eax, DWORD PTR -1072[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	lea	rax, -1056[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 128
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	jmp	.L8
.L9:
	mov	rdx, QWORD PTR stderr[rip]
	lea	rax, -1056[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	lea	rax, -1056[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 128
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
.L8:
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -1072[rbp]
	mov	edx, 1023
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	jne	.L9
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -1072[rbp]
	mov	esi, 2
	mov	edi, eax
	call	shutdown@PLT
	mov	eax, DWORD PTR -1072[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	authenticated, .-authenticated
	.section	.rodata
.LC5:
	.string	"GET /deauthenticated/%s\r\n\r\n"
	.text
	.globl	deauthenticated
	.type	deauthenticated, @function
deauthenticated:
.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, 1072
	mov	QWORD PTR -1064[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 8080
	lea	rdi, .LC3[rip]
	call	socket_connect
	mov	DWORD PTR -1056[rbp], eax
	mov	rax, QWORD PTR -1064[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	eax, 27
	mov	DWORD PTR -1052[rbp], eax
	mov	eax, DWORD PTR -1052[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1048[rbp], rax
	mov	rdx, QWORD PTR -1064[rbp]
	mov	rax, QWORD PTR -1048[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -1048[rbp]
	mov	eax, DWORD PTR -1056[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	lea	rax, -1040[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 128
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	jmp	.L13
.L14:
	mov	rdx, QWORD PTR stderr[rip]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	lea	rax, -1040[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 128
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
.L13:
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1056[rbp]
	mov	edx, 1023
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	jne	.L14
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -1056[rbp]
	mov	esi, 2
	mov	edi, eax
	call	shutdown@PLT
	mov	eax, DWORD PTR -1056[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	deauthenticated, .-deauthenticated
	.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	"243958.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"gethostbyname\000"
	.align	2
.LC1:
	.ascii	"setsockopt\000"
	.align	2
.LC2:
	.ascii	"connect\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	socket_connect
	.syntax unified
	.arm
	.fpu softvfp
	.type	socket_connect, %function
socket_connect:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	mov	r3, r1
	strh	r3, [fp, #-42]	@ movhi
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-40]
	bl	gethostbyname
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L7+4
	bl	herror
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #24
	add	r3, r3, #4
	mov	r0, r3
	bl	memmove
	ldrh	r3, [fp, #-42]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	mov	r2, #6
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-28]
	sub	r3, fp, #36
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #1
	mov	r1, #6
	ldr	r0, [fp, #-28]
	bl	setsockopt
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L7+8
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	connect
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L7+12
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-28]
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	socket_connect, .-socket_connect
	.section	.rodata
	.align	2
.LC4:
	.ascii	"10.0.1.1\000"
	.align	2
.LC5:
	.ascii	"GET /authenticated/%s/%s\015\012\015\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	authenticated
	.syntax unified
	.arm
	.fpu softvfp
	.type	authenticated, %function
authenticated:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1040
	sub	sp, sp, #12
	str	r0, [fp, #-1056]
	str	r1, [fp, #-1060]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, .L14+4
	ldr	r0, .L14+8
	bl	socket_connect
	str	r0, [fp, #-1052]
	ldr	r0, [fp, #-1056]
	bl	strlen
	mov	r4, r0
	ldr	r0, [fp, #-1060]
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #28
	str	r3, [fp, #-1048]
	ldr	r3, [fp, #-1048]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1044]
	ldr	r3, [fp, #-1060]
	ldr	r2, [fp, #-1056]
	ldr	r1, .L14+12
	ldr	r0, [fp, #-1044]
	bl	sprintf
	ldr	r0, [fp, #-1044]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-1044]
	ldr	r0, [fp, #-1052]
	bl	write
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #1024
	mov	r2, r3
	mov	r1, #0
	bl	memset
	b	.L10
.L11:
	ldr	r3, .L14+16
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	fputs
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #1024
	mov	r2, r3
	mov	r1, #0
	bl	memset
.L10:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L14+20
	mov	r1, r3
	ldr	r0, [fp, #-1052]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	mov	r0, #10
	bl	putchar
	mov	r1, #2
	ldr	r0, [fp, #-1052]
	bl	shutdown
	ldr	r0, [fp, #-1052]
	bl	close
	mov	r3, #0
	ldr	r2, .L14
	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}
.L15:
	.align	2
.L14:
	.word	.LC6
	.word	8080
	.word	.LC4
	.word	.LC5
	.word	stderr
	.word	1023
	.size	authenticated, .-authenticated
	.section	.rodata
	.align	2
.LC7:
	.ascii	"GET /deauthenticated/%s\015\012\015\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	deauthenticated
	.syntax unified
	.arm
	.fpu softvfp
	.type	deauthenticated, %function
deauthenticated:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	sub	sp, sp, #8
	str	r0, [fp, #-1048]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L21+4
	ldr	r0, .L21+8
	bl	socket_connect
	str	r0, [fp, #-1044]
	ldr	r0, [fp, #-1048]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #27
	str	r3, [fp, #-1040]
	ldr	r3, [fp, #-1040]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1036]
	ldr	r2, [fp, #-1048]
	ldr	r1, .L21+12
	ldr	r0, [fp, #-1036]
	bl	sprintf
	ldr	r0, [fp, #-1036]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-1036]
	ldr	r0, [fp, #-1044]
	bl	write
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #1024
	mov	r2, r3
	mov	r1, #0
	bl	memset
	b	.L17
.L18:
	ldr	r3, .L21+16
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	fputs
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #1024
	mov	r2, r3
	mov	r1, #0
	bl	memset
.L17:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, .L21+20
	mov	r1, r3
	ldr	r0, [fp, #-1044]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	mov	r0, #10
	bl	putchar
	mov	r1, #2
	ldr	r0, [fp, #-1044]
	bl	shutdown
	ldr	r0, [fp, #-1044]
	bl	close
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC8
	.word	8080
	.word	.LC4
	.word	.LC7
	.word	stderr
	.word	1023
	.size	deauthenticated, .-deauthenticated
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
