	.file	"extr_3587.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Cannot allocate mem\n"
.LC1:
	.string	"socket failure!\n"
.LC2:
	.string	"SETSOCKOPT"
.LC3:
	.string	"SUCCESS\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	r9d, r9d
	xor	r8d, r8d
	xor	edi, edi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR BUFSIZE[rip]
	mov	ecx, DWORD PTR MAP_ANONYMOUS[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	edx, DWORD PTR PROT_READ[rip]
	or	ecx, DWORD PTR MAP_PRIVATE[rip]
	or	edx, DWORD PTR PROT_WRITE[rip]
	call	mmap@PLT
	test	rax, rax
	je	.L10
	mov	edi, DWORD PTR PF_INET[rip]
	mov	edx, 33
	mov	esi, 6
	mov	rbp, rax
	call	socket@PLT
	mov	edi, eax
	cmp	eax, -1
	je	.L11
	lea	r8, 4[rsp]
	mov	rcx, rbp
	mov	edx, 11
	mov	esi, 269
	mov	DWORD PTR 4[rsp], -1
	call	getsockopt@PLT
	add	eax, 1
	je	.L12
	lea	rdi, .LC3[rip]
	call	printf@PLT
.L6:
	mov	edx, DWORD PTR BUFSIZE[rip]
	mov	rsi, rbp
	mov	edi, 1
	call	write@PLT
	xor	eax, eax
.L1:
	mov	rsi, QWORD PTR 8[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L13
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	call	perror@PLT
	jmp	.L6
.L10:
	lea	rdi, .LC0[rip]
	call	printf@PLT
	mov	eax, 1
	jmp	.L1
.L11:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	stderr,4,4
	.comm	PROT_WRITE,4,4
	.comm	PROT_READ,4,4
	.comm	PF_INET,4,4
	.comm	MAP_PRIVATE,4,4
	.comm	MAP_ANONYMOUS,4,4
	.comm	BUFSIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_3587.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Cannot allocate mem\012\000"
	.align	2
.LC1:
	.ascii	"socket failure!\012\000"
	.align	2
.LC2:
	.ascii	"SETSOCKOPT\000"
	.align	2
.LC3:
	.ascii	"SUCCESS\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r0, #0
	push	{r4, r5, lr}
	ldr	ip, .L14
	ldr	r3, .L14+4
	ldr	r1, .L14+8
	ldr	r2, .L14+12
	ldr	ip, [ip]
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r5, .L14+16
	sub	sp, sp, #20
	orr	r3, ip, r3
	ldr	ip, .L14+20
	orr	r2, r1, r2
	str	r0, [sp, #4]
	str	r0, [sp]
	ldr	r1, [r5]
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	bl	mmap
	subs	r4, r0, #0
	beq	.L10
	ldr	r3, .L14+24
	mov	r2, #33
	mov	r1, #6
	ldr	r0, [r3]
	bl	socket
	cmn	r0, #1
	beq	.L11
	mvn	ip, #0
	add	r3, sp, #8
	str	r3, [sp]
	mov	r2, #11
	mov	r3, r4
	ldr	r1, .L14+28
	str	ip, [sp, #8]
	bl	getsockopt
	cmn	r0, #1
	beq	.L12
	ldr	r0, .L14+32
	bl	printf
.L6:
	mov	r1, r4
	mov	r0, #1
	ldr	r2, [r5]
	bl	write
	mov	r0, #0
.L1:
	ldr	r3, .L14+20
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L12:
	ldr	r0, .L14+36
	bl	perror
	b	.L6
.L10:
	ldr	r0, .L14+40
	bl	printf
	mov	r0, #1
	b	.L1
.L11:
	ldr	r3, .L14+44
	ldr	r1, .L14+48
	ldr	r0, [r3]
	bl	fprintf
	mov	r0, #1
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	MAP_ANONYMOUS
	.word	MAP_PRIVATE
	.word	PROT_READ
	.word	PROT_WRITE
	.word	BUFSIZE
	.word	.LC4
	.word	PF_INET
	.word	269
	.word	.LC3
	.word	.LC2
	.word	.LC0
	.word	stderr
	.word	.LC1
	.size	main, .-main
	.comm	stderr,4,4
	.comm	PROT_WRITE,4,4
	.comm	PROT_READ,4,4
	.comm	PF_INET,4,4
	.comm	MAP_PRIVATE,4,4
	.comm	MAP_ANONYMOUS,4,4
	.comm	BUFSIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
