	.file	"846863.c"
	.intel_syntax noprefix
	.text
	.globl	src_addr
	.bss
	.align 8
	.type	src_addr, @object
	.size	src_addr, 12
src_addr:
	.zero	12
	.globl	dest_addr
	.align 8
	.type	dest_addr, @object
	.size	dest_addr, 12
dest_addr:
	.zero	12
	.globl	nlh
	.align 8
	.type	nlh, @object
	.size	nlh, 8
nlh:
	.zero	8
	.globl	iov
	.align 16
	.type	iov, @object
	.size	iov, 16
iov:
	.zero	16
	.globl	sock_fd
	.align 4
	.type	sock_fd, @object
	.size	sock_fd, 4
sock_fd:
	.zero	4
	.globl	msg
	.align 32
	.type	msg, @object
	.size	msg, 56
msg:
	.zero	56
	.section	.rodata
.LC0:
	.string	"I got cntl-C, closing socket"
	.text
	.globl	foo
	.type	foo, @function
foo:
.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	DWORD PTR -4[rbp], edi
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, DWORD PTR sock_fd[rip]
	mov	edi, eax
	call	close@PLT
	mov	edi, -1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	foo, .-foo
	.section	.rodata
	.align 8
.LC1:
	.string	"Could not install the new signal handler"
.LC2:
	.string	"Opened socket with fd %d\n"
.LC3:
	.string	"fcntl returns %d\n"
.LC4:
	.string	"bind returns %d\n"
	.align 8
.LC5:
	.string	"Received socket with length %d (nlmsg_len = %d)\n"
.LC6:
	.string	"%d\n"
	.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, 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -172[rbp], 0
	lea	rax, foo[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigaction@PLT
	cmp	eax, -1
	jne	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
.L3:
	mov	edx, 31
	mov	esi, 3
	mov	edi, 16
	call	socket@PLT
	mov	DWORD PTR sock_fd[rip], eax
	mov	eax, DWORD PTR sock_fd[rip]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR sock_fd[rip]
	mov	edx, 2048
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -168[rbp], eax
	mov	eax, DWORD PTR -168[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, 12
	mov	esi, 0
	lea	rdi, src_addr[rip]
	call	memset@PLT
	mov	WORD PTR src_addr[rip], 16
	mov	DWORD PTR src_addr[rip+4], 1
	mov	DWORD PTR src_addr[rip+8], 0
	mov	eax, DWORD PTR sock_fd[rip]
	mov	edx, 12
	lea	rsi, src_addr[rip]
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -168[rbp], eax
	mov	eax, DWORD PTR -168[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, 12
	mov	esi, 0
	lea	rdi, dest_addr[rip]
	call	memset@PLT
	mov	WORD PTR dest_addr[rip], 16
	mov	DWORD PTR dest_addr[rip+4], 0
	mov	DWORD PTR dest_addr[rip+8], 0
	mov	edi, 1040
	call	malloc@PLT
	mov	QWORD PTR nlh[rip], rax
	mov	rax, QWORD PTR nlh[rip]
	mov	DWORD PTR [rax], 1040
	mov	rax, QWORD PTR nlh[rip]
	mov	DWORD PTR 12[rax], 1
	mov	rax, QWORD PTR nlh[rip]
	mov	WORD PTR 6[rax], 0
	mov	rax, QWORD PTR nlh[rip]
	mov	QWORD PTR iov[rip], rax
	mov	rax, QWORD PTR nlh[rip]
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	mov	QWORD PTR iov[rip+8], rax
	mov	edx, 56
	mov	esi, 0
	lea	rdi, msg[rip]
	call	memset@PLT
	lea	rax, dest_addr[rip]
	mov	QWORD PTR msg[rip], rax
	mov	DWORD PTR msg[rip+8], 12
	lea	rax, iov[rip]
	mov	QWORD PTR msg[rip+16], rax
	mov	QWORD PTR msg[rip+24], 1
	mov	rax, QWORD PTR nlh[rip]
	mov	edx, 1040
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
.L6:
	mov	eax, DWORD PTR sock_fd[rip]
	mov	edx, 0
	lea	rsi, msg[rip]
	mov	edi, eax
	call	recvmsg@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	js	.L4
	mov	rax, QWORD PTR nlh[rip]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -164[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	mov	edi, 1000
	call	usleep@PLT
	add	DWORD PTR -172[rbp], 1
	mov	edx, DWORD PTR -172[rbp]
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L6
	mov	eax, DWORD PTR -172[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
	.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	"846863.c"
	.text
	.comm	src_addr,12,4
	.comm	dest_addr,12,4
	.global	nlh
	.bss
	.align	2
	.type	nlh, %object
	.size	nlh, 4
nlh:
	.space	4
	.comm	iov,8,4
	.comm	sock_fd,4,4
	.comm	msg,28,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"I got cntl-C, closing socket\000"
	.text
	.align	2
	.global	foo
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo, %function
foo:
	@ 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	r0, .L2
	bl	puts
	ldr	r3, .L2+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mvn	r0, #0
	bl	exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.word	sock_fd
	.size	foo, .-foo
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Could not install the new signal handler\000"
	.align	2
.LC2:
	.ascii	"Opened socket with fd %d\012\000"
	.align	2
.LC3:
	.ascii	"fcntl returns %d\012\000"
	.align	2
.LC4:
	.ascii	"bind returns %d\012\000"
	.align	2
.LC5:
	.ascii	"Received socket with length %d (nlmsg_len = %d)\012"
	.ascii	"\000"
	.align	2
.LC6:
	.ascii	"%d\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #160
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-160]
	ldr	r3, .L10+4
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigaction
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L10+8
	bl	perror
.L5:
	mov	r2, #31
	mov	r1, #3
	mov	r0, #16
	bl	socket
	mov	r3, r0
	ldr	r2, .L10+12
	str	r3, [r2]
	ldr	r3, .L10+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L10+16
	bl	printf
	ldr	r3, .L10+12
	ldr	r3, [r3]
	mov	r2, #2048
	mov	r1, #4
	mov	r0, r3
	bl	fcntl
	str	r0, [fp, #-156]
	ldr	r1, [fp, #-156]
	ldr	r0, .L10+20
	bl	printf
	mov	r2, #12
	mov	r1, #0
	ldr	r0, .L10+24
	bl	memset
	ldr	r3, .L10+24
	mov	r2, #16
	strh	r2, [r3]	@ movhi
	ldr	r3, .L10+24
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L10+24
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, .L10+12
	ldr	r3, [r3]
	mov	r2, #12
	ldr	r1, .L10+24
	mov	r0, r3
	bl	bind
	str	r0, [fp, #-156]
	ldr	r1, [fp, #-156]
	ldr	r0, .L10+28
	bl	printf
	mov	r2, #12
	mov	r1, #0
	ldr	r0, .L10+32
	bl	memset
	ldr	r3, .L10+32
	mov	r2, #16
	strh	r2, [r3]	@ movhi
	ldr	r3, .L10+32
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L10+32
	mov	r2, #0
	str	r2, [r3, #8]
	mov	r0, #1040
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L10+36
	str	r2, [r3]
	ldr	r3, .L10+36
	ldr	r3, [r3]
	mov	r2, #1040
	str	r2, [r3]
	ldr	r3, .L10+36
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [r3, #12]
	ldr	r3, .L10+36
	ldr	r3, [r3]
	mov	r2, #0
	strh	r2, [r3, #6]	@ movhi
	ldr	r3, .L10+36
	ldr	r3, [r3]
	ldr	r2, .L10+40
	str	r3, [r2]
	ldr	r3, .L10+36
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r2, .L10+40
	str	r3, [r2, #4]
	mov	r2, #28
	mov	r1, #0
	ldr	r0, .L10+44
	bl	memset
	ldr	r3, .L10+44
	ldr	r2, .L10+32
	str	r2, [r3]
	ldr	r3, .L10+44
	mov	r2, #12
	str	r2, [r3, #4]
	ldr	r3, .L10+44
	ldr	r2, .L10+40
	str	r2, [r3, #8]
	ldr	r3, .L10+44
	mov	r2, #1
	str	r2, [r3, #12]
	ldr	r3, .L10+36
	ldr	r3, [r3]
	mov	r2, #1040
	mov	r1, #0
	mov	r0, r3
	bl	memset
.L8:
	ldr	r3, .L10+12
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, .L10+44
	mov	r0, r3
	bl	recvmsg
	str	r0, [fp, #-152]
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	blt	.L6
	ldr	r3, .L10+36
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-152]
	ldr	r0, .L10+48
	bl	printf
.L6:
	mov	r0, #1000
	bl	usleep
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	str	r3, [fp, #-160]
	ldr	r1, [fp, #-160]
	ldr	r3, .L10+52
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L8
	ldr	r1, [fp, #-160]
	ldr	r0, .L10+56
	bl	printf
	b	.L8
.L11:
	.align	2
.L10:
	.word	.LC7
	.word	foo
	.word	.LC1
	.word	sock_fd
	.word	.LC2
	.word	.LC3
	.word	src_addr
	.word	.LC4
	.word	dest_addr
	.word	nlh
	.word	iov
	.word	msg
	.word	.LC5
	.word	1374389535
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
