	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HandleBlockDNSMessage
_HandleBlockDNSMessage:                 ## @HandleBlockDNSMessage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -64(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_CP_UTF8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_settings@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	(%r12), %ecx
	xorl	%esi, %esi
	movq	%rbx, %r8
	movl	%ecx, %r9d
	callq	_MultiByteToWideChar
	movq	8(%r15), %rax
	movq	_msg_add_block_dns@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movl	(%r15), %esi
	movq	_BlockDNSErrHandler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-64(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_add_block_dns_filters
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_13
## %bb.2:
	movl	$32, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	-64(%rbp), %rax
	movq	%rax, 16(%rbx)
	movl	(%r15), %edi
	movl	%edi, 24(%rbx)
	movl	$0, -52(%rbp)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	callq	_get_interface_metric
	xorl	%r12d, %r12d
	cmpl	$0, -52(%rbp)
	cmovneq	%r12, %rax
	movq	%rax, (%rbx)
	movl	(%r15), %edi
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	callq	_get_interface_metric
	cmpl	$0, -52(%rbp)
	cmovneq	%r12, %rax
	movq	%rax, 8(%rbx)
	movq	_block_dns@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_AddListItem
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_13
## %bb.5:
	movl	(%r15), %edi
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BLOCK_DNS_IFACE_METRIC@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	callq	_set_interface_metric
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_13
## %bb.6:
	movl	(%r15), %edi
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	callq	_set_interface_metric
	xorl	%r12d, %r12d
	jmp	LBB0_13
LBB0_7:
	movq	_block_dns@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	(%r14), %rdi
	movq	_CmpEngine@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_RemoveListItem
	testq	%rax, %rax
	je	LBB0_18
## %bb.8:
	movq	%rax, %rbx
	movq	16(%rax), %rdi
	callq	_delete_block_dns_filters
	movq	%rax, %r12
	movq	$0, -64(%rbp)
	movq	(%rbx), %rdx
	testq	%rdx, %rdx
	js	LBB0_10
## %bb.9:
	movl	(%r15), %edi
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_set_interface_metric
LBB0_10:
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	js	LBB0_12
## %bb.11:
	movl	(%r15), %edi
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_set_interface_metric
LBB0_12:
	movq	%rbx, %rdi
	callq	_free
LBB0_13:
	testq	%r12, %r12
	je	LBB0_16
## %bb.14:
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_delete_block_dns_filters
	jmp	LBB0_16
LBB0_18:
	movq	_M_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	_TEXT
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_MsgToEventLog
	xorl	%r12d, %r12d
	jmp	LBB0_16
LBB0_3:
	movq	_ERROR_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_16:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.17:
	movq	%r12, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_CP_UTF8,4,2                    ## @CP_UTF8
	.comm	_settings,8,3                   ## @settings
	.comm	_msg_add_block_dns,8,3          ## @msg_add_block_dns
	.comm	_BlockDNSErrHandler,4,2         ## @BlockDNSErrHandler
	.comm	_ERROR_OUTOFMEMORY,8,3          ## @ERROR_OUTOFMEMORY
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_block_dns,8,3                  ## @block_dns
	.comm	_BLOCK_DNS_IFACE_METRIC,8,3     ## @BLOCK_DNS_IFACE_METRIC
	.comm	_CmpEngine,4,2                  ## @CmpEngine
	.comm	_M_ERR,4,2                      ## @M_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No previous block DNS filters to delete"

	.no_dead_strip	_HandleBlockDNSMessage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HandleBlockDNSMessage
_HandleBlockDNSMessage:                 ; @HandleBlockDNSMessage
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #32
	mov	x20, x1
	mov	x19, x0
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	stur	xzr, [x29, #-64]
Lloh3:
	adrp	x12, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x12, [x12, _MAX_PATH@GOTPAGEOFF]
	ldr	w8, [x12]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh7:
	adrp	x8, _CP_UTF8@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CP_UTF8@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _settings@GOTPAGE
Lloh11:
	ldr	x8, [x8, _settings@GOTPAGEOFF]
Lloh12:
	ldr	x2, [x8]
	ldr	w3, [x12]
	mov	w1, #0
	mov	x4, x21
	mov	x5, x3
	bl	_MultiByteToWideChar
	ldr	x8, [x19, #8]
Lloh13:
	adrp	x9, _msg_add_block_dns@GOTPAGE
Lloh14:
	ldr	x9, [x9, _msg_add_block_dns@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	ldr	w1, [x19]
Lloh16:
	adrp	x8, _BlockDNSErrHandler@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BlockDNSErrHandler@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	sub	x0, x29, #64
	mov	x2, x21
	bl	_add_block_dns_filters
	mov	x21, x0
	cbnz	x0, LBB0_12
; %bb.2:
	mov	w0, #32
	bl	_malloc
	cbz	x0, LBB0_15
; %bb.3:
	mov	x21, x0
	ldur	x8, [x29, #-64]
	str	x8, [x0, #16]
	ldr	w0, [x19]
	str	w0, [x21, #24]
	stur	wzr, [x29, #-68]
Lloh19:
	adrp	x23, _AF_INET@GOTPAGE
Lloh20:
	ldr	x23, [x23, _AF_INET@GOTPAGEOFF]
	ldr	w1, [x23]
	sub	x2, x29, #68
	bl	_get_interface_metric
	ldur	w8, [x29, #-68]
	cmp	w8, #0
	csel	x8, x0, xzr, eq
	str	x8, [x21]
	ldr	w0, [x19]
Lloh21:
	adrp	x24, _AF_INET6@GOTPAGE
Lloh22:
	ldr	x24, [x24, _AF_INET6@GOTPAGEOFF]
	ldr	w1, [x24]
	sub	x2, x29, #68
	bl	_get_interface_metric
	ldur	w8, [x29, #-68]
	cmp	w8, #0
	csel	x8, x0, xzr, eq
	str	x8, [x21, #8]
	ldr	x8, [x20]
Lloh23:
	adrp	x9, _block_dns@GOTPAGE
Lloh24:
	ldr	x9, [x9, _block_dns@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	mov	x1, x21
	bl	_AddListItem
	mov	x21, x0
	cbnz	x0, LBB0_12
; %bb.4:
	ldr	w0, [x19]
	ldr	w1, [x23]
Lloh26:
	adrp	x20, _BLOCK_DNS_IFACE_METRIC@GOTPAGE
Lloh27:
	ldr	x20, [x20, _BLOCK_DNS_IFACE_METRIC@GOTPAGEOFF]
	ldr	x2, [x20]
	bl	_set_interface_metric
	mov	x21, x0
	cbnz	x0, LBB0_12
; %bb.5:
	ldr	w0, [x19]
	ldr	w1, [x24]
	ldr	x2, [x20]
	bl	_set_interface_metric
	b	LBB0_12
LBB0_6:
Lloh28:
	adrp	x8, _block_dns@GOTPAGE
Lloh29:
	ldr	x8, [x8, _block_dns@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh30:
	ldr	x8, [x8]
	add	x0, x9, x8, lsl #2
Lloh31:
	adrp	x8, _CmpEngine@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CmpEngine@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_RemoveListItem
	cbz	x0, LBB0_14
; %bb.7:
	mov	x20, x0
	ldr	x0, [x0, #16]
	bl	_delete_block_dns_filters
	mov	x21, x0
	stur	xzr, [x29, #-64]
	ldr	x2, [x20]
	tbnz	x2, #63, LBB0_9
; %bb.8:
	ldr	w0, [x19]
Lloh34:
	adrp	x8, _AF_INET@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	bl	_set_interface_metric
LBB0_9:
	ldr	x2, [x20, #8]
	tbnz	x2, #63, LBB0_11
; %bb.10:
	ldr	w0, [x19]
Lloh37:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh38:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	bl	_set_interface_metric
LBB0_11:
	mov	x0, x20
	bl	_free
LBB0_12:
	ldur	x0, [x29, #-64]
	cmp	x21, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_16
; %bb.13:
	bl	_delete_block_dns_filters
	b	LBB0_16
LBB0_14:
Lloh40:
	adrp	x8, _M_ERR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _M_ERR@GOTPAGEOFF]
Lloh42:
	ldr	w19, [x8]
Lloh43:
	adrp	x0, l_.str@PAGE
Lloh44:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TEXT
	mov	x1, x0
	mov	x0, x19
	bl	_MsgToEventLog
	mov	x21, #0
	b	LBB0_16
LBB0_15:
Lloh45:
	adrp	x8, _ERROR_OUTOFMEMORY@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ERROR_OUTOFMEMORY@GOTPAGEOFF]
Lloh47:
	ldr	x21, [x8]
LBB0_16:
	mov	sp, x22
	ldur	x8, [x29, #-56]
Lloh48:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh49:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x21
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_CP_UTF8,4,2                    ; @CP_UTF8
	.comm	_settings,8,3                   ; @settings
	.comm	_msg_add_block_dns,8,3          ; @msg_add_block_dns
	.comm	_BlockDNSErrHandler,4,2         ; @BlockDNSErrHandler
	.comm	_ERROR_OUTOFMEMORY,8,3          ; @ERROR_OUTOFMEMORY
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_block_dns,8,3                  ; @block_dns
	.comm	_BLOCK_DNS_IFACE_METRIC,8,3     ; @BLOCK_DNS_IFACE_METRIC
	.comm	_CmpEngine,4,2                  ; @CmpEngine
	.comm	_M_ERR,4,2                      ; @M_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No previous block DNS filters to delete"

	.no_dead_strip	_HandleBlockDNSMessage
.subsections_via_symbols
