	.file	"372168.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage:  %s <Multicast Address> <Port> <Send String> [<TTL>]\n"
.LC1:
	.string	"socket() failed"
.LC2:
	.string	"setsockopt() failed"
	.align 8
.LC3:
	.string	"sendto() sent a different number of bytes than expected"
	.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -68[rbp], 3
	jle	.L2
	cmp	DWORD PTR -68[rbp], 5
	jle	.L3
.L2:
	mov	rax, QWORD PTR -80[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
.L3:
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	WORD PTR -58[rbp], ax
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -40[rbp], rax
	cmp	DWORD PTR -68[rbp], 5
	jne	.L4
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	BYTE PTR -59[rbp], al
	jmp	.L5
.L4:
	mov	BYTE PTR -59[rbp], 1
.L5:
	mov	edx, 17
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -56[rbp], eax
	cmp	DWORD PTR -56[rbp], 0
	jns	.L6
	lea	rdi, .LC1[rip]
	call	DieWithError@PLT
.L6:
	lea	rdx, -59[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	r8d, 1
	mov	rcx, rdx
	mov	edx, 33
	mov	esi, 0
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L7
	lea	rdi, .LC2[rip]
	call	DieWithError@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 -48[rbp]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	DWORD PTR -28[rbp], eax
	movzx	eax, WORD PTR -58[rbp]
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -52[rbp], eax
.L9:
	mov	edx, DWORD PTR -52[rbp]
	lea	rcx, -32[rbp]
	mov	rsi, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	r9d, 16
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	mov	edx, DWORD PTR -52[rbp]
	cmp	rax, rdx
	je	.L8
	lea	rdi, .LC3[rip]
	call	DieWithError@PLT
.L8:
	mov	edi, 3
	call	sleep@PLT
	jmp	.L9
	.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	"372168.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage:  %s <Multicast Address> <Port> <Send String>"
	.ascii	" [<TTL>]\012\000"
	.align	2
.LC1:
	.ascii	"socket() failed\000"
	.align	2
.LC2:
	.ascii	"setsockopt() failed\000"
	.align	2
.LC3:
	.ascii	"sendto() sent a different number of bytes than expe"
	.ascii	"cted\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	cmp	r3, #3
	ble	.L2
	ldr	r3, [fp, #-48]
	cmp	r3, #5
	ble	.L3
.L2:
	ldr	r3, .L11+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L11+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	strh	r3, [fp, #-42]	@ movhi
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-48]
	cmp	r3, #5
	bne	.L4
	ldr	r3, [fp, #-52]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [fp, #-43]
	b	.L5
.L4:
	mov	r3, #1
	strb	r3, [fp, #-43]
.L5:
	mov	r2, #17
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L11+12
	bl	DieWithError
.L6:
	sub	r3, fp, #43
	mov	r2, #1
	str	r2, [sp]
	mov	r2, #33
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L11+16
	bl	DieWithError
.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	r0, [fp, #-40]
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-20]
	ldrh	r3, [fp, #-42]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	ldr	r0, [fp, #-36]
	bl	strlen
	str	r0, [fp, #-28]
.L9:
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #24
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	sendto
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-28]
	cmp	r3, r2
	beq	.L8
	ldr	r0, .L11+20
	bl	DieWithError
.L8:
	mov	r0, #3
	bl	sleep
	b	.L9
.L12:
	.align	2
.L11:
	.word	.LC4
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
