	.file	"676868.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"unknow args"
.LC1:
	.string	"s:p:t:u:r"
.LC2:
	.string	"fail to create socket: %d\n"
.LC3:
	.string	"fail to set sock opt: %s\n"
.LC4:
	.string	"server ip is %s\n"
.LC5:
	.string	"invalid address"
.LC6:
	.string	"fail to bind addr: %s\n"
.LC7:
	.string	"fail to listen: %s\n"
.LC8:
	.string	"accept connection from %s\n"
.LC9:
	.string	"udp server is started"
.LC10:
	.string	"recv 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
	sub	rsp, 624
	mov	DWORD PTR -612[rbp], edi
	mov	QWORD PTR -624[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -568[rbp], 0
	mov	DWORD PTR -596[rbp], 1
	mov	QWORD PTR -528[rbp], 0
	mov	QWORD PTR -520[rbp], 0
	lea	rdx, -512[rbp]
	mov	eax, 0
	mov	ecx, 62
	mov	rdi, rdx
	rep stosq
	mov	DWORD PTR -580[rbp], 0
	mov	DWORD PTR -576[rbp], 0
	jmp	.L2
.L10:
	mov	eax, DWORD PTR -572[rbp]
	sub	eax, 112
	cmp	eax, 5
	ja	.L3
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L5[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L5[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L9-.L5
	.long	.L3-.L5
	.long	.L8-.L5
	.long	.L7-.L5
	.long	.L6-.L5
	.long	.L4-.L5
	.text
.L7:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -568[rbp], rax
	jmp	.L2
.L9:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -588[rbp], eax
	jmp	.L2
.L8:
	mov	DWORD PTR -580[rbp], 1
	jmp	.L2
.L6:
	mov	DWORD PTR -576[rbp], 1
	jmp	.L2
.L4:
	mov	DWORD PTR -576[rbp], 0
	jmp	.L2
.L3:
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L2:
	mov	rcx, QWORD PTR -624[rbp]
	mov	eax, DWORD PTR -612[rbp]
	lea	rdx, .LC1[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -572[rbp], eax
	cmp	DWORD PTR -572[rbp], -1
	jne	.L10
	cmp	DWORD PTR -576[rbp], 0
	jne	.L11
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -584[rbp], eax
	jmp	.L12
.L11:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -584[rbp], eax
.L12:
	cmp	DWORD PTR -584[rbp], 0
	jns	.L13
	mov	eax, DWORD PTR -584[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L13:
	cmp	DWORD PTR -580[rbp], 0
	je	.L14
	lea	rdx, -596[rbp]
	mov	eax, DWORD PTR -584[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L14
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L14:
	mov	WORD PTR -560[rbp], 2
	mov	eax, DWORD PTR -588[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -558[rbp], ax
	mov	rax, QWORD PTR -568[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -568[rbp], 0
	je	.L15
	lea	rax, -560[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -568[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	inet_aton@PLT
	test	eax, eax
	jne	.L16
.L15:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	DWORD PTR -556[rbp], 0
.L16:
	lea	rcx, -560[rbp]
	mov	eax, DWORD PTR -584[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L17
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L17:
	cmp	DWORD PTR -576[rbp], 0
	je	.L18
	mov	eax, DWORD PTR -584[rbp]
	mov	esi, 4
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L20
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L21:
	mov	eax, DWORD PTR -540[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L20:
	lea	rdx, -592[rbp]
	lea	rcx, -544[rbp]
	mov	eax, DWORD PTR -584[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	cmp	eax, -1
	jne	.L21
	jmp	.L22
.L18:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L23
.L24:
	lea	rax, -528[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
.L23:
	lea	rsi, -528[rbp]
	mov	eax, DWORD PTR -584[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 512
	mov	edi, eax
	call	recvfrom@PLT
	cmp	rax, -1
	jne	.L24
.L22:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	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	"676868.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"unknow args\000"
	.align	2
.LC1:
	.ascii	"s:p:t:u:r\000"
	.align	2
.LC2:
	.ascii	"fail to create socket: %d\012\000"
	.align	2
.LC3:
	.ascii	"fail to set sock opt: %s\012\000"
	.align	2
.LC4:
	.ascii	"server ip is %s\012\000"
	.align	2
.LC5:
	.ascii	"invalid address\000"
	.align	2
.LC6:
	.ascii	"fail to bind addr: %s\012\000"
	.align	2
.LC7:
	.ascii	"fail to listen: %s\012\000"
	.align	2
.LC8:
	.ascii	"accept connection from %s\012\000"
	.align	2
.LC9:
	.ascii	"udp server is started\000"
	.align	2
.LC10:
	.ascii	"recv message: %s\012\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 = 592
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #600
	str	r0, [fp, #-592]
	str	r1, [fp, #-596]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-576]
	mov	r3, #1
	str	r3, [fp, #-584]
	mov	r3, #0
	str	r3, [fp, #-520]
	sub	r3, fp, #516
	mov	r2, #508
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-564]
	mov	r3, #0
	str	r3, [fp, #-560]
	b	.L2
.L10:
	ldr	r3, [fp, #-556]
	sub	r3, r3, #112
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L9
	.word	.L3
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L4
.L7:
	ldr	r3, .L27+4
	ldr	r3, [r3]
	str	r3, [fp, #-576]
	b	.L2
.L9:
	ldr	r3, .L27+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-572]
	b	.L2
.L8:
	mov	r3, #1
	str	r3, [fp, #-564]
	b	.L2
.L6:
	mov	r3, #1
	str	r3, [fp, #-560]
	b	.L2
.L4:
	mov	r3, #0
	str	r3, [fp, #-560]
	b	.L2
.L3:
	ldr	r0, .L27+8
	bl	puts
.L2:
	ldr	r2, .L27+12
	ldr	r1, [fp, #-596]
	ldr	r0, [fp, #-592]
	bl	getopt
	str	r0, [fp, #-556]
	ldr	r3, [fp, #-556]
	cmn	r3, #1
	bne	.L10
	ldr	r3, [fp, #-560]
	cmp	r3, #0
	bne	.L11
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-568]
	b	.L12
.L11:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-568]
.L12:
	ldr	r3, [fp, #-568]
	cmp	r3, #0
	bge	.L13
	ldr	r1, [fp, #-568]
	ldr	r0, .L27+16
	bl	printf
	mvn	r0, #0
	bl	exit
.L13:
	ldr	r3, [fp, #-564]
	cmp	r3, #0
	beq	.L14
	sub	r3, fp, #584
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-568]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L14
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L27+20
	bl	printf
	mov	r0, #0
	bl	exit
.L14:
	sub	r3, fp, #4
	sub	r3, r3, #548
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-572]
	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, #548
	strh	r2, [r3, #2]	@ movhi
	ldr	r1, [fp, #-576]
	ldr	r0, .L27+24
	bl	printf
	ldr	r3, [fp, #-576]
	cmp	r3, #0
	beq	.L15
	sub	r3, fp, #552
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-576]
	bl	inet_aton
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
.L15:
	ldr	r0, .L27+28
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-548]
.L16:
	sub	r3, fp, #552
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-568]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L17
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L27+32
	bl	printf
	mvn	r0, #0
	bl	exit
.L17:
	ldr	r3, [fp, #-560]
	cmp	r3, #0
	beq	.L18
	mov	r1, #4
	ldr	r0, [fp, #-568]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L20
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L27+36
	bl	printf
	mvn	r0, #0
	bl	exit
.L21:
	ldr	r0, [fp, #-532]
	bl	inet_ntoa
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L27+40
	bl	printf
.L20:
	sub	r2, fp, #580
	sub	r3, fp, #536
	mov	r1, r3
	ldr	r0, [fp, #-568]
	bl	accept
	mov	r3, r0
	cmn	r3, #1
	bne	.L21
	b	.L22
.L18:
	ldr	r0, .L27+44
	bl	puts
	b	.L23
.L24:
	sub	r3, fp, #520
	mov	r1, r3
	ldr	r0, .L27+48
	bl	printf
.L23:
	sub	r1, fp, #520
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #512
	ldr	r0, [fp, #-568]
	bl	recvfrom
	mov	r3, r0
	cmn	r3, #1
	bne	.L24
.L22:
	mov	r3, #0
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC11
	.word	optarg
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.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
