	.file	"135751.c"
	.intel_syntax noprefix
	.text
	.globl	global
	.bss
	.type	global, @object
	.size	global, 5
global:
	.zero	5
	.section	.rodata
.LC0:
	.string	"127.0.0.1"
	.align 8
.LC1:
	.string	"error: first parameter is not a valid address family"
	.align 8
.LC2:
	.string	"char string (second parameter does not contain valid ipaddress"
.LC3:
	.string	"cannot create socket"
.LC4:
	.string	"error connect failed"
	.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	mov	edi, 10000
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rax, -32[rbp]
	add	rax, 4
	mov	rdx, rax
	lea	rsi, .LC0[rip]
	mov	edi, 2
	call	inet_pton@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	jns	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	cmp	DWORD PTR -40[rbp], 0
	jne	.L3
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	edx, 6
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L4
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	jns	.L5
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	lea	rcx, -12[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, 2
	mov	edi, eax
	call	shutdown@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -44[rbp], 0
	movzx	eax, BYTE PTR -12[rbp]
	cmp	al, 98
	jne	.L6
	add	DWORD PTR -44[rbp], 1
.L6:
	movzx	eax, BYTE PTR -11[rbp]
	cmp	al, 97
	jne	.L7
	add	DWORD PTR -44[rbp], 1
.L7:
	movzx	eax, BYTE PTR -10[rbp]
	cmp	al, 100
	jne	.L8
	add	DWORD PTR -44[rbp], 1
.L8:
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 33
	jne	.L9
	add	DWORD PTR -44[rbp], 1
.L9:
	cmp	DWORD PTR -44[rbp], 4
	jne	.L10
	call	abort@PLT
.L10:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"135751.c"
	.text
	.comm	global,5,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"127.0.0.1\000"
	.align	2
.LC1:
	.ascii	"error: first parameter is not a valid address famil"
	.ascii	"y\000"
	.align	2
.LC2:
	.ascii	"char string (second parameter does not contain vali"
	.ascii	"d ipaddress\000"
	.align	2
.LC3:
	.ascii	"cannot create socket\000"
	.align	2
.LC4:
	.ascii	"error connect failed\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #28
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-28]	@ movhi
	ldr	r0, .L13+4
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-26]	@ movhi
	sub	r3, fp, #28
	add	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L13+8
	mov	r0, #2
	bl	inet_pton
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L13+12
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L13+16
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	mov	r2, #6
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L13+20
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	sub	r3, fp, #28
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	connect
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L13+24
	bl	perror
	ldr	r0, [fp, #-32]
	bl	close
	mov	r0, #1
	bl	exit
.L5:
	sub	r3, fp, #12
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	read
	mov	r1, #2
	ldr	r0, [fp, #-32]
	bl	shutdown
	ldr	r0, [fp, #-32]
	bl	close
	mov	r3, #0
	str	r3, [fp, #-40]
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L6
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L6:
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L7
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L7:
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	cmp	r3, #100
	bne	.L8
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L8:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #33
	bne	.L9
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L9:
	ldr	r3, [fp, #-40]
	cmp	r3, #4
	bne	.L10
	bl	abort
.L10:
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC5
	.word	10000
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
