	.file	"947142.c"
	.intel_syntax noprefix
	.text
	.local	peers
	.comm	peers,3014656,32
	.local	total_peers
	.comm	total_peers,4,4
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"popen"
	.text
	.type	cmd, @function
cmd:
.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, 2304
	mov	QWORD PTR -2296[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L2
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L2:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -2240[rbp], 0
	mov	QWORD PTR -2232[rbp], 0
	lea	rdx, -2224[rbp]
	mov	eax, 0
	mov	ecx, 254
	mov	rdi, rdx
	rep stosq
	mov	DWORD PTR -2264[rbp], 8
	mov	DWORD PTR -2260[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -2256[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -2248[rbp], rax
	lea	rcx, -2264[rbp]
	mov	rdx, QWORD PTR -2296[rbp]
	lea	rax, -2240[rbp]
	mov	esi, 2047
	mov	rdi, rax
	call	vsnprintf@PLT
	lea	rax, -2240[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	popen@PLT
	mov	QWORD PTR -2280[rbp], rax
	cmp	QWORD PTR -2280[rbp], 0
	jne	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -2280[rbp]
	mov	rdx, rax
	mov	esi, 2048
	lea	rdi, buf.0[rip]
	call	fgets@PLT
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR -2280[rbp]
	mov	rdi, rax
	call	pclose@PLT
	mov	eax, 0
	jmp	.L8
.L4:
	mov	rax, QWORD PTR -2280[rbp]
	mov	rdi, rax
	call	pclose@PLT
	lea	rdi, buf.0[rip]
	call	strlen@PLT
	mov	QWORD PTR -2272[rbp], rax
	cmp	QWORD PTR -2272[rbp], 0
	jne	.L6
	mov	eax, 0
	jmp	.L8
.L6:
	mov	rax, QWORD PTR -2272[rbp]
	lea	rdx, -1[rax]
	lea	rax, buf.0[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 10
	jne	.L7
	mov	rax, QWORD PTR -2272[rbp]
	lea	rdx, -1[rax]
	lea	rax, buf.0[rip]
	mov	BYTE PTR [rdx+rax], 0
.L7:
	lea	rax, buf.0[rip]
.L8:
	mov	rsi, QWORD PTR -184[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmd, .-cmd
	.section	.rodata
.LC2:
	.string	"wg show %s peers"
	.text
	.type	read_peers, @function
read_peers:
.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, 2096
	mov	QWORD PTR -2088[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -2064[rbp], 0
	mov	QWORD PTR -2056[rbp], 0
	lea	rdx, -2048[rbp]
	mov	eax, 0
	mov	ecx, 254
	mov	rdi, rdx
	rep stosq
	mov	rdx, QWORD PTR -2088[rbp]
	lea	rax, -2064[rbp]
	mov	rcx, rdx
	lea	rdx, .LC2[rip]
	mov	esi, 2047
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -2064[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	popen@PLT
	mov	QWORD PTR -2080[rbp], rax
	cmp	QWORD PTR -2080[rbp], 0
	jne	.L11
	lea	rdi, .LC1[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L11:
	mov	eax, DWORD PTR total_peers[rip]
	mov	eax, eax
	imul	rax, rax, 46
	lea	rdx, peers[rip]
	lea	rcx, [rax+rdx]
	mov	rax, QWORD PTR -2080[rbp]
	mov	rdx, rax
	mov	esi, 45
	mov	rdi, rcx
	call	fgets@PLT
	test	rax, rax
	je	.L19
	mov	eax, DWORD PTR total_peers[rip]
	mov	eax, eax
	imul	rax, rax, 46
	lea	rdx, peers[rip]
	add	rax, rdx
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -2072[rbp], rax
	cmp	QWORD PTR -2072[rbp], 44
	je	.L14
	cmp	QWORD PTR -2072[rbp], 45
	jne	.L20
.L14:
	mov	edx, DWORD PTR total_peers[rip]
	mov	rax, QWORD PTR -2072[rbp]
	lea	rcx, -1[rax]
	mov	eax, edx
	imul	rax, rax, 46
	lea	rdx, [rax+rcx]
	lea	rax, peers[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L16
	mov	edx, DWORD PTR total_peers[rip]
	mov	rax, QWORD PTR -2072[rbp]
	lea	rcx, -1[rax]
	mov	eax, edx
	imul	rax, rax, 46
	lea	rdx, [rax+rcx]
	lea	rax, peers[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L16:
	mov	eax, DWORD PTR total_peers[rip]
	add	eax, 1
	mov	DWORD PTR total_peers[rip], eax
	jmp	.L11
.L20:
	nop
	jmp	.L11
.L19:
	nop
	mov	rax, QWORD PTR -2080[rbp]
	mov	rdi, rax
	call	pclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	read_peers, .-read_peers
	.section	.rodata
	.align 8
.LC3:
	.string	"Could not parse base64 key: %s\n"
	.text
	.type	unbase64, @function
unbase64:
.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	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rcx, -48[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, 33
	mov	rsi, rcx
	mov	rdi, rax
	call	__b64_pton@PLT
	cmp	eax, 32
	je	.L22
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -64[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 22
	call	exit@PLT
.L22:
	lea	rcx, -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 32
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	unbase64, .-unbase64
	.section	.rodata
.LC4:
	.string	"setsockopt(bpf)"
	.text
	.type	apply_bpf, @function
apply_bpf:
.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, 112
	mov	DWORD PTR -100[rbp], edi
	mov	eax, esi
	mov	DWORD PTR -108[rbp], edx
	mov	WORD PTR -104[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -80[rbp], 32
	mov	BYTE PTR -78[rbp], 0
	mov	BYTE PTR -77[rbp], 0
	mov	DWORD PTR -76[rbp], 12
	mov	WORD PTR -72[rbp], 21
	mov	BYTE PTR -70[rbp], 0
	mov	BYTE PTR -69[rbp], 5
	mov	eax, DWORD PTR -108[rbp]
	mov	DWORD PTR -68[rbp], eax
	mov	WORD PTR -64[rbp], 40
	mov	BYTE PTR -62[rbp], 0
	mov	BYTE PTR -61[rbp], 0
	mov	DWORD PTR -60[rbp], 20
	mov	WORD PTR -56[rbp], 21
	mov	BYTE PTR -54[rbp], 0
	mov	BYTE PTR -53[rbp], 3
	mov	DWORD PTR -52[rbp], 49918
	mov	WORD PTR -48[rbp], 40
	mov	BYTE PTR -46[rbp], 0
	mov	BYTE PTR -45[rbp], 0
	mov	DWORD PTR -44[rbp], 22
	mov	WORD PTR -40[rbp], 21
	mov	BYTE PTR -38[rbp], 0
	mov	BYTE PTR -37[rbp], 1
	movzx	eax, WORD PTR -104[rbp]
	mov	DWORD PTR -36[rbp], eax
	mov	WORD PTR -32[rbp], 6
	mov	BYTE PTR -30[rbp], 0
	mov	BYTE PTR -29[rbp], 0
	mov	DWORD PTR -28[rbp], -1
	mov	WORD PTR -24[rbp], 6
	mov	BYTE PTR -22[rbp], 0
	mov	BYTE PTR -21[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	WORD PTR -96[rbp], 8
	lea	rax, -80[rbp]
	mov	QWORD PTR -88[rbp], rax
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -100[rbp]
	mov	r8d, 16
	mov	rcx, rdx
	mov	edx, 26
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L27
	lea	rdi, .LC4[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L27:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	apply_bpf, .-apply_bpf
	.section	.rodata
	.align 8
.LC5:
	.string	"Usage: %s SERVER WIREGUARD_INTERFACE\nExample:\n    %s demo.wireguard.com wg0\n"
.LC6:
	.string	"Must be root!\n"
.LC7:
	.string	"gethostbyname2"
.LC8:
	.string	"ip link set %s up"
.LC9:
	.string	"wg show %s public-key"
.LC10:
	.string	"wg show %s listen-port"
.LC11:
	.string	"socket"
	.align 8
.LC12:
	.string	"[+] Requesting IP and port of %s: "
.LC13:
	.string	"sendto"
.LC14:
	.string	"recv"
.LC15:
	.string	"server does not yet have it"
.LC16:
	.string	"%s:%d\n"
	.align 8
.LC17:
	.string	"wg set %s peer %s persistent-keepalive 25 endpoint %s:%d"
	.text
	.globl	main
	.type	main, @function
main:
.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, 216
	.cfi_offset 3, -24
	mov	DWORD PTR -212[rbp], edi
	mov	QWORD PTR -224[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	WORD PTR -112[rbp], 2
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	edi, 49918
	call	htons@PLT
	mov	WORD PTR -94[rbp], ax
	mov	edi, 72
	call	htons@PLT
	mov	WORD PTR -92[rbp], ax
	mov	rax, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -184[rbp], rax
	cmp	DWORD PTR -212[rbp], 2
	jg	.L29
	mov	rax, QWORD PTR -224[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -224[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 22
	jmp	.L43
.L29:
	call	getuid@PLT
	test	eax, eax
	je	.L31
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L43
.L31:
	mov	rax, QWORD PTR -192[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	gethostbyname2@PLT
	mov	QWORD PTR -176[rbp], rax
	cmp	QWORD PTR -176[rbp], 0
	jne	.L32
	lea	rdi, .LC7[rip]
	call	herror@PLT
	call	__h_errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L43
.L32:
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -108[rbp], eax
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	read_peers
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	cmd
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	cmd
	mov	rdx, rax
	lea	rax, -96[rbp]
	add	rax, 8
	mov	rsi, rdx
	mov	rdi, rax
	call	unbase64
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	cmd
	mov	rdi, rax
	call	atoi@PLT
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -96[rbp], ax
	mov	edx, 17
	mov	esi, 3
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -196[rbp], eax
	cmp	DWORD PTR -196[rbp], 0
	jns	.L33
	lea	rdi, .LC11[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L43
.L33:
	mov	eax, DWORD PTR -108[rbp]
	mov	edi, eax
	call	ntohl@PLT
	mov	ebx, eax
	movzx	eax, WORD PTR -96[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ecx, ax
	mov	eax, DWORD PTR -196[rbp]
	mov	edx, ebx
	mov	esi, ecx
	mov	edi, eax
	call	apply_bpf
.L34:
	mov	BYTE PTR -201[rbp], 0
	mov	DWORD PTR -200[rbp], 0
	jmp	.L35
.L41:
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	imul	rax, rax, 46
	lea	rdx, peers[rip+45]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L45
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	imul	rax, rax, 46
	lea	rdx, peers[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	imul	rax, rax, 46
	lea	rdx, peers[rip]
	add	rdx, rax
	lea	rax, -96[rbp]
	add	rax, 40
	mov	rsi, rdx
	mov	rdi, rax
	call	unbase64
	lea	rdx, -112[rbp]
	lea	rsi, -96[rbp]
	mov	eax, DWORD PTR -196[rbp]
	mov	r9d, 16
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 72
	mov	edi, eax
	call	sendto@PLT
	test	rax, rax
	jns	.L38
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC13[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L43
.L38:
	lea	rsi, -160[rbp]
	mov	eax, DWORD PTR -196[rbp]
	mov	ecx, 0
	mov	edx, 34
	mov	edi, eax
	call	recv@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	jns	.L39
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC14[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L43
.L39:
	cmp	QWORD PTR -168[rbp], 34
	je	.L40
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	BYTE PTR -201[rbp], 1
	jmp	.L37
.L40:
	movzx	eax, WORD PTR -128[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ebx, ax
	lea	rax, -160[rbp]
	add	rax, 28
	mov	edi, DWORD PTR [rax]
	call	inet_ntoa@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	imul	rax, rax, 46
	lea	rdx, peers[rip+45]
	mov	BYTE PTR [rax+rdx], 1
	movzx	eax, WORD PTR -128[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ebx, ax
	lea	rax, -160[rbp]
	add	rax, 28
	mov	edi, DWORD PTR [rax]
	call	inet_ntoa@PLT
	mov	rcx, rax
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	imul	rax, rax, 46
	lea	rdx, peers[rip]
	add	rdx, rax
	mov	rax, QWORD PTR -184[rbp]
	mov	r8d, ebx
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	cmd
	jmp	.L37
.L45:
	nop
.L37:
	add	DWORD PTR -200[rbp], 1
.L35:
	mov	edx, DWORD PTR -200[rbp]
	mov	eax, DWORD PTR total_peers[rip]
	cmp	edx, eax
	jb	.L41
	cmp	BYTE PTR -201[rbp], 0
	je	.L42
	mov	edi, 2
	call	sleep@PLT
	jmp	.L34
.L42:
	mov	eax, DWORD PTR -196[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L43:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.local	buf.0
	.comm	buf.0,2048,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	"947142.c"
	.text
	.local	peers
	.comm	peers,3014656,4
	.local	total_peers
	.comm	total_peers,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"popen\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmd, %function
cmd:
	@ args = 4, pretend = 16, frame = 2072
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2064
	sub	sp, sp, #8
	ldr	r3, [fp, #4]
	str	r3, [fp, #-2072]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-2056]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	ldr	r2, .L9+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	add	r3, fp, #8
	str	r3, [fp, #-2068]
	sub	r0, fp, #2048
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r3, [fp, #-2068]
	ldr	r2, [fp, #-2072]
	ldr	r1, .L9+8
	bl	vsnprintf
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L9+12
	mov	r0, r3
	bl	popen
	str	r0, [fp, #-2064]
	ldr	r3, [fp, #-2064]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L9+16
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L2:
	ldr	r2, [fp, #-2064]
	mov	r1, #2048
	ldr	r0, .L9+20
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	ldr	r0, [fp, #-2064]
	bl	pclose
	mov	r3, #0
	b	.L7
.L3:
	ldr	r0, [fp, #-2064]
	bl	pclose
	ldr	r0, .L9+20
	bl	strlen
	str	r0, [fp, #-2060]
	ldr	r3, [fp, #-2060]
	cmp	r3, #0
	bne	.L5
	mov	r3, #0
	b	.L7
.L5:
	ldr	r3, [fp, #-2060]
	sub	r3, r3, #1
	ldr	r2, .L9+20
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L6
	ldr	r3, [fp, #-2060]
	sub	r3, r3, #1
	ldr	r2, .L9+20
	mov	r1, #0
	strb	r1, [r2, r3]
.L6:
	ldr	r3, .L9+20
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L10:
	.align	2
.L9:
	.word	.LC2
	.word	2044
	.word	2047
	.word	.LC0
	.word	.LC1
	.word	buf.7607
	.size	cmd, .-cmd
	.section	.rodata
	.align	2
.LC3:
	.ascii	"wg show %s peers\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_peers, %function
read_peers:
	@ args = 0, pretend = 0, frame = 2072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2064
	sub	sp, sp, #8
	str	r0, [fp, #-2072]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-2056]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	ldr	r2, .L22+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r0, fp, #2048
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r3, [fp, #-2072]
	ldr	r2, .L22+8
	ldr	r1, .L22+12
	bl	snprintf
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L22+16
	mov	r0, r3
	bl	popen
	str	r0, [fp, #-2064]
	ldr	r3, [fp, #-2064]
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L22+20
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L12:
	ldr	r3, .L22+24
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, .L22+28
	add	r3, r3, r2
	ldr	r2, [fp, #-2064]
	mov	r1, #45
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L22+24
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, .L22+28
	add	r3, r3, r2
	mov	r0, r3
	bl	strlen
	str	r0, [fp, #-2060]
	ldr	r3, [fp, #-2060]
	cmp	r3, #44
	beq	.L15
	ldr	r3, [fp, #-2060]
	cmp	r3, #45
	bne	.L21
.L15:
	ldr	r3, .L22+24
	ldr	r2, [r3]
	ldr	r3, [fp, #-2060]
	sub	r1, r3, #1
	ldr	r0, .L22+28
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r0, r3
	add	r3, r3, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L17
	ldr	r3, .L22+24
	ldr	r2, [r3]
	ldr	r3, [fp, #-2060]
	sub	r1, r3, #1
	ldr	r0, .L22+28
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, #0
	strb	r2, [r3]
.L17:
	ldr	r3, .L22+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L22+24
	str	r3, [r2]
	b	.L12
.L21:
	nop
	b	.L12
.L20:
	nop
	ldr	r0, [fp, #-2064]
	bl	pclose
	nop
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC4
	.word	2044
	.word	.LC3
	.word	2047
	.word	.LC0
	.word	.LC1
	.word	total_peers
	.word	peers
	.size	read_peers, .-read_peers
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Could not parse base64 key: %s\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	unbase64, %function
unbase64:
	@ 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, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #44
	mov	r2, #33
	mov	r1, r3
	ldr	r0, [fp, #-52]
	bl	__b64_pton
	mov	r3, r0
	cmp	r3, #32
	beq	.L25
	ldr	r3, .L27+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	ldr	r1, .L27+8
	mov	r0, r3
	bl	fprintf
	mov	r0, #22
	bl	exit
.L25:
	sub	r3, fp, #44
	mov	r2, #32
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	memcpy
	nop
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC6
	.word	stderr
	.word	.LC5
	.size	unbase64, .-unbase64
	.section	.rodata
	.align	2
.LC7:
	.ascii	"setsockopt(bpf)\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	apply_bpf, %function
apply_bpf:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-88]
	mov	r3, r1
	str	r2, [fp, #-96]
	strh	r3, [fp, #-90]	@ movhi
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #32
	strh	r3, [fp, #-72]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-70]
	mov	r3, #0
	strb	r3, [fp, #-69]
	mov	r3, #12
	str	r3, [fp, #-68]
	mov	r3, #21
	strh	r3, [fp, #-64]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-62]
	mov	r3, #5
	strb	r3, [fp, #-61]
	ldr	r3, [fp, #-96]
	str	r3, [fp, #-60]
	mov	r3, #40
	strh	r3, [fp, #-56]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-54]
	mov	r3, #0
	strb	r3, [fp, #-53]
	mov	r3, #20
	str	r3, [fp, #-52]
	mov	r3, #21
	strh	r3, [fp, #-48]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-46]
	mov	r3, #3
	strb	r3, [fp, #-45]
	ldr	r3, .L33+4
	str	r3, [fp, #-44]
	mov	r3, #40
	strh	r3, [fp, #-40]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-38]
	mov	r3, #0
	strb	r3, [fp, #-37]
	mov	r3, #22
	str	r3, [fp, #-36]
	mov	r3, #21
	strh	r3, [fp, #-32]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-30]
	mov	r3, #1
	strb	r3, [fp, #-29]
	ldrh	r3, [fp, #-90]
	str	r3, [fp, #-28]
	mov	r3, #6
	strh	r3, [fp, #-24]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-22]
	mov	r3, #0
	strb	r3, [fp, #-21]
	mvn	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #6
	strh	r3, [fp, #-16]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-14]
	mov	r3, #0
	strb	r3, [fp, #-13]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #8
	strh	r3, [fp, #-80]	@ movhi
	sub	r3, fp, #72
	str	r3, [fp, #-76]
	sub	r3, fp, #80
	mov	r2, #8
	str	r2, [sp]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, [fp, #-88]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L32
	ldr	r0, .L33+8
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L32:
	nop
	ldr	r3, .L33
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC8
	.word	49918
	.word	.LC7
	.size	apply_bpf, .-apply_bpf
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Usage: %s SERVER WIREGUARD_INTERFACE\012Example:\012"
	.ascii	"    %s demo.wireguard.com wg0\012\000"
	.align	2
.LC10:
	.ascii	"Must be root!\012\000"
	.align	2
.LC11:
	.ascii	"gethostbyname2\000"
	.align	2
.LC12:
	.ascii	"ip link set %s up\000"
	.align	2
.LC13:
	.ascii	"wg show %s public-key\000"
	.align	2
.LC14:
	.ascii	"wg show %s listen-port\000"
	.align	2
.LC15:
	.ascii	"socket\000"
	.align	2
.LC16:
	.ascii	"[+] Requesting IP and port of %s: \000"
	.align	2
.LC17:
	.ascii	"sendto\000"
	.align	2
.LC18:
	.ascii	"recv\000"
	.align	2
.LC19:
	.ascii	"server does not yet have it\000"
	.align	2
.LC20:
	.ascii	"%s:%d\012\000"
	.align	2
.LC21:
	.ascii	"wg set %s peer %s persistent-keepalive 25 endpoint "
	.ascii	"%s:%d\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #176
	str	r0, [fp, #-176]
	str	r1, [fp, #-180]
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #104
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	mov	r3, #2
	strh	r3, [fp, #-104]	@ movhi
	sub	r3, fp, #88
	mov	r2, #72
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L53+4
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-86]	@ movhi
	mov	r0, #72
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-84]	@ movhi
	ldr	r3, [fp, #-180]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-180]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-156]
	ldr	r3, [fp, #-176]
	cmp	r3, #2
	bgt	.L36
	ldr	r3, .L53+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-180]
	ldr	r2, [r3]
	ldr	r3, [fp, #-180]
	ldr	r3, [r3]
	ldr	r1, .L53+12
	bl	fprintf
	mov	r3, #22
	b	.L50
.L36:
	bl	getuid
	mov	r3, r0
	cmp	r3, #0
	beq	.L38
	ldr	r3, .L53+8
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L53+16
	bl	fwrite
	mov	r3, #1
	b	.L50
.L38:
	mov	r1, #2
	ldr	r0, [fp, #-160]
	bl	gethostbyname2
	str	r0, [fp, #-152]
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bne	.L39
	ldr	r0, .L53+20
	bl	herror
	bl	__h_errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L50
.L39:
	ldr	r3, [fp, #-152]
	ldr	r3, [r3, #16]
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-100]
	ldr	r0, [fp, #-156]
	bl	read_peers
	ldr	r1, [fp, #-156]
	ldr	r0, .L53+24
	bl	cmd
	ldr	r1, [fp, #-156]
	ldr	r0, .L53+28
	bl	cmd
	mov	r2, r0
	sub	r3, fp, #88
	add	r3, r3, #8
	mov	r1, r2
	mov	r0, r3
	bl	unbase64
	ldr	r1, [fp, #-156]
	ldr	r0, .L53+32
	bl	cmd
	mov	r3, r0
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-88]	@ movhi
	mov	r2, #17
	mov	r1, #3
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	bge	.L40
	ldr	r0, .L53+36
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L50
.L40:
	ldrh	r3, [fp, #-88]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #-100]
	mov	r0, r3
	bl	ntohl
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, [fp, #-148]
	bl	apply_bpf
.L41:
	mov	r3, #0
	strb	r3, [fp, #-165]
	mov	r3, #0
	str	r3, [fp, #-164]
	b	.L42
.L48:
	ldr	r1, .L53+40
	ldr	r2, [fp, #-164]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	add	r3, r3, #45
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L52
	ldr	r2, [fp, #-164]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, .L53+40
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L53+44
	bl	printf
	ldr	r2, [fp, #-164]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, .L53+40
	add	r2, r3, r2
	sub	r3, fp, #88
	add	r3, r3, #40
	mov	r1, r2
	mov	r0, r3
	bl	unbase64
	sub	r1, fp, #88
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #104
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #72
	ldr	r0, [fp, #-148]
	bl	sendto
	mov	r3, r0
	cmp	r3, #0
	bge	.L45
	mov	r0, #10
	bl	putchar
	ldr	r0, .L53+48
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L50
.L45:
	sub	r1, fp, #140
	mov	r3, #0
	mov	r2, #34
	ldr	r0, [fp, #-148]
	bl	recv
	str	r0, [fp, #-144]
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	bge	.L46
	mov	r0, #10
	bl	putchar
	ldr	r0, .L53+52
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L50
.L46:
	ldr	r3, [fp, #-144]
	cmp	r3, #34
	beq	.L47
	ldr	r0, .L53+56
	bl	puts
	mov	r3, #1
	strb	r3, [fp, #-165]
	b	.L44
.L47:
	sub	r3, fp, #140
	add	r3, r3, #28
	ldr	r0, [r3]
	bl	inet_ntoa
	mov	r4, r0
	ldrh	r3, [fp, #-108]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L53+60
	bl	printf
	ldr	r1, .L53+40
	ldr	r2, [fp, #-164]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	add	r3, r3, #45
	mov	r2, #1
	strb	r2, [r3]
	ldr	r2, [fp, #-164]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, .L53+40
	add	r4, r3, r2
	sub	r3, fp, #140
	add	r3, r3, #28
	ldr	r0, [r3]
	bl	inet_ntoa
	mov	r5, r0
	ldrh	r3, [fp, #-108]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	str	r3, [sp]
	mov	r3, r5
	mov	r2, r4
	ldr	r1, [fp, #-156]
	ldr	r0, .L53+64
	bl	cmd
	b	.L44
.L52:
	nop
.L44:
	ldr	r3, [fp, #-164]
	add	r3, r3, #1
	str	r3, [fp, #-164]
.L42:
	ldr	r2, [fp, #-164]
	ldr	r3, .L53+68
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L48
	ldrb	r3, [fp, #-165]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L49
	mov	r0, #2
	bl	sleep
	b	.L41
.L49:
	ldr	r0, [fp, #-148]
	bl	close
	mov	r3, #0
.L50:
	ldr	r2, .L53
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L51
	bl	__stack_chk_fail
.L51:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC22
	.word	49918
	.word	stderr
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	peers
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	total_peers
	.size	main, .-main
	.local	buf.7607
	.comm	buf.7607,2048,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
