	.file	"658544.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"socket"
.LC1:
	.string	"224.0.0.242"
.LC2:
	.string	"time is %-24.24s : %s"
.LC3:
	.string	"sending: %s\n"
.LC4:
	.string	"sendto"
.LC5:
	.string	"bind"
.LC6:
	.string	"setsockopt mreq"
.LC7:
	.string	"recvfrom"
.LC8:
	.string	"%s: message = \"%s\"\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
	push	rbx
	sub	rsp, 232
	.cfi_offset 3, -24
	mov	DWORD PTR -228[rbp], edi
	mov	QWORD PTR -240[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -208[rbp], eax
	cmp	DWORD PTR -208[rbp], 0
	jns	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rax, -192[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -192[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -188[rbp], eax
	mov	edi, 42424
	call	htons@PLT
	mov	WORD PTR -190[rbp], ax
	mov	DWORD PTR -212[rbp], 16
	cmp	DWORD PTR -228[rbp], 1
	jle	.L3
	lea	rdi, .LC1[rip]
	call	inet_addr@PLT
	mov	DWORD PTR -188[rbp], eax
.L5:
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -200[rbp], rax
	mov	rax, QWORD PTR -240[rbp]
	add	rax, 8
	mov	rbx, QWORD PTR [rax]
	lea	rax, -200[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	rdx, rax
	lea	rax, -176[rbp]
	mov	r8, rbx
	mov	rcx, rdx
	lea	rdx, .LC2[rip]
	mov	esi, 140
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -176[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ecx, DWORD PTR -212[rbp]
	lea	rdx, -192[rbp]
	lea	rsi, -176[rbp]
	mov	eax, DWORD PTR -208[rbp]
	mov	r9d, ecx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 150
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -204[rbp], eax
	cmp	DWORD PTR -204[rbp], 0
	jns	.L4
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	edi, 5
	call	sleep@PLT
	jmp	.L5
.L3:
	lea	rcx, -192[rbp]
	mov	eax, DWORD PTR -208[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L6
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	lea	rdi, .LC1[rip]
	call	inet_addr@PLT
	mov	DWORD PTR -200[rbp], eax
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -196[rbp], eax
	lea	rdx, -200[rbp]
	mov	eax, DWORD PTR -208[rbp]
	mov	r8d, 8
	mov	rcx, rdx
	mov	edx, 35
	mov	esi, 0
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L7
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	lea	rcx, -212[rbp]
	lea	rdx, -192[rbp]
	lea	rsi, -176[rbp]
	mov	eax, DWORD PTR -208[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 150
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -204[rbp], eax
	cmp	DWORD PTR -204[rbp], 0
	jns	.L8
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	cmp	DWORD PTR -204[rbp], 0
	je	.L14
	mov	eax, DWORD PTR -188[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rcx, rax
	lea	rax, -176[rbp]
	mov	rdx, rax
	mov	rsi, rcx
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L14:
	nop
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	mov	rbx, QWORD PTR -8[rbp]
	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	"658544.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"socket\000"
	.align	2
.LC1:
	.ascii	"224.0.0.242\000"
	.align	2
.LC2:
	.ascii	"time is %-24.24s : %s\000"
	.align	2
.LC3:
	.ascii	"sending: %s\012\000"
	.align	2
.LC4:
	.ascii	"sendto\000"
	.align	2
.LC5:
	.ascii	"bind\000"
	.align	2
.LC6:
	.ascii	"setsockopt mreq\000"
	.align	2
.LC7:
	.ascii	"recvfrom\000"
	.align	2
.LC8:
	.ascii	"%s: message = \"%s\"\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 200
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #208
	str	r0, [fp, #-200]
	str	r1, [fp, #-204]
	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, #-192]
	ldr	r3, [fp, #-192]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L15+4
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #176
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	mov	r3, #2
	strh	r3, [fp, #-176]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-172]
	ldr	r0, .L15+8
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-174]	@ movhi
	mov	r3, #16
	str	r3, [fp, #-196]
	ldr	r3, [fp, #-200]
	cmp	r3, #1
	ble	.L3
	ldr	r0, .L15+12
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-172]
.L5:
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [fp, #-184]
	sub	r3, fp, #184
	mov	r0, r3
	bl	ctime
	mov	r2, r0
	ldr	r3, [fp, #-204]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r0, fp, #160
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L15+16
	mov	r1, #140
	bl	snprintf
	sub	r3, fp, #160
	mov	r1, r3
	ldr	r0, .L15+20
	bl	printf
	ldr	r3, [fp, #-196]
	sub	r1, fp, #160
	str	r3, [sp, #4]
	sub	r3, fp, #176
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #150
	ldr	r0, [fp, #-192]
	bl	sendto
	str	r0, [fp, #-188]
	ldr	r3, [fp, #-188]
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L15+24
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	mov	r0, #5
	bl	sleep
	b	.L5
.L3:
	sub	r3, fp, #176
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-192]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L15+28
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	ldr	r0, .L15+12
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-184]
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-180]
	sub	r3, fp, #184
	mov	r2, #8
	str	r2, [sp]
	mov	r2, #35
	mov	r1, #0
	ldr	r0, [fp, #-192]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L15+32
	bl	perror
	mov	r0, #1
	bl	exit
.L7:
	sub	r1, fp, #160
	sub	r3, fp, #196
	str	r3, [sp, #4]
	sub	r3, fp, #176
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #150
	ldr	r0, [fp, #-192]
	bl	recvfrom
	str	r0, [fp, #-188]
	ldr	r3, [fp, #-188]
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L15+36
	bl	perror
	mov	r0, #1
	bl	exit
.L8:
	ldr	r3, [fp, #-188]
	cmp	r3, #0
	beq	.L14
	ldr	r0, [fp, #-172]
	bl	inet_ntoa
	mov	r1, r0
	sub	r3, fp, #160
	mov	r2, r3
	ldr	r0, .L15+40
	bl	printf
	b	.L7
.L14:
	nop
	mov	r3, #0
	ldr	r2, .L15
	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}
.L16:
	.align	2
.L15:
	.word	.LC9
	.word	.LC0
	.word	42424
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
