	.file	"51699458.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"socket(2) failure"
.LC1:
	.string	"ok"
	.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, 512
	mov	DWORD PTR -500[rbp], edi
	mov	QWORD PTR -512[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -480[rbp]
	mov	rdi, rdx
#APP
# 18 "the_stack_data/51699458.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -488[rbp], edx
	mov	DWORD PTR -484[rbp], eax
	mov	DWORD PTR -496[rbp], 0
	jmp	.L2
.L4:
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	edx, DWORD PTR -496[rbp]
	movsx	rdx, edx
	mov	DWORD PTR -352[rbp+rdx*4], eax
	mov	eax, DWORD PTR -496[rbp]
	cdqe
	mov	eax, DWORD PTR -352[rbp+rax*4]
	cmp	eax, -1
	jne	.L3
	lea	rsi, .LC0[rip]
	mov	edi, 71
	mov	eax, 0
	call	err@PLT
.L3:
	mov	eax, DWORD PTR -496[rbp]
	cdqe
	mov	eax, DWORD PTR -352[rbp+rax*4]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -480[rbp+rax*8]
	mov	eax, DWORD PTR -496[rbp]
	cdqe
	mov	eax, DWORD PTR -352[rbp+rax*4]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -480[rbp+rax*8], rdx
	mov	eax, DWORD PTR -496[rbp]
	cdqe
	mov	eax, DWORD PTR -352[rbp+rax*4]
	mov	DWORD PTR -492[rbp], eax
	add	DWORD PTR -496[rbp], 1
.L2:
	cmp	DWORD PTR -496[rbp], 79
	jle	.L4
	mov	eax, DWORD PTR -492[rbp]
	lea	edi, 1[rax]
	lea	rax, -480[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	rdx, rax
	mov	esi, 0
	call	select@PLT
	mov	DWORD PTR -496[rbp], eax
	cmp	DWORD PTR -496[rbp], 80
	jne	.L5
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L5:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	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	"51699458.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"socket(2) failure\000"
	.align	2
.LC1:
	.ascii	"ok\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 488
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #496
	str	r0, [fp, #-488]
	str	r1, [fp, #-492]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #468
	str	r3, [fp, #-472]
	mov	r3, #0
	str	r3, [fp, #-476]
	b	.L2
.L3:
	ldr	r3, [fp, #-472]
	ldr	r2, [fp, #-476]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-476]
	add	r3, r3, #1
	str	r3, [fp, #-476]
.L2:
	ldr	r3, [fp, #-476]
	cmp	r3, #31
	bls	.L3
	mov	r3, #0
	str	r3, [fp, #-484]
	b	.L4
.L6:
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	mov	r2, r0
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-336]
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-336]
	cmn	r3, #1
	bne	.L5
	ldr	r1, .L10+4
	mov	r0, #71
	bl	err
.L5:
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-336]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-464]
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #2
	sub	r0, fp, #4
	add	r3, r0, r3
	ldr	r3, [r3, #-336]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-464]
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-336]
	str	r3, [fp, #-480]
	ldr	r3, [fp, #-484]
	add	r3, r3, #1
	str	r3, [fp, #-484]
.L4:
	ldr	r3, [fp, #-484]
	cmp	r3, #79
	ble	.L6
	ldr	r3, [fp, #-480]
	add	r0, r3, #1
	sub	r2, fp, #468
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r1, #0
	bl	select
	str	r0, [fp, #-484]
	ldr	r3, [fp, #-484]
	cmp	r3, #80
	bne	.L7
	ldr	r0, .L10+8
	bl	puts
.L7:
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
