	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_daemon
_run_daemon:                            ## @run_daemon
	.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
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, -48(%rbp)
	xorl	%eax, %eax
	callq	_daemon_init
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpl	$0, 12(%rbx)
	jne	LBB0_19
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal_exit
	cmpl	$0, 12(%rbx)
	je	LBB0_3
LBB0_19:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_verbose
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.20:
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_TRUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	$420, %edx                      ## imm = 0x1A4
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %edi
	callq	_close
LBB0_22:
	movq	(%rbx), %rdi
	callq	_unlink
LBB0_23:
	movq	%rbx, %rdi
	callq	_daemon_delete
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movb	$1, %r15b
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	leaq	-48(%rbp), %rcx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_perform_setup
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_daemon_fork
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r15d, %r15d
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_verbose
	movq	%rbx, %rdi
	callq	_daemon_cleanup
	movq	%r14, %rdi
	callq	_config_delete
	cmpl	$0, 12(%rbx)
	jne	LBB0_19
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_VERB_OPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PACKAGE_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testb	$1, %r15b
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rax
	cmovneq	%rax, %rsi
	xorl	%eax, %eax
	callq	_verbose
	xorl	%eax, %eax
	callq	_config_create
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal_exit
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rsi
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	callq	_config_read
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rsi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal_exit
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.5(%rip), %rdi
	callq	_log_warn
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_apply_settings
	testb	$1, %r15b
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_config_lookup_uid
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_daemon_open_shared_ports
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	testb	$1, %r15b
	jne	LBB0_15
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal_exit
	testb	$1, %r15b
	jne	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, 8(%r14)
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %edx
	movl	4(%r14), %edi
	xorl	%esi, %esi
	callq	_log_init
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"alloc failure"

	.comm	_VERB_OPS,4,2                   ## @VERB_OPS
L_.str.1:                               ## @.str.1
	.asciz	"Restart of %s."

	.comm	_PACKAGE_STRING,4,2             ## @PACKAGE_STRING
L_.str.2:                               ## @.str.2
	.asciz	"Start of %s."

L_.str.3:                               ## @.str.3
	.asciz	"Could not alloc config defaults"

	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
L_.str.4:                               ## @.str.4
	.asciz	"Could not read config file: %s. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf"

L_.str.5:                               ## @.str.5
	.asciz	"Continuing with default config settings"

L_.str.6:                               ## @.str.6
	.asciz	"could not open ports"

	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
L_.str.7:                               ## @.str.7
	.asciz	"cleanup."

L_.str.8:                               ## @.str.8
	.asciz	"Exit cleanup."

	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.no_dead_strip	_run_daemon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_daemon
_run_daemon:                            ; @run_daemon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w4, [sp, #20]                   ; 4-byte Folded Spill
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	str	x0, [sp, #24]
	bl	_daemon_init
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal_exit
LBB0_2:
	ldr	w8, [x19, #12]
Lloh2:
	adrp	x24, _VERB_ALGO@GOTPAGE
Lloh3:
	ldr	x24, [x24, _VERB_ALGO@GOTPAGEOFF]
	cbz	w8, LBB0_8
LBB0_3:
	ldr	w0, [x24]
Lloh4:
	adrp	x1, l_.str.8@PAGE
Lloh5:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_verbose
	ldr	x0, [x19]
	cbz	x0, LBB0_7
; %bb.4:
Lloh6:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w2, #420
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.5:
	bl	_close
LBB0_6:
	ldr	x0, [x19]
	bl	_unlink
LBB0_7:
	mov	x0, x19
	bl	_daemon_delete
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	mov	w27, #1
Lloh12:
	adrp	x20, l_.str.1@PAGE
Lloh13:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh14:
	adrp	x25, l_.str.2@PAGE
Lloh15:
	add	x25, x25, l_.str.2@PAGEOFF
Lloh16:
	adrp	x28, l_.str.7@PAGE
Lloh17:
	add	x28, x28, l_.str.7@PAGEOFF
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	add	x3, sp, #24
	mov	x0, x19
	mov	x1, x26
	mov	x2, x22
	ldr	w4, [sp, #20]                   ; 4-byte Folded Reload
	bl	_perform_setup
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_daemon_fork
	ldr	w0, [x24]
	mov	x1, x28
	bl	_verbose
	mov	x0, x19
	bl	_daemon_cleanup
	mov	x0, x26
	bl	_config_delete
	mov	w27, #0
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_3
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
Lloh18:
	adrp	x8, _VERB_OPS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VERB_OPS@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	tst	w27, #0x1
	csel	x1, x25, x20, ne
Lloh21:
	adrp	x8, _PACKAGE_STRING@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PACKAGE_STRING@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	x8, [sp]
	bl	_verbose
	bl	_config_create
	mov	x26, x0
	cbnz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_fatal_exit
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x1, [sp, #24]
	ldr	w2, [x19, #8]
	mov	x0, x26
	bl	_config_read
	cbnz	w0, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
Lloh29:
	adrp	x9, _ENOENT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #24]
	str	x8, [sp]
Lloh32:
	adrp	x0, l_.str.4@PAGE
Lloh33:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_fatal_exit
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
Lloh34:
	adrp	x0, l_.str.5@PAGE
Lloh35:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_log_warn
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	mov	x1, x26
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_apply_settings
	tbz	w27, #0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x26
	bl	_config_lookup_uid
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_daemon_open_shared_ports
	cbz	w0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=1
	tbnz	w27, #0, LBB0_9
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_11 Depth=1
Lloh36:
	adrp	x0, l_.str.6@PAGE
Lloh37:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_fatal_exit
	tbnz	w27, #0, LBB0_9
LBB0_22:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x26, #8]
	cbnz	w8, LBB0_10
; %bb.23:                               ;   in Loop: Header=BB0_11 Depth=1
	ldp	w2, w0, [x26]
	mov	w1, #0
	bl	_log_init
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"alloc failure"

	.comm	_VERB_OPS,4,2                   ; @VERB_OPS
l_.str.1:                               ; @.str.1
	.asciz	"Restart of %s."

	.comm	_PACKAGE_STRING,4,2             ; @PACKAGE_STRING
l_.str.2:                               ; @.str.2
	.asciz	"Start of %s."

l_.str.3:                               ; @.str.3
	.asciz	"Could not alloc config defaults"

	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
l_.str.4:                               ; @.str.4
	.asciz	"Could not read config file: %s. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf"

l_.str.5:                               ; @.str.5
	.asciz	"Continuing with default config settings"

l_.str.6:                               ; @.str.6
	.asciz	"could not open ports"

	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
l_.str.7:                               ; @.str.7
	.asciz	"cleanup."

l_.str.8:                               ; @.str.8
	.asciz	"Exit cleanup."

	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.no_dead_strip	_run_daemon
.subsections_via_symbols
