	.file	"extr_rwhod.c_receiver_process.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"."
.LC1:
	.string	"%s: %m"
.LC2:
	.string	"cap_rights_limit: %m"
.LC3:
	.string	"cap_enter: %m"
.LC4:
	.string	"recv: %m"
.LC5:
	.string	"%d: bad source port from %s"
.LC6:
	.string	"short packet from %s"
.LC7:
	.string	"malformed host name from %s"
.LC8:
	.string	"whod.%s"
	.text
	.p2align 4
	.globl	receiver_process
	.type	receiver_process, @function
receiver_process:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	rdi, .LC0[rip]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 216
	.cfi_def_cfa_offset 272
	mov	esi, DWORD PTR O_RDONLY[rip]
	or	esi, DWORD PTR O_DIRECTORY[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 200[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 40[rsp], 16
	call	open@PLT
	mov	DWORD PTR 12[rsp], eax
	test	eax, eax
	js	.L21
.L2:
	lea	rax, 36[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 280
	mov	ecx, DWORD PTR CAP_FTRUNCATE[rip]
	mov	edx, DWORD PTR CAP_FSTAT[rip]
	mov	QWORD PTR 8[rsp], rax
	mov	rbx, rax
	mov	eax, DWORD PTR CAP_WRITE[rip]
	mov	r9d, DWORD PTR CAP_SEEK[rip]
	mov	r8d, DWORD PTR CAP_LOOKUP[rip]
	mov	rdi, rbx
	push	rax
	.cfi_def_cfa_offset 288
	mov	esi, DWORD PTR CAP_CREATE[rip]
	xor	eax, eax
	call	cap_rights_init@PLT
	mov	edi, DWORD PTR 28[rsp]
	mov	rsi, rbx
	call	caph_rights_limit@PLT
	pop	rdx
	.cfi_def_cfa_offset 280
	pop	rcx
	.cfi_def_cfa_offset 272
	test	rax, rax
	js	.L22
.L3:
	xor	eax, eax
	call	caph_enter@PLT
	test	rax, rax
	js	.L23
.L4:
	lea	rax, 44[rsp]
	lea	r12, 40[rsp]
	mov	QWORD PTR 16[rsp], rax
	lea	rax, 32[rsp]
	lea	rbp, 48[rsp]
	mov	QWORD PTR 24[rsp], rax
	lea	rbx, 64[rsp]
	lea	r14, 128[rsp]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, DWORD PTR s[rip]
	mov	r9, r12
	mov	r8, rbp
	xor	ecx, ecx
	mov	edx, 64
	mov	rsi, rbx
	call	recvfrom@PLT
	mov	r13d, eax
	test	eax, eax
	jle	.L24
	mov	rax, QWORD PTR sp[rip]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR 48[rsp], rax
	je	.L8
	mov	eax, DWORD PTR insecure_mode[rip]
	test	eax, eax
	je	.L25
.L8:
	cmp	DWORD PTR WHDRSIZE[rip], r13d
	jg	.L26
	mov	rax, QWORD PTR WHODVERSION[rip]
	cmp	QWORD PTR 64[rsp], rax
	jne	.L5
	mov	rax, QWORD PTR WHODTYPE_STATUS[rip]
	cmp	QWORD PTR 72[rsp], rax
	jne	.L5
	mov	rdi, QWORD PTR 80[rsp]
	mov	esi, 8
	call	verify@PLT
	test	eax, eax
	je	.L27
	mov	rcx, QWORD PTR 80[rsp]
	lea	rdx, .LC8[rip]
	mov	esi, 64
	mov	rdi, r14
	call	snprintf@PLT
	mov	edi, DWORD PTR 12[rsp]
	mov	ecx, 420
	mov	rsi, r14
	mov	edx, DWORD PTR O_WRONLY[rip]
	or	edx, DWORD PTR O_CREAT[rip]
	call	openat@PLT
	mov	r15d, eax
	test	eax, eax
	js	.L28
	mov	esi, DWORD PTR CAP_FSTAT[rip]
	mov	rdi, QWORD PTR [rsp]
	xor	eax, eax
	mov	ecx, DWORD PTR CAP_WRITE[rip]
	mov	edx, DWORD PTR CAP_FTRUNCATE[rip]
	call	cap_rights_init@PLT
	mov	rsi, QWORD PTR [rsp]
	mov	edi, r15d
	call	caph_rights_limit@PLT
	test	rax, rax
	js	.L29
.L12:
	mov	rdi, QWORD PTR 16[rsp]
	call	time@PLT
	mov	edi, DWORD PTR 44[rsp]
	call	_time_to_int@PLT
	mov	rsi, rbx
	mov	edi, r15d
	mov	edx, r13d
	mov	DWORD PTR 88[rsp], eax
	call	write@PLT
	mov	rsi, QWORD PTR 24[rsp]
	mov	edi, r15d
	call	fstat@PLT
	test	rax, rax
	js	.L13
	cmp	DWORD PTR 32[rsp], r13d
	jle	.L14
.L13:
	mov	esi, r13d
	mov	edi, r15d
	call	ftruncate@PLT
.L14:
	mov	edi, r15d
	call	close@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L24:
	je	.L5
	mov	rax, QWORD PTR EINTR[rip]
	cmp	QWORD PTR errno[rip], rax
	je	.L5
	mov	edi, DWORD PTR LOG_WARNING[rip]
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	syslog@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edi, DWORD PTR 56[rsp]
	call	inet_ntoa@PLT
	mov	edi, DWORD PTR LOG_WARNING[rip]
	lea	rsi, .LC6[rip]
	mov	edx, eax
	xor	eax, eax
	call	syslog@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edi, DWORD PTR 56[rsp]
	call	inet_ntoa@PLT
	mov	rdi, QWORD PTR 48[rsp]
	mov	r13d, eax
	call	ntohs@PLT
	mov	edi, DWORD PTR LOG_WARNING[rip]
	mov	ecx, r13d
	lea	rsi, .LC5[rip]
	mov	edx, eax
	xor	eax, eax
	call	syslog@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edi, DWORD PTR 56[rsp]
	call	inet_ntoa@PLT
	mov	edi, DWORD PTR LOG_WARNING[rip]
	lea	rsi, .LC7[rip]
	mov	edx, eax
	xor	eax, eax
	call	syslog@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edi, DWORD PTR LOG_WARNING[rip]
	mov	rdx, r14
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	syslog@PLT
	jmp	.L5
.L29:
	mov	edi, DWORD PTR LOG_WARNING[rip]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	syslog@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L12
.L21:
	mov	edx, DWORD PTR _PATH_RWHODIR[rip]
	mov	edi, DWORD PTR LOG_WARNING[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	syslog@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L2
.L23:
	mov	edi, DWORD PTR LOG_ERR[rip]
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	syslog@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L4
.L22:
	mov	edi, DWORD PTR LOG_WARNING[rip]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	syslog@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	receiver_process, .-receiver_process
	.comm	sp,8,8
	.comm	s,4,4
	.comm	insecure_mode,4,4
	.comm	errno,8,8
	.comm	_PATH_RWHODIR,4,4
	.comm	WHODVERSION,8,8
	.comm	WHODTYPE_STATUS,8,8
	.comm	WHDRSIZE,4,4
	.comm	O_WRONLY,4,4
	.comm	O_RDONLY,4,4
	.comm	O_DIRECTORY,4,4
	.comm	O_CREAT,4,4
	.comm	LOG_WARNING,4,4
	.comm	LOG_ERR,4,4
	.comm	EINTR,8,8
	.comm	CAP_WRITE,4,4
	.comm	CAP_SEEK,4,4
	.comm	CAP_LOOKUP,4,4
	.comm	CAP_FTRUNCATE,4,4
	.comm	CAP_FSTAT,4,4
	.comm	CAP_CREATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_rwhod.c_receiver_process.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	".\000"
	.align	2
.LC1:
	.ascii	"%s: %m\000"
	.align	2
.LC2:
	.ascii	"cap_rights_limit: %m\000"
	.align	2
.LC3:
	.ascii	"cap_enter: %m\000"
	.align	2
.LC4:
	.ascii	"recv: %m\000"
	.align	2
.LC5:
	.ascii	"%d: bad source port from %s\000"
	.align	2
.LC6:
	.ascii	"short packet from %s\000"
	.align	2
.LC7:
	.ascii	"malformed host name from %s\000"
	.align	2
.LC8:
	.ascii	"whod.%s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	receiver_process
	.syntax unified
	.arm
	.fpu softvfp
	.type	receiver_process, %function
receiver_process:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #8
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r1, .L28
	ldr	r2, .L28+4
	ldr	r1, [r1]
	ldr	r2, [r2]
	sub	sp, sp, #156
	orr	r1, r1, r2
	ldr	r2, .L28+8
	ldr	r0, .L28+12
	ldr	r2, [r2]
	str	r2, [sp, #148]
	mov	r2,#0
	str	r3, [sp, #36]
	bl	open
	subs	r3, r0, #0
	str	r3, [sp, #20]
	blt	.L17
	ldr	r3, .L28+16
	str	r3, [sp, #16]
.L2:
	ldr	r2, .L28+20
	ldr	r3, .L28+24
	ldr	r1, .L28+28
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, [r1]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r1, .L28+32
	ldr	r3, .L28+36
	ldr	r2, .L28+40
	str	r0, [sp, #8]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	add	r0, sp, #32
	bl	cap_rights_init
	ldr	r0, [sp, #20]
	add	r1, sp, #32
	bl	caph_rights_limit
	cmp	r0, #0
	blt	.L20
.L3:
	bl	caph_enter
	cmp	r0, #0
	blt	.L21
.L4:
	ldr	r7, .L28+44
	ldr	r8, .L28+48
	ldr	r9, .L28+52
	ldr	r10, .L28+56
	add	r6, sp, #36
	add	r5, sp, #44
.L5:
	mov	r3, #0
	mov	r2, #32
	stm	sp, {r5, r6}
	ldr	r0, [r7]
	add	r1, sp, #52
	bl	recvfrom
	subs	r4, r0, #0
	ble	.L22
	ldr	r3, [r8]
	ldr	r0, [sp, #44]
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L8
	ldr	r3, .L28+60
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L23
.L8:
	ldr	r3, [r9]
	cmp	r3, r4
	bgt	.L24
	ldr	r2, [sp, #52]
	ldr	r3, [r10]
	cmp	r2, r3
	bne	.L5
	ldr	r3, .L28+64
	ldr	r2, [sp, #56]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L5
	mov	r1, #4
	ldr	r0, [sp, #60]
	bl	verify
	cmp	r0, #0
	beq	.L25
	mov	r1, #64
	ldr	r3, [sp, #60]
	ldr	r2, .L28+68
	add	r0, sp, #84
	bl	snprintf
	ldr	r3, .L28+72
	ldr	r0, [sp, #20]
	ldr	r1, [r3]
	ldr	r3, .L28+76
	ldr	r2, [r3]
	mov	r3, #420
	orr	r2, r1, r2
	add	r1, sp, #84
	bl	openat
	subs	fp, r0, #0
	blt	.L26
	ldr	r3, .L28+28
	ldr	r2, .L28+36
	ldr	r1, .L28+40
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	add	r0, sp, #32
	bl	cap_rights_init
	mov	r0, fp
	add	r1, sp, #32
	bl	caph_rights_limit
	cmp	r0, #0
	blt	.L27
.L12:
	add	r0, sp, #40
	bl	time
	ldr	r0, [sp, #40]
	bl	_time_to_int
	mov	r3, r0
	mov	r2, r4
	add	r1, sp, #52
	mov	r0, fp
	str	r3, [sp, #64]
	bl	write
	mov	r0, fp
	add	r1, sp, #28
	bl	fstat
	cmp	r0, #0
	blt	.L13
	ldr	r3, [sp, #28]
	cmp	r3, r4
	ble	.L14
.L13:
	mov	r1, r4
	mov	r0, fp
	bl	ftruncate
.L14:
	mov	r0, fp
	bl	close
	b	.L5
.L22:
	beq	.L5
	ldr	r3, .L28+80
	ldr	r2, [r3]
	ldr	r3, .L28+84
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L5
	ldr	r3, [sp, #16]
	ldr	r1, .L28+88
	ldr	r0, [r3]
	bl	syslog
	b	.L5
.L24:
	ldr	r3, [sp, #16]
	ldr	r0, [sp, #48]
	ldr	r4, [r3]
	bl	inet_ntoa
	ldr	r1, .L28+92
	mov	r2, r0
	mov	r0, r4
	bl	syslog
	b	.L5
.L23:
	ldr	r3, [sp, #16]
	ldr	fp, [r3]
	bl	ntohs
	mov	r4, r0
	ldr	r0, [sp, #48]
	bl	inet_ntoa
	mov	r2, r4
	mov	r3, r0
	ldr	r1, .L28+96
	mov	r0, fp
	bl	syslog
	b	.L5
.L25:
	ldr	r3, [sp, #16]
	ldr	r0, [sp, #48]
	ldr	r4, [r3]
	bl	inet_ntoa
	ldr	r1, .L28+100
	mov	r2, r0
	mov	r0, r4
	bl	syslog
	b	.L5
.L26:
	ldr	r3, [sp, #16]
	ldr	r1, .L28+104
	ldr	r0, [r3]
	add	r2, sp, #84
	bl	syslog
	b	.L5
.L27:
	ldr	r3, [sp, #16]
	ldr	r1, .L28+108
	ldr	r0, [r3]
	bl	syslog
	mov	r0, #1
	bl	exit
	b	.L12
.L17:
	ldr	r2, .L28+16
	ldr	r3, .L28+112
	mov	r1, r2
	str	r2, [sp, #16]
	ldr	r0, [r1]
	ldr	r2, [r3]
	ldr	r1, .L28+104
	bl	syslog
	mov	r0, #1
	bl	exit
	b	.L2
.L21:
	ldr	r3, .L28+116
	ldr	r1, .L28+120
	ldr	r0, [r3]
	bl	syslog
	mov	r0, #1
	bl	exit
	b	.L4
.L20:
	ldr	r3, [sp, #16]
	ldr	r1, .L28+108
	ldr	r0, [r3]
	bl	syslog
	mov	r0, #1
	bl	exit
	b	.L3
.L29:
	.align	2
.L28:
	.word	O_RDONLY
	.word	O_DIRECTORY
	.word	.LC9
	.word	.LC0
	.word	LOG_WARNING
	.word	CAP_SEEK
	.word	CAP_LOOKUP
	.word	CAP_WRITE
	.word	CAP_CREATE
	.word	CAP_FTRUNCATE
	.word	CAP_FSTAT
	.word	s
	.word	sp
	.word	WHDRSIZE
	.word	WHODVERSION
	.word	insecure_mode
	.word	WHODTYPE_STATUS
	.word	.LC8
	.word	O_WRONLY
	.word	O_CREAT
	.word	errno
	.word	EINTR
	.word	.LC4
	.word	.LC6
	.word	.LC5
	.word	.LC7
	.word	.LC1
	.word	.LC2
	.word	_PATH_RWHODIR
	.word	LOG_ERR
	.word	.LC3
	.size	receiver_process, .-receiver_process
	.comm	sp,4,4
	.comm	s,4,4
	.comm	insecure_mode,4,4
	.comm	errno,4,4
	.comm	_PATH_RWHODIR,4,4
	.comm	WHODVERSION,4,4
	.comm	WHODTYPE_STATUS,4,4
	.comm	WHDRSIZE,4,4
	.comm	O_WRONLY,4,4
	.comm	O_RDONLY,4,4
	.comm	O_DIRECTORY,4,4
	.comm	O_CREAT,4,4
	.comm	LOG_WARNING,4,4
	.comm	LOG_ERR,4,4
	.comm	EINTR,4,4
	.comm	CAP_WRITE,4,4
	.comm	CAP_SEEK,4,4
	.comm	CAP_LOOKUP,4,4
	.comm	CAP_FTRUNCATE,4,4
	.comm	CAP_FSTAT,4,4
	.comm	CAP_CREATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
