	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_reload_config               ## -- Begin function do_reload_config
	.p2align	4, 0x90
_do_reload_config:                      ## @do_reload_config
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_need_reload_config@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_config_filename@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movq	_fd@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_kdb_load_hosts
	movq	_verbosity@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	cmpq	$0, (%rcx)
	jle	LBB0_5
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_5:
	movq	_db_hash_new@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	$4, %esi
	callq	_parse_config
	movl	%eax, %ebx
	movq	(%r12), %rax
	movq	(%rax), %rdi
	callq	_close
	movl	(%r13), %edi
	testl	%ebx, %ebx
	js	LBB0_8
## %bb.6:
	movl	$3, %esi
	callq	_parse_config
	movl	(%r13), %edi
	testl	%eax, %eax
	js	LBB0_7
## %bb.9:
	movl	$1, %esi
	callq	_parse_config
	testl	%eax, %eax
	js	LBB0_16
## %bb.10:
	movq	_db_hash@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_clear_db_hash_table
	movl	(%rbx), %eax
	movl	(%r13), %ecx
	movl	%ecx, (%rbx)
	movl	%eax, (%r13)
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	callq	_create_all_outbound_connections
LBB0_12:
	movq	_now@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_config_reload_time@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_15
## %bb.13:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_14
LBB0_1:
	movl	$-3, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_14
LBB0_7:
	movl	%eax, %ebx
LBB0_8:
	callq	_clear_db_hash_table
	leaq	L_.str.2(%rip), %rsi
LBB0_14:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	%eax, %ebx
	movl	(%r13), %edi
	callq	_clear_db_hash_table
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	negl	%ebx
	movl	%ebx, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_need_reload_config,8,3         ## @need_reload_config
	.comm	_config_filename,8,3            ## @config_filename
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_fd,8,3                         ## @fd
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot re-read config file %s: %m\n"

	.comm	_verbosity,8,3                  ## @verbosity
L_.str.1:                               ## @.str.1
	.asciz	"/etc/hosts changed, reloaded\n"

	.comm	_db_hash_new,4,2                ## @db_hash_new
L_.str.2:                               ## @.str.2
	.asciz	"error while re-reading config file %s, new configuration NOT applied\n"

L_.str.3:                               ## @.str.3
	.asciz	"fatal error while re-reading config file %s\n"

	.comm	_db_hash,4,2                    ## @db_hash
	.comm	_now,4,2                        ## @now
	.comm	_config_reload_time,4,2         ## @config_reload_time
L_.str.4:                               ## @.str.4
	.asciz	"configuration file %s re-read successfully, new configuration active\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_reload_config               ; -- Begin function do_reload_config
	.p2align	2
_do_reload_config:                      ; @do_reload_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _need_reload_config@GOTPAGE
Lloh1:
	ldr	x8, [x8, _need_reload_config@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x21, _config_filename@GOTPAGE
Lloh4:
	ldr	x21, [x21, _config_filename@GOTPAGEOFF]
	ldr	x0, [x21]
Lloh5:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_open
Lloh8:
	adrp	x24, _fd@GOTPAGE
Lloh9:
	ldr	x24, [x24, _fd@GOTPAGEOFF]
	ldr	x8, [x24]
	str	x0, [x8]
	tbnz	x0, #63, LBB0_12
; %bb.1:
	bl	_kdb_load_hosts
Lloh10:
	adrp	x22, _verbosity@GOTPAGE
Lloh11:
	ldr	x22, [x22, _verbosity@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_4:
Lloh17:
	adrp	x23, _db_hash_new@GOTPAGE
Lloh18:
	ldr	x23, [x23, _db_hash_new@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	w1, #4
	bl	_parse_config
	mov	x20, x0
	ldr	x8, [x24]
	ldr	x0, [x8]
	bl	_close
	ldr	w0, [x23]
	tbnz	w20, #31, LBB0_11
; %bb.5:
	mov	w1, #3
	bl	_parse_config
	mov	x20, x0
	ldr	w0, [x23]
	tbnz	w20, #31, LBB0_11
; %bb.6:
	mov	w1, #1
	bl	_parse_config
	tbnz	w0, #31, LBB0_15
; %bb.7:
Lloh19:
	adrp	x20, _db_hash@GOTPAGE
Lloh20:
	ldr	x20, [x20, _db_hash@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_clear_db_hash_table
	ldr	w8, [x20]
	ldr	w9, [x23]
	str	w9, [x20]
	str	w8, [x23]
	cbz	w19, LBB0_9
; %bb.8:
	bl	_create_all_outbound_connections
LBB0_9:
	mov	w20, #0
Lloh21:
	adrp	x8, _now@GOTPAGE
Lloh22:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _config_reload_time@GOTPAGE
Lloh25:
	ldr	x9, [x9, _config_reload_time@GOTPAGEOFF]
Lloh26:
	str	w8, [x9]
	ldr	x8, [x22]
	cmp	x8, #0
	b.le	LBB0_14
; %bb.10:
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_11:
	bl	_clear_db_hash_table
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_12:
	mov	w20, #-3
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
LBB0_13:
Lloh33:
	adrp	x8, _stderr@GOTPAGE
Lloh34:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldr	x8, [x21]
	str	x8, [sp]
	bl	_fprintf
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_15:
	mov	x20, x0
	ldr	w0, [x23]
	bl	_clear_db_hash_table
Lloh36:
	adrp	x8, _stderr@GOTPAGE
Lloh37:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ldr	x8, [x21]
	str	x8, [sp]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	neg	w0, w20
	bl	_exit
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_need_reload_config,8,3         ; @need_reload_config
	.comm	_config_filename,8,3            ; @config_filename
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_fd,8,3                         ; @fd
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot re-read config file %s: %m\n"

	.comm	_verbosity,8,3                  ; @verbosity
l_.str.1:                               ; @.str.1
	.asciz	"/etc/hosts changed, reloaded\n"

	.comm	_db_hash_new,4,2                ; @db_hash_new
l_.str.2:                               ; @.str.2
	.asciz	"error while re-reading config file %s, new configuration NOT applied\n"

l_.str.3:                               ; @.str.3
	.asciz	"fatal error while re-reading config file %s\n"

	.comm	_db_hash,4,2                    ; @db_hash
	.comm	_now,4,2                        ; @now
	.comm	_config_reload_time,4,2         ; @config_reload_time
l_.str.4:                               ; @.str.4
	.asciz	"configuration file %s re-read successfully, new configuration active\n"

.subsections_via_symbols
