	.file	"63324.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Invalid entry!"
	.text
	.globl	info
	.type	info, @function
info:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	jne	.L3
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	info, .-info
	.globl	error
	.type	error, @function
error:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	error, .-error
	.section	.rodata
	.align 8
.LC1:
	.string	"Enough arguments not provided."
.LC2:
	.string	"Socket creation error.\n"
.LC3:
	.string	"Socket created successfully."
.LC4:
	.string	"binding failed"
.LC5:
	.string	"Binded Successfully."
.LC6:
	.string	"Data received from client."
	.align 8
.LC7:
	.string	"%d ip's sent for the given hostname.\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 1144
	.cfi_offset 3, -24
	mov	DWORD PTR -1140[rbp], edi
	mov	QWORD PTR -1152[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -1140[rbp], 1
	jg	.L6
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR -1152[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -1116[rbp], eax
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1112[rbp], eax
	cmp	DWORD PTR -1112[rbp], 0
	jns	.L7
	lea	rdi, .LC2[rip]
	call	error
	jmp	.L8
.L7:
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L8:
	lea	rax, -1088[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -1072[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -1088[rbp], 2
	mov	DWORD PTR -1084[rbp], 0
	mov	eax, DWORD PTR -1116[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -1086[rbp], ax
	lea	rcx, -1088[rbp]
	mov	eax, DWORD PTR -1112[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L9
	lea	rdi, .LC4[rip]
	call	error
	jmp	.L15
.L9:
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L15:
	mov	DWORD PTR -1124[rbp], 16
	lea	rcx, -1124[rbp]
	lea	rdx, -1072[rbp]
	lea	rsi, -1056[rbp]
	mov	eax, DWORD PTR -1112[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 256
	mov	edx, 1024
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -1108[rbp], eax
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -1108[rbp]
	sub	eax, 1
	cdqe
	mov	BYTE PTR -1056[rbp+rax], 0
	lea	rax, -1056[rbp]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -1096[rbp], rax
	mov	DWORD PTR -1120[rbp], 0
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -1096[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -1120[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax]
	call	inet_ntoa@PLT
	mov	QWORD PTR -1104[rbp], rax
	lea	rax, -1056[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 128
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	mov	rdx, QWORD PTR -1104[rbp]
	lea	rax, -1056[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -1124[rbp]
	mov	ebx, eax
	lea	rax, -1056[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -1072[rbp]
	mov	rsi, QWORD PTR -1104[rbp]
	mov	eax, DWORD PTR -1112[rbp]
	mov	r9d, ebx
	mov	r8, rcx
	mov	ecx, 2048
	mov	edi, eax
	call	sendto@PLT
	add	DWORD PTR -1120[rbp], 1
.L11:
	mov	rax, QWORD PTR -1096[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -1120[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L12
	cmp	DWORD PTR -1120[rbp], 0
	jle	.L13
	lea	rax, -1056[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 128
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	lea	rax, -1056[rbp]
	mov	DWORD PTR [rax], 1701736292
	mov	BYTE PTR 4[rax], 0
	mov	eax, DWORD PTR -1124[rbp]
	mov	ebx, eax
	lea	rax, -1056[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -1072[rbp]
	mov	rsi, QWORD PTR -1104[rbp]
	mov	eax, DWORD PTR -1112[rbp]
	mov	r9d, ebx
	mov	r8, rcx
	mov	ecx, 2048
	mov	edi, eax
	call	sendto@PLT
	jmp	.L14
.L13:
	lea	rax, -1056[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 128
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	lea	rax, -1056[rbp]
	movabs	rbx, 9325449611211333
	mov	QWORD PTR [rax], rbx
	mov	eax, DWORD PTR -1124[rbp]
	mov	ebx, eax
	lea	rax, -1056[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -1072[rbp]
	mov	rsi, QWORD PTR -1104[rbp]
	mov	eax, DWORD PTR -1112[rbp]
	mov	r9d, ebx
	mov	r8, rcx
	mov	ecx, 2048
	mov	edi, eax
	call	sendto@PLT
.L14:
	mov	eax, DWORD PTR -1120[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L15
	.cfi_endproc
.LFE8:
	.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	"63324.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Invalid entry!\000"
	.text
	.align	2
	.global	info
	.syntax unified
	.arm
	.fpu softvfp
	.type	info, %function
info:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L4
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	info, .-info
	.align	2
	.global	error
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	error, .-error
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Enough arguments not provided.\000"
	.align	2
.LC2:
	.ascii	"Socket creation error.\012\000"
	.align	2
.LC3:
	.ascii	"Socket created successfully.\000"
	.align	2
.LC4:
	.ascii	"binding failed\000"
	.align	2
.LC5:
	.ascii	"Binded Successfully.\000"
	.align	2
.LC6:
	.ascii	"Data received from client.\000"
	.align	2
.LC7:
	.ascii	"done\000"
	.align	2
.LC8:
	.ascii	"Error!!\000"
	.align	2
.LC9:
	.ascii	"%d ip's sent for the given hostname.\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1096
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1104
	str	r0, [fp, #-1096]
	str	r1, [fp, #-1100]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1096]
	cmp	r3, #1
	bgt	.L8
	ldr	r0, .L19+4
	bl	puts
	mov	r0, #0
	bl	exit
.L8:
	ldr	r3, [fp, #-1100]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-1080]
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1076]
	ldr	r3, [fp, #-1076]
	cmp	r3, #0
	bge	.L9
	ldr	r0, .L19+8
	bl	error
	b	.L10
.L9:
	ldr	r0, .L19+12
	bl	puts
.L10:
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4
	sub	r3, r3, #1056
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-1060]
	ldr	r3, [fp, #-1080]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #1056
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-1076]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L11
	ldr	r0, .L19+16
	bl	error
	b	.L17
.L11:
	ldr	r0, .L19+20
	bl	puts
.L17:
	mov	r3, #16
	str	r3, [fp, #-1092]
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #1088
	sub	r3, r3, #4
	str	r3, [sp, #4]
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #256
	mov	r2, #1024
	ldr	r0, [fp, #-1076]
	bl	recvfrom
	str	r0, [fp, #-1072]
	ldr	r0, .L19+24
	bl	puts
	ldr	r3, [fp, #-1072]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-1028]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	gethostbyname
	str	r0, [fp, #-1068]
	mov	r3, #0
	str	r3, [fp, #-1084]
	b	.L13
.L14:
	ldr	r3, [fp, #-1068]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-1084]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r0, [r3]
	bl	inet_ntoa
	str	r0, [fp, #-1088]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #1024
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-1088]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-1092]
	str	r3, [sp, #4]
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #2048
	ldr	r1, [fp, #-1088]
	ldr	r0, [fp, #-1076]
	bl	sendto
	ldr	r3, [fp, #-1084]
	add	r3, r3, #1
	str	r3, [fp, #-1084]
.L13:
	ldr	r3, [fp, #-1068]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-1084]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-1084]
	cmp	r3, #0
	ble	.L15
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #1024
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, .L19+28
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-1092]
	str	r3, [sp, #4]
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #2048
	ldr	r1, [fp, #-1088]
	ldr	r0, [fp, #-1076]
	bl	sendto
	b	.L16
.L15:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #1024
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, .L19+32
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-1092]
	str	r3, [sp, #4]
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #2048
	ldr	r1, [fp, #-1088]
	ldr	r0, [fp, #-1076]
	bl	sendto
.L16:
	ldr	r1, [fp, #-1084]
	ldr	r0, .L19+36
	bl	printf
	b	.L17
.L20:
	.align	2
.L19:
	.word	.LC10
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
