	.file	"13975.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s"
	.text
	.globl	print_exit
	.type	print_exit, @function
print_exit:
.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
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	print_exit, .-print_exit
	.section	.rodata
.LC1:
	.string	"socket create failed"
	.align 8
.LC2:
	.string	"there is no group ip address in argv!"
	.align 8
.LC3:
	.string	"there is no group address , 224.0.0.0 - 239.255.255.255\n"
.LC4:
	.string	"wrong local ip address"
.LC5:
	.string	"setsockopt wrong"
.LC6:
	.string	"wrong local ip address 2 !"
.LC7:
	.string	"no ip address"
.LC8:
	.string	"bind address error"
.LC9:
	.string	"peer:%s"
	.text
	.globl	main
	.type	main, @function
main:
.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, 336
	mov	DWORD PTR -324[rbp], edi
	mov	QWORD PTR -336[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -312[rbp], eax
	cmp	DWORD PTR -312[rbp], 0
	jns	.L3
	lea	rdi, .LC1[rip]
	call	print_exit
.L3:
	lea	rax, -296[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -304[rbp], rax
	cmp	QWORD PTR -304[rbp], 0
	jne	.L5
	lea	rdi, .LC2[rip]
	call	print_exit
	jmp	.L5
.L4:
	lea	rdi, .LC3[rip]
	call	print_exit
.L5:
	mov	rax, QWORD PTR -304[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -304[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rcx, QWORD PTR [rax]
	lea	rax, -320[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
	mov	eax, DWORD PTR -320[rbp]
	mov	DWORD PTR -296[rbp], eax
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, -296[rbp]
	add	rdx, 4
	mov	rsi, rax
	mov	edi, 2
	call	inet_pton@PLT
	test	eax, eax
	jg	.L6
	lea	rdi, .LC4[rip]
	call	print_exit
.L6:
	lea	rdx, -296[rbp]
	mov	eax, DWORD PTR -312[rbp]
	mov	r8d, 8
	mov	rcx, rdx
	mov	edx, 35
	mov	esi, 0
	mov	edi, eax
	call	setsockopt@PLT
	cmp	eax, -1
	jne	.L7
	lea	rdi, .LC5[rip]
	call	print_exit
.L7:
	mov	DWORD PTR -316[rbp], 16
	mov	eax, DWORD PTR -316[rbp]
	mov	edx, eax
	lea	rax, -288[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -288[rbp], 2
	mov	edi, 9999
	call	htons@PLT
	mov	WORD PTR -286[rbp], ax
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L8
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -288[rbp]
	add	rdx, 4
	mov	rsi, rax
	mov	edi, 2
	call	inet_pton@PLT
	test	eax, eax
	jg	.L9
	lea	rdi, .LC6[rip]
	call	print_exit
	jmp	.L9
.L8:
	lea	rdi, .LC7[rip]
	call	print_exit
.L9:
	lea	rcx, -288[rbp]
	mov	eax, DWORD PTR -312[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L11
	lea	rdi, .LC8[rip]
	call	print_exit
.L11:
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 32
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	lea	rcx, -316[rbp]
	lea	rdx, -288[rbp]
	lea	rsi, -272[rbp]
	mov	eax, DWORD PTR -312[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 255
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -308[rbp], eax
	mov	eax, DWORD PTR -308[rbp]
	mov	BYTE PTR -272[rbp+rax], 0
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
	.cfi_endproc
.LFE7:
	.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	"13975.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\000"
	.text
	.align	2
	.global	print_exit
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_exit, %function
print_exit:
	@ 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	r1, [fp, #-8]
	ldr	r0, .L2
	bl	printf
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	print_exit, .-print_exit
	.section	.rodata
	.align	2
.LC1:
	.ascii	"socket create failed\000"
	.align	2
.LC2:
	.ascii	"there is no group ip address in argv!\000"
	.align	2
.LC3:
	.ascii	"there is no group address , 224.0.0.0 - 239.255.255"
	.ascii	".255\012\000"
	.align	2
.LC4:
	.ascii	"wrong local ip address\000"
	.align	2
.LC5:
	.ascii	"setsockopt wrong\000"
	.align	2
.LC6:
	.ascii	"wrong local ip address 2 !\000"
	.align	2
.LC7:
	.ascii	"no ip address\000"
	.align	2
.LC8:
	.ascii	"bind address error\000"
	.align	2
.LC9:
	.ascii	"peer:%s\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 = 312
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #320
	str	r0, [fp, #-312]
	str	r1, [fp, #-316]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L15+4
	bl	print_exit
.L5:
	sub	r3, fp, #288
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	ldr	r3, [fp, #-316]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-316]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	gethostbyname
	str	r0, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L15+8
	bl	print_exit
	b	.L7
.L6:
	ldr	r0, .L15+12
	bl	print_exit
.L7:
	ldr	r3, [fp, #-300]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-300]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #308
	mov	r0, r3
	bl	memmove
	ldr	r3, [fp, #-308]
	str	r3, [fp, #-288]
	ldr	r3, [fp, #-316]
	add	r3, r3, #8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-316]
	add	r3, r3, #8
	ldr	r1, [r3]
	sub	r3, fp, #288
	add	r3, r3, #4
	mov	r2, r3
	mov	r0, #2
	bl	inet_pton
	mov	r3, r0
	cmp	r3, #0
	bgt	.L8
	ldr	r0, .L15+16
	bl	print_exit
.L8:
	sub	r3, fp, #288
	mov	r2, #8
	str	r2, [sp]
	mov	r2, #35
	mov	r1, #0
	ldr	r0, [fp, #-296]
	bl	setsockopt
	mov	r3, r0
	cmn	r3, #1
	bne	.L9
	ldr	r0, .L15+20
	bl	print_exit
.L9:
	mov	r3, #16
	str	r3, [fp, #-304]
	ldr	r2, [fp, #-304]
	sub	r3, fp, #280
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4
	sub	r3, r3, #276
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L15+24
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #276
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, [fp, #-316]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-316]
	add	r3, r3, #4
	ldr	r1, [r3]
	sub	r3, fp, #280
	add	r3, r3, #4
	mov	r2, r3
	mov	r0, #2
	bl	inet_pton
	mov	r3, r0
	cmp	r3, #0
	bgt	.L11
	ldr	r0, .L15+28
	bl	print_exit
	b	.L11
.L10:
	ldr	r0, .L15+32
	bl	print_exit
.L11:
	sub	r3, fp, #280
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-296]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L13
	ldr	r0, .L15+36
	bl	print_exit
.L13:
	sub	r3, fp, #264
	mov	r0, r3
	mov	r3, #256
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r1, fp, #264
	sub	r3, fp, #304
	str	r3, [sp, #4]
	sub	r3, fp, #280
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #255
	ldr	r0, [fp, #-296]
	bl	recvfrom
	mov	r3, r0
	str	r3, [fp, #-292]
	sub	r2, fp, #264
	ldr	r3, [fp, #-292]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, .L15+40
	bl	printf
	b	.L13
.L16:
	.align	2
.L15:
	.word	.LC10
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	9999
	.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
