	.file	"extr_interactive.c_HandleBlockDNSMessage.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"No previous block DNS filters to delete"
	.text
	.p2align 4
	.type	HandleBlockDNSMessage, @function
HandleBlockDNSMessage:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	push	rbx
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_PATH[rip]
	mov	rsi, rsp
	mov	QWORD PTR -48[rbp], 0
	mov	rcx, rax
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L3
.L24:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L24
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L25
.L4:
	mov	rdx, QWORD PTR settings[rip]
	mov	r12, rsp
	mov	r9d, ecx
	xor	esi, esi
	mov	edi, DWORD PTR CP_UTF8[rip]
	mov	r8, r12
	call	MultiByteToWideChar@PLT
	mov	rax, QWORD PTR msg_add_block_dns[rip]
	cmp	QWORD PTR 8[rbx], rax
	je	.L26
	mov	rax, QWORD PTR 0[r13]
	mov	rdx, QWORD PTR block_dns[rip]
	mov	esi, DWORD PTR CmpEngine[rip]
	lea	rdi, [rax+rdx*4]
	xor	edx, edx
	call	RemoveListItem@PLT
	mov	r13, rax
	test	rax, rax
	je	.L12
	mov	rdi, QWORD PTR 16[rax]
	mov	QWORD PTR -48[rbp], rdi
	call	delete_block_dns_filters@PLT
	mov	rdx, QWORD PTR 0[r13]
	mov	QWORD PTR -48[rbp], 0
	mov	r12, rax
	test	rdx, rdx
	js	.L13
	mov	esi, DWORD PTR AF_INET[rip]
	mov	edi, DWORD PTR [rbx]
	call	set_interface_metric@PLT
.L13:
	mov	rdx, QWORD PTR 8[r13]
	test	rdx, rdx
	js	.L14
	mov	esi, DWORD PTR AF_INET6[rip]
	mov	edi, DWORD PTR [rbx]
	call	set_interface_metric@PLT
.L14:
	mov	rdi, r13
	call	free@PLT
	test	r12, r12
	jne	.L6
.L1:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	lea	rsp, -32[rbp]
	mov	rax, r12
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	ecx, DWORD PTR BlockDNSErrHandler[rip]
	mov	esi, DWORD PTR [rbx]
	mov	rdx, r12
	lea	rdi, -48[rbp]
	call	add_block_dns_filters@PLT
	mov	r12, rax
	test	rax, rax
	je	.L28
.L6:
	mov	rdi, QWORD PTR -48[rbp]
	test	rdi, rdi
	je	.L1
	call	delete_block_dns_filters@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rdi, .LC0[rip]
	xor	r12d, r12d
	call	TEXT@PLT
	mov	edi, DWORD PTR M_ERR[rip]
	mov	esi, eax
	call	MsgToEventLog@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edi, 32
	call	malloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L29
	mov	rax, QWORD PTR -48[rbp]
	mov	edi, DWORD PTR [rbx]
	lea	r14, -52[rbp]
	mov	DWORD PTR -52[rbp], 0
	mov	esi, DWORD PTR AF_INET[rip]
	mov	rdx, r14
	mov	QWORD PTR 16[r12], rax
	mov	DWORD PTR 24[r12], edi
	call	get_interface_metric@PLT
	mov	edx, DWORD PTR -52[rbp]
	mov	QWORD PTR [r12], rax
	test	edx, edx
	je	.L9
	mov	QWORD PTR [r12], 0
.L9:
	mov	esi, DWORD PTR AF_INET6[rip]
	mov	edi, DWORD PTR [rbx]
	mov	rdx, r14
	call	get_interface_metric@PLT
	mov	QWORD PTR 8[r12], rax
	mov	eax, DWORD PTR -52[rbp]
	test	eax, eax
	je	.L10
	mov	QWORD PTR 8[r12], 0
.L10:
	mov	rax, QWORD PTR 0[r13]
	mov	rdx, QWORD PTR block_dns[rip]
	mov	rsi, r12
	lea	rdi, [rax+rdx*4]
	call	AddListItem@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L6
	mov	rdx, QWORD PTR BLOCK_DNS_IFACE_METRIC[rip]
	mov	esi, DWORD PTR AF_INET[rip]
	mov	edi, DWORD PTR [rbx]
	call	set_interface_metric@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L6
	mov	rdx, QWORD PTR BLOCK_DNS_IFACE_METRIC[rip]
	mov	esi, DWORD PTR AF_INET6[rip]
	mov	edi, DWORD PTR [rbx]
	call	set_interface_metric@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L29:
	mov	r12, QWORD PTR ERROR_OUTOFMEMORY[rip]
	jmp	.L1
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	HandleBlockDNSMessage, .-HandleBlockDNSMessage
	.comm	settings,8,8
	.comm	msg_add_block_dns,8,8
	.comm	block_dns,8,8
	.comm	M_ERR,4,4
	.comm	MAX_PATH,4,4
	.comm	ERROR_OUTOFMEMORY,8,8
	.comm	CmpEngine,4,4
	.comm	CP_UTF8,4,4
	.comm	BlockDNSErrHandler,4,4
	.comm	BLOCK_DNS_IFACE_METRIC,8,8
	.comm	AF_INET6,4,4
	.comm	AF_INET,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_interactive.c_HandleBlockDNSMessage.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"No previous block DNS filters to delete\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	HandleBlockDNSMessage, %function
HandleBlockDNSMessage:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #24
	mov	r7, #0
	mov	r5, r0
	ldr	r3, .L26
	ldr	ip, .L26+4
	ldr	r3, [r3]
	ldr	r0, .L26+8
	lsl	r2, r3, #2
	add	r2, r2, #7
	bic	r2, r2, #7
	sub	sp, sp, r2
	add	r4, sp, #8
	str	r3, [sp, #4]
	str	r4, [sp]
	ldr	r2, [ip]
	ldr	ip, .L26+12
	mov	r6, r1
	ldr	r0, [r0]
	mov	r1, r7
	ldr	ip, [ip]
	str	ip, [fp, #-32]
	mov	ip,#0
	str	r7, [fp, #-40]
	bl	MultiByteToWideChar
	ldr	r3, .L26+16
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L23
	ldr	r3, .L26+20
	ldr	r2, [r6]
	ldr	r0, [r3]
	ldr	r3, .L26+24
	add	r0, r2, r0, lsl #2
	ldr	r1, [r3]
	mov	r2, r7
	bl	RemoveListItem
	subs	r6, r0, #0
	beq	.L9
	ldr	r0, [r6, #8]
	str	r0, [fp, #-40]
	bl	delete_block_dns_filters
	ldr	r2, [r6]
	mov	r4, r0
	cmp	r2, #0
	str	r7, [fp, #-40]
	blt	.L10
	ldr	r3, .L26+28
	ldr	r0, [r5]
	ldr	r1, [r3]
	bl	set_interface_metric
.L10:
	ldr	r2, [r6, #4]
	cmp	r2, #0
	blt	.L11
	ldr	r3, .L26+32
	ldr	r0, [r5]
	ldr	r1, [r3]
	bl	set_interface_metric
.L11:
	mov	r0, r6
	bl	free
	cmp	r4, #0
	bne	.L3
.L1:
	ldr	r3, .L26+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r4
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L23:
	ldr	r3, .L26+36
	mov	r2, r4
	ldr	r3, [r3]
	ldr	r1, [r5]
	sub	r0, fp, #40
	bl	add_block_dns_filters
	subs	r4, r0, #0
	bne	.L3
	mov	r0, #16
	bl	malloc
	subs	r7, r0, #0
	ldreq	r3, .L26+40
	ldreq	r4, [r3]
	beq	.L1
	ldr	r3, [fp, #-40]
	ldr	r0, [r5]
	ldr	r9, .L26+28
	str	r3, [r7, #8]
	ldr	r1, [r9]
	sub	r2, fp, #36
	str	r0, [r7, #12]
	str	r4, [fp, #-36]
	bl	get_interface_metric
	ldr	r3, [fp, #-36]
	ldr	r8, .L26+32
	cmp	r3, #0
	movne	r0, r4
	ldr	r1, [r8]
	sub	r2, fp, #36
	str	r0, [r7]
	ldr	r0, [r5]
	bl	get_interface_metric
	ldr	r3, [fp, #-36]
	ldr	r2, .L26+20
	cmp	r3, #0
	moveq	r4, r0
	ldr	r3, [r6]
	ldr	r2, [r2]
	str	r4, [r7, #4]
	mov	r1, r7
	add	r0, r3, r2, lsl #2
	bl	AddListItem
	subs	r4, r0, #0
	beq	.L25
.L3:
	ldr	r0, [fp, #-40]
	cmp	r0, #0
	beq	.L1
	bl	delete_block_dns_filters
	b	.L1
.L9:
	ldr	r3, .L26+44
	ldr	r0, .L26+48
	ldr	r4, [r3]
	bl	TEXT
	mov	r1, r0
	mov	r0, r4
	mov	r4, r6
	bl	MsgToEventLog
	b	.L1
.L25:
	ldr	r6, .L26+52
	ldr	r1, [r9]
	ldr	r2, [r6]
	ldr	r0, [r5]
	bl	set_interface_metric
	subs	r4, r0, #0
	bne	.L3
	ldr	r2, [r6]
	ldr	r1, [r8]
	ldr	r0, [r5]
	bl	set_interface_metric
	b	.L1
.L24:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	MAX_PATH
	.word	settings
	.word	CP_UTF8
	.word	.LC1
	.word	msg_add_block_dns
	.word	block_dns
	.word	CmpEngine
	.word	AF_INET
	.word	AF_INET6
	.word	BlockDNSErrHandler
	.word	ERROR_OUTOFMEMORY
	.word	M_ERR
	.word	.LC0
	.word	BLOCK_DNS_IFACE_METRIC
	.size	HandleBlockDNSMessage, .-HandleBlockDNSMessage
	.comm	settings,4,4
	.comm	msg_add_block_dns,4,4
	.comm	block_dns,4,4
	.comm	M_ERR,4,4
	.comm	MAX_PATH,4,4
	.comm	ERROR_OUTOFMEMORY,4,4
	.comm	CmpEngine,4,4
	.comm	CP_UTF8,4,4
	.comm	BlockDNSErrHandler,4,4
	.comm	BLOCK_DNS_IFACE_METRIC,4,4
	.comm	AF_INET6,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
