	.file	"431820.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Example usage:\n\n\t%s sockfile -m sb.noop --flags flag\n"
	.align 8
.LC1:
	.string	"socket: Opening the socket failed"
	.align 8
.LC2:
	.string	"connect: Connecting to socket failed"
.LC3:
	.string	"send: Sending error"
.LC4:
	.string	"%s"
.LC5:
	.string	"recv: Receiving error"
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 2224
	mov	DWORD PTR -10404[rbp], edi
	mov	QWORD PTR -10416[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -10404[rbp], 2
	jg	.L2
	mov	rax, QWORD PTR -10416[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L22
.L2:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR -10388[rbp], eax
	cmp	DWORD PTR -10388[rbp], -1
	jne	.L4
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	WORD PTR -10368[rbp], 1
	mov	rax, QWORD PTR -10416[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -10368[rbp]
	add	rdx, 2
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	lea	rax, -10368[rbp]
	add	rax, 2
	mov	rdi, rax
	call	strlen@PLT
	add	eax, 2
	mov	DWORD PTR -10384[rbp], eax
	mov	edx, DWORD PTR -10384[rbp]
	lea	rcx, -10368[rbp]
	mov	eax, DWORD PTR -10388[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	cmp	eax, -1
	jne	.L5
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	DWORD PTR -10396[rbp], 0
	lea	rax, -10256[rbp]
	mov	esi, 2048
	mov	rdi, rax
	call	getcwd@PLT
	lea	rax, -10256[rbp]
	mov	QWORD PTR -10376[rbp], rax
	jmp	.L6
.L9:
	mov	rax, QWORD PTR -10376[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L7
	mov	rax, QWORD PTR -10376[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 92
	jne	.L8
.L7:
	mov	eax, DWORD PTR -10396[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -10396[rbp], edx
	cdqe
	mov	BYTE PTR -8208[rbp+rax], 92
.L8:
	mov	eax, DWORD PTR -10396[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -10396[rbp], edx
	mov	rdx, QWORD PTR -10376[rbp]
	movzx	edx, BYTE PTR [rdx]
	cdqe
	mov	BYTE PTR -8208[rbp+rax], dl
	add	QWORD PTR -10376[rbp], 1
.L6:
	mov	rax, QWORD PTR -10376[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L9
	mov	DWORD PTR -10392[rbp], 2
	jmp	.L10
.L17:
	mov	eax, DWORD PTR -10396[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -10396[rbp], edx
	cdqe
	mov	BYTE PTR -8208[rbp+rax], 32
	mov	eax, DWORD PTR -10392[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -10416[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -10376[rbp], rax
	jmp	.L11
.L16:
	mov	rax, QWORD PTR -10376[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L12
	mov	rax, QWORD PTR -10376[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 92
	jne	.L13
.L12:
	mov	eax, DWORD PTR -10396[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -10396[rbp], edx
	cdqe
	mov	BYTE PTR -8208[rbp+rax], 92
.L13:
	mov	eax, DWORD PTR -10396[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -10396[rbp], edx
	mov	rdx, QWORD PTR -10376[rbp]
	movzx	edx, BYTE PTR [rdx]
	cdqe
	mov	BYTE PTR -8208[rbp+rax], dl
	cmp	DWORD PTR -10396[rbp], 4091
	jle	.L14
	mov	eax, DWORD PTR -10396[rbp]
	movsx	rdx, eax
	lea	rsi, -8208[rbp]
	mov	eax, DWORD PTR -10388[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	test	rax, rax
	jns	.L15
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L22
.L15:
	mov	DWORD PTR -10396[rbp], 0
.L14:
	add	QWORD PTR -10376[rbp], 1
.L11:
	mov	rax, QWORD PTR -10376[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L16
	add	DWORD PTR -10392[rbp], 1
.L10:
	mov	eax, DWORD PTR -10392[rbp]
	cmp	eax, DWORD PTR -10404[rbp]
	jl	.L17
	mov	eax, DWORD PTR -10396[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -10396[rbp], edx
	cdqe
	mov	BYTE PTR -8208[rbp+rax], 92
	mov	eax, DWORD PTR -10396[rbp]
	movsx	rdx, eax
	lea	rsi, -8208[rbp]
	mov	eax, DWORD PTR -10388[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	test	rax, rax
	jns	.L19
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L22
.L20:
	mov	eax, DWORD PTR -10380[rbp]
	cdqe
	mov	BYTE PTR -4112[rbp+rax], 0
	lea	rax, -4112[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L19:
	lea	rsi, -4112[rbp]
	mov	eax, DWORD PTR -10388[rbp]
	mov	ecx, 0
	mov	edx, 4096
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -10380[rbp], eax
	cmp	DWORD PTR -10380[rbp], 0
	jg	.L20
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	cmp	DWORD PTR -10380[rbp], 0
	jns	.L21
	lea	rdi, .LC5[rip]
	call	perror@PLT
.L21:
	mov	eax, DWORD PTR -10388[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L22:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"431820.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Example usage:\012\012\011%s sockfile -m sb.noop --"
	.ascii	"flags flag\012\000"
	.align	2
.LC1:
	.ascii	"socket: Opening the socket failed\000"
	.align	2
.LC2:
	.ascii	"connect: Connecting to socket failed\000"
	.align	2
.LC3:
	.ascii	"send: Sending error\000"
	.align	2
.LC4:
	.ascii	"%s\000"
	.align	2
.LC5:
	.ascii	"recv: Receiving error\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 10392
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #10368
	sub	sp, sp, #28
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-2196]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-2200]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2196]
	cmp	r3, #2
	bgt	.L2
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2200]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L24+4
	bl	printf
	mvn	r3, #0
	b	.L22
.L2:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socket
	str	r0, [r4, #-2176]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2176]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L24+8
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #2160
	sub	r3, r3, #4
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2200]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #10304
	sub	r3, r3, #12
	sub	r3, r3, #52
	add	r3, r3, #2
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #10304
	sub	r3, r3, #12
	sub	r3, r3, #52
	add	r3, r3, #2
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-2172]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-2172]
	sub	r3, fp, #10304
	sub	r3, r3, #12
	sub	r3, r3, #52
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-2176]
	bl	connect
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L24+12
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2184]
	sub	r3, fp, #10240
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #2048
	mov	r0, r3
	bl	getcwd
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #10240
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-2188]
	b	.L6
.L9:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2188]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L7
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2188]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #92
	bne	.L8
.L7:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2184]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-2184]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	add	r3, r2, r3
	mov	r2, #92
	strb	r2, [r3, #-4]
.L8:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2184]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-2184]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-2188]
	ldrb	r2, [r2]	@ zero_extendqisi2
	sub	r1, fp, #8192
	sub	r1, r1, #12
	add	r3, r1, r3
	strb	r2, [r3, #-4]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2188]
	add	r3, r3, #1
	str	r3, [r2, #-2188]
.L6:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2188]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L9
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-2180]
	b	.L10
.L17:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2184]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-2184]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3, #-4]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2180]
	lsl	r3, r3, #2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-2200]
	add	r3, r2, r3
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r3, [r3]
	str	r3, [r2, #-2188]
	b	.L11
.L16:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2188]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L12
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2188]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #92
	bne	.L13
.L12:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2184]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-2184]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	add	r3, r2, r3
	mov	r2, #92
	strb	r2, [r3, #-4]
.L13:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2184]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-2184]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-2188]
	ldrb	r2, [r2]	@ zero_extendqisi2
	sub	r1, fp, #8192
	sub	r1, r1, #12
	add	r3, r1, r3
	strb	r2, [r3, #-4]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2184]
	ldr	r2, .L24+16
	cmp	r3, r2
	ble	.L14
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-2184]
	sub	r1, fp, #8192
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	ldr	r0, [r0, #-2176]
	bl	send
	mov	r3, r0
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L24+20
	bl	perror
	mvn	r3, #0
	b	.L22
.L15:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2184]
.L14:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2188]
	add	r3, r3, #1
	str	r3, [r2, #-2188]
.L11:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2188]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L16
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2180]
	add	r3, r3, #1
	str	r3, [r2, #-2180]
.L10:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-2180]
	ldr	r3, [r3, #-2196]
	cmp	r2, r3
	blt	.L17
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2184]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-2184]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	add	r3, r2, r3
	mov	r2, #92
	strb	r2, [r3, #-4]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-2184]
	sub	r1, fp, #8192
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	ldr	r0, [r0, #-2176]
	bl	send
	mov	r3, r0
	cmp	r3, #0
	bge	.L19
	ldr	r0, .L24+20
	bl	perror
	mvn	r3, #0
	b	.L22
.L20:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2168]
	add	r3, r2, r3
	sub	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L24+24
	bl	printf
.L19:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #4096
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	mov	r2, #4096
	ldr	r0, [r0, #-2176]
	bl	recv
	str	r0, [r4, #-2168]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2168]
	cmp	r3, #0
	bgt	.L20
	ldr	r3, .L24+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2168]
	cmp	r3, #0
	bge	.L21
	ldr	r0, .L24+32
	bl	perror
.L21:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-2176]
	bl	close
	mov	r3, #0
.L22:
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	4091
	.word	.LC3
	.word	.LC4
	.word	stdout
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
