	.file	"247017742.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s\007%s"
.LC1:
	.string	"error in socket()"
.LC2:
	.string	"error in connect()"
.LC3:
	.string	"error in send()"
.LC4:
	.string	"error in recv()"
	.text
	.globl	alice
	.type	alice, @function
alice:
.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, 1200
	mov	QWORD PTR -1192[rbp], rdi
	mov	QWORD PTR -1200[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1192[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -1160[rbp], rax
	cmp	QWORD PTR -1160[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -1160[rbp]
	mov	BYTE PTR [rax], 0
.L2:
	mov	rcx, QWORD PTR -1192[rbp]
	mov	rdx, QWORD PTR -1200[rbp]
	lea	rax, -1040[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR -1172[rbp], eax
	cmp	DWORD PTR -1172[rbp], -1
	jne	.L3
	lea	rax, .LC1[rip]
	jmp	.L9
.L3:
	mov	WORD PTR -1152[rbp], 1
	lea	rax, -1152[rbp]
	add	rax, 2
	movabs	rcx, 7307217042995508271
	mov	QWORD PTR [rax], rcx
	mov	DWORD PTR 8[rax], 7957612
	lea	rax, -1152[rbp]
	add	rax, 2
	mov	rdi, rax
	call	strlen@PLT
	add	eax, 2
	mov	DWORD PTR -1168[rbp], eax
	mov	edx, DWORD PTR -1168[rbp]
	lea	rax, -1152[rbp]
	mov	rcx, rax
	mov	eax, DWORD PTR -1172[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	cmp	eax, -1
	jne	.L5
	lea	rax, .LC2[rip]
	jmp	.L9
.L5:
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1172[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	cmp	rax, -1
	jne	.L6
	lea	rax, .LC3[rip]
	jmp	.L9
.L6:
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1172[rbp]
	mov	ecx, 0
	mov	edx, 1024
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -1164[rbp], eax
	cmp	DWORD PTR -1164[rbp], 0
	jle	.L7
	mov	eax, DWORD PTR -1164[rbp]
	cdqe
	mov	BYTE PTR -1040[rbp+rax], 0
.L7:
	mov	eax, DWORD PTR -1172[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	DWORD PTR -1164[rbp], 0
	jg	.L8
	lea	rax, .LC4[rip]
	jmp	.L9
.L8:
	lea	rax, -1040[rbp]
	mov	QWORD PTR -1192[rbp], rax
	mov	rax, QWORD PTR -1192[rbp]
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	alice, .-alice
	.section	.rodata
.LC5:
	.string	"USER"
	.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
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 1
	jle	.L12
	lea	rdi, .LC5[rip]
	call	getenv@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	alice
	mov	rdi, rax
	call	puts@PLT
.L12:
	mov	eax, 0
	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	"247017742.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\007%s\000"
	.align	2
.LC1:
	.ascii	"error in socket()\000"
	.align	2
.LC2:
	.ascii	"/tmp/shelly\000"
	.align	2
.LC3:
	.ascii	"error in connect()\000"
	.align	2
.LC4:
	.ascii	"error in send()\000"
	.align	2
.LC5:
	.ascii	"error in recv()\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	alice
	.syntax unified
	.arm
	.fpu softvfp
	.type	alice, %function
alice:
	@ args = 0, pretend = 0, frame = 1168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1168
	str	r0, [fp, #-1168]
	str	r1, [fp, #-1172]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #10
	ldr	r0, [fp, #-1168]
	bl	strchr
	str	r0, [fp, #-1160]
	ldr	r3, [fp, #-1160]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-1160]
	mov	r2, #0
	strb	r2, [r3]
.L2:
	sub	r0, fp, #1024
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r3, [fp, #-1168]
	ldr	r2, [fp, #-1172]
	ldr	r1, .L11+4
	bl	sprintf
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socket
	str	r0, [fp, #-1156]
	ldr	r3, [fp, #-1156]
	cmn	r3, #1
	bne	.L3
	ldr	r3, .L11+8
	b	.L9
.L3:
	sub	r3, fp, #4
	sub	r3, r3, #1136
	sub	r3, r3, #4
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #2
	ldr	r2, .L11+12
	mov	r0, r3
	mov	r1, r2
	mov	r3, #12
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #2
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #2
	str	r3, [fp, #-1152]
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r3, [fp, #-1152]
	mov	r2, r3
	ldr	r0, [fp, #-1156]
	bl	connect
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	ldr	r3, .L11+16
	b	.L9
.L5:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-1156]
	bl	send
	mov	r3, r0
	cmn	r3, #1
	bne	.L6
	ldr	r3, .L11+20
	b	.L9
.L6:
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	mov	r2, #1024
	ldr	r0, [fp, #-1156]
	bl	recv
	str	r0, [fp, #-1148]
	ldr	r3, [fp, #-1148]
	cmp	r3, #0
	ble	.L7
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1148]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
.L7:
	ldr	r0, [fp, #-1156]
	bl	close
	ldr	r3, [fp, #-1148]
	cmp	r3, #0
	bgt	.L8
	ldr	r3, .L11+24
	b	.L9
.L8:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [fp, #-1168]
	ldr	r3, [fp, #-1168]
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	alice, .-alice
	.section	.rodata
	.align	2
.LC7:
	.ascii	"USER\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L14
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r4, [r3]
	ldr	r0, .L16
	bl	getenv
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	alice
	mov	r3, r0
	mov	r0, r3
	bl	puts
.L14:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
