	.file	"145453593.c"
	.intel_syntax noprefix
	.text
	.local	inbuf
	.comm	inbuf,1024,32
	.local	outbuf
	.comm	outbuf,1024,32
	.section	.data.rel.local,"aw"
	.align 8
	.type	inmsg, @object
	.size	inmsg, 8
inmsg:
	.quad	inbuf
	.align 8
	.type	outmsg, @object
	.size	outmsg, 8
outmsg:
	.quad	outbuf
	.local	hosts
	.comm	hosts,8,8
	.local	host_count
	.comm	host_count,4,4
	.text
	.type	cmp_str, @function
cmp_str:
.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, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
.L5:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L3
.L2:
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L6
.L3:
	add	QWORD PTR -40[rbp], 1
	add	QWORD PTR -48[rbp], 1
	jmp	.L5
.L6:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmp_str, .-cmp_str
	.section	.rodata
.LC0:
	.string	"malloc"
.LC1:
	.string	"%s/%s"
.LC2:
	.string	"r"
.LC3:
	.string	"read_config - open"
.LC4:
	.string	"Filename was %s\n"
.LC5:
	.string	"read_config - malloc"
	.align 8
.LC6:
	.string	"Line %d too long in configuration!\n"
.LC7:
	.string	"%1023s %15s"
.LC8:
	.string	"read_config - inet_pton"
.LC9:
	.string	"read_config - realloc"
.LC10:
	.string	"read_config - malloc 2"
	.text
	.type	read_config, @function
read_config:
.LFB7:
	.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, 2168
	.cfi_offset 3, -24
	mov	QWORD PTR -2168[rbp], rdi
	mov	QWORD PTR -2176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -2168[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -2136[rbp], rax
	mov	rax, QWORD PTR -2176[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -2128[rbp], rax
	mov	DWORD PTR -2144[rbp], 0
	mov	DWORD PTR -2140[rbp], 0
	mov	rdx, QWORD PTR -2136[rbp]
	mov	rax, QWORD PTR -2128[rbp]
	add	rax, rdx
	add	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -2120[rbp], rax
	cmp	QWORD PTR -2120[rbp], 0
	jne	.L8
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L23
.L8:
	mov	rcx, QWORD PTR -2176[rbp]
	mov	rdx, QWORD PTR -2168[rbp]
	mov	rax, QWORD PTR -2120[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -2120[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -2112[rbp], rax
	cmp	QWORD PTR -2112[rbp], 0
	jne	.L10
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -2120[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L23
.L10:
	mov	edi, 4096
	call	malloc@PLT
	mov	QWORD PTR hosts[rip], rax
	mov	rax, QWORD PTR hosts[rip]
	test	rax, rax
	jne	.L11
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L23
.L11:
	mov	DWORD PTR host_count[rip], 256
	jmp	.L12
.L21:
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -2128[rbp], rax
	add	DWORD PTR -2140[rbp], 1
	mov	rax, QWORD PTR -2128[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR -2080[rbp+rax]
	cmp	al, 10
	je	.L13
	cmp	QWORD PTR -2128[rbp], 1023
	jne	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -2140[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L23
.L13:
	movzx	eax, BYTE PTR -2080[rbp]
	cmp	al, 10
	je	.L12
	movzx	eax, BYTE PTR -2080[rbp]
	cmp	al, 35
	jne	.L15
	jmp	.L12
.L15:
	lea	rcx, -2096[rbp]
	lea	rdx, -1056[rbp]
	lea	rax, -2080[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 2
	je	.L16
	jmp	.L12
.L16:
	lea	rdx, -2148[rbp]
	lea	rax, -2096[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	inet_pton@PLT
	cmp	eax, 1
	je	.L17
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L23
.L17:
	mov	eax, DWORD PTR host_count[rip]
	cmp	DWORD PTR -2144[rbp], eax
	jne	.L18
	mov	eax, DWORD PTR host_count[rip]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR hosts[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -2104[rbp], rax
	cmp	QWORD PTR -2104[rbp], 0
	jne	.L19
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L23
.L19:
	mov	eax, DWORD PTR host_count[rip]
	add	eax, eax
	mov	DWORD PTR host_count[rip], eax
	mov	rax, QWORD PTR -2104[rbp]
	mov	QWORD PTR hosts[rip], rax
.L18:
	lea	rax, -1056[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rcx, QWORD PTR hosts[rip]
	mov	edx, DWORD PTR -2144[rbp]
	movsx	rdx, edx
	sal	rdx, 4
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rdx, QWORD PTR hosts[rip]
	mov	eax, DWORD PTR -2144[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L20
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L23
.L20:
	mov	rdx, QWORD PTR hosts[rip]
	mov	eax, DWORD PTR -2144[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, -1056[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rdx, QWORD PTR hosts[rip]
	mov	eax, DWORD PTR -2144[rbp]
	cdqe
	sal	rax, 4
	add	rdx, rax
	mov	eax, DWORD PTR -2148[rbp]
	mov	DWORD PTR 8[rdx], eax
	add	DWORD PTR -2144[rbp], 1
.L12:
	mov	rdx, QWORD PTR -2112[rbp]
	lea	rax, -2080[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L21
	mov	rax, QWORD PTR -2112[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -2144[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR hosts[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -2104[rbp], rax
	cmp	QWORD PTR -2104[rbp], 0
	je	.L22
	mov	rax, QWORD PTR -2104[rbp]
	mov	QWORD PTR hosts[rip], rax
.L22:
	mov	eax, DWORD PTR -2144[rbp]
	mov	DWORD PTR host_count[rip], eax
	mov	rax, QWORD PTR -2120[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L23:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	read_config, .-read_config
	.section	.rodata
.LC11:
	.string	"socket"
.LC12:
	.string	"bind"
	.text
	.type	open_sock, @function
open_sock:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	eax, edi
	mov	WORD PTR -52[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 17
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L26
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L29
.L26:
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	mov	DWORD PTR -28[rbp], 0
	movzx	eax, WORD PTR -52[rbp]
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L28
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, -1
	jmp	.L29
.L28:
	mov	eax, DWORD PTR -36[rbp]
.L29:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	open_sock, .-open_sock
	.type	find_host, @function
find_host:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L32
.L35:
	mov	rdx, QWORD PTR hosts[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	cmp_str
	test	eax, eax
	jne	.L33
	mov	rdx, QWORD PTR hosts[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	jmp	.L34
.L33:
	add	DWORD PTR -4[rbp], 1
.L32:
	mov	eax, DWORD PTR host_count[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L35
	mov	eax, 0
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	find_host, .-find_host
	.type	respond_to_query, @function
respond_to_query:
.LFB10:
	.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, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	cmp	rax, 512
	ja	.L39
	mov	rcx, QWORD PTR inmsg[rip]
	mov	rax, QWORD PTR outmsg[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rbx, QWORD PTR outmsg[rip]
	mov	edi, 1
	call	htons@PLT
	mov	WORD PTR 6[rbx], ax
	mov	rbx, QWORD PTR outmsg[rip]
	mov	edi, 33152
	call	htons@PLT
	mov	WORD PTR 2[rbx], ax
	sub	QWORD PTR -48[rbp], 12
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	edi, eax
	call	ntohl@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	rdx, QWORD PTR outmsg[rip]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -48[rbp], rcx
	mov	BYTE PTR 12[rdx+rax], -64
	mov	rdx, QWORD PTR outmsg[rip]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -48[rbp], rcx
	mov	BYTE PTR 12[rdx+rax], 12
	mov	rdx, QWORD PTR outmsg[rip]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -48[rbp], rcx
	mov	BYTE PTR 12[rdx+rax], 0
	mov	rdx, QWORD PTR outmsg[rip]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -48[rbp], rcx
	mov	BYTE PTR 12[rdx+rax], 1
	mov	rdx, QWORD PTR outmsg[rip]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -48[rbp], rcx
	mov	BYTE PTR 12[rdx+rax], 0
	mov	rdx, QWORD PTR outmsg[rip]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -48[rbp], rcx
	mov	BYTE PTR 12[rdx+rax], 1
	mov	rdx, QWORD PTR outmsg[rip]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -48[rbp], rcx
	mov	BYTE PTR 12[rdx+rax], 0
	mov	rdx, QWORD PTR outmsg[rip]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -48[rbp], rcx
	mov	BYTE PTR 12[rdx+rax], 0
	mov	rdx, QWORD PTR outmsg[rip]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -48[rbp], rcx
	mov	BYTE PTR 12[rdx+rax], 9
	mov	rdx, QWORD PTR outmsg[rip]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -48[rbp], rcx
	mov	BYTE PTR 12[rdx+rax], -4
	mov	rdx, QWORD PTR outmsg[rip]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -48[rbp], rcx
	mov	BYTE PTR 12[rdx+rax], 0
	mov	rdx, QWORD PTR outmsg[rip]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -48[rbp], rcx
	mov	BYTE PTR 12[rdx+rax], 4
	mov	eax, DWORD PTR -20[rbp]
	shr	eax, 24
	mov	esi, eax
	mov	rdx, QWORD PTR outmsg[rip]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -48[rbp], rcx
	mov	ecx, esi
	mov	BYTE PTR 12[rdx+rax], cl
	mov	eax, DWORD PTR -20[rbp]
	shr	eax, 16
	mov	esi, eax
	mov	rdx, QWORD PTR outmsg[rip]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -48[rbp], rcx
	mov	ecx, esi
	mov	BYTE PTR 12[rdx+rax], cl
	mov	eax, DWORD PTR -20[rbp]
	shr	eax, 8
	mov	esi, eax
	mov	rdx, QWORD PTR outmsg[rip]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -48[rbp], rcx
	mov	ecx, esi
	mov	BYTE PTR 12[rdx+rax], cl
	mov	rdx, QWORD PTR outmsg[rip]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -48[rbp], rcx
	mov	ecx, DWORD PTR -20[rbp]
	mov	BYTE PTR 12[rdx+rax], cl
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 12[rax]
	mov	rcx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	r9d, 16
	mov	r8, rcx
	mov	ecx, 0
	lea	rsi, outbuf[rip]
	mov	edi, eax
	call	sendto@PLT
	jmp	.L36
.L39:
	nop
.L36:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	respond_to_query, .-respond_to_query
	.section	.rodata
.LC13:
	.string	"Throwing out bad packet."
	.align 8
.LC14:
	.string	"Throwing out non IN A request."
	.text
	.type	process_query, @function
process_query:
.LFB11:
	.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 -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	BYTE PTR -41[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -16[rbp], rax
	sub	QWORD PTR -64[rbp], 12
	mov	rax, QWORD PTR inmsg[rip]
	movzx	eax, WORD PTR 4[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	WORD PTR -40[rbp], ax
	mov	rax, QWORD PTR inmsg[rip]
	movzx	eax, WORD PTR 6[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	WORD PTR -38[rbp], ax
	mov	rax, QWORD PTR inmsg[rip]
	movzx	eax, WORD PTR 8[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	WORD PTR -36[rbp], ax
	mov	rax, QWORD PTR inmsg[rip]
	movzx	eax, WORD PTR 10[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	WORD PTR -34[rbp], ax
	cmp	WORD PTR -40[rbp], 1
	jne	.L51
	cmp	WORD PTR -38[rbp], 0
	jne	.L51
	cmp	WORD PTR -36[rbp], 0
	jne	.L51
	cmp	WORD PTR -34[rbp], 0
	jne	.L51
	mov	QWORD PTR -32[rbp], 0
	jmp	.L44
.L50:
	mov	rdx, QWORD PTR inmsg[rip]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	add	rax, 12
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -41[rbp], al
	movzx	edx, BYTE PTR -41[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	add	rax, 5
	cmp	QWORD PTR -64[rbp], rax
	jnb	.L45
	lea	rdi, .LC13[rip]
	call	puts@PLT
	jmp	.L40
.L45:
	cmp	BYTE PTR -41[rbp], 0
	jne	.L46
	mov	rax, QWORD PTR inmsg[rip]
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, 1
	movzx	eax, BYTE PTR 12[rax+rdx]
	test	al, al
	jne	.L47
	mov	rax, QWORD PTR inmsg[rip]
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, 2
	movzx	eax, BYTE PTR 12[rax+rdx]
	cmp	al, 1
	jne	.L47
	mov	rax, QWORD PTR inmsg[rip]
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, 3
	movzx	eax, BYTE PTR 12[rax+rdx]
	test	al, al
	jne	.L47
	mov	rax, QWORD PTR inmsg[rip]
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, 4
	movzx	eax, BYTE PTR 12[rax+rdx]
	cmp	al, 1
	je	.L48
.L47:
	lea	rdi, .LC14[rip]
	call	puts@PLT
.L48:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, -1[rax]
	lea	rax, hostbuf.0[rip]
	mov	BYTE PTR [rdx+rax], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -32[rbp], rax
	lea	rdi, hostbuf.0[rip]
	call	find_host
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L52
	mov	rcx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	respond_to_query
	jmp	.L52
.L46:
	movzx	eax, BYTE PTR -41[rbp]
	mov	rdx, QWORD PTR inmsg[rip]
	lea	rcx, 12[rdx]
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, 1
	lea	rsi, [rcx+rdx]
	lea	rcx, hostbuf.0[rip]
	mov	rdx, QWORD PTR -24[rbp]
	add	rcx, rdx
	mov	rdx, rax
	mov	rdi, rcx
	call	memcpy@PLT
	movzx	eax, BYTE PTR -41[rbp]
	add	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	lea	rdx, hostbuf.0[rip]
	mov	BYTE PTR [rax+rdx], 46
	movzx	eax, BYTE PTR -41[rbp]
	add	eax, 1
	cdqe
	add	QWORD PTR -32[rbp], rax
.L44:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -64[rbp]
	jb	.L50
	jmp	.L40
.L51:
	nop
	jmp	.L40
.L52:
	nop
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	process_query, .-process_query
	.section	.rodata
.LC15:
	.string	"nobody"
	.align 8
.LC16:
	.string	"Cannot find user \"nobody\". Bailing out!\n"
.LC17:
	.string	"setgroups"
.LC18:
	.string	"setgid"
.LC19:
	.string	"setuid"
	.align 8
.LC20:
	.string	"Cannot set non-root privileges. Bailing out!\n"
	.text
	.type	drop_privs, @function
drop_privs:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	getuid@PLT
	test	eax, eax
	je	.L54
	call	geteuid@PLT
	test	eax, eax
	je	.L54
	mov	eax, 0
	jmp	.L63
.L54:
	lea	rdi, .LC15[rip]
	call	getpwnam@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L56
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	DWORD PTR -24[rbp], eax
	lea	rax, -24[rbp]
	mov	rsi, rax
	mov	edi, 1
	mov	eax, 0
	call	setgroups@PLT
	test	eax, eax
	je	.L58
	jmp	.L65
.L56:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 40
	mov	esi, 1
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L63
.L65:
	lea	rdi, .LC17[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L63
.L58:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	setgid@PLT
	test	eax, eax
	je	.L59
	lea	rdi, .LC18[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L63
.L59:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	setuid@PLT
	test	eax, eax
	je	.L60
	lea	rdi, .LC19[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L63
.L60:
	call	getuid@PLT
	test	eax, eax
	je	.L61
	call	geteuid@PLT
	test	eax, eax
	jne	.L62
.L61:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 45
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L63
.L62:
	mov	eax, 0
.L63:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L64
	call	__stack_chk_fail@PLT
.L64:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	drop_privs, .-drop_privs
	.section	.rodata
.LC21:
	.string	"pso_dns.conf"
.LC22:
	.string	"/etc/sylverant"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 53
	call	open_sock
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], -1
	jne	.L67
	mov	edi, 1
	call	exit@PLT
.L67:
	call	drop_privs
	test	eax, eax
	je	.L68
	mov	edi, 1
	call	exit@PLT
.L68:
	mov	esi, 0
	mov	edi, 1
	call	daemon@PLT
	lea	rsi, .LC21[rip]
	lea	rdi, .LC22[rip]
	call	read_config
	test	eax, eax
	je	.L69
	mov	edi, 1
	call	exit@PLT
.L69:
	mov	DWORD PTR -48[rbp], 16
	lea	rcx, -48[rbp]
	lea	rdx, -32[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 1024
	lea	rsi, inbuf[rip]
	mov	edi, eax
	call	recvfrom@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, 12
	jbe	.L69
	mov	rcx, QWORD PTR -40[rbp]
	lea	rdx, -32[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	process_query
	jmp	.L69
	.cfi_endproc
.LFE13:
	.size	main, .-main
	.local	hostbuf.0
	.comm	hostbuf.0,1024,32
	.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	"145453593.c"
	.text
	.local	inbuf
	.comm	inbuf,1024,4
	.local	outbuf
	.comm	outbuf,1024,4
	.data
	.align	2
	.type	inmsg, %object
	.size	inmsg, 4
inmsg:
	.word	inbuf
	.align	2
	.type	outmsg, %object
	.size	outmsg, 4
outmsg:
	.word	outbuf
	.local	hosts
	.comm	hosts,4,4
	.local	host_count
	.comm	host_count,4,4
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmp_str, %function
cmp_str:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
.L5:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r4, r0
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	sub	r3, r4, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r3, [fp, #-16]
	b	.L6
.L3:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L5
.L6:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	cmp_str, .-cmp_str
	.section	.rodata
	.align	2
.LC0:
	.ascii	"malloc\000"
	.align	2
.LC1:
	.ascii	"%s/%s\000"
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	"read_config - open\000"
	.align	2
.LC4:
	.ascii	"Filename was %s\012\000"
	.align	2
.LC5:
	.ascii	"read_config - malloc\000"
	.align	2
.LC6:
	.ascii	"Line %d too long in configuration!\012\000"
	.align	2
.LC7:
	.ascii	"%1023s %15s\000"
	.align	2
.LC8:
	.ascii	"read_config - inet_pton\000"
	.align	2
.LC9:
	.ascii	"read_config - realloc\000"
	.align	2
.LC10:
	.ascii	"read_config - malloc 2\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_config, %function
read_config:
	@ args = 0, pretend = 0, frame = 2112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #2112
	sub	sp, sp, #4
	str	r0, [fp, #-2120]
	str	r1, [fp, #-2124]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, [fp, #-2120]
	bl	strlen
	str	r0, [fp, #-2100]
	ldr	r0, [fp, #-2124]
	bl	strlen
	str	r0, [fp, #-2096]
	mov	r3, #0
	str	r3, [fp, #-2108]
	mov	r3, #0
	str	r3, [fp, #-2104]
	ldr	r2, [fp, #-2100]
	ldr	r3, [fp, #-2096]
	add	r3, r2, r3
	add	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-2092]
	ldr	r3, [fp, #-2092]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L25+4
	bl	perror
	mvn	r3, #0
	b	.L23
.L8:
	ldr	r3, [fp, #-2124]
	ldr	r2, [fp, #-2120]
	ldr	r1, .L25+8
	ldr	r0, [fp, #-2092]
	bl	sprintf
	ldr	r1, .L25+12
	ldr	r0, [fp, #-2092]
	bl	fopen
	str	r0, [fp, #-2088]
	ldr	r3, [fp, #-2088]
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L25+16
	bl	perror
	ldr	r3, .L25+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-2092]
	ldr	r1, .L25+24
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L23
.L10:
	mov	r0, #2048
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L25+28
	str	r2, [r3]
	ldr	r3, .L25+28
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L11
	ldr	r0, .L25+32
	bl	perror
	mvn	r3, #0
	b	.L23
.L11:
	ldr	r3, .L25+36
	mov	r2, #256
	str	r2, [r3]
	b	.L12
.L21:
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	str	r0, [fp, #-2096]
	ldr	r3, [fp, #-2104]
	add	r3, r3, #1
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2096]
	sub	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-2052]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L13
	ldr	r3, [fp, #-2096]
	ldr	r2, .L25+40
	cmp	r3, r2
	bne	.L13
	ldr	r3, .L25+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-2104]
	ldr	r1, .L25+44
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L23
.L13:
	ldrb	r3, [fp, #-2064]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L12
	ldrb	r3, [fp, #-2064]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L15
	b	.L12
.L15:
	sub	r3, fp, #2064
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #1024
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r0, fp, #2048
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r1, .L25+48
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #2
	beq	.L16
	b	.L12
.L16:
	sub	r2, fp, #2096
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #2064
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, #2
	bl	inet_pton
	mov	r3, r0
	cmp	r3, #1
	beq	.L17
	ldr	r0, .L25+52
	bl	perror
	mvn	r3, #0
	b	.L23
.L17:
	ldr	r3, .L25+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-2108]
	cmp	r2, r3
	bne	.L18
	ldr	r3, .L25+28
	ldr	r3, [r3]
	ldr	r2, .L25+36
	ldr	r2, [r2]
	lsl	r2, r2, #4
	mov	r1, r2
	mov	r0, r3
	bl	realloc
	str	r0, [fp, #-2084]
	ldr	r3, [fp, #-2084]
	cmp	r3, #0
	bne	.L19
	ldr	r0, .L25+56
	bl	perror
	mvn	r3, #0
	b	.L23
.L19:
	ldr	r3, .L25+36
	ldr	r3, [r3]
	lsl	r3, r3, #1
	ldr	r2, .L25+36
	str	r3, [r2]
	ldr	r2, .L25+28
	ldr	r3, [fp, #-2084]
	str	r3, [r2]
.L18:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r1, r3, #1
	ldr	r3, .L25+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-2108]
	lsl	r3, r3, #3
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, .L25+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-2108]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L20
	ldr	r0, .L25+60
	bl	perror
	mvn	r3, #0
	b	.L23
.L20:
	ldr	r3, .L25+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-2108]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	ldr	r3, .L25+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-2108]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [fp, #-2112]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-2108]
	add	r3, r3, #1
	str	r3, [fp, #-2108]
.L12:
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-2088]
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r0, [fp, #-2088]
	bl	fclose
	ldr	r3, .L25+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-2108]
	lsl	r3, r3, #3
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	str	r0, [fp, #-2084]
	ldr	r3, [fp, #-2084]
	cmp	r3, #0
	beq	.L22
	ldr	r2, .L25+28
	ldr	r3, [fp, #-2084]
	str	r3, [r2]
.L22:
	ldr	r2, .L25+36
	ldr	r3, [fp, #-2108]
	str	r3, [r2]
	ldr	r0, [fp, #-2092]
	bl	free
	mov	r3, #0
.L23:
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	stderr
	.word	.LC4
	.word	hosts
	.word	.LC5
	.word	host_count
	.word	1023
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	read_config, .-read_config
	.section	.rodata
	.align	2
.LC12:
	.ascii	"socket\000"
	.align	2
.LC13:
	.ascii	"bind\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_sock, %function
open_sock:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	mov	r3, r0
	strh	r3, [fp, #-30]	@ movhi
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #17
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L28
	ldr	r0, .L33+4
	bl	perror
	mvn	r3, #0
	b	.L31
.L28:
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-20]
	ldrh	r3, [fp, #-30]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r0, .L33+8
	bl	perror
	ldr	r0, [fp, #-28]
	bl	close
	mvn	r3, #0
	b	.L31
.L30:
	ldr	r3, [fp, #-28]
.L31:
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC14
	.word	.LC12
	.word	.LC13
	.size	open_sock, .-open_sock
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_host, %function
find_host:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L36
.L39:
	ldr	r3, .L40
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	cmp_str
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	ldr	r3, .L40
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	b	.L38
.L37:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L36:
	ldr	r3, .L40+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L39
	mov	r3, #0
.L38:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	hosts
	.word	host_count
	.size	find_host, .-find_host
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	respond_to_query, %function
respond_to_query:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-28]
	add	r3, r3, #16
	cmp	r3, #512
	bhi	.L45
	ldr	r3, .L46
	ldr	r3, [r3]
	ldr	r2, .L46+4
	ldr	r1, [r2]
	ldr	r2, [fp, #-28]
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L46
	ldr	r4, [r3]
	mov	r0, #1
	bl	htons
	mov	r3, r0
	strh	r3, [r4, #6]	@ movhi
	ldr	r3, .L46
	ldr	r4, [r3]
	ldr	r0, .L46+8
	bl	htons
	mov	r3, r0
	strh	r3, [r4, #2]	@ movhi
	ldr	r3, [fp, #-28]
	sub	r3, r3, #12
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	ntohl
	str	r0, [fp, #-16]
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r1, r3, #1
	str	r1, [fp, #-28]
	add	r3, r2, r3
	mvn	r2, #63
	strb	r2, [r3, #12]
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r1, r3, #1
	str	r1, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #12
	strb	r2, [r3, #12]
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r1, r3, #1
	str	r1, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #12]
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r1, r3, #1
	str	r1, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3, #12]
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r1, r3, #1
	str	r1, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #12]
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r1, r3, #1
	str	r1, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3, #12]
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r1, r3, #1
	str	r1, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #12]
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r1, r3, #1
	str	r1, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #12]
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r1, r3, #1
	str	r1, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #9
	strb	r2, [r3, #12]
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r1, r3, #1
	str	r1, [fp, #-28]
	add	r3, r2, r3
	mvn	r2, #3
	strb	r2, [r3, #12]
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r1, r3, #1
	str	r1, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #12]
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r1, r3, #1
	str	r1, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #4
	strb	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	lsr	r1, r3, #24
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r0, r3, #1
	str	r0, [fp, #-28]
	and	r1, r1, #255
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	lsr	r1, r3, #16
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r0, r3, #1
	str	r0, [fp, #-28]
	and	r1, r1, #255
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	lsr	r1, r3, #8
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r0, r3, #1
	str	r0, [fp, #-28]
	and	r1, r1, #255
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3, #12]
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r1, r3, #1
	str	r1, [fp, #-28]
	ldr	r1, [fp, #-16]
	and	r1, r1, #255
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3, #12]
	ldr	r3, [fp, #-28]
	add	r2, r3, #12
	mov	r3, #16
	str	r3, [sp, #4]
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	mov	r3, #0
	ldr	r1, .L46+12
	ldr	r0, [fp, #-24]
	bl	sendto
	b	.L42
.L45:
	nop
.L42:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L47:
	.align	2
.L46:
	.word	outmsg
	.word	inmsg
	.word	33152
	.word	outbuf
	.size	respond_to_query, .-respond_to_query
	.section	.rodata
	.align	2
.LC15:
	.ascii	"Throwing out bad packet.\000"
	.align	2
.LC16:
	.ascii	"Throwing out non IN A request.\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_query, %function
process_query:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	mov	r3, #0
	strb	r3, [fp, #-29]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-44]
	sub	r3, r3, #12
	str	r3, [fp, #-44]
	ldr	r3, .L61
	ldr	r3, [r3]
	ldrh	r3, [r3, #4]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	strh	r3, [fp, #-28]	@ movhi
	ldr	r3, .L61
	ldr	r3, [r3]
	ldrh	r3, [r3, #6]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	strh	r3, [fp, #-26]	@ movhi
	ldr	r3, .L61
	ldr	r3, [r3]
	ldrh	r3, [r3, #8]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	strh	r3, [fp, #-24]	@ movhi
	ldr	r3, .L61
	ldr	r3, [r3]
	ldrh	r3, [r3, #10]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	ldrh	r3, [fp, #-28]
	cmp	r3, #1
	bne	.L59
	ldrh	r3, [fp, #-26]
	cmp	r3, #0
	bne	.L59
	ldrh	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L59
	ldrh	r3, [fp, #-22]
	cmp	r3, #0
	bne	.L59
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L52
.L58:
	ldr	r3, .L61
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	add	r3, r3, #12
	ldrb	r3, [r3]
	strb	r3, [fp, #-29]
	ldrb	r2, [fp, #-29]	@ zero_extendqisi2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	add	r3, r3, #5
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	bcs	.L53
	ldr	r0, .L61+4
	bl	puts
	b	.L48
.L53:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L54
	ldr	r3, .L61
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	add	r3, r2, r3
	ldrb	r3, [r3, #12]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L55
	ldr	r3, .L61
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	add	r3, r2, r3
	ldrb	r3, [r3, #12]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L55
	ldr	r3, .L61
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #3
	add	r3, r2, r3
	ldrb	r3, [r3, #12]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L55
	ldr	r3, .L61
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #12]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L56
.L55:
	ldr	r0, .L61+8
	bl	puts
.L56:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, .L61+12
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-20]
	ldr	r0, .L61+12
	bl	find_host
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L60
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-48]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-40]
	bl	respond_to_query
	b	.L60
.L54:
	ldr	r3, [fp, #-16]
	ldr	r2, .L61+12
	add	r0, r3, r2
	ldr	r3, .L61
	ldr	r3, [r3]
	add	r2, r3, #12
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	add	r3, r2, r3
	ldrb	r2, [fp, #-29]	@ zero_extendqisi2
	mov	r1, r3
	bl	memcpy
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldr	r2, .L61+12
	mov	r1, #46
	strb	r1, [r2, r3]
	ldrb	r2, [fp, #-29]	@ zero_extendqisi2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L52:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	bcc	.L58
	b	.L48
.L59:
	nop
	b	.L48
.L60:
	nop
.L48:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L62:
	.align	2
.L61:
	.word	inmsg
	.word	.LC15
	.word	.LC16
	.word	hostbuf.6523
	.size	process_query, .-process_query
	.section	.rodata
	.align	2
.LC17:
	.ascii	"nobody\000"
	.align	2
.LC18:
	.ascii	"Cannot find user \"nobody\". Bailing out!\012\000"
	.align	2
.LC19:
	.ascii	"setgroups\000"
	.align	2
.LC20:
	.ascii	"setgid\000"
	.align	2
.LC21:
	.ascii	"setuid\000"
	.align	2
.LC22:
	.ascii	"Cannot set non-root privileges. Bailing out!\012\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	drop_privs, %function
drop_privs:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L76
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	getuid
	mov	r3, r0
	cmp	r3, #0
	beq	.L64
	bl	geteuid
	mov	r3, r0
	cmp	r3, #0
	beq	.L64
	mov	r3, #0
	b	.L73
.L64:
	ldr	r0, .L76+4
	bl	getpwnam
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L66
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-20]
	sub	r3, fp, #20
	mov	r1, r3
	mov	r0, #1
	bl	setgroups
	mov	r3, r0
	cmp	r3, #0
	beq	.L68
	b	.L75
.L66:
	ldr	r3, .L76+8
	ldr	r3, [r3]
	mov	r2, #40
	mov	r1, #1
	ldr	r0, .L76+12
	bl	fwrite
	mvn	r3, #0
	b	.L73
.L75:
	ldr	r0, .L76+16
	bl	perror
	mvn	r3, #0
	b	.L73
.L68:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	setgid
	mov	r3, r0
	cmp	r3, #0
	beq	.L69
	ldr	r0, .L76+20
	bl	perror
	mvn	r3, #0
	b	.L73
.L69:
	ldr	r0, [fp, #-12]
	bl	setuid
	mov	r3, r0
	cmp	r3, #0
	beq	.L70
	ldr	r0, .L76+24
	bl	perror
	mvn	r3, #0
	b	.L73
.L70:
	bl	getuid
	mov	r3, r0
	cmp	r3, #0
	beq	.L71
	bl	geteuid
	mov	r3, r0
	cmp	r3, #0
	bne	.L72
.L71:
	ldr	r3, .L76+8
	ldr	r3, [r3]
	mov	r2, #45
	mov	r1, #1
	ldr	r0, .L76+28
	bl	fwrite
	mvn	r3, #0
	b	.L73
.L72:
	mov	r3, #0
.L73:
	ldr	r2, .L76
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L74
	bl	__stack_chk_fail
.L74:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L77:
	.align	2
.L76:
	.word	.LC23
	.word	.LC17
	.word	stderr
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	drop_privs, .-drop_privs
	.section	.rodata
	.align	2
.LC24:
	.ascii	"pso_dns.conf\000"
	.align	2
.LC25:
	.ascii	"/etc/sylverant\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L84
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #53
	bl	open_sock
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmn	r3, #1
	bne	.L79
	mov	r0, #1
	bl	exit
.L79:
	bl	drop_privs
	mov	r3, r0
	cmp	r3, #0
	beq	.L80
	mov	r0, #1
	bl	exit
.L80:
	mov	r1, #0
	mov	r0, #1
	bl	daemon
	ldr	r1, .L84+4
	ldr	r0, .L84+8
	bl	read_config
	mov	r3, r0
	cmp	r3, #0
	beq	.L81
	mov	r0, #1
	bl	exit
.L81:
	mov	r3, #16
	str	r3, [fp, #-36]
	sub	r3, fp, #36
	str	r3, [sp, #4]
	sub	r3, fp, #24
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1024
	ldr	r1, .L84+12
	ldr	r0, [fp, #-32]
	bl	recvfrom
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #12
	bls	.L81
	ldr	r3, [fp, #-28]
	sub	r2, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	process_query
	b	.L81
.L85:
	.align	2
.L84:
	.word	.LC26
	.word	.LC24
	.word	.LC25
	.word	inbuf
	.size	main, .-main
	.local	hostbuf.6523
	.comm	hostbuf.6523,1024,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
