	.file	"480791.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"socket"
.LC1:
	.string	"192.168.1.100"
.LC2:
	.string	"connect"
.LC3:
	.string	"%d\n"
	.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 33554432
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], 0
	jns	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L10
.L2:
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	lea	rdi, .LC1[rip]
	call	inet_addr@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	edi, 1001
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L4
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L10
.L4:
	mov	DWORD PTR -44[rbp], 8
	mov	DWORD PTR -40[rbp], 278435456
	mov	DWORD PTR -36[rbp], 546870912
	lea	rsi, -44[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	ecx, 16384
	mov	edx, 12
	mov	edi, eax
	call	send@PLT
.L9:
	mov	rsi, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	ecx, 256
	mov	edx, 33554432
	mov	edi, eax
	call	recv@PLT
	mov	WORD PTR -68[rbp], 0
	mov	DWORD PTR -64[rbp], 4
	jmp	.L5
.L7:
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	cwde
	mov	edx, DWORD PTR -64[rbp]
	movsx	rdx, edx
	add	rdx, rdx
	lea	rcx, -8[rdx]
	mov	rdx, QWORD PTR -56[rbp]
	add	rdx, rcx
	movzx	edx, WORD PTR [rdx]
	movsx	edx, dx
	sub	eax, edx
	cdq
	xor	eax, edx
	sub	eax, edx
	mov	WORD PTR -66[rbp], ax
	movzx	eax, WORD PTR -68[rbp]
	cmp	ax, WORD PTR -66[rbp]
	jge	.L6
	movzx	eax, WORD PTR -66[rbp]
	mov	WORD PTR -68[rbp], ax
.L6:
	add	DWORD PTR -64[rbp], 4
.L5:
	cmp	DWORD PTR -64[rbp], 4194303
	jle	.L7
	cmp	WORD PTR -68[rbp], 50
	jle	.L9
	movsx	eax, WORD PTR -68[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L10:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"480791.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"socket\000"
	.align	2
.LC1:
	.ascii	"192.168.1.100\000"
	.align	2
.LC2:
	.ascii	"connect\000"
	.align	2
.LC3:
	.ascii	"%d\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #33554432
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-44]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L12+4
	bl	perror
	mov	r3, #1
	b	.L10
.L2:
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r0, .L12+8
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r0, .L12+12
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L12+16
	bl	perror
	mov	r3, #1
	b	.L10
.L4:
	mov	r3, #8
	str	r3, [fp, #-36]
	ldr	r3, .L12+20
	str	r3, [fp, #-32]
	ldr	r3, .L12+24
	str	r3, [fp, #-28]
	sub	r1, fp, #36
	mov	r3, #16384
	mov	r2, #12
	ldr	r0, [fp, #-40]
	bl	send
.L9:
	mov	r3, #256
	mov	r2, #33554432
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	recv
	mov	r3, #0
	strh	r3, [fp, #-52]	@ movhi
	mov	r3, #4
	str	r3, [fp, #-48]
	b	.L5
.L7:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldrsh	r3, [r3]
	mov	r1, r3
	ldr	r3, [fp, #-48]
	sub	r3, r3, #-2147483644
	lsl	r3, r3, #1
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldrsh	r3, [r3]
	sub	r3, r1, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	strh	r3, [fp, #-50]	@ movhi
	ldrsh	r2, [fp, #-52]
	ldrsh	r3, [fp, #-50]
	cmp	r2, r3
	bge	.L6
	ldrh	r3, [fp, #-50]	@ movhi
	strh	r3, [fp, #-52]	@ movhi
.L6:
	ldr	r3, [fp, #-48]
	add	r3, r3, #4
	str	r3, [fp, #-48]
.L5:
	ldr	r3, [fp, #-48]
	cmp	r3, #4194304
	blt	.L7
	ldrsh	r3, [fp, #-52]
	cmp	r3, #50
	ble	.L9
	ldrsh	r3, [fp, #-52]
	mov	r1, r3
	ldr	r0, .L12+28
	bl	printf
	b	.L9
.L10:
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	1001
	.word	.LC2
	.word	278435456
	.word	546870912
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
