	.file	"377726.c"
	.intel_syntax noprefix
	.text
	.local	buf
	.comm	buf,8096,32
	.section	.rodata
	.align 8
.LC0:
	.string	"usage: %s g.g.g.g interface_name (or i.i.i.i) port\n"
.LC1:
	.string	"%u.%u.%u.%u"
.LC2:
	.string	"bad group address\n"
.LC3:
	.string	"Bad group interface address\n"
.LC4:
	.string	"can not open socket"
	.align 8
.LC5:
	.string	"setsockopt SO_REUSEADDR failed"
.LC6:
	.string	"bind"
.LC7:
	.string	"can not join group"
.LC8:
	.string	"Joined group"
.LC9:
	.string	"recvfrom"
.LC10:
	.string	"quit"
	.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
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	mov	DWORD PTR -112[rbp], 1
	mov	DWORD PTR -108[rbp], 0
	cmp	DWORD PTR -116[rbp], 3
	jg	.L2
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdi, -76[rbp]
	lea	rsi, -80[rbp]
	lea	rcx, -84[rbp]
	lea	rdx, -88[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 4
	je	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -88[rbp]
	sal	eax, 24
	mov	edx, eax
	mov	eax, DWORD PTR -84[rbp]
	sal	eax, 16
	or	edx, eax
	mov	eax, DWORD PTR -80[rbp]
	sal	eax, 8
	or	edx, eax
	mov	eax, DWORD PTR -76[rbp]
	or	eax, edx
	mov	edi, eax
	call	htonl@PLT
	mov	DWORD PTR -56[rbp], eax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	je	.L4
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -56[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdi, -92[rbp]
	lea	rsi, -96[rbp]
	lea	rcx, -100[rbp]
	lea	rdx, -104[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 4
	je	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR -104[rbp]
	sal	eax, 24
	mov	edx, eax
	mov	eax, DWORD PTR -100[rbp]
	sal	eax, 16
	or	edx, eax
	mov	eax, DWORD PTR -96[rbp]
	sal	eax, 8
	or	edx, eax
	mov	eax, DWORD PTR -92[rbp]
	or	eax, edx
	mov	edi, eax
	call	htonl@PLT
	mov	DWORD PTR -52[rbp], eax
.L5:
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -72[rbp], 0
	jns	.L7
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rdx, -112[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L8
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L9
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	lea	rdx, -56[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	r8d, 8
	mov	rcx, rdx
	mov	edx, 35
	mov	esi, 0
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L10
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	DWORD PTR -108[rbp], 16
.L14:
	lea	rax, -48[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -108[rbp]
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 8096
	lea	rsi, buf[rip]
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 0
	jns	.L11
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	lea	rsi, .LC10[rip]
	lea	rdi, buf[rip]
	call	strcmp@PLT
	test	eax, eax
	je	.L17
	lea	rdi, buf[rip]
	call	puts@PLT
	jmp	.L14
.L17:
	nop
	mov	eax, DWORD PTR -72[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
	.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	"377726.c"
	.text
	.local	buf
	.comm	buf,8096,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: %s g.g.g.g interface_name (or i.i.i.i) port\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"%u.%u.%u.%u\000"
	.align	2
.LC2:
	.ascii	"bad group address\012\000"
	.align	2
.LC3:
	.ascii	"Bad group interface address\012\000"
	.align	2
.LC4:
	.ascii	"can not open socket\000"
	.align	2
.LC5:
	.ascii	"setsockopt SO_REUSEADDR failed\000"
	.align	2
.LC6:
	.ascii	"bind\000"
	.align	2
.LC7:
	.ascii	"can not join group\000"
	.align	2
.LC8:
	.ascii	"Joined group\000"
	.align	2
.LC9:
	.ascii	"recvfrom\000"
	.align	2
.LC10:
	.ascii	"quit\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #1
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-104]
	cmp	r3, #3
	bgt	.L2
	ldr	r3, .L18+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-108]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L18+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-108]
	add	r3, r3, #4
	ldr	r0, [r3]
	sub	r1, fp, #72
	sub	r2, fp, #76
	sub	r3, fp, #64
	str	r3, [sp, #4]
	sub	r3, fp, #68
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L18+12
	bl	__isoc99_sscanf
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #4
	beq	.L3
	ldr	r3, .L18+4
	ldr	r3, [r3]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L18+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-76]
	lsl	r2, r3, #24
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #8
	orr	r2, r2, r3
	ldr	r3, [fp, #-64]
	orr	r3, r2, r3
	mov	r0, r3
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-108]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	gethostbyname
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #48
	add	r3, r3, #4
	mov	r0, r3
	bl	memcpy
	b	.L5
.L4:
	ldr	r3, [fp, #-108]
	add	r3, r3, #8
	ldr	r0, [r3]
	sub	r1, fp, #88
	sub	r2, fp, #92
	sub	r3, fp, #80
	str	r3, [sp, #4]
	sub	r3, fp, #84
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L18+12
	bl	__isoc99_sscanf
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #4
	beq	.L6
	ldr	r3, .L18+4
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L18+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, [fp, #-92]
	lsl	r2, r3, #24
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #8
	orr	r2, r2, r3
	ldr	r3, [fp, #-80]
	orr	r3, r2, r3
	mov	r0, r3
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-44]
.L5:
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L18+24
	bl	perror
	mov	r0, #1
	bl	exit
.L7:
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r3, [fp, #-108]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #100
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-60]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L18+28
	bl	perror
	mov	r0, #1
	bl	exit
.L8:
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-60]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L9
	ldr	r0, .L18+32
	bl	perror
	mov	r0, #1
	bl	exit
.L9:
	sub	r3, fp, #48
	mov	r2, #8
	str	r2, [sp]
	mov	r2, #35
	mov	r1, #0
	ldr	r0, [fp, #-60]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L10
	ldr	r0, .L18+36
	bl	perror
	mov	r0, #1
	bl	exit
.L10:
	ldr	r0, .L18+40
	bl	puts
	mov	r3, #16
	str	r3, [fp, #-96]
.L14:
	sub	r3, fp, #40
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #96
	str	r3, [sp, #4]
	sub	r3, fp, #40
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, .L18+44
	ldr	r1, .L18+48
	ldr	r0, [fp, #-60]
	bl	recvfrom
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bge	.L11
	ldr	r0, .L18+52
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	ldr	r1, .L18+56
	ldr	r0, .L18+48
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r0, .L18+48
	bl	puts
	b	.L14
.L17:
	nop
	ldr	r0, [fp, #-60]
	bl	close
	mov	r0, #0
	bl	exit
.L19:
	.align	2
.L18:
	.word	.LC11
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	8096
	.word	buf
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
